/* =========================================================================
   Óptica & Audiología Universitaria — Landing cambio de marca
   Medical Óptica Audición → Óptica & Audiología Universitaria
   Hoja única, mobile-first. Breakpoints: 768px (tablet) y 1024px (desktop).
   ========================================================================= */

/* ---------------------------------------------------------------- FUENTES */
/* DESACTIVADO PARA PRODUCCIÓN — los .woff2 de Graphik no están en el paquete.
   PARA ACTIVAR LA TIPOGRAFÍA DE MARCA:
     1. Copia los cuatro ficheros en assets/fonts/ (ver assets/fonts/LEEME.txt)
     2. Quita este comentario de apertura y el de cierre de más abajo
     3. Sube el ?v= de styles.css en los dos HTML
   Mientras siga desactivado la página usa la pila de sistema: se ve
   correcta, pero no es la tipografía de la marca.

   @font-face {
     font-family: "Graphik";
     src: url("../fonts/Graphik-Regular.woff2") format("woff2");
     font-weight: 400; font-style: normal; font-display: swap;
   }
   @font-face {
     font-family: "Graphik";
     src: url("../fonts/Graphik-Medium.woff2") format("woff2");
     font-weight: 500; font-style: normal; font-display: swap;
   }
   @font-face {
     font-family: "Graphik";
     src: url("../fonts/Graphik-Semibold.woff2") format("woff2");
     font-weight: 600; font-style: normal; font-display: swap;
   }
   @font-face {
     font-family: "Graphik";
     src: url("../fonts/Graphik-Bold.woff2") format("woff2");
     font-weight: 700; font-style: normal; font-display: swap;
   }
*/

/* ----------------------------------------------------------------- TOKENS */
:root {
  /* Color — paleta v2, amarillo protagonista */
  --yellow:      #FCE300;
  --yellow-soft: #FEF7B8;
  --black:       #000000;
  --t1:          #111111;
  --t2:          #212529;
  --t3:          #787676;
  --white:       #FFFFFF;
  --bg-soft:     #F8F9FA;
  --border:      #E5E5E5;
  --border-dark: #2A2A2A;
  --footer-link: #B8B8B8;
  --footer-meta: #7A7A7A;

  /* Tipografía */
  --font: "Graphik", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  /* Métrica */
  --container: 1216px;
  --gutter: 20px;
  --radius: 0;              /* la marca no usa esquinas redondeadas */
  --section-y: 52px;        /* padding vertical de sección en móvil */
}

@media (min-width: 768px)  { :root { --gutter: 40px; --section-y: 72px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; --section-y: 96px; } }

/* ------------------------------------------------------------------ RESET */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--t1);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
/* Necesario: varios componentes declaran display:flex/grid, que pisaría a
   [hidden]. Sin esto, un panel "oculto" seguiría capturando clics. */
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol { margin: 0; }
/* Incluye ol: si no, el <ol> de las bases legales conserva el
   padding-inline-start de 40 px del navegador y queda sangrado
   respecto al titular de su sección. */
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }

/* Foco visible y accesible sobre cualquier fondo */
:focus-visible {
  outline: 3px solid var(--t1);
  outline-offset: 3px;
}
.hero :focus-visible,
.promos :focus-visible,
.cta-band :focus-visible { outline-color: var(--black); }
.site-footer :focus-visible { outline-color: var(--yellow); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--black); color: var(--white);
  padding: 12px 20px; font-size: 14px; font-weight: 700;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------------------- ESTRUCTURA */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(840px + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section--soft   { background: var(--bg-soft); }
.section--yellow { background: var(--yellow); }
.section--dark   { background: var(--black); color: var(--white); }

/* ------------------------------------------------------------- TIPOGRAFÍA */
.eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; color: var(--t3);
}
.h1 {
  font-size: clamp(26px, 6.4vw, 56px);
  line-height: 1.1; letter-spacing: -0.02em; font-weight: 700;
}
.h2 {
  font-size: clamp(24px, 4.4vw, 40px);
  line-height: 1.18; letter-spacing: -0.02em; font-weight: 700;
}
.h3 { font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; font-weight: 700; }
.lead { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.6; color: var(--t2); }
.body { font-size: clamp(14.5px, 1.8vw, 16px); line-height: 1.7; color: var(--t2); }
.small { font-size: 12.5px; line-height: 1.6; color: var(--t2); }
.text-center { text-align: center; }
/* El nombre de marca no debe partirse entre líneas. */
.nowrap { white-space: nowrap; }
.measure { max-width: 62ch; }
.measure-center { max-width: 62ch; margin-inline: auto; }

