/* Cítricos Ávila — estilos del sitio
   Paleta extraída del logo. Contrastes AA comprobados (ver brief.md §8). */

/* Fuentes autoalojadas (SIL Open Font License 1.1, ver assets/fonts/OFL-*.txt) */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Marca */
  --verde: #009943;        /* "ÁVILA" del logo: decorativo / texto grande */
  --verde-700: #087A3A;    /* botones y enlaces (5,5:1 sobre blanco) */
  --verde-800: #096835;    /* hoja oscura: fondos con texto blanco (6,9:1) */
  --verde-hoja: #97BC3F;   /* hoja clara: decorativo */
  --rojo: #E7371B;         /* "CÍTRICOS" del logo: decorativo / texto grande */
  --rojo-700: #C42A12;     /* texto pequeño en rojo (5,7:1) */
  --naranja: #F0811F;      /* gajo: decorativo */
  --amarillo: #FDC811;     /* gajo: sello "Entrega gratis" con texto tinta (9,5:1) */
  --amarillo-claro: #F7EF87;

  /* Neutros */
  --tinta: #1C2B22;
  --tinta-suave: #44544A;  /* 8,6:1 sobre blanco */
  --crema: #FFF8E6;
  --blanco: #FFFFFF;
  --borde: #E8DFC8;

  --f-titulo: 'Bricolage Grotesque', 'Arial Narrow', system-ui, sans-serif;
  --f-texto: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radio: 14px;
  --radio-lg: 22px;
  --sombra: 0 1px 2px rgba(28, 43, 34, .06), 0 8px 24px rgba(28, 43, 34, .08);
  --ancho: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  background: var(--blanco);
  color: var(--tinta);
  font: 400 1.0625rem/1.6 var(--f-texto);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--verde-700); text-underline-offset: 3px; }
a:hover { color: var(--verde-800); }
:focus-visible { outline: 3px solid var(--naranja); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  font-family: var(--f-titulo);
  font-stretch: 85%;
  line-height: 1.05;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; font-stretch: 90%; }
p { margin: 0 0 1em; }

.contenedor { width: 100%; max-width: var(--ancho); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .contenedor { padding: 0 28px; } }

