/* ═══════════════════════════════════════════════════════════════
   IDATA Chile — proteccion-datos.css
   Estilos específicos de la página Protección de Datos Personales
═══════════════════════════════════════════════════════════════ */

/* ─── Variables locales ──────────────────────────────────────── */
:root {
  --pd-cyan:   #06b6d4;
  --pd-cyan2:  #0891b2;
  --pd-purple: #8b5cf6;
  --pd-amber:  #f59e0b;
  --pd-green:  #10b981;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.pd-hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse 85% 60% at 50% 0%,
              rgba(6,182,212,0.18) 0%,
              rgba(30,107,255,0.08) 45%,
              transparent 70%),
              var(--idata-bg-dark);
  overflow: hidden;
  padding-top: var(--navbar-height);
  padding-bottom: 4rem;
}

.pd-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(6,182,212,0.04) 40px, rgba(6,182,212,0.04) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(6,182,212,0.04) 40px, rgba(6,182,212,0.04) 41px);
  pointer-events: none;
}

.pd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.4);
  color: var(--pd-cyan);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.35rem 1rem;
  border-radius: 999px;
}

/* ─── Breadcrumb ─────────────────────────────────────────────── */
.pd-breadcrumb {
  padding: calc(var(--navbar-height) + 0.5rem) 0 0;
  font-size: 0.82rem;
}
.pd-breadcrumb a { color: var(--idata-muted); text-decoration: none; transition: color 0.2s; }
.pd-breadcrumb a:hover { color: var(--idata-blue-light); }
.pd-breadcrumb .sep { color: var(--idata-border); margin: 0 0.5rem; }
.pd-breadcrumb .current { color: var(--pd-cyan); font-weight: 600; }

/* ─── Stats rápidas ──────────────────────────────────────────── */
.pd-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 2.5rem; }
.pd-stat  { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; color: var(--idata-muted); }
.pd-stat i { font-size: 1rem; color: var(--pd-cyan); }
.pd-stat strong { color: var(--idata-white); }

/* ─── Ícono decorativo hero ──────────────────────────────────── */
.pd-hero-visual { display: flex; align-items: center; justify-content: center; }

.pd-ring {
  position: relative;
  width: 260px;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pd-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(6, 182, 212, 0.25);
  animation: pulsePD 3s ease-in-out infinite;
}

.pd-ring::after {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px solid rgba(6, 182, 212, 0.15);
  animation: pulsePD 3s ease-in-out 1.5s infinite;
}

@keyframes pulsePD {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50%       { transform: scale(1.08); opacity: 1; }
}

.pd-ring-icon {
  font-size: 6rem;
  color: var(--pd-cyan);
  filter: drop-shadow(0 0 32px rgba(6, 182, 212, 0.45));
  position: relative;
  z-index: 1;
}

/* ─── Navegación interna sticky ──────────────────────────────── */
.pd-nav {
  background: var(--idata-bg-card);
  border-bottom: 1px solid var(--idata-border);
  position: sticky;
  top: var(--navbar-height);
  z-index: 100;
}

.pd-nav-inner {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.pd-nav-inner::-webkit-scrollbar { display: none; }

.pd-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.1rem;
  color: var(--idata-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.pd-nav-link:hover,
.pd-nav-link.active { color: var(--pd-cyan); border-bottom-color: var(--pd-cyan); }
.pd-nav-link i { font-size: 0.9rem; }

/* ─── Secciones alternadas ───────────────────────────────────── */
.pd-section { padding: 5rem 0; }
.pd-section:nth-child(even) { background: var(--idata-bg-section); }
.pd-section:nth-child(odd)  { background: var(--idata-bg-dark); }

/* ─── Cabecera de módulo ─────────────────────────────────────── */
.pd-module-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 2.75rem;
}

.pd-module-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--pd-cyan);
}

.pd-module-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.pd-module-meta h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--idata-white);
  margin-bottom: 0.3rem;
}
.pd-module-meta p { color: var(--idata-muted); font-size: 0.95rem; margin: 0; }

/* Colores por módulo */
.pd-mod-1 { background: rgba(6,182,212,0.12);  color: var(--pd-cyan); }
.pd-mod-2 { background: rgba(30,107,255,0.12); color: var(--idata-blue); }
.pd-mod-3 { background: rgba(139,92,246,0.12); color: var(--pd-purple); }
.pd-mod-4 { background: rgba(16,185,129,0.12); color: var(--pd-green); }
.pd-mod-5 { background: rgba(30,107,255,0.12); color: var(--idata-blue); }
.pd-mod-6 { background: rgba(245,158,11,0.12); color: var(--pd-amber); }
.pd-mod-7 { background: rgba(6,182,212,0.12);  color: var(--pd-cyan); }
.pd-mod-8 { background: rgba(16,185,129,0.12); color: var(--pd-green); }