@media (min-width: 768px) { .h3 { font-size: 19px; } }
@media (min-width: 1024px) { .eyebrow { font-size: 12px; letter-spacing: 1.8px; } }

/* ----------------------------------------------------------------- BOTONES */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  font: inherit; font-size: 12.5px; font-weight: 700;
  letter-spacing: 0.8px; text-transform: uppercase; text-decoration: none;
  cursor: pointer; text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn--primary:hover { background: #262626; border-color: #262626; }
.btn--outline { background: transparent; color: var(--t1); border-color: var(--black); }
.btn--outline:hover { background: var(--black); color: var(--white); }
.btn--block { width: 100%; }
/* Amarillo de marca: solo sobre fondo negro (faldón sticky). */
.btn--yellow { background: var(--yellow); color: var(--t1); border-color: var(--yellow); }
/* Solo con ratón: en táctil el :hover se queda "pegado" tras el toque. */
@media (hover: hover) { .btn--yellow:hover { background: var(--white); border-color: var(--white); } }
/* Botón con icono de salida (enlace al ecommerce). */
.btn--icon { gap: 10px; }
.btn--icon svg { flex: none; }

.btn-row { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) {
  .btn { font-size: 13px; padding: 15px 30px; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .btn--block { width: auto; }
}

/* Enlace de texto subrayado, estilo marca */
.link-strong {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--t1);
  text-decoration: underline; text-underline-offset: 5px;
  text-decoration-thickness: 1.5px;
}
.link-strong:hover { text-decoration-thickness: 2.5px; }

.link-back {
  display: inline-block; font-size: 12.5px; font-weight: 500;
  color: var(--t2); text-decoration: none;
}
.link-back:hover { text-decoration: underline; text-underline-offset: 4px; }

/* -------------------------------------------------------------- PÍLDORAS */
.pill {
  display: inline-block;
  padding: 7px 12px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px;
  text-transform: uppercase; white-space: nowrap;
}
.pill--dark   { background: var(--black);  color: var(--white); }
.pill--yellow { background: var(--yellow); color: var(--t1); letter-spacing: 0.8px; }

/* --------------------------------------------------------------- CABECERA */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 88px;
}
/* Logo de cabecera a 60 px de alto. El ancho va en automático (≈159 px):
   el logotipo tiene proporción 2,65:1, así que fijarlo a 130×60 lo aplastaría
   un 22 %. Si se prefiere ese ancho exacto, usar width:130px;height:auto. */
.site-header__logo { display: flex; align-items: center; }
/* Móvil: la marca "U" en cuadrado. Desde 768 px, el logotipo completo. */
.site-header__mark { height: 44px; width: auto; }
.site-header__full { display: none; }
/* Medical a la misma altura que la marca de Universitaria en cada breakpoint.
   El logotipo mide 427x191 (2,24:1), así que a 60 px de alto salen 134 px de
   ancho: fijarlo a 140x60 lo estiraría un 4 %. */
.site-header__medical { height: 44px; width: auto; }

@media (min-width: 768px) {
  .site-header__mark { display: none; }
  .site-header__full { display: block; height: 52px; width: auto; }
  .site-header__medical { height: 52px; }
}
@media (min-width: 1024px) {
  .site-header__inner { min-height: 104px; }
  .site-header__full { height: 60px; }
  .site-header__medical { height: 60px; }
}

/* ------------------------------------------------------------------ HÉROE */
/* Bloque partido a sangre. En móvil se apila: panel amarillo arriba y foto
   debajo, los dos de borde a borde. A partir de 1024 px el reparto es 70/30:
   la foto ocupa el 30% derecho en posición absoluta, pegada al amarillo y al borde de la ventana,
   sin canal entre las dos mitades. El texto se queda dentro de .container,
   así que arranca exactamente donde el logotipo de la cabecera. */
.hero { position: relative; background: var(--yellow); }
.hero__pill { margin-bottom: 22px; }
.hero .h1 { margin-bottom: 14px; }
.hero__subtitle { font-size: clamp(17px, 2.4vw, 22px); line-height: 1.45; color: var(--t2); margin-bottom: 20px; }
.hero__text { color: var(--t2); margin-bottom: 26px; max-width: 46ch; }

