/* ══ VARIABLES ══ */
:root {
  --bg: #04060f;
  --bg2: #080d1c;
  --bg3: #0c1225;
  --card: #0e1530;
  --border: #1a2545;
  --cyan: #00e5ff;
  --cyan2: #00b8d9;
  --lime: #a8ff3e;
  --text: #e8edf8;
  --muted: #7a8aaa;
  --accent: #ff4d6d;
  --gold: #ffc947;
  --radius: 12px;
  --radius-lg: 20px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══ BACKGROUND ══ */
.bg-wrapper {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}
.bg-glow-1 {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 229, 255, 0.18) 0%,
    transparent 70%
  );
  top: -200px;
  left: -200px;
}
.bg-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 229, 255, 0.08) 0%,
    transparent 70%
  );
  bottom: 100px;
  right: -100px;
}

main {
  position: relative;
  z-index: 1;
}

/* ==========================================================
/* ==========================================================
   HERO — Privacidad
========================================================== */
.hero {
  padding: 120px 24px 60px;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.hero-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.hero-breadcrumb a:hover {
  color: var(--cyan);
}
.hero-breadcrumb span {
  color: rgba(255, 255, 255, 0.3);
}
.hero-breadcrumb .current {
  color: rgba(255, 255, 255, 0.6);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 100px;
  padding: 7px 20px;
  font-size: 0.75rem;
  font-family: "Poiret One", sans-serif;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan2);
  margin-bottom: 24px;
  animation: fadeDown 0.6s ease both;
}
.hero-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1.6s ease infinite;
}

.hero h1 {
  font-family: "Poiret One", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
  animation: fadeDown 0.6s 0.1s ease both;
}
.hero-sub {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.75;
  max-width: 580px;
  margin: 0 auto 28px;
  animation: fadeDown 0.6s 0.2s ease both;
}
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  padding: 7px 18px;
  animation: fadeDown 0.6s 0.3s ease both;
}
.hero-meta .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: 0.7;
}

/* ==========================================================
   TOC — Tabla de Contenido
========================================================== */
.toc-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.toc-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
}
.toc-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan2), var(--cyan), var(--cyan2));
}
.toc-title {
  font-family: "Poiret One", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.toc-title::before {
  content: "📋";
  font-size: 0.9rem;
}
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px;
}
.toc-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition:
    background 0.18s,
    color 0.18s;
}
.toc-link:hover {
  background: rgba(0, 229, 255, 0.08);
  color: var(--text);
}
.toc-num {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poiret One", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--cyan);
}

/* ==========================================================
   CONTENIDO LEGAL
========================================================== */
.legal-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(0, 229, 255, 0.05);
}
.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Poiret One", sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 14px;
}
.section-num .n {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.legal-section h2 {
  font-family: "Poiret One", sans-serif;
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
  color: var(--text);
}

.legal-text {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
  margin-bottom: 16px;
}
.legal-text:last-of-type {
  margin-bottom: 0;
}
.legal-text a {
  color: var(--cyan2);
  text-decoration: underline;
  text-decoration-color: rgba(255, 138, 91, 0.4);
  transition: color 0.2s;
}
.legal-text a:hover {
  color: var(--cyan);
}
.legal-text strong {
  color: var(--text);
  font-weight: 600;
}

/* Info card (datos del responsable) */
.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px 26px;
  margin: 22px 0;
}
.info-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.info-row:first-child {
  padding-top: 0;
}
.info-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.info-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
  width: 20px;
  text-align: center;
}
.info-label {
  font-family: "Poiret One", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.info-value {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}
.info-value a {
  color: var(--cyan2);
  text-decoration: none;
}
.info-value a:hover {
  text-decoration: underline;
}

/* Lista de items */
.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0;
}
.legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}
.legal-list li .li-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: rgba(0, 229, 255, 0.12);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: var(--cyan);
  margin-top: 1px;
}

/* Grid de datos recopilados */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.data-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(26, 37, 69, 0.8);
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.75);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.data-chip:hover {
  border-color: rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.04);
}
.data-chip .dc-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Seguridad — badges */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.security-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(26, 37, 69, 0.8);
  border-radius: 16px;
  padding: 22px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition:
    border-color 0.25s,
    transform 0.25s,
    background 0.25s;
}
.security-card:hover {
  border-color: rgba(0, 229, 255, 0.25);
  background: rgba(0, 229, 255, 0.04);
  transform: translateY(-3px);
}
.sec-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.sec-text strong {
  display: block;
  font-family: "Poiret One", sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.sec-text span {
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Derechos — pills */
.rights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.right-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(26, 37, 69, 0.8);
  transition:
    border-color 0.2s,
    background 0.2s;
}
.right-item:hover {
  border-color: rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.04);
}
.right-badge {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poiret One", sans-serif;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: 0.04em;
}
.right-label {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Nota destacada */
.legal-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 14px;
  background: rgba(0, 229, 255, 0.06);
  border: 1px solid rgba(0, 229, 255, 0.2);
  margin: 22px 0;
}
.note-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.note-text {
  font-size: 0.87rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.65;
}
.note-text strong {
  color: var(--cyan2);
  font-weight: 600;
}

/* Alerta de aceptación */
.acceptance-box {
  background: linear-gradient(
    135deg,
    rgba(0, 229, 255, 0.08),
    rgba(0, 229, 255, 0.02)
  );
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}
.acceptance-box p {
  font-size: 0.93rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.75;
}
.acceptance-box strong {
  color: var(--text);
}
.acc-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}
.btn-acc-primary {
  padding: 13px 28px;
  border-radius: 12px;
  font-family: "Poiret One", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  background: linear-gradient(135deg, var(--cyan), var(--cyan2));
  border: none;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.35);
  transition:
    transform 0.25s,
    box-shadow 0.25s;
}
.btn-acc-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 229, 255, 0.5);
}
.btn-acc-outline {
  padding: 13px 28px;
  border-radius: 12px;
  font-family: "Poiret One", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.78);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transition: all 0.25s;
}
.btn-acc-outline:hover {
  background: rgba(26, 37, 69, 0.8);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

/* ══ FOOTER LEGAL ══ */
.legal-footer {
  padding: 50px 24px 70px;
  text-align: center;
}
.legal-footer p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}
.legal-footer a {
  color: var(--cyan2);
  text-decoration: none;
}
.legal-footer a:hover {
  text-decoration: underline;
}

/* ══ ANIMATIONS ══ */
@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .toc-box {
    padding: 24px 20px;
  }
  .info-card {
    padding: 18px;
  }
  .acc-ctas {
    flex-direction: column;
  }
}