/* ─── Checklist ──────────────────────────────────────────────── */
.pd-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pd-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--idata-surface);
  border: 1px solid var(--idata-border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  transition: var(--transition-base);
}

.pd-checklist li:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateX(4px);
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.07);
}

.pd-check-icon {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(6, 182, 212, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--pd-cyan);
  margin-top: 2px;
}

.pd-checklist li strong {
  display: block;
  color: var(--idata-white);
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.1rem;
}

.pd-checklist li span {
  color: var(--idata-muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ─── Panel lateral / entregables ───────────────────────────── */
.pd-side-panel {
  background: var(--idata-surface);
  border: 1px solid var(--idata-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.pd-side-panel-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--idata-muted);
  margin-bottom: 0.25rem;
}

.pd-deliverable {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(6, 182, 212, 0.06);
  border: 1px solid rgba(6, 182, 212, 0.15);
  border-radius: 8px;
  padding: 0.7rem 0.9rem;
  font-size: 0.85rem;
  color: var(--idata-text);
  font-weight: 500;
}
.pd-deliverable i { color: var(--pd-cyan); font-size: 1rem; flex-shrink: 0; }

/* ─── Sección intro (Descripción + Objetivos + A quién va) ──── */
.pd-intro-card {
  background: var(--idata-surface);
  border: 1px solid var(--idata-border);
  border-radius: var(--radius-card);
  padding: 2rem;
  height: 100%;
}

.pd-intro-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--idata-white);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--idata-border);
}

.pd-target-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pd-target-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.82rem;
  color: var(--idata-text);
}
.pd-target-list li i { color: var(--pd-cyan); font-size: 0.75rem; }

.pd-data-examples {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pd-data-examples li {
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 6px;
  padding: 0.25rem 0.7rem;
  font-size: 0.8rem;
  color: var(--idata-muted);
}

/* ─── Tarjeta de derechos ARCO ───────────────────────────────── */
.arco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.arco-card {
  background: var(--idata-surface);
  border: 1px solid var(--idata-border);
  border-radius: 10px;
  padding: 1rem;
  text-align: center;
  transition: var(--transition-base);
}

.arco-card:hover {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

.arco-letter {
  font-size: 2rem;
  font-weight: 900;
  color: var(--pd-purple);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.arco-word {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--idata-white);
  margin-bottom: 0.25rem;
}

.arco-desc { font-size: 0.75rem; color: var(--idata-muted); margin: 0; }

/* ─── Entregables finales ────────────────────────────────────── */
.pd-entregables-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.pd-entregable-card {
  background: var(--idata-surface);
  border: 1px solid var(--idata-border);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: var(--transition-base);
}

.pd-entregable-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.08);
}

.pd-entregable-card i {
  font-size: 1.4rem;
  color: var(--pd-cyan);
  flex-shrink: 0;
  margin-top: 2px;
}

.pd-entregable-card span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--idata-text);
  line-height: 1.4;
}

/* ─── Beneficios ─────────────────────────────────────────────── */
.pd-benefit-card {
  background: var(--idata-surface);
  border: 1px solid var(--idata-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  height: 100%;
  text-align: center;
  transition: var(--transition-base);
}

.pd-benefit-card:hover {
  border-color: rgba(6, 182, 212, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(6, 182, 212, 0.1);
}

.pd-benefit-card i {
  font-size: 2rem;
  color: var(--pd-cyan);
  display: block;
  margin-bottom: 0.75rem;
}

.pd-benefit-card h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--idata-white);
  margin-bottom: 0.35rem;
}

.pd-benefit-card p { color: var(--idata-muted); font-size: 0.82rem; margin: 0; }

/* ─── CTA final ──────────────────────────────────────────────── */
.pd-cta-section {
  background: linear-gradient(135deg,
    rgba(6,182,212,0.08) 0%,
    rgba(30,107,255,0.06) 100%),
    var(--idata-bg-card);
  border-top: 1px solid var(--idata-border);
  padding: 5rem 0;
  text-align: center;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 767.98px) {
  .pd-hero { min-height: auto; }
  .pd-ring { width: 180px; height: 180px; }
  .pd-ring-icon { font-size: 4.5rem; }
  .pd-stats { gap: 1rem; }
  .pd-nav-link { padding: 0.75rem 0.85rem; font-size: 0.77rem; }
  .pd-section { padding: 3.5rem 0; }
  .arco-grid { grid-template-columns: 1fr 1fr; }
  .pd-entregables-grid { grid-template-columns: 1fr; }
}
