/* volantenlinea.com — estilos del sitio público (sin librerías, para que cargue rápido en celular) */

:root {
  --ambar: #FFBF4C;
  --amarillo: #FFE595;
  --rojo: #FF3045;
  --rojo-texto: #B3001A;
  --negro: #141414;
  --crema: #FFFCF5;
  --crema-2: #FFF3D6;
  --arena: #F1E6CF;
  --texto-2: #3D3628;
  --texto-3: #5A5040;
  --verde-wa: #25D366;
  --borde: 1.5px solid var(--negro);
  --radio: 14px;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --base: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--crema); color: var(--negro); font-family: var(--base); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--rojo); outline-offset: 2px; }
.contenedor { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.saltar { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--negro); color: #fff; padding: 10px 14px; border-radius: 8px; }
.saltar:focus { left: 8px; }

/* ---------- Franja y encabezado ---------- */
.franja { background: var(--negro); color: var(--amarillo); font-size: 13px; font-weight: 600; padding: 9px 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; text-align: center; }
.encabezado { background: var(--crema); border-bottom: var(--borde); }
.encabezado .fila { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca img { width: 56px; height: 56px; }
.marca span { font-family: var(--display); font-weight: 800; font-size: 25px; letter-spacing: -.01em; }
.marca b { color: var(--rojo); font-weight: 800; }
.nav { background: var(--negro); }
.nav .contenedor { display: flex; gap: 26px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.nav .contenedor::-webkit-scrollbar { display: none; }
.nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; padding: 13px 0; }
.nav a:hover { text-decoration: underline; }
.nav a.resaltado { color: var(--amarillo); font-weight: 700; }

/* ---------- Botones ---------- */
.botones { display: flex; flex-wrap: wrap; gap: 10px; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 2px solid var(--negro); border-radius: 12px; background: transparent; color: var(--negro); font: inherit; font-weight: 800; font-size: 16px; text-decoration: none; cursor: pointer; }
.boton svg { flex: none; }
.boton-chico { min-height: 44px; padding: 0 14px; font-size: 15px; border-width: 1.5px; border-radius: 10px; }
.boton-grande { min-height: 54px; padding: 0 24px; font-size: 17px; }
.boton-ambar { background: var(--ambar); }
.boton-sombra { box-shadow: 4px 4px 0 var(--negro); }
.boton-wa { background: var(--verde-wa); }
.boton-negro { background: var(--negro); color: #fff; }
.boton-claro { border-color: #fff; color: #fff; }
.boton:hover { filter: brightness(.96); }

/* ---------- Secciones ---------- */
.seccion { padding: clamp(56px, 7vw, 96px) 0; }
.seccion-corta { padding: clamp(40px, 5vw, 64px) 0; }
.seccion-crema { background: var(--crema-2); border-top: var(--borde); border-bottom: var(--borde); }
.seccion-amarilla { background: var(--amarillo); border-top: var(--borde); border-bottom: var(--borde); }
.seccion-negra { background: var(--negro); color: #fff; }
.encabezado-seccion { display: flex; flex-direction: column; gap: 10px; max-width: 42em; margin-bottom: 28px; }
.encabezado-seccion.ancho { max-width: none; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 32px; }
.encabezado-seccion.ancho > div { display: flex; flex-direction: column; gap: 10px; max-width: 42em; }
.antetitulo { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--rojo-texto); }
.seccion-negra .antetitulo { color: var(--ambar); }
.seccion-amarilla .antetitulo { color: #8A0014; }
h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; }
.bajada { font-size: 17px; color: var(--texto-2); }
.seccion-negra .bajada { color: var(--amarillo); }
.nota-iva { font-size: 14px; font-weight: 600; color: var(--texto-2); background: #fff; border: var(--borde); border-radius: 999px; padding: 8px 14px; }

/* ---------- Portada ---------- */
.hero { padding: clamp(40px, 6vw, 80px) 0; }
.hero .contenedor { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 44px; align-items: center; }
.hero-texto { display: flex; flex-direction: column; gap: 22px; }
.pastilla { align-self: flex-start; background: var(--amarillo); border: var(--borde); border-radius: 999px; padding: 6px 14px; font-size: 13.5px; font-weight: 700; }
.hero h1 { font-size: clamp(40px, 5.4vw, 74px); font-weight: 800; line-height: .98; letter-spacing: -.025em; }
.hero .bajada { font-size: clamp(17px, 1.6vw, 20px); color: #2E2A22; max-width: 34em; }
.ventajas { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 600; }
.ventajas li { display: flex; align-items: center; gap: 7px; }
.collage { display: grid; gap: 12px; height: clamp(320px, 36vw, 480px); }
.collage img { width: 100%; height: 100%; min-height: 0; object-fit: cover; border: 2px solid var(--negro); border-radius: 18px; }
.collage-2 { grid-template-columns: 1fr 1fr; }
.collage-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.collage-3 img:first-child { grid-row: 1 / 3; }
.collage-0 { place-items: center; background: var(--ambar); border: 2px solid var(--negro); border-radius: 18px; }
.collage-0 img { width: min(70%, 320px); height: auto; border: 0; }

/* ---------- Tarjetas de producto ---------- */
.tarjetas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 18px; }
.tarjeta { background: #fff; border: var(--borde); border-radius: var(--radio); overflow: hidden; display: flex; flex-direction: column; }
.tarjeta-foto { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--arena); border-bottom: var(--borde); }
.tarjeta-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tarjeta-foto img.sin-foto { width: 84px; height: 84px; object-fit: contain; position: absolute; inset: 0; margin: auto; opacity: .9; }
.etiqueta-foto { position: absolute; top: 10px; left: 10px; background: var(--negro); color: var(--ambar); font-size: 11.5px; font-weight: 800; letter-spacing: .05em; border-radius: 6px; padding: 5px 8px; }
.tarjeta-cuerpo { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tarjeta h3 { font-size: 20px; font-weight: 700; line-height: 1.15; }
.resumen { font-size: 13.5px; line-height: 1.35; color: var(--texto-2); }
.precio { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.precio small { font-size: 13px; color: var(--texto-3); }
.precio strong { font-family: var(--display); font-weight: 800; font-size: 25px; }
.precio strong.cotiza { font-size: 19px; }
.entrega { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; line-height: 1.35; color: var(--texto-2); }
.entrega svg { flex: none; margin-top: 1px; }
.tarjeta .boton { margin-top: auto; }

/* ---------- Promociones ---------- */
.promos { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; }
.promos a { flex: none; height: clamp(260px, 30vw, 360px); scroll-snap-align: start; border: 2px solid var(--ambar); border-radius: 14px; overflow: hidden; }
.promos img { height: 100%; width: auto; max-width: none; }

/* ---------- Publicidad en calle ---------- */
.calle { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 18px; }
.calle article { background: #fff; border: var(--borde); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.calle-foto { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; }
.calle h3 { font-size: 22px; font-weight: 700; }
.calle .precio strong { font-size: 28px; }
.calle p { font-size: 15.5px; color: var(--texto-2); }
.calle .boton { margin-top: auto; }
.banda { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; background: var(--ambar); border: var(--borde); border-radius: 16px; padding: 22px 24px; }
.banda strong { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; }

/* ---------- Envíos ---------- */
.pasos { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; counter-reset: paso; }
.pasos li { background: #fff; border: var(--borde); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 8px; counter-increment: paso; }
.pasos li::before { content: counter(paso); width: 42px; height: 42px; border-radius: 50%; background: var(--ambar); border: 2px solid var(--negro); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 19px; }
.pasos strong { font-size: 18px; }
.pasos span { font-size: 15px; color: var(--texto-2); }

/* ---------- Empresas y cajas ---------- */
.empresas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 32px 48px; align-items: center; }
.empresas ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.caja { background: #fff; border: var(--borde); border-radius: 16px; padding: 24px; box-shadow: 6px 6px 0 var(--negro); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.caja-titulo { font-family: var(--display); font-size: 24px; font-weight: 800; }
.caja-negra { background: var(--negro); color: #fff; box-shadow: 6px 6px 0 var(--ambar); }
.caja-negra p { color: #F2EEE4; }

/* ---------- Galería ---------- */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.galeria figure { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.galeria img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: var(--borde); border-radius: 14px; }
.galeria figcaption { font-size: 14px; color: var(--texto-2); }

/* ---------- Confianza ---------- */
.confianza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.cifra { display: flex; align-items: center; gap: 18px; }
.cifra b { font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; color: var(--rojo-texto); }
.cifra h2 { font-size: clamp(26px, 3.2vw, 38px); }

/* ---------- Preguntas ---------- */
.preguntas { max-width: 860px; }
.preguntas details { background: #fff; border: var(--borde); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.preguntas summary { cursor: pointer; font-weight: 700; font-size: 17px; padding: 16px 0; }
.preguntas details p { padding-bottom: 16px; color: var(--texto-2); white-space: pre-line; }

/* ---------- Contacto ---------- */
.contacto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: 32px; align-items: center; }
.contacto-datos { display: flex; flex-direction: column; gap: 16px; }
.dato { display: flex; align-items: flex-start; gap: 10px; font-size: 16.5px; }
.dato svg { flex: none; margin-top: 1px; }
.dato a { font-weight: 700; }

/* ---------- Pie y botón flotante ---------- */
.pie { background: var(--negro); color: #fff; padding: 28px 0 100px; }
.pie .contenedor { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.pie .marca span { font-size: 20px; }
.pie .marca b { color: var(--ambar); }
.pie-enlaces { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; }
.pie small { font-size: 14px; color: #D9D3C4; }
.flotante { position: fixed; right: 16px; bottom: 16px; z-index: 50; min-height: 56px; padding: 0 20px 0 16px; display: inline-flex; align-items: center; gap: 10px; background: var(--negro); color: #fff; border: 2px solid var(--verde-wa); border-radius: 999px; font-weight: 800; font-size: 15.5px; text-decoration: none; box-shadow: 0 10px 28px rgba(20, 20, 20, .28); }
.flotante svg { color: var(--verde-wa); }

/* ---------- Celular ---------- */
@media (max-width: 600px) {
  .marca img { width: 46px; height: 46px; }
  .marca span { font-size: 21px; }
  .encabezado .botones .boton:first-child { display: none; }
  .collage { height: 300px; }
  .tarjetas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tarjeta-cuerpo { padding: 12px; gap: 6px; }
  .tarjeta h3 { font-size: 17px; }
  .resumen, .entrega { font-size: 12.5px; }
  .precio strong { font-size: 21px; }
  .precio small { font-size: 12px; }
  .etiqueta-foto { top: 6px; left: 6px; font-size: 10px; padding: 4px 6px; }
  .tarjeta .boton { min-height: 44px; padding: 0 8px; }
  .flotante { width: 56px; padding: 0; justify-content: center; }
  .flotante span { display: none; }
  .cifra b { font-size: 52px; }
}

/* ---------- Páginas de producto y catálogo (3.2) ---------- */
a.tarjeta-foto { display: block; }
.tarjeta h3 a, .calle h3 a { text-decoration: none; }
.tarjeta h3 a:hover, .calle h3 a:hover { text-decoration: underline; }
.migas { display: flex; flex-wrap: wrap; gap: 6px 8px; padding-top: 18px; font-size: 14px; color: var(--texto-3); }
.migas a { color: var(--texto-2); }
.producto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 40px; align-items: start; padding-top: 24px; padding-bottom: clamp(48px, 6vw, 80px); }
.producto-foto { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--arena); border: 2px solid var(--negro); border-radius: 18px; }
.producto-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.producto-foto img.sin-foto { width: 45%; height: 45%; margin: auto; object-fit: contain; }
.producto-info { display: flex; flex-direction: column; gap: 16px; }
.producto-info h1 { font-size: clamp(36px, 4.6vw, 60px); font-weight: 800; letter-spacing: -.025em; }
.precio-grande strong { font-size: 40px; }
.precio-grande small { font-size: 15px; }
.tabla-precios { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: var(--borde); border-radius: 12px; overflow: hidden; font-size: 15px; }
.tabla-precios caption { caption-side: top; text-align: left; padding-bottom: 6px; font-size: 13px; font-weight: 700; color: var(--texto-3); }
.tabla-precios th, .tabla-precios td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #E8DDC4; }
.tabla-precios th { background: var(--crema-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .05em; }
.tabla-precios tbody tr:last-child td { border-bottom: 0; }
.tabla-precios td:last-child { font-weight: 700; white-space: nowrap; }
.datos-producto { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 16px; }
.datos-producto li { display: flex; align-items: flex-start; gap: 10px; }
.datos-producto svg { flex: none; margin-top: 3px; }
.nota-pequena { font-size: 14px; color: var(--texto-3); }
.texto-largo { max-width: 46em; font-size: 17px; color: var(--texto-2); }
.texto-largo p + p { margin-top: 1em; }
.titulo-pagina { font-size: clamp(32px, 4.2vw, 52px); font-weight: 800; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 32px; }
.chips a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; border: 1.5px solid var(--negro); border-radius: 999px; background: #fff; font-weight: 700; font-size: 14.5px; text-decoration: none; }
.chips a:hover { background: var(--amarillo); }
.categoria-bloque { margin-bottom: 44px; scroll-margin-top: 16px; }
.categoria-bloque h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 16px; }
.error { max-width: 40em; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 600px) {
  .producto { gap: 24px; padding-top: 16px; }
  .producto-foto { aspect-ratio: 4 / 3; }
  .precio-grande strong { font-size: 34px; }
  .tabla-precios th, .tabla-precios td { padding: 9px 10px; }
}

/* ---------- Formularios (4.1) ---------- */
.form-envoltura { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 56px; align-items: start; }
.form-intro { display: flex; flex-direction: column; gap: 16px; }
.formulario { position: relative; background: #fff; border: var(--borde); border-radius: 16px; padding: 24px; box-shadow: 6px 6px 0 var(--negro); display: flex; flex-direction: column; gap: 16px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo label { font-size: 15px; font-weight: 700; }
.campo label small { font-weight: 500; color: var(--texto-3); }
.campo input:not([type=file]):not([type=checkbox]), .campo select, .campo textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid var(--negro); border-radius: 10px; background: #fff; color: var(--negro); font: inherit; font-size: 16px; }
.campo textarea { min-height: 110px; resize: vertical; }
.campo input[type=file] { font: inherit; font-size: 15px; max-width: 100%; }
.campo .ayuda { font-size: 13px; color: var(--texto-3); }
.campo.con-error input, .campo.con-error select, .campo.con-error textarea { border: 2px solid var(--rojo-texto); }
.error-campo { font-size: 13.5px; font-weight: 700; color: var(--rojo-texto); }
.aviso-error { background: #FFE8EA; border: 1.5px solid var(--rojo-texto); border-radius: 10px; padding: 12px 14px; color: #6B0010; font-weight: 600; }
.trampa { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.formulario .boton { align-self: flex-start; }
.nota-pequena a { font-weight: 700; }

/* ---------- Calculadoras (4.2) ---------- */
.calc [hidden] { display: none !important; }
.calc-pestanas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.calc-pestanas button { min-height: 44px; padding: 0 18px; background: #fff; color: var(--negro); border: 2px solid var(--negro); border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
.calc-pestanas button[aria-pressed="true"] { background: var(--negro); color: #fff; }
.calc-cuerpo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: start; }
.calc-panel { background: #fff; border: var(--borde); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.calc-opciones { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.calc-opciones legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 700; }
.calc-opcion { position: relative; }
.calc-opcion input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.calc-opcion span { min-height: 44px; display: inline-flex; align-items: center; padding: 0 14px; background: #fff; border: 1.5px solid #8C7A55; border-radius: 10px; font-weight: 600; font-size: 14.5px; cursor: pointer; }
.calc-opcion input:checked + span { background: var(--ambar); border: 2px solid var(--negro); font-weight: 700; }
.calc-opcion input:focus-visible + span { outline: 3px solid var(--rojo); outline-offset: 2px; }
.calc-unico { font-weight: 700; }
.calc-ayuda { font-size: 15px; color: var(--texto-2); }
.calc-campos { display: flex; flex-wrap: wrap; gap: 14px; }
.calc-campos .campo { flex: 1 1 120px; }
.calc-campos .campo input { font-size: 17px; }
.calc-resultado { background: var(--negro); color: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.calc-resultado .antetitulo { color: var(--amarillo); }
.calc-linea { font-size: 16px; }
.calc-linea strong, .calc-extra strong { color: var(--ambar); }
.calc-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.calc-total span { font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1.05; color: var(--ambar); }
.calc-total small { font-size: 14px; color: #E9E2D2; }
.calc-extra { font-size: 15px; color: #E9E2D2; }
.calc-nota { font-size: 13.5px; color: #CFC7B5; }
.calc-en-producto { padding-top: 0; scroll-margin-top: 16px; }
.ir-calculadora { align-self: flex-start; font-weight: 700; font-size: 15.5px; color: var(--negro); }
@media (max-width: 600px) {
  .calc-panel, .calc-resultado { padding: 18px; }
  .calc-total span { font-size: 40px; }
}

/* ---------- Chat (5) ---------- */
.chat[hidden] { display: none !important; }
.chat { position: fixed; right: 16px; bottom: 88px; z-index: 60; width: min(380px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 110px)); display: flex; flex-direction: column; overflow: hidden; background: #F4ECDD; border: var(--borde); border-radius: 16px; box-shadow: 0 18px 50px rgba(20, 20, 20, .28); color: var(--negro); }
.chat-cabeza { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 14px; background: var(--negro); color: #fff; }
.chat-cabeza img { flex: none; width: 40px; height: 40px; }
.chat-cabeza div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.chat-cabeza strong { font-size: 15.5px; }
.chat-cabeza span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--amarillo); }
.chat-cabeza i { width: 8px; height: 8px; border-radius: 50%; background: var(--verde-wa); }
.chat-cerrar { flex: none; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; background: transparent; color: #fff; border: 0; border-radius: 50%; cursor: pointer; }
.chat-mensajes { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; background-color: #F4ECDD; background-image: radial-gradient(rgba(20, 20, 20, .06) 1px, transparent 1px); background-size: 18px 18px; overscroll-behavior: contain; }
.chat-aviso { align-self: center; max-width: 92%; background: var(--crema-2); border: 1px solid #E3D3AE; border-radius: 10px; padding: 7px 10px; font-size: 12.5px; line-height: 1.4; color: #4A4030; text-align: center; }
.chat-msj { max-width: 86%; display: flex; flex-direction: column; gap: 6px; padding: 8px 11px 6px; box-shadow: 0 1px 0 rgba(20, 20, 20, .10); }
.chat-bot { align-self: flex-start; background: #fff; border-radius: 4px 14px 14px 14px; }
.chat-yo { align-self: flex-end; background: var(--amarillo); border-radius: 14px 4px 14px 14px; }
.chat-msj strong { font-size: 14.5px; }
.chat-texto { font-size: 14.5px; line-height: 1.42; white-space: pre-line; overflow-wrap: anywhere; }
.chat-hora { align-self: flex-end; font-size: 11px; color: var(--texto-3); }
.chat-enlace { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; background: #fff; border: 1.5px solid var(--negro); border-radius: 10px; color: var(--negro); font-weight: 700; font-size: 14.5px; text-decoration: none; }
.chat-enlace-wa { background: var(--verde-wa); font-weight: 800; }
.chat-escribiendo { align-self: flex-start; background: #fff; border-radius: 4px 14px 14px 14px; padding: 9px 12px; font-size: 13.5px; font-style: italic; color: var(--texto-3); }
.chat-chips { flex: none; max-height: 168px; overflow-y: auto; display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 10px 4px; background: #FBF6EC; border-top: 1px solid #E3D3AE; }
.chat-chips[hidden] { display: none; }
.chat-chips button { min-height: 44px; padding: 0 14px; background: #fff; color: var(--negro); border: 1.5px solid var(--negro); border-radius: 999px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; }
@media (hover: hover) { .chat-chips button:hover { background: var(--amarillo); } }
.chat-caja { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 10px 10px; background: #FBF6EC; }
.chat-caja input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1.5px solid #CDBB93; border-radius: 23px; background: #fff; color: var(--negro); font: inherit; font-size: 16px; }
.chat-caja button { flex: none; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: var(--ambar); color: var(--negro); border: 1.5px solid var(--negro); border-radius: 50%; cursor: pointer; }
.chat-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-abierto .flotante { width: 56px; padding: 0; justify-content: center; }
.chat-abierto .flotante span { display: none; }
@media (max-width: 600px) {
  .chat { inset: 0; width: 100%; height: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .chat-abierto, .chat-abierto body { overflow: hidden; }
  .chat-abierto .flotante { display: none; }
}

/* ---------- Cuentas (6.1) ---------- */
.boton-cuenta svg { flex: none; }
.avisos { display: flex; flex-direction: column; gap: 8px; }
.aviso { margin: 0; padding: 12px 14px; border: 1.5px solid var(--negro); border-radius: 10px; background: #fff; font-weight: 600; }
.aviso-success { background: #E3F7E9; border-color: #1E7A3C; color: #0F4D24; }
.aviso-info { background: var(--crema-2); }
.aviso-warning { background: #FFF1CC; border-color: #8A5A00; color: #5C3D00; }
.campo-casilla { flex-direction: row; align-items: flex-start; gap: 10px; }
.campo-casilla input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--negro); }
.campo-casilla label { display: flex; flex-direction: column; gap: 2px; font-weight: 600; }
.campo-casilla .ayuda { font-weight: 400; }
.campo-etiqueta { font-size: 15px; font-weight: 700; }
.campo-fijo { font-size: 16px; color: var(--texto-2); overflow-wrap: anywhere; }
.formulario h2, .cuenta-caja h2 { font-size: 22px; }
.cuenta { display: flex; flex-direction: column; gap: 20px; }
.cuenta-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: start; }
.cuenta-caja { display: flex; flex-direction: column; gap: 14px; padding: 24px; background: #fff; border: var(--borde); border-radius: 16px; }
.cuenta-caja .boton { align-self: flex-start; }
.cuenta-pendiente { background: #FFF1CC; }
.aviso-legal h2 { margin: 28px 0 10px; font-size: clamp(22px, 2.6vw, 28px); }
.aviso-legal ul { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; padding-left: 1.2em; }
.aviso-legal p + p { margin-top: .8em; }
@media (max-width: 600px) {
  .boton-cuenta { width: 44px; padding: 0; }
  .boton-cuenta span { display: none; }
  .cuenta-caja { padding: 18px; }
  /* con el botón de la cuenta, el encabezado del celular sigue en un solo renglón */
  .encabezado .fila { flex-wrap: nowrap; gap: 8px; }
  .encabezado .marca { gap: 8px; min-width: 0; }
  .encabezado .marca img { width: 40px; height: 40px; }
  .encabezado .marca span { font-size: 19px; }
  .encabezado .botones { flex: none; flex-wrap: nowrap; gap: 6px; }
  .encabezado .boton-ambar { padding: 0 12px; }
}
@media (max-width: 360px) {
  .encabezado .marca span { font-size: 17px; }
}

/* ---------- Cupón (6.2) ---------- */
.collage { position: relative; }
.sello { position: absolute; left: -12px; bottom: -12px; z-index: 2; display: flex; align-items: center; gap: 14px; max-width: 330px; padding: 14px 18px; background: var(--negro); color: #fff; border-radius: 14px; box-shadow: 6px 6px 0 var(--ambar); font-size: 14px; line-height: 1.35; text-decoration: none; }
.sello b { flex: none; font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 1; color: var(--ambar); }
.sello small { display: block; margin-top: 2px; font-size: 13px; color: var(--amarillo); }
.registro-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.registro-cifra { flex: 0 1 auto; font-family: var(--display); font-weight: 800; font-size: clamp(96px, 13vw, 168px); line-height: .9; letter-spacing: -.04em; color: var(--ambar); }
.registro-texto { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.registro-texto h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.08; }
.registro-texto p { font-size: 17px; color: #F2EEE4; }
.registro-texto .botones { align-items: center; gap: 12px 18px; }
.registro-texto .botones span { font-size: 14px; color: var(--amarillo); }
.registro-texto .boton-ambar { border-color: var(--ambar); }
.cupon { background: var(--negro); color: #fff; box-shadow: 6px 6px 0 var(--ambar); }
.cupon p { color: #F2EEE4; }
.cupon p strong { color: var(--ambar); }
.cupon-cabeza { display: flex; align-items: center; gap: 18px; }
.cupon-cabeza > div { display: flex; flex-direction: column; gap: 6px; }
.cupon-cifra { flex: none; font-family: var(--display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -.03em; color: var(--ambar); }
.cupon-codigo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 18px; border: 1.5px dashed var(--ambar); border-radius: 12px; }
.cupon-codigo span { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amarillo); }
.cupon .cupon-codigo strong { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: clamp(26px, 7vw, 34px); letter-spacing: .06em; color: var(--ambar); -webkit-user-select: all; user-select: all; }
.cupon .boton-wa { border-color: var(--verde-wa); }
.cupon-usado { background: var(--crema-2); }
.calc-cupon { padding: 12px 14px; border: 1.5px dashed var(--ambar); border-radius: 12px; font-size: 15px; line-height: 1.4; color: #F2EEE4; }
.calc-cupon strong { font-size: 19px; color: var(--ambar); }
.calc-cupon a { color: var(--ambar); font-weight: 700; }
@media (max-width: 600px) {
  .sello { left: -8px; bottom: -10px; max-width: calc(100% - 24px); padding: 12px 14px; gap: 12px; font-size: 13px; }
  .sello b { font-size: 38px; }
  .sello small { font-size: 12px; }
  .cupon-cifra { font-size: 52px; }
}

/* ---------- Portada como la maqueta (6.3) ---------- */
.empresas { align-items: start; }
.empresas-texto { display: flex; flex-direction: column; gap: 16px; }
.empresas-texto .encabezado-seccion { margin-bottom: 0; }
.empresas-foto { margin: 6px 0 0; display: flex; flex-direction: column; gap: 8px; }
.empresas-foto img { width: 100%; height: 240px; object-fit: cover; border: var(--borde); border-radius: 14px; }
.empresas-foto figcaption { font-size: 14px; color: #3D2E00; }
.form-empresas { gap: 14px; }
.form-empresas .boton { align-self: stretch; }
.campos-fila { display: flex; flex-wrap: wrap; gap: 14px; }
.campos-fila .campo { flex: 1 1 140px; min-width: 0; }
body:has(.form-empresas :focus) .flotante { display: none; }   /* en el celular tapaba los campos */
.opiniones-envoltura { display: flex; flex-direction: column; gap: 24px; }
.opiniones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 18px; }
.opinion { margin: 0; padding: 22px; display: flex; flex-direction: column; gap: 12px; background: #fff; border: var(--borde); border-radius: 16px; }
.opinion p { font-size: 16.5px; line-height: 1.5; }
.opinion footer { margin-top: auto; display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.opinion footer span { color: var(--texto-3); }
.estrellas { color: #D99000; font-size: 19px; letter-spacing: 2px; line-height: 1; }