.hero__copy { padding-block: var(--section-y); }

.hero__media img {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 2473 / 2049;
  object-fit: cover;
}

@media (min-width: 1024px) {
  .hero { min-height: 640px; display: flex; align-items: center; }
  .hero__inner { position: relative; z-index: 1; width: 100%; }

  /* 70% del ancho menos el canal: el texto no se mete nunca bajo la foto
     y deja aire antes del corte. El desfase con el 70% real de la ventana
     es de menos de 1 px, porque el contenedor tiene el mismo canal a los
     dos lados. El ancho extra es para que quepan los tres CTA. */
  .hero__copy { width: calc(70% - 48px); max-width: 860px; }

  /* Con la columna al 70% el titular cabe a 56 px desde ~1.100 px. */
  .hero .h1 { font-size: clamp(44px, 4.6vw, 56px); }

  .hero__media { position: absolute; top: 0; right: 0; bottom: 0; left: 70%; }
  .hero__media img {
    width: 100%; height: 100%;
    aspect-ratio: auto;
    object-position: center;
  }
}

/* ------------------------------------------------------- LOCKUP DE MARCAS */
.lockup { padding-block: var(--section-y); text-align: center; }
.lockup__marks {
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin-bottom: 30px;
}
.lockup__marks img { height: 30px; width: auto; }
.lockup__arrow { flex: none; color: var(--t1); }
.lockup__divider {
  width: 1px; align-self: stretch; background: var(--border); flex: none;
}
.lockup__claim {
  font-size: clamp(19px, 2.6vw, 25px); line-height: 1.35;
  letter-spacing: -0.02em; font-weight: 700;
  max-width: 24ch; margin-inline: auto;
}
@media (min-width: 768px) {
  .lockup__marks { gap: 44px; }
  .lockup__marks img { height: 48px; }
  .lockup__claim { max-width: 34ch; }
}
@media (min-width: 1024px) {
  .lockup__marks { gap: 56px; margin-bottom: 42px; }
  .lockup__marks img { height: 62px; }
}

/* ------------------------------------------------------------------ INTRO */
.intro p + p { margin-top: 14px; }

/* --------------------------------------------------------------- VENTAJAS */
.benefits__title { margin-bottom: 26px; }
@media (min-width: 768px) { .benefits__title { margin-bottom: 44px; } }

.card-grid { display: grid; gap: 14px; }
@media (min-width: 768px)  { .card-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit {
  display: flex; flex-direction: column;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 3px solid var(--yellow);
}
.benefit__top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 18px;
}
.benefit__icon { flex: none; color: var(--t1); }
.benefit__title { margin-bottom: 8px; }
.benefit__text { font-size: 14px; line-height: 1.62; color: var(--t3); }
@media (min-width: 1024px) { .benefit { padding: 28px; } .benefit__text { font-size: 15px; } }

/* ----------------------------------------------------------- PROMOCIONES */
.promos { background: var(--yellow); padding-block: var(--section-y); }
.promos__intro { margin-bottom: 26px; max-width: 56ch; }
.promos .h2 { margin-bottom: 12px; }
@media (min-width: 768px) { .promos__intro { margin-bottom: 44px; } }

.promo {
  padding: 22px;
  background: var(--black);
  color: var(--white);
}
.promo__figure {
  display: block;
  font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.15;
  margin-bottom: 14px;
}
.promo__figure--text { font-size: 19px; line-height: 1.25; letter-spacing: -0.01em; }
.promo__text { font-size: 14.5px; line-height: 1.6; color: var(--white); }
@media (min-width: 1024px) {
  .promo { padding: 28px; }
  .promo__figure { font-size: 44px; }
  .promo__figure--text { font-size: 22px; }
  .promo__text { font-size: 16px; }
}

.promos__legal {
  margin-top: 26px; padding-top: 20px;
  border-top: 1px solid var(--t1);
}
.promos__legal p { max-width: 76ch; margin-bottom: 18px; }

/* ------------------------------------------------- ATENCIÓN AL CLIENTE */
.support { text-align: center; }
.support .eyebrow { display: block; margin-bottom: 16px; }
.support .h2 { margin-bottom: 14px; }
.support__text { margin-bottom: 24px; }

