/* =============================================================
   PASTELES TOLUCA — Sistema de diseño
   Valores tomados de DESIGN.md (medidos sobre el sitio real).
   ============================================================= */

/* ---------- 1. Tokens de marca (no cambian con el tema) ---------- */
:root {
  --azul-marca:    #052FF5;  /* solo el logo */
  --azul:          #1359F6;  /* navegación, pie, enlaces */
  --azul-oscuro:   #0B3FB8;
  --rojo:          #FF341B;  /* títulos, botones de encabezado */
  --rojo-logo:     #F94C4E;  /* "desde 1975" */
  --amarillo:      #FFDF2A;
  --verde:         #22C361;  /* CTA principal */
  --verde-wa:      #00A717;  /* solo píldora PEDIDOS */
  --magenta:       #F2295B;
  --lavanda-1:     #EAEFFF;
  --lavanda-2:     #E0D9F7;

  /* Tipografía */
  --script:  'Yellowtail', 'Brush Script MT', cursive;
  --display: 'Supermercado One', 'Poppins', system-ui, sans-serif;
  --sans:    'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Espacio y forma */
  --u: 4px;
  --radio: 4px;
  --radio-pill: 50px;
  --radio-campo: 30px;
  --radio-boton-rojo: 16px;
  --ancho: 1140px;
  --sombra-cta: rgba(0, 0, 0, 0.5) 0 0 10px 0;
  --sombra-rojo: 4px 4px 7px rgba(0, 0, 0, 0.45);
}

/* ---------- 2. Tema claro (por defecto) ---------- */
:root {
  --bg:            #FFFFFF;
  --superficie:    #FFFFFF;
  --superficie-2:  #F7F8FC;
  --texto:         #2B2B2B;
  --texto-suave:   #767676;   /* 4.54:1 sobre blanco — AA */
  --borde:         #D8D8D8;
  --nav-bg:        var(--azul);
  --nav-texto:     #FFFFFF;
  --footer-bg:     var(--azul);
  --footer-texto:  #FFFFFF;
  --banda-amarilla: var(--amarillo);
  --banda-amarilla-texto: var(--rojo);
  --titulo-seccion: var(--rojo);
  --logo-placa:    transparent;
  --card-bg:       #FFFFFF;
  --card-borde:    #E8E8EE;
  --sombra-card:   0 2px 12px rgba(0, 0, 0, 0.07);
  --enlace:        #1359F6;
}

/* ---------- 3. Tema oscuro ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:            #12131A;
    --superficie:    #1A1C25;
    --superficie-2:  #22242F;
    --texto:         #ECEDF2;
    --texto-suave:   #A8AAB6;
    --borde:         #363945;
    --nav-bg:        #0E2A78;
    --nav-texto:     #FFFFFF;
    --footer-bg:     #0E2A78;
    --footer-texto:  #FFFFFF;
    --banda-amarilla: #E8C81F;
    --banda-amarilla-texto: #8C1000;
    --titulo-seccion: #FF6A57;
    --logo-placa:    #FFFFFF;
    --card-bg:       #1A1C25;
    --card-borde:    #2E313D;
    --sombra-card:   0 2px 12px rgba(0, 0, 0, 0.4);
  --enlace:        #8AB0FF;
  }
}

:root[data-theme="dark"] {
  --bg:            #12131A;
  --superficie:    #1A1C25;
  --superficie-2:  #22242F;
  --texto:         #ECEDF2;
  --texto-suave:   #A8AAB6;
  --borde:         #363945;
  --nav-bg:        #0E2A78;
  --nav-texto:     #FFFFFF;
  --footer-bg:     #0E2A78;
  --footer-texto:  #FFFFFF;
  --banda-amarilla: #E8C81F;
  --banda-amarilla-texto: #8C1000;
  --titulo-seccion: #FF6A57;
  --logo-placa:    #FFFFFF;
  --card-bg:       #1A1C25;
  --card-borde:    #2E313D;
  --sombra-card:   0 2px 12px rgba(0, 0, 0, 0.4);
  --enlace:        #8AB0FF;
}

/* ---------- 4. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--texto);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

img { max-width: 100%; display: block; }
a { color: var(--enlace); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 calc(var(--u) * 4); }

.contenedor {
  width: min(100% - 48px, var(--ancho));
  margin-inline: auto;
}

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

.saltar {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--rojo); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radio) 0; font-weight: 600;
}
.saltar:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--verde);
  outline-offset: 3px;
}

/* ---------- 5. Botones ---------- */