.salto { position: absolute; left: -9999px; top: 8px; background: var(--tinta); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 8px; }
.salto:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Barra superior ---------- */
.barra-top {
  background: var(--amarillo);
  color: var(--tinta);
  font-weight: 600;
  font-size: .92rem;
  text-align: center;
  padding: 8px 16px;
}
.barra-top strong { font-weight: 800; }
.barra-top svg { width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--borde);
}
.cabecera .contenedor { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: block; flex: 0 0 auto; }
.logo img { height: 52px; width: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--tinta); text-decoration: none; font-weight: 600; font-size: .96rem;
  padding: 10px 12px; border-radius: 10px;
}
.nav a:not(.btn):hover { background: var(--crema); color: var(--verde-800); }
.nav-links { display: none; }
.menu { position: relative; }
.menu summary {
  list-style: none; cursor: pointer; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--borde);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu-panel {
  position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--borde);
  border-radius: var(--radio); box-shadow: var(--sombra); padding: 8px; min-width: 240px;
  display: grid;
}
.menu-panel a { padding: 12px 14px !important; }
.nav .btn { padding: 10px 16px; font-size: .95rem; }
.nav .btn span.largo { display: none; }
@media (min-width: 960px) {
  .nav-links { display: flex; gap: 2px; }
  .menu { display: none; }
  .nav .btn span.largo { display: inline; }
}
@media (max-width: 420px) {
  .logo img { height: 42px; }
  .nav .btn { padding: 10px 12px; }
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 700 1.05rem/1.2 var(--f-texto);
  padding: 15px 24px; border-radius: 999px; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .15s ease;
}
.btn svg { width: 22px; height: 22px; flex: 0 0 auto; }
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--verde-700); color: #fff; }
.btn-wa:hover { background: var(--verde-800); color: #fff; }
.btn-sec { background: transparent; color: var(--tinta); border-color: var(--tinta); }
.btn-sec:hover { background: var(--tinta); color: #fff; }
.btn-claro { background: #fff; color: var(--verde-800); }
.btn-claro:hover { background: var(--amarillo); color: var(--tinta); }
.btn-grande { font-size: 1.15rem; padding: 18px 30px; }

/* ---------- Sello "Entrega gratis" ---------- */
.sello {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--amarillo); color: var(--tinta);
  padding: 12px 18px 12px 14px; border-radius: 14px;
  font-weight: 700; line-height: 1.25;
  box-shadow: 4px 4px 0 var(--tinta);
}
.sello svg { width: 34px; height: 34px; flex: 0 0 auto; }
.sello strong { display: block; font: 800 1.35rem/1.05 var(--f-titulo); font-stretch: 85%; text-transform: uppercase; letter-spacing: .01em; }
.sello span { font-size: .9rem; font-weight: 600; }

/* ---------- Hero ---------- */
.hero { background: var(--crema); padding: 40px 0 56px; overflow: hidden; position: relative; }
.hero .contenedor { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 64px 0 80px; } .hero .contenedor { grid-template-columns: 1.05fr .95fr; gap: 48px; } }
.antetitulo {
  display: inline-block; font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--rojo-700); margin-bottom: 14px;
}
.hero h1 { color: var(--tinta); }
.hero h1 em { font-style: normal; color: var(--verde-700); }
.hero .lead { font-size: 1.2rem; color: var(--tinta-suave); max-width: 34em; }
.hero .sello { margin: 6px 0 26px; }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.nota { font-size: .92rem; color: var(--tinta-suave); margin-top: 14px; }
.nota svg { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.hero-foto { position: relative; }
.hero-foto img { border-radius: var(--radio-lg); box-shadow: var(--sombra); aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.hero-foto .chapa {
  position: absolute; left: -10px; bottom: -18px;
  background: var(--verde-800); color: #fff; border-radius: 16px; padding: 14px 18px;
  font-weight: 600; font-size: .95rem; line-height: 1.25; box-shadow: var(--sombra);
}
.hero-foto .chapa b { display: block; font: 800 2rem/1 var(--f-titulo); font-stretch: 80%; color: var(--amarillo); }
@media (min-width: 900px) { .hero-foto .chapa { left: -28px; } }

/* ---------- Diferenciales ---------- */
.diferenciales { background: var(--verde-800); color: #fff; padding: 28px 0; }
.diferenciales ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .diferenciales ul { grid-template-columns: repeat(5, 1fr); } }
.diferenciales li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; line-height: 1.35; }
.diferenciales li:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (min-width: 900px) { .diferenciales li:last-child:nth-child(odd) { grid-column: auto; } }
.diferenciales svg { width: 30px; height: 30px; flex: 0 0 auto; color: var(--amarillo); }
.diferenciales b { display: block; font: 800 1.15rem/1.1 var(--f-titulo); font-stretch: 85%; margin-bottom: 2px; }

/* ---------- Secciones ---------- */
.seccion { padding: 64px 0; }
@media (min-width: 900px) { .seccion { padding: 96px 0; } }
.seccion-crema { background: var(--crema); }
.cabeza-seccion { max-width: 760px; margin-bottom: 36px; }
.cabeza-seccion p { font-size: 1.12rem; color: var(--tinta-suave); }
.centro { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Productos ---------- */
.rejilla-productos { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tarjeta {
  background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease;
}
.tarjeta:hover { transform: translateY(-3px); box-shadow: var(--sombra); }
.tarjeta .foto { aspect-ratio: 4/3; background: var(--crema); position: relative; }
.tarjeta .foto img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta .etiqueta {
  position: absolute; top: 12px; left: 12px; background: #fff; color: var(--tinta);
  font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.tarjeta .cuerpo { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.tarjeta h3 { margin-bottom: .3em; }
.tarjeta h3 a { color: var(--tinta); text-decoration: none; }
.tarjeta h3 a::after { content: ""; position: absolute; inset: 0; }
.tarjeta { position: relative; }
.tarjeta p { color: var(--tinta-suave); font-size: .97rem; flex: 1; }
.tarjeta .mas { font-weight: 700; color: var(--verde-700); display: inline-flex; align-items: center; gap: 6px; }
.tarjeta .mas svg { width: 18px; height: 18px; }

.hueco-foto {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  padding: 16px; background: repeating-linear-gradient(-45deg, var(--crema), var(--crema) 12px, #FBEFCB 12px, #FBEFCB 24px);
  color: var(--tinta-suave); font: 600 .9rem/1.4 var(--f-texto); border: 2px dashed var(--naranja);
}

/* ---------- Comparativa ---------- */
.comparativa-wrap { display: grid; gap: 40px; }
@media (min-width: 720px) { .razones { grid-template-columns: 1fr 1fr; gap: 28px 40px; } }
.razones { list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; }
.razones li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; }
.razones .ico {
  width: 48px; height: 48px; border-radius: 14px; background: var(--amarillo); display: grid; place-items: center;
}
.razones .ico svg { width: 26px; height: 26px; color: var(--tinta); }
.razones h3 { margin: 4px 0 .25em; font-size: 1.25rem; }
.razones p { margin: 0; color: var(--tinta-suave); }
.tabla-wrap { overflow-x: auto; border-radius: var(--radio-lg); border: 1px solid var(--borde); background: #fff; }
table.comparativa { width: 100%; border-collapse: collapse; min-width: 480px; font-size: .98rem; }
.comparativa th, .comparativa td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--borde); vertical-align: top; }
.comparativa tr:last-child td, .comparativa tr:last-child th { border-bottom: 0; }
.comparativa thead th { font: 800 1.1rem/1.15 var(--f-titulo); font-stretch: 85%; background: var(--crema); }
.comparativa thead th.nosotros { background: var(--verde-800); color: #fff; }
.comparativa tbody th { font-weight: 600; width: 34%; }
.comparativa td.nosotros { background: #F1F8EE; font-weight: 600; color: var(--verde-800); }
.comparativa .si { display: flex; gap: 8px; align-items: flex-start; }
.comparativa .si svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 3px; }
.comparativa td.otros { color: var(--tinta-suave); }
@media (max-width: 600px) {
  table.comparativa { min-width: 0; font-size: .88rem; }
  .comparativa th, .comparativa td { padding: 10px 8px; }
  .comparativa .si svg { display: none; }
}

/* ---------- Pasos ---------- */
.pasos { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; counter-reset: paso; }
@media (min-width: 860px) { .pasos { grid-template-columns: repeat(3, 1fr); } }
.pasos li {
  background: #fff; border-radius: var(--radio-lg); padding: 28px 24px; position: relative; border: 1px solid var(--borde);
}
.pasos li::before {
  counter-increment: paso; content: counter(paso);
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--rojo); color: #fff; font: 800 1.6rem/1 var(--f-titulo); margin-bottom: 16px;
}
.pasos h3 { font-size: 1.45rem; }
.pasos p { color: var(--tinta-suave); margin: 0; }
.pasos-cta { margin-top: 32px; }

/* ---------- Testimonios ---------- */
.clientes-nombres { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; margin: 0 0 36px; padding: 0; list-style: none; }
.clientes-nombres li { font: 800 1.35rem/1.2 var(--f-titulo); font-stretch: 80%; color: var(--verde-800); text-transform: uppercase; letter-spacing: .02em; }
.testimonios { display: grid; gap: 20px; }
@media (min-width: 860px) { .testimonios { grid-template-columns: repeat(3, 1fr); } }
.testimonio { margin: 0; background: #fff; border-radius: var(--radio-lg); padding: 26px; border: 1px solid var(--borde); display: flex; flex-direction: column; }
.testimonio blockquote { margin: 0 0 18px; font-size: 1.05rem; flex: 1; }
.testimonio blockquote::before { content: "“"; display: block; font: 800 3.4rem/0.8 var(--f-titulo); color: var(--naranja); margin-bottom: 4px; }
.testimonio figcaption b { display: block; font-family: var(--f-titulo); font-size: 1.15rem; font-stretch: 90%; }
.testimonio figcaption span { color: var(--tinta-suave); font-size: .92rem; }
.pendiente { background: #FFF3C4; border: 1px dashed #B88A00; padding: 2px 6px; border-radius: 6px; font-size: .92em; color: var(--tinta); }

/* ---------- Nosotros ---------- */
.bloque-nosotros { display: grid; gap: 36px; align-items: center; }
@media (min-width: 900px) { .bloque-nosotros { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.bloque-nosotros img { border-radius: var(--radio-lg); box-shadow: var(--sombra); width: 100%; max-width: 460px; margin: 0 auto; }
.logo-animado { width: min(100%, 360px); aspect-ratio: 920 / 536; margin: 0 0 20px -10px; }
.bloque-nosotros .logo-animado img { width: 100%; height: 100%; max-width: none; margin: 0; border-radius: 0; box-shadow: none; }
.logo-animado img[data-src] { visibility: hidden; }
.datos-clave { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.datos-clave li { background: var(--crema); border-radius: 12px; padding: 10px 14px; font-weight: 600; font-size: .95rem; }
.datos-clave b { color: var(--rojo-700); }

/* ---------- Banda CTA ---------- */
.banda-cta { background: var(--verde-800); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.banda-cta .contenedor { display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .banda-cta .contenedor { grid-template-columns: 1.4fr auto; } }
.banda-cta h2 { color: #fff; margin-bottom: .25em; }
.banda-cta p { margin: 0; font-size: 1.12rem; color: #E6F2E9; }
.banda-cta .resalte { color: var(--amarillo); }

/* ---------- Contacto ---------- */
.contacto { display: grid; gap: 28px; }
@media (min-width: 900px) { .contacto { grid-template-columns: 1fr 1fr; gap: 48px; } }
.lista-contacto { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.lista-contacto li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); padding: 14px 16px; }
.lista-contacto .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--crema); display: grid; place-items: center; color: var(--verde-700); }
.lista-contacto .ico svg { width: 22px; height: 22px; }
.lista-contacto small { display: block; color: var(--tinta-suave); font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.lista-contacto a, .lista-contacto span.valor { font-weight: 700; font-size: 1.08rem; color: var(--tinta); text-decoration: none; word-break: break-word; }
.lista-contacto a:hover { color: var(--verde-700); text-decoration: underline; }
.horario { background: var(--crema); border-radius: var(--radio-lg); padding: 28px; }
.horario h3 { font-size: 1.6rem; }
.horario table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; }
.horario td { padding: 9px 0; border-bottom: 1px solid var(--borde); }
.horario td:last-child { text-align: right; font-weight: 700; }
.horario .cerrado td:last-child { color: var(--tinta-suave); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; position: relative;
  font: 700 1.12rem/1.3 var(--f-titulo); font-stretch: 92%;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--amarillo); color: var(--tinta);
  display: grid; place-items: center; font: 700 1.2rem/1 var(--f-texto);
}
.faq details[open] summary::after { content: "–"; }
.faq .respuesta { padding: 0 20px 18px; color: var(--tinta-suave); }
.faq .respuesta p:last-child { margin-bottom: 0; }

/* ---------- Página de producto ---------- */
.migas { font-size: .9rem; padding: 16px 0 0; }
.migas ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.migas li + li::before { content: "›"; margin-right: 6px; color: var(--tinta-suave); }
.migas a { color: var(--tinta-suave); }
.migas [aria-current] { color: var(--tinta); font-weight: 600; }
.hero-producto { background: var(--crema); padding: 8px 0 56px; }
.hero-producto .contenedor > .grid { display: grid; gap: 32px; align-items: center; margin-top: 24px; }
@media (min-width: 900px) { .hero-producto .contenedor > .grid { grid-template-columns: 1fr 1fr; gap: 56px; } }
.hero-producto h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); }
.hero-producto .lead { font-size: 1.18rem; color: var(--tinta-suave); }
.hero-producto .sello { margin: 4px 0 24px; }
.hero-producto .foto img, .hero-producto .foto .hueco-foto { border-radius: var(--radio-lg); aspect-ratio: 4/3; object-fit: cover; width: 100%; box-shadow: var(--sombra); }
.dos-col { display: grid; gap: 28px; }
@media (min-width: 860px) { .dos-col { grid-template-columns: 1fr 1fr; gap: 40px; } }
.caja { background: #fff; border: 1px solid var(--borde); border-radius: var(--radio-lg); padding: 28px; }
.caja.crema { background: var(--crema); border-color: transparent; }
.lista-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lista-check li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; }
.lista-check svg { width: 22px; height: 22px; color: var(--verde-700); margin-top: 2px; }
.lista-check b { font-weight: 700; }

/* ---------- Pie ---------- */
.pie { background: var(--tinta); color: #D9E2DC; padding: 56px 0 110px; font-size: .95rem; }
.pie .contenedor { display: grid; gap: 32px; }
@media (min-width: 860px) { .pie .contenedor { grid-template-columns: 1.3fr 1fr 1fr; } }
.pie .logo-pie { background: #fff; border-radius: 14px; padding: 10px 14px; display: inline-block; }
.pie .logo-pie img { height: 56px; width: auto; }
.pie h2 { font-size: 1.15rem; color: #fff; font-stretch: 90%; margin-bottom: .8em; }
.pie ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pie a { color: #fff; }
.pie a:hover { color: var(--amarillo); }
.pie .legal { grid-column: 1 / -1; border-top: 1px solid #3A4A40; padding-top: 20px; color: #AFC0B5; font-size: .88rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--verde-700); color: #fff; text-decoration: none;
  border-radius: 999px; padding: 14px; font-weight: 700;
  box-shadow: 0 6px 20px rgba(9, 104, 53, .4), 0 0 0 4px #fff;
}
.wa-flotante:hover { background: var(--verde-800); color: #fff; }
.wa-flotante svg { width: 30px; height: 30px; }
.wa-flotante .texto { display: none; }
@media (min-width: 720px) {
  .wa-flotante { right: 24px; bottom: 24px; padding: 14px 22px 14px 16px; }
  .wa-flotante .texto { display: inline; }
}

/* ---------- 404 ---------- */
.error-404 { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }

/* =====================================================================
   Animaciones
   Todo el movimiento va dentro de prefers-reduced-motion: no-preference.
   La aparición al hacer scroll depende de animaciones.js (clase .revelar):
   sin JS no se oculta nada.
   ===================================================================== */

/* Rodajas de cítrico decorativas */
.hero, .hero-producto, .banda-cta { position: relative; overflow: hidden; }
.hero > .contenedor, .hero-producto > .contenedor, .banda-cta > .contenedor { position: relative; z-index: 1; }
.deco { position: absolute; pointer-events: none; z-index: 0; height: auto; }
.deco-1 { width: 230px; top: -80px; right: -70px; }
.deco-2 { width: 120px; bottom: -36px; left: 40%; }
.deco-3 { width: 84px; top: 42%; left: -30px; }
@media (max-width: 1279px) { .deco-3 { display: none; } }
.deco-4 { width: 360px; right: -110px; top: -120px; opacity: .16; }
.hero-producto .deco-1 { width: 170px; top: -60px; right: -60px; opacity: .7; }
@media (max-width: 899px) {
  .deco-2, .deco-3 { display: none; }
  .deco-1, .hero-producto .deco-1 { width: 120px; top: -62px; right: -52px; opacity: .45; }
  .deco-4 { width: 240px; right: -90px; top: -90px; }
}

/* Subrayado amarillo del titular (estado final, también sin movimiento) */
.hero h1 em {
  background: linear-gradient(var(--amarillo), var(--amarillo)) no-repeat 0 92% / 100% .22em;
  padding: 0 .04em;
}

/* Cabecera con sombra al hacer scroll */
.cabecera { transition: box-shadow .3s ease; }
.cabecera.con-sombra { box-shadow: 0 6px 20px rgba(28, 43, 34, .08); }

/* Fotos de producto con zoom al pasar el ratón */
.tarjeta .foto { overflow: hidden; }
.tarjeta .foto img { transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.tarjeta .mas svg { transition: transform .25s ease; }
.tarjeta:hover .mas svg { transform: translateX(5px); }
.btn:active { transform: translateY(0) scale(.97); }

@media (prefers-reduced-motion: no-preference) {
  @keyframes subir { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
  @keyframes entrar-foto { from { opacity: 0; transform: translateX(48px) scale(.95) rotate(2deg); } to { opacity: 1; transform: none; } }
  @keyframes pop { from { opacity: 0; transform: scale(.4) rotate(-12deg); } to { opacity: 1; transform: none; } }
  @keyframes subrayar { from { background-size: 0% .22em; } to { background-size: 100% .22em; } }
  @keyframes flotar { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-16px) rotate(180deg); } 100% { transform: translateY(0) rotate(360deg); } }
  @keyframes camion { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(3px) translateY(-1px); } }
  @keyframes brillo { 0% { transform: translateX(-130%); } 30%, 100% { transform: translateX(130%); } }
  @keyframes pulso { 0% { opacity: .65; transform: scale(1); } 100% { opacity: 0; transform: scale(1.45); } }
  @keyframes entrar-wa { from { opacity: 0; transform: translateY(40px) scale(.5); } to { opacity: 1; transform: none; } }
  @keyframes saludo { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(13deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }

  /* Hero: entrada escalonada */
  .hero .contenedor > div:first-child > *,
  .hero-producto .grid > div:first-child > *,
  .hero-producto .contenedor > div:not(.grid) > * { animation: subir .8s cubic-bezier(.2, .8, .2, 1) both; }
  .hero .contenedor > div:first-child > :nth-child(2), .hero-producto .grid > div:first-child > :nth-child(2), .hero-producto .contenedor > div:not(.grid) > :nth-child(2) { animation-delay: .08s; }
  .hero .contenedor > div:first-child > :nth-child(3), .hero-producto .grid > div:first-child > :nth-child(3), .hero-producto .contenedor > div:not(.grid) > :nth-child(3) { animation-delay: .2s; }
  .hero .contenedor > div:first-child > :nth-child(4), .hero-producto .grid > div:first-child > :nth-child(4) { animation-delay: .3s; }
  .hero .contenedor > div:first-child > :nth-child(5), .hero-producto .grid > div:first-child > :nth-child(5) { animation-delay: .4s; }
  .hero .contenedor > div:first-child > :nth-child(6), .hero-producto .grid > div:first-child > :nth-child(6) { animation-delay: .5s; }
  .hero-foto, .hero-producto .foto { animation: entrar-foto 1s cubic-bezier(.2, .8, .2, 1) .2s both; }
  .hero-foto .chapa { animation: pop .7s cubic-bezier(.3, 1.6, .5, 1) 1s both; }
  .hero h1 em { animation: subrayar .9s cubic-bezier(.6, 0, .2, 1) .9s both; }

  /* Rodajas flotando */
  .deco { animation: flotar 38s linear infinite; }
  .deco-2 { animation-duration: 26s; animation-direction: reverse; }
  .deco-3 { animation-duration: 30s; }
  .deco-4 { animation-duration: 60s; }

  /* Sello "Entrega gratis": camión en marcha y destello */
  .sello { position: relative; overflow: hidden; }
  .sello::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .6) 50%, transparent 62%);
    transform: translateX(-130%); animation: brillo 5s ease-in-out 1.8s infinite;
  }
  .sello svg, .barra-top svg { animation: camion 1.4s ease-in-out infinite; }

  /* Aparición al hacer scroll (clases puestas por animaciones.js) */
  .revelar { opacity: 0; }
  .revelar.visible { opacity: 1; animation: subir .75s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms); }
  .diferenciales li.visible svg,
  .razones li.visible .ico,
  .lista-contacto li.visible .ico { animation: pop .6s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms + .25s); }
  .pasos li.visible::before { animation: pop .65s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--i, 0) * 120ms + .3s); }
  .tabla-wrap.visible tbody tr { animation: subir .6s cubic-bezier(.2, .8, .2, 1) backwards; }
  .tabla-wrap.visible tbody tr:nth-child(2) { animation-delay: .1s; }
  .tabla-wrap.visible tbody tr:nth-child(3) { animation-delay: .2s; }
  .tabla-wrap.visible tbody tr:nth-child(4) { animation-delay: .3s; }
  .tabla-wrap.visible tbody tr:nth-child(5) { animation-delay: .4s; }

  /* Tarjetas */
  .tarjeta:hover .foto img { transform: scale(1.07); }

  /* WhatsApp flotante: entrada, pulso y saludo */
  .wa-flotante { animation: entrar-wa .6s cubic-bezier(.3, 1.6, .5, 1) .9s both; }
  .wa-flotante::before {
    content: ""; position: absolute; inset: -4px; border-radius: inherit; pointer-events: none;
    border: 3px solid var(--verde); opacity: 0; animation: pulso 2.8s ease-out 3s infinite;
  }
  .wa-flotante.saluda svg { animation: saludo .9s ease-in-out 2; }
}

@media print {
  .revelar { opacity: 1 !important; animation: none !important; }
  .deco, .wa-flotante { display: none !important; }
}