.contact-grid { display: grid; gap: 14px; margin-bottom: 22px; text-align: left; }
@media (min-width: 768px) { .contact-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 30px; } }

/* El dominio del correo ya dice de qué marca es, así que la etiqueta con el
   nombre sobraba. La tarjeta entera es el enlace: objetivo mucho mayor que el
   texto suelto, sobre todo en móvil. */
.contact {
  background: var(--white);
  border: 1px solid var(--border);
  transition: border-color .15s ease;
}
.contact:hover { border-color: var(--t1); }
.contact__link {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; min-height: 76px; padding: 18px 20px;
  color: var(--t1); text-decoration: none;
}
.contact__icon { flex: none; display: flex; color: var(--t1); }
.contact__mail {
  font-size: 15px; font-weight: 700; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.contact__link:hover .contact__mail {
  text-decoration: underline; text-underline-offset: 4px;
}
@media (min-width: 1024px) {
  .contact__link { min-height: 92px; padding: 22px 26px; }
  .contact__mail { font-size: 17.5px; }
}

/* -------------------------------------------------------- BASES LEGALES */
.legal-bases .h2 { margin-bottom: 12px; }
.legal-bases__intro { margin-bottom: 20px; }
.legal-list { display: grid; gap: 10px; }
.legal-item {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px;
  padding: 18px;
  border: 1px solid var(--border);
}
.legal-item__num { font-size: 15px; font-weight: 800; color: var(--t1); }
.legal-item__title { font-size: 15px; font-weight: 700; color: var(--t1); align-self: center; }
.legal-item__text {
  grid-column: 1 / -1;
  font-size: 12.5px; line-height: 1.62; color: var(--t3);
}
@media (min-width: 768px) {
  .legal-list { gap: 12px; }
  .legal-item { padding: 22px 24px; }
  .legal-item__title { font-size: 17px; }
  .legal-item__text { grid-column: 2; font-size: 13px; }
}

/* --------------------------------------------------------- BANDA DE CTA */
.cta-band { background: var(--yellow); padding-block: calc(var(--section-y) * .85); text-align: center; }
.cta-band .h2 { margin-bottom: 12px; }
.cta-band__text { margin-bottom: 22px; }

/* -------------------------------------------- CONTENIDO PÁGINA LEGALES */
.page-hero { background: var(--yellow); padding-block: var(--section-y); }
.page-hero .link-back { margin-bottom: 22px; }
.page-hero .h1 { margin-bottom: 14px; max-width: 18ch; }
.page-hero__text { max-width: 52ch; }

.legal-block + .legal-block {
  margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--border);
}
.legal-block__icon { color: var(--t1); margin-bottom: 16px; }
.legal-block .h2 { margin-bottom: 14px; }
.legal-block p + p { margin-top: 10px; }

.callout {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 22px; padding: 18px;
  background: var(--yellow-soft);
  border-left: 3px solid var(--yellow);
}
.callout__icon { flex: none; color: var(--t1); margin-top: 1px; }
.callout p { font-size: 14px; line-height: 1.6; color: var(--t1); }
@media (min-width: 1024px) {
  .legal-block + .legal-block { margin-top: 52px; padding-top: 52px; }
  .callout { padding: 22px; }
  .callout p { font-size: 15.5px; }
}