/* CTA principal — cápsula verde con sombra difusa fuerte */
.btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--verde); color: #fff;
  border: 2px solid #fff; border-radius: var(--radio-pill);
  padding: 13px 30px; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--sombra-cta);
  transition: transform .15s ease, filter .15s ease;
}
.btn-cta:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn-cta:active { transform: translateY(0); }
/* Sin esto el SVG en línea toma su tamaño por defecto y desborda el botón */
.btn-cta svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Botón de encabezado — rojo, radio 16, borde blanco 3px, sombra desplazada */
.btn-rojo {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rojo); color: #fff;
  border: 3px solid #fff; border-radius: var(--radio-boton-rojo);
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  box-shadow: var(--sombra-rojo);
  transition: transform .15s ease;
}
.btn-rojo:hover { transform: translate(-1px, -1px); }

/* Secundario amarillo — esquinas rectas a propósito */
.btn-amarillo {
  display: inline-flex; align-items: center;
  background: var(--amarillo); color: #333;
  border: 0; border-radius: 0;
  padding: 12px 26px; font-weight: 700; font-size: 14px;
  text-decoration: none; cursor: pointer;
}
.btn-amarillo:hover { filter: brightness(.95); }

/* Píldora de WhatsApp de la barra */
.btn-wa {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--verde-wa); color: #fff;
  border: 2px solid #fff; border-radius: var(--radio-pill);
  padding: 6px 15px; font-size: 12px; font-weight: 700;
  letter-spacing: .06em; text-decoration: none;
}
.btn-wa svg { width: 14px; height: 14px; flex-shrink: 0; }
.btn-wa:hover { filter: brightness(1.1); }

/* ---------- 6. Barra superior blanca ---------- */
.barra-top {
  background: var(--superficie);
  border-bottom: 1px solid var(--borde);
  padding: calc(var(--u) * 3) 0;
}
.barra-top .contenedor {
  display: flex; align-items: center; justify-content: space-between;
  gap: calc(var(--u) * 5); flex-wrap: wrap;
}
.logo-link { display: inline-block; flex-shrink: 0; }
.logo-link img {
  height: 68px; width: auto;
  background: var(--logo-placa);
  border-radius: var(--radio);
  padding: var(--logo-placa-pad, 0);
}
:root[data-theme="dark"] .logo-link img { padding: 6px 10px; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-link img { padding: 6px 10px; }
}
.barra-top-acciones { display: flex; gap: calc(var(--u) * 2); flex-wrap: wrap; }

/* ---------- 7. Navegación azul ---------- */
.nav {
  background: var(--nav-bg);
  border-top: 3px solid var(--rojo);
  position: sticky; top: 0; z-index: 100;
}
.nav .contenedor {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav-lista {
  display: flex; list-style: none; margin: 0; padding: 0;
}
.nav-lista a {
  display: block; color: var(--nav-texto);
  text-decoration: none; text-transform: uppercase;
  font-size: 11px; letter-spacing: .1em; font-weight: 600;
  padding: 16px 16px;
  transition: background-color .2s ease;
}
.nav-lista a:hover { background: rgba(255, 255, 255, .14); }
.nav-lista a.activo { background: var(--rojo); }

.nav-acciones { display: flex; align-items: center; gap: 10px; }

.btn-icono {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  width: auto; min-width: 36px; height: 32px; padding: 0 9px;
  background: rgba(255, 255, 255, .16);
  color: var(--nav-texto);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radio-pill);
  cursor: pointer; font-family: var(--sans);
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  transition: background-color .2s ease;
}
.btn-icono:hover { background: rgba(255, 255, 255, .3); }
.btn-icono svg { width: 15px; height: 15px; }

