/* =========================================================
   Política de Privacidad — versión limpia y ordenada
   - Menú sin animaciones
   - Íconos del menú ocultos
   - Reglas comentadas y deduplicadas
   - Requiere variables: --maxw, --brand, --brand-2, --text, --muted, --line, --surface
   ========================================================= */


/* ===================== 1) GLOBAL / ANCLAS ===================== */

/* Desplazamiento suave para navegación interna */
html {
  scroll-behavior: smooth;
}

/* Compensa header fijo para anclas (ajusta 150px a tu header real) */
#page-top,
.legal-head,
.section-title {
  scroll-margin-top: 150px;
}

/* Respetar preferencias del usuario: menos movimiento */
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}


/* =================== 2) CONTENEDOR / DECORACIÓN =================== */

/* Contexto para el pseudo-elemento decorativo */
.policy-fresh {
  position: relative;
}

/* Halo/gradiente decorativo de fondo (opcional) */
.policy-fresh::before {
  content: "";
  position: absolute;
  inset: -10% -5% auto -5%;
  height: 60%;
  pointer-events: none;
  z-index: 0;
}

/* Contenedor principal con z-index para estar sobre el fondo */
.policy-fresh .container {
  position: relative;
  z-index: 1;
  max-width: var(--maxw, 1100px);
  margin-inline: auto;
  padding-inline: 24px;
}


/* ======================= 3) ENCABEZADO ======================= */

.pv-head {
  text-align: center;
  margin-bottom: clamp(12px, 2.8vw, 20px);
}

/* Acento/barra bajo el título */
.pv-accent {
  display: block;
  width: 120px;
  height: 7px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand, #B88A2D), var(--brand-2, #D2B46C));
  box-shadow: 0 6px 14px rgba(184, 138, 45, 0.35);
}

/* Título principal */
.pv-head h1 {
  margin: 0 0 0.2rem;
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 900;
  color: var(--text, #EDE8D9);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.2px;
}

/* Subtítulo/lead */
.pv-sub {
  margin: 0;
  color: var(--muted, #B9B2A3);
}


/* ========== 4) MENÚ SUPERIOR (PÍLDORAS) — SIN ANIMACIONES ========== */

.pv-nav {
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0.6rem 0.4rem;
  border: 1px solid var(--line, #24324A);
  border-radius: 999px;
  /* Fallback primero */
  background: var(--surface, #0F1E33);
  /* Si el navegador soporta color-mix, mejorar el fondo */
  /* Nota: color-mix aún no está en todos los navegadores */
  background: color-mix(in oklab, var(--surface, #0F1E33) 88%, transparent);
  backdrop-filter: blur(6px);
  margin: clamp(12px, 2.5vw, 18px) auto;
  max-width: min(900px, 100%);
}

/* Enlaces del menú (sin transiciones) */
.pv-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text, #EDE8D9);
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.06);
  transition: none;
}

/* Accesibilidad: foco visible con teclado */
.pv-nav a:focus-visible {
  outline: 2px solid var(--brand, #B88A2D);
  outline-offset: 2px;
}

/* Ocultar íconos dentro del menú */
.pv-nav .ico {
  display: none !important;
}

/* Hover discreto (sin movimiento) */
.pv-nav a:hover {
  border-color: var(--brand, #B88A2D);
  color: var(--text, #EDE8D9);
}


/* =================== 5) CONTENIDO / BLOQUES =================== */

.pv-content {
  margin-top: clamp(10px, 2.2vw, 16px);
}

/* Cada bloque/section del texto legal */
.pv-block {
  padding: clamp(16px, 2.4vw, 22px) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  scroll-margin-top: 110px; /* útil si hay header fijo */
}

/* El primer bloque no necesita borde superior */
.pv-block:first-of-type {
  border-top: 0;
}


/* =================== 6) TÍTULOS DE SECCIÓN =================== */

.pv-title {
  position: relative;
  margin: 0.1rem 0 0.6rem;
  padding-top: 0.6rem; /* espacio para la barra decorativa */
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 900;
  color: var(--text, #EDE8D9);
}

/* Barra decorativa encima del h2 */
.pv-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand, #B88A2D), var(--brand-2, #D2B46C));
  box-shadow: 0 6px 14px rgba(184, 138, 45, 0.35);
}


/* ===================== 7) LISTAS / NOTAS ===================== */

.pv-list {
  margin: 0.2rem 0 0;
  padding-left: 1.1rem; /* sangría de lista */
}

.pv-list li {
  margin: 0.35rem 0;
}

.pv-list li::marker {
  color: var(--brand-2, #D2B46C);
}

/* Texto auxiliar / aclaraciones */
.pv-note {
  color: var(--muted, #B9B2A3);
}


/* ======================== 8) MINI CTA ======================== */

.pv-cta {
  margin: clamp(10px, 2.4vw, 18px) 0;
  text-align: center;
  color: var(--muted, #B9B2A3);
}

/* Botón (se permite una leve animación fuera del menú) */
.pv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  padding: 0.6rem 0.95rem;
  border-radius: 12px;
  font-weight: 900;
  text-decoration: none;
  color: #0A1220;
  background: linear-gradient(135deg, var(--brand, #B88A2D), var(--brand-2, #D2B46C));
  box-shadow:
    0 10px 22px rgba(184, 138, 45, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.15s ease;
}

.pv-btn:hover {
  transform: translateY(-1px);
}

/* Foco accesible */
.pv-btn:focus-visible {
  outline: 2px solid var(--brand-2, #D2B46C);
  outline-offset: 2px;
}

/* Respeto por usuarios con “reduced motion” */
@media (prefers-reduced-motion: reduce) {
  .pv-btn {
    transition: none;
    transform: none !important;
  }
}


/* ================= 9) ENLACES SECUNDARIOS / VOLVER ================= */

.pv-back {
  text-align: center;
  margin-top: clamp(16px, 3.2vw, 24px);
}

.pv-back a {
  color: var(--brand-2, #D2B46C);
  text-decoration: none;
  font-weight: 800;
}

.pv-back a:hover {
  text-decoration: underline;
}


/* ======================= 10) RESPONSIVE ======================= */

@media (max-width: 480px) {
  .pv-nav {
    position: static;
    border-radius: 14px; /* píldoras más suavizadas en pantallas pequeñas */
  }
  .pv-title::before {
    width: 56px; /* barra decorativa más corta en móvil */
  }
}