/* ------------------------------------------------------------------ PIE */
.site-footer { background: var(--black); color: var(--footer-meta); padding-block: 40px; }
.site-footer__logo img { height: 30px; width: auto; margin-bottom: 26px; }
.site-footer__nav { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.site-footer__nav a { font-size: 12.5px; color: var(--footer-link); text-decoration: none; }
.site-footer__nav a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__sep { display: none; color: #5A5A5A; }
.site-footer__meta {
  display: flex; flex-direction: column; gap: 6px;
  padding-top: 20px; border-top: 1px solid var(--border-dark);
  font-size: 11.5px; color: var(--footer-meta);
}
@media (min-width: 768px) {
  .site-footer { padding-block: 56px; }
  .site-footer__nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0; }
  .site-footer__nav a { font-size: 13px; }
  .site-footer__sep { display: inline; padding-inline: 12px; }
  .site-footer__meta { flex-direction: row; justify-content: space-between; font-size: 12px; }
}

/* ------------------------------------------------ FALDÓN STICKY ECOMMERCE */
/* Barra fija inferior a todo el ancho. Negra con filete amarillo arriba,
   como las tarjetas de promoción; el filete la separa del pie (también
   negro). Oculta con transform + visibility para que, mientras no se ve,
   sus enlaces no reciban foco con el tabulador. */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 800;
  background: var(--black); color: var(--white);
  border-top: 3px solid var(--yellow);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
  transform: translateY(100%); visibility: hidden;
  transition: transform .28s ease-out, visibility 0s linear .28s;
}
.sticky-cta.is-visible {
  transform: none; visibility: visible;
  transition: transform .28s ease-out, visibility 0s;
}
.sticky-cta__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  padding-block: 12px calc(12px + env(safe-area-inset-bottom, 0px));
}
.sticky-cta__text {
  font-size: 13.5px; line-height: 1.4; font-weight: 700; letter-spacing: -0.01em;
}
.sticky-cta__btn {
  flex: none; min-height: 44px; padding: 11px 16px;
  font-size: 11.5px; white-space: nowrap;
}
/* En móvil la flecha va algo más pegada y pequeña para no robar ancho al texto. */
.sticky-cta__btn.btn--icon { gap: 8px; }
.sticky-cta__btn svg { width: 14px; height: 14px; }
@media (min-width: 768px) {
  .sticky-cta__btn.btn--icon { gap: 10px; }
  .sticky-cta__btn svg { width: 16px; height: 16px; }
}
.sticky-cta :focus-visible { outline-color: var(--yellow); }

@media (min-width: 768px) {
  .sticky-cta__inner { gap: 32px; padding-block: 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .sticky-cta__text { font-size: 17px; }
  .sticky-cta__btn { min-height: 48px; padding: 15px 30px; font-size: 13px; }
}
@media (min-width: 1024px) {
  .sticky-cta__text { font-size: 19px; }
}

/* Hueco al final de la página para que el faldón no tape el pie.
   La altura la escribe sticky-cta.js en --sticky-cta-h. */
body.has-sticky-cta { padding-bottom: var(--sticky-cta-h, 0px); }

/* --------------------------------------------------------------- IMPRESIÓN */
@media print {
  .site-header, .cta-band, .btn, .site-footer__nav { display: none; }
  body { color: #000; }
  .hero, .promos, .page-hero, .section--yellow { background: #fff !important; }
  .promo { background: #fff !important; color: #000 !important; border: 1px solid #000; }
}

/* ------------------------------------------- REFERENCIAS A NOTAS LEGALES */
.benefit__text a,
.promo__text a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 700;
  white-space: nowrap;
}
.benefit__text a:hover,
.promo__text a:hover { text-decoration-thickness: 2px; }
.promo__text a { color: var(--yellow); }

/* Destacado temporal al saltar a una nota legal desde una referencia */
.legal-item:target { border-color: var(--t1); }
#bases-legales { scroll-margin-top: 24px; }
#ventajas { scroll-margin-top: 24px; }

/* -------------------------- AJUSTES FINOS DE REJILLA (paridad con el diseño) */
/* Las dos últimas ventajas van centradas, como en el diseño aprobado.
   Rejilla de 6 columnas: cada tarjeta ocupa 2 y la cuarta arranca en la 2. */
@media (min-width: 1024px) {
  .benefits .card-grid { grid-template-columns: repeat(6, 1fr); }
  .benefits .card-grid > li { grid-column: span 2; }
  .benefits .card-grid > li:nth-child(4) { grid-column: 2 / span 2; }
}
.hero__text { max-width: 52ch; }
.support .measure-center { max-width: 72ch; }

/* =========================================================================
   WIDGET DE COOKIES
   Marcado inyectado por assets/js/cookies.js. Prefijo .cc- para que no
   colisione si el bloque se reutiliza en otra plantilla.
   ========================================================================= */
.cc-locked { overflow: hidden; }

/* ------------------------------------------------------------------ BANNER */
.cc-banner {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 900;
  background: var(--white);
  border-top: 3px solid var(--yellow);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, .12);
  animation: cc-rise .28s ease-out both;
}
@keyframes cc-rise { from { transform: translateY(100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-banner { animation: none; } }

.cc-banner__inner {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding: 20px var(--gutter);
  display: grid; gap: 16px;
}
.cc-banner__title { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 6px; }
.cc-banner__title:focus { outline: none; }
.cc-banner__body { font-size: 13.5px; line-height: 1.6; color: var(--t2); max-width: 78ch; }
.cc-banner__actions { display: grid; gap: 10px; }

@media (min-width: 560px) {
  .cc-banner__actions { grid-auto-flow: column; justify-content: start; }
}
@media (min-width: 1024px) {
  .cc-banner__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 40px; padding-block: 24px;
  }
  .cc-banner__actions { justify-content: end; }
}

/* ------------------------------------------------------------------- MODAL */
.cc-modal { position: fixed; inset: 0; z-index: 950; display: grid; place-items: end center; }
@media (min-width: 768px) { .cc-modal { place-items: center; } }

.cc-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }

.cc-modal__dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(88vh, 720px);
  display: flex; flex-direction: column;
  background: var(--white);
  border-top: 3px solid var(--yellow);
  animation: cc-rise .24s ease-out both;
}
@media (min-width: 768px) { .cc-modal__dialog { animation: cc-fade .2s ease-out both; } }
@keyframes cc-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .cc-modal__dialog { animation: none; } }