.nav-hamburguesa { display: none; }

/* ---------- 8. Secciones y bandas ---------- */
.seccion { padding: calc(var(--u) * 24) 0; }
.seccion-blanca { background: var(--superficie); }
.seccion-alt { background: var(--superficie-2); }

.titulo-script {
  font-family: var(--script);
  color: var(--titulo-seccion);
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 400; text-align: center;
  margin-bottom: calc(var(--u) * 10);
}
.titulo-display {
  font-family: var(--display);
  font-size: clamp(40px, 8vw, 70px);
  line-height: 1; text-align: center;
}
.sub-seccion {
  text-align: center; color: var(--texto-suave);
  max-width: 560px; margin: -20px auto calc(var(--u) * 12);
}

/* Banda magenta */
.banda-magenta {
  background: linear-gradient(180deg, var(--superficie) 0%, var(--magenta) 55%, #C41346 100%);
  padding: calc(var(--u) * 22) 0;
  text-align: center; color: #fff;
}
.banda-magenta h2 { font-family: var(--display); font-size: clamp(44px, 8vw, 76px); margin: 0; }
.banda-magenta p { font-family: var(--script); font-size: clamp(26px, 4vw, 38px); margin: 8px 0 0; }

/* Banda amarilla */
.banda-amarilla {
  background: var(--banda-amarilla);
  padding: calc(var(--u) * 26) 0;
  text-align: center;
}
.banda-amarilla h2 {
  font-family: var(--display);
  color: var(--banda-amarilla-texto);
  font-size: clamp(44px, 9vw, 84px); line-height: .95; margin: 0;
}
.banda-amarilla p {
  font-family: var(--script);
  color: var(--banda-amarilla-texto);
  font-size: clamp(26px, 4.5vw, 44px); margin: 6px 0 0;
}

/* Banda lavanda */
.banda-lavanda {
  background: linear-gradient(160deg, var(--lavanda-1), var(--lavanda-2));
  padding: calc(var(--u) * 20) 0; text-align: center;
}
:root[data-theme="dark"] .banda-lavanda { background: linear-gradient(160deg, #22243A, #2A2440); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .banda-lavanda { background: linear-gradient(160deg, #22243A, #2A2440); }
}

/* ---------- 9. Hero ---------- */
.hero { background: var(--superficie); padding: calc(var(--u) * 18) 0 calc(var(--u) * 14); }
.hero-caja {
  border: 2px dashed var(--borde);
  border-radius: var(--radio);
  padding: calc(var(--u) * 12);
  display: grid; grid-template-columns: 1.15fr .85fr; gap: calc(var(--u) * 10);
  align-items: center;
}
.hero-marca {
  font-family: var(--script); color: var(--azul);
  font-size: clamp(28px, 4vw, 40px); margin: 0 0 6px;
}
.hero h1 {
  font-family: var(--display); color: var(--azul);
  font-size: clamp(32px, 5.2vw, 49px); margin: 0 0 calc(var(--u) * 5);
}
.hero p { color: var(--texto-suave); max-width: 553px; margin-bottom: calc(var(--u) * 8); }
.hero-botones { display: flex; gap: calc(var(--u) * 3); flex-wrap: wrap; }
.hero-img img { border-radius: var(--radio); box-shadow: var(--sombra-card); }

.hero-datos {
  display: flex; gap: calc(var(--u) * 10); flex-wrap: wrap;
  margin-top: calc(var(--u) * 10); padding-top: calc(var(--u) * 8);
  border-top: 1px solid var(--borde);
}
.dato { text-align: center; }
.dato-num {
  font-family: var(--display); font-size: 34px; line-height: 1;
  color: var(--rojo); display: block;
}
.dato-txt { font-size: 12px; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- 10. Tarjetas "por qué" ---------- */
.rejilla-4 {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: calc(var(--u) * 6);
}
.tarjeta-porque {
  background: var(--card-bg); border: 1px solid var(--card-borde);
  border-radius: 14px; padding: calc(var(--u) * 7); text-align: center;
}
.tarjeta-porque img { width: 52px; height: 52px; margin: 0 auto calc(var(--u) * 4); object-fit: contain; }
.tarjeta-porque h3 { color: var(--azul); font-size: 17px; margin-bottom: 8px; }
.tarjeta-porque p { color: var(--texto-suave); font-size: 14px; margin: 0; }

/* ---------- 11. Tienda ---------- */
.rejilla-productos {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: calc(var(--u) * 7);
}
.producto {
  background: var(--card-bg); border: 1px solid var(--card-borde);
  border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--sombra-card);
  transition: transform .2s ease, box-shadow .2s ease;
}
.producto:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,0,0,.14); }
.producto-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--superficie-2); }
.producto-img img { width: 100%; height: 100%; object-fit: cover; }
.producto-img.sin-foto {
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--superficie-2), var(--card-bg));
}
.producto-img.sin-foto img { width: 76px; height: 76px; object-fit: contain; opacity: .5; }