.cc-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px var(--gutter) 16px;
  border-bottom: 1px solid var(--border);
}
.cc-modal__title { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.cc-modal__title:focus { outline: none; }
.cc-close {
  flex: none; width: 40px; height: 40px;
  display: grid; place-items: center;
  background: none; border: none; color: var(--t1); cursor: pointer;
}
.cc-close:hover { background: var(--bg-soft); }

.cc-modal__body { padding: 20px var(--gutter); overflow-y: auto; }
.cc-modal__intro { font-size: 13.5px; line-height: 1.6; color: var(--t2); margin-bottom: 20px; }
.cc-modal__policy { margin-top: 18px; font-size: 13px; }

.cc-cats { display: grid; gap: 2px; }
.cc-cat { padding: 16px 0; border-top: 1px solid var(--border); }
.cc-cat:first-child { border-top: none; padding-top: 0; }
.cc-cat__head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.cc-cat__name { flex: 1; font-size: 15px; font-weight: 700; cursor: pointer; }
.cc-cat__always { font-size: 10.5px; font-weight: 700; letter-spacing: .8px;
  text-transform: uppercase; color: var(--t3); }
.cc-cat__desc { font-size: 13px; line-height: 1.6; color: var(--t3); }

.cc-modal__foot {
  display: grid; gap: 10px;
  padding: 16px var(--gutter) 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}
@media (min-width: 560px) {
  .cc-modal__foot { grid-auto-flow: column; justify-content: end; }
}

/* ------------------------------------------------------------- INTERRUPTOR */
.cc-switch {
  appearance: none; -webkit-appearance: none;
  flex: none; position: relative;
  width: 46px; height: 26px; margin: 0;
  background: #D6D6D6; border: none; cursor: pointer;
  transition: background-color .15s ease;
}
.cc-switch::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; background: var(--white);
  transition: transform .15s ease;
}
.cc-switch:checked { background: var(--black); }
.cc-switch:checked::after { transform: translateX(20px); }
.cc-switch:disabled { background: var(--yellow); cursor: not-allowed; }
.cc-switch:disabled::after { transform: translateX(20px); }
.cc-switch:focus-visible { outline: 3px solid var(--t1); outline-offset: 3px; }

/* ---------------------------------------------------------------- BOTONES */
.cc-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 12px 22px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font: inherit; font-size: 12.5px; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cc-btn--solid   { background: var(--black); color: var(--white); border-color: var(--black); }
.cc-btn--solid:hover { background: #262626; border-color: #262626; }
.cc-btn--outline { background: transparent; color: var(--t1); border-color: var(--black); }
.cc-btn--outline:hover { background: var(--black); color: var(--white); }
.cc-btn--ghost   { background: transparent; color: var(--t2); border-color: transparent;
                   text-decoration: underline; text-underline-offset: 4px; }
.cc-btn--ghost:hover { color: var(--t1); }

.cc-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* Botón "Gestionar cookies" del pie: parece un enlace más */
.site-footer__nav button {
  font: inherit; font-size: 12.5px; color: var(--footer-link);
  background: none; border: none; padding: 0; cursor: pointer; text-align: left;
}
.site-footer__nav button:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .site-footer__nav button { font-size: 13px; } }

@media print { .cc-banner, .cc-modal, .sticky-cta { display: none !important; } body.has-sticky-cta { padding-bottom: 0; } }