.producto-cuerpo { padding: calc(var(--u) * 6); display: flex; flex-direction: column; flex: 1; }
.producto h3 { font-size: 19px; margin-bottom: 6px; }
.producto-desc { color: var(--texto-suave); font-size: 13.5px; margin: 0 0 calc(var(--u) * 4); }

.producto-modelos { list-style: none; padding: 0; margin: 0 0 calc(var(--u) * 5); }
.producto-modelos li {
  font-size: 13px; color: var(--texto-suave);
  padding-left: 16px; position: relative;
}
.producto-modelos li::before {
  content: '·'; position: absolute; left: 4px;
  font-weight: 700; font-size: 16px;
}

.producto-precios {
  display: flex; gap: 6px; margin: 0 0 calc(var(--u) * 5);
  border-top: 1px solid var(--card-borde); padding-top: calc(var(--u) * 4);
}
.precio-op { flex: 1; text-align: center; }
.precio-op dt { font-size: 11px; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .05em; }
.precio-op dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; color: var(--texto); }
/* Botón de pedido dentro de la tarjeta: proporcional al área del producto */
.producto .btn-cta {
  margin-top: auto;
  align-self: flex-start;
  justify-content: center;
  padding: 9px 18px;
  font-size: 13px;
  gap: 7px;
  border-width: 1.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .22);
}
.producto .btn-cta svg { width: 15px; height: 15px; }

.nota-precio {
  text-align: center; color: var(--texto-suave); font-size: 13px;
  margin-top: calc(var(--u) * 8);
}
.aclaracion {
  max-width: 620px; margin: calc(var(--u) * 6) auto 0;
  padding: calc(var(--u) * 4) calc(var(--u) * 5);
  border-left: 4px solid var(--azul);
  background: var(--superficie-2);
  color: var(--texto-suave); font-size: 13.5px;
}

/* Tabla simple */
.tabla { width: 100%; border-collapse: collapse; margin-top: calc(var(--u) * 4); }
.tabla caption { text-align: left; font-weight: 700; color: var(--azul); padding-bottom: 8px; }
.tabla th, .tabla td {
  text-align: left; padding: 11px 12px;
  border-bottom: 1px solid var(--card-borde); font-size: 14px;
}
.tabla th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-suave); }
.tabla td:last-child, .tabla th:last-child { text-align: right; white-space: nowrap; }

/* ---------- 12. Cajas de lista con borde de color (patrón del sitio) ---------- */
.rejilla-cajas {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: calc(var(--u) * 6);
}
.caja-lista {
  border: 1px solid var(--c, var(--azul));
  border-radius: 14px; padding: calc(var(--u) * 6);
  background: var(--card-bg);
}
.caja-lista.punteada { border-style: dashed; }
.caja-lista h3 { color: var(--c, var(--azul)); font-size: 16px; margin-bottom: calc(var(--u) * 4); }
.caja-lista ul { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 20px; }
.caja-lista li {
  font-size: 13.5px; color: var(--texto-suave);
  padding-left: 14px; position: relative; break-inside: avoid;
}
.caja-lista li::before { content: '·'; position: absolute; left: 2px; font-size: 16px; }
.caja-lista.una-col ul { columns: 1; }

/* ---------- 13. Testimonios ---------- */
.google-caja {
  max-width: 620px; margin: 0 auto calc(var(--u) * 10);
  background: var(--card-bg); border: 1px solid var(--card-borde);
  border-radius: 16px; padding: calc(var(--u) * 8); text-align: center;
  box-shadow: var(--sombra-card);
}
.google-rating {
  font-family: var(--display); font-size: 58px; line-height: 1;
  color: var(--rojo);
}
.estrellas { color: #F5A623; font-size: 21px; letter-spacing: 3px; margin: 6px 0 10px; }
.google-caja p { color: var(--texto-suave); font-size: 14px; margin: 0 0 calc(var(--u) * 5); }

.rejilla-testi {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: calc(var(--u) * 6);
}
.testimonio {
  background: var(--card-bg); border: 1px solid var(--card-borde);
  border-radius: 14px; padding: calc(var(--u) * 6);
}
.testimonio-etiqueta {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--rojo); font-weight: 700; margin-bottom: 10px;
}
.testimonio blockquote { margin: 0 0 calc(var(--u) * 4); font-size: 14.5px; }
.testimonio cite { font-style: normal; font-size: 13px; color: var(--texto-suave); font-weight: 600; }

.aviso-vacio {
  text-align: center; color: var(--texto-suave); font-size: 14px;
  border: 1px dashed var(--borde); border-radius: 12px;
  padding: calc(var(--u) * 8); max-width: 620px; margin: 0 auto;
}

/* ---------- 14. Instagram ---------- */
.insta-rejilla {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: calc(var(--u) * 3); margin-bottom: calc(var(--u) * 8);
}
.insta-item {
  aspect-ratio: 1; overflow: hidden; border-radius: 10px;
  position: relative; display: block;
}
.insta-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.insta-item:hover img { transform: scale(1.06); }
.insta-cta-fila { text-align: center; }

/* ---------- 15. Conócenos ---------- */
.conocenos-rejilla {
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: calc(var(--u) * 12); align-items: start;
}
.conocenos-texto p { color: var(--texto-suave); margin-bottom: calc(var(--u) * 4); }
.bloque-dato { margin-bottom: calc(var(--u) * 6); }
.bloque-dato h4 { color: var(--azul); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.lista-dato { list-style: none; padding: 0; margin: 0; }
.lista-dato li { font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--card-borde); }
.lista-dato strong { color: var(--texto); }
.lista-dato span { color: var(--texto-suave); }

.plus-caja {
  background: var(--amarillo); color: #333;
  padding: calc(var(--u) * 6); border-radius: 14px;
  margin-top: calc(var(--u) * 8);
}
.plus-caja h4 { margin: 0 0 6px; font-size: 16px; color: #8C1000; }
.plus-caja p { margin: 0; font-size: 14px; }

/* ---------- 16. Contacto ---------- */
.contacto-rejilla {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: calc(var(--u) * 12);
}
.campo { margin-bottom: calc(var(--u) * 4); }
.campo label {
  display: block; font-size: 13px; font-weight: 600;
  margin-bottom: 6px; color: var(--texto);
}
.campo input, .campo textarea {
  width: 100%; padding: 13px 20px;
  background: var(--card-bg); color: var(--texto);
  border: 1px solid var(--borde); border-radius: var(--radio-campo);
  font-family: var(--sans); font-size: 14px;
}
.campo textarea { border-radius: 20px; resize: vertical; min-height: 120px; }
.campo input::placeholder, .campo textarea::placeholder { color: var(--texto-suave); }

.contacto-datos { display: flex; flex-direction: column; gap: calc(var(--u) * 5); }
.dato-fila {
  display: flex; gap: 14px; align-items: flex-start;
  padding-bottom: calc(var(--u) * 4); border-bottom: 1px solid var(--card-borde);
}
.dato-fila svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--azul); margin-top: 2px; }
.dato-fila h4 { margin: 0 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--texto-suave); }
.dato-fila p, .dato-fila a { margin: 0; font-size: 14.5px; color: var(--texto); text-decoration: none; }
.dato-fila a:hover { color: var(--azul); text-decoration: underline; }

.mapa-caja { margin-top: calc(var(--u) * 6); border-radius: 14px; overflow: hidden; border: 1px solid var(--card-borde); }
.mapa-caja iframe { width: 100%; height: 260px; border: 0; display: block; }

/* ---------- 17. Botón flotante del bot ---------- */
.bot-flotante {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: flex; align-items: center; gap: 10px;
  background: var(--verde); color: #fff;
  border: 2px solid #fff; border-radius: var(--radio-pill);
  padding: 13px 22px 13px 17px;
  font-family: var(--sans); font-weight: 700; font-size: 14px;
  cursor: pointer; box-shadow: var(--sombra-cta);
  text-decoration: none;
}
.bot-flotante:hover { filter: brightness(1.07); transform: translateY(-2px); }
.bot-flotante svg { width: 22px; height: 22px; }

.bot-panel {
  position: fixed; right: 22px; bottom: 90px; z-index: 201;
  width: min(330px, calc(100vw - 44px));
  background: var(--card-bg); border: 1px solid var(--card-borde);
  border-radius: 18px; padding: calc(var(--u) * 6);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
  display: none;
}
.bot-panel[data-abierto="true"] { display: block; }
.bot-panel h3 { color: var(--azul); font-size: 18px; margin-bottom: 6px; }
.bot-panel p { color: var(--texto-suave); font-size: 13.5px; margin: 0 0 calc(var(--u) * 5); }
.bot-panel .btn-cta { width: 100%; justify-content: center; }
.bot-cerrar {
  position: absolute; top: 10px; right: 12px;
  background: none; border: 0; color: var(--texto-suave);
  font-size: 20px; cursor: pointer; line-height: 1;
}

/* ---------- 18. Pie ---------- */
.footer {
  background: var(--footer-bg); color: var(--footer-texto);
  padding: calc(var(--u) * 16) 0 calc(var(--u) * 8);
  text-align: center;
}
.footer-logo img {
  height: 90px; width: auto; margin: 0 auto calc(var(--u) * 5);
  background: #fff; border-radius: 8px; padding: 8px 14px;
}
.footer-eslogan {
  font-family: var(--script); font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 calc(var(--u) * 8);
}
.footer-redes { display: flex; justify-content: center; gap: 14px; margin-bottom: calc(var(--u) * 8); }
.footer-redes a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16); color: #fff;
  transition: background-color .2s ease;
}
.footer-redes a:hover { background: rgba(255,255,255,.32); }
.footer-redes svg { width: 19px; height: 19px; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.2);
  padding-top: calc(var(--u) * 6); font-size: 12.5px; opacity: .85;
}
.footer-legal a { color: #fff; }

/* ---------- 19. Responsive ---------- */
@media (max-width: 900px) {
  .hero-caja, .conocenos-rejilla, .contacto-rejilla { grid-template-columns: 1fr; }
  .hero-img { order: -1; }
  .caja-lista ul { columns: 1; }
}

@media (max-width: 820px) {
  .nav-hamburguesa { display: inline-flex; }
  .nav-lista {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--nav-bg);
    border-top: 1px solid rgba(255,255,255,.2);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-lista[data-abierto="true"] { max-height: 340px; }
  .nav-lista a { padding: 14px 24px; }
  .barra-top .contenedor { justify-content: center; text-align: center; }
  .barra-top-acciones { justify-content: center; }
  .seccion { padding: calc(var(--u) * 16) 0; }
  .hero-datos { justify-content: center; gap: calc(var(--u) * 7); }
}

@media (max-width: 480px) {
  .contenedor { width: calc(100% - 32px); }
  .hero-caja { padding: calc(var(--u) * 6); }
  .bot-flotante span { display: none; }
  .bot-flotante { padding: 15px; border-radius: 50%; }
}

@media print {
  .nav, .bot-flotante, .bot-panel, .barra-top-acciones { display: none; }
}

/* Nota de origen bajo los testimonios rotativos */
.testi-fuente {
  text-align: center;
  font-size: 12.5px;
  color: var(--texto-suave);
  margin-top: calc(var(--u) * 6);
}
