/* Preguntas frecuentes (preguntas.html), comp 09: hero split, the accordion of five categories next to a
   tall pending photo, the contact block and the sky CTA band. */

.palabra-rosa { font-style: normal; color: var(--rosa); } /* display size only: 4.6:1 on white, 3.1:1 on sky strong */

/* ------------------------------------------------------------------ hero */
.faq-hero { align-items: stretch; }
.faq-hero__texto {
  display: grid; gap: var(--e-5); align-content: center; justify-items: start;
  padding-top: clamp(var(--e-7), 6vw, var(--e-9)); padding-bottom: clamp(var(--e-7), 6vw, var(--e-9));
  padding-left: var(--gutter); padding-right: clamp(var(--e-5), 5vw, var(--e-9));
}
.faq-hero__texto .overline { margin-bottom: 0; }
.faq-hero__titulo { max-width: 12ch; }
.faq-hero__texto .lead { max-width: 36ch; }
.faq-hero__texto .lead + .lead { margin-top: calc(-1 * var(--e-3)); }
.faq-hero__foto { --ratio: 4 / 3; --lata-x: 46%; --lata-base: 12%; --lata-alto: 74%; --lata-giro: 6deg; }
@media (min-width: 900px) {
  .faq-hero { min-height: 560px; }
  .faq-hero__foto { aspect-ratio: auto; min-height: 100%; }
  .faq-hero__texto { padding-left: max(var(--gutter), calc((100vw - var(--ancho)) / 2)); }
}
/* on-load entrance, only when JS runs and motion is allowed (html.js-revelar) */
@media (prefers-reduced-motion: no-preference) {
  html.js-revelar .faq-hero__entra { animation: faq-entra 760ms var(--ease-out) calc(80ms + var(--i, 0) * 90ms) both; }
  html.js-revelar .faq-hero__foto { animation: faq-corte 1100ms var(--ease-out) 120ms both; }
}
@keyframes faq-entra { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes faq-corte { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }

/* ------------------------------------------------------------------ accordion */
.faq__rejilla { display: grid; gap: clamp(32px, 4vw, 56px); align-items: start; }
@media (min-width: 900px) {
  .faq__rejilla { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); column-gap: clamp(32px, 5vw, 80px); }
  .faq__foto { position: sticky; top: calc(var(--alto-cabecera) + 24px); }
}
.faq__lista { display: grid; gap: var(--e-3); }
.faq__lista .overline { margin-bottom: var(--e-3); }
.faq__item { border: 1px solid var(--linea); background: var(--blanco); }
.faq__item[open] { border-color: var(--tinta); }
.faq__resumen {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: var(--e-4);
  padding: var(--e-4) var(--e-5) var(--e-4) var(--e-4);
  list-style: none; cursor: pointer;
  transition: background-color var(--dur) var(--ease-out);
}
.faq__resumen::-webkit-details-marker { display: none; }
.faq__resumen::marker { content: ""; }
.faq__resumen:hover { background: var(--gris-campo); }
.faq__resumen:focus-visible { outline-offset: -2px; }
.faq__resumen:hover .icono-circulo { transform: scale(1.05); }
.faq__texto { display: grid; gap: 2px; min-width: 0; }
.faq__titulo { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.015em; line-height: 1.25; }
.faq__linea { font-size: var(--t-chico); color: var(--tinta-2); line-height: 1.4; }
.faq__mas { display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-pill); color: var(--tinta); }
.faq__mas .icon { --icon: 20px; stroke-width: 1.8; }
.faq__icono-menos { display: none; }
.faq__item[open] .faq__icono-mas { display: none; }
.faq__item[open] .faq__icono-menos { display: block; }
.faq__cuerpo { overflow: hidden; }
.faq__contenido {
  display: grid; gap: var(--e-4);
  padding: var(--e-2) var(--e-5) var(--e-5) calc(56px + var(--e-4) + var(--e-4));
  border-top: 1px solid var(--linea-suave);
  padding-top: var(--e-4);
}
.faq__pregunta { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.faq__qa p { margin-top: 4px; font-size: var(--t-chico); line-height: 1.55; color: var(--tinta-2); max-width: 56ch; }
.faq__qa .texto-pendiente { margin-left: 4px; }
@media (max-width: 599px) {
  .faq__resumen { padding-right: var(--e-4); column-gap: var(--e-3); }
  .faq__resumen .icono-circulo { width: 48px; height: 48px; }
  .faq__resumen .icono-circulo .icon { --icon: 22px; }
  .faq__contenido { padding-left: var(--e-4); }
}
/* the tall photo: the three cans leaning in an ice bucket */
.faq__foto { --ratio: 3 / 4; --revelar-fondo: var(--blanco); }
.faq__lata { --lata-alto: 44%; --lata-base: 18%; }
.faq__lata--1 { --lata-x: 30%; --lata-giro: -14deg; }
.faq__lata--2 { --lata-x: 52%; --lata-base: 24%; --lata-giro: 4deg; }
.faq__lata--3 { --lata-x: 72%; --lata-giro: 16deg; }
@media (max-width: 899px) { .faq__foto { --ratio: 4 / 3; } }
/* from 900px the photo is exactly as tall as the five categories closed, so both start and end on the same lines
   (2026-11-09: "¿sería conveniente empatarla con el tamaño de la imagen?" → "sí, hazlo"). js/pages/preguntas.js
   (empatarFoto) measures the closed list and sets --faq-alto: never taller than the old 3:4 box, never wider than 3:2.
   It stays sticky, so a category opened under it keeps the photo in view. Without JS it keeps its 3:4. */
@media (min-width: 900px) {
  .faq__foto.is-empatada { --ratio: auto; height: var(--faq-alto); }
}

/* ------------------------------------------------------------------ contact */
.contacto { border-top: 1px solid var(--linea-suave); }
/* the white from the questions to the contact block and from it to the sky band, halved on wide screens (2026-11-09:
   "hay mucho espacio en blanco, ¿convendría juntarlas más?" → "sí, hazlo"): 48px up to 1200px, 4vw up to 64px from
   1600px, the measure of the Momentos closing. Each was the --seccion rhythm (120px on a 2000px screen, so 240px
   around the line between the questions and the contact). The line stays; the hero above keeps its rhythm. */
.faq.seccion { padding-bottom: clamp(var(--e-7), 4vw, var(--e-8)); }
.contacto.seccion { padding-top: clamp(var(--e-7), 4vw, var(--e-8)); padding-bottom: clamp(var(--e-7), 4vw, var(--e-8)); }
.contacto__rejilla { display: grid; gap: clamp(28px, 4vw, 48px); align-items: center; }
@media (min-width: 1000px) {
  .contacto__rejilla { grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr); column-gap: clamp(32px, 4vw, 64px); }
}
.contacto__foto { --ratio: 4 / 3; --lata-x: 50%; --lata-base: 14%; --lata-alto: 70%; --lata-giro: -4deg; --revelar-fondo: var(--blanco); }
@media (max-width: 999px) { .contacto__foto { --ratio: 16 / 9; --lata-alto: 78%; --lata-base: 8%; } }
.contacto__texto { display: grid; gap: var(--e-5); justify-items: start; }
.contacto__texto .overline { margin-bottom: 0; }
.contacto__texto .lead { max-width: 34ch; }
/* Livincito with his phone, a chat bubble on its screen, beside "¿Tienes otra duda?" (2026-11-09: "pon a Livincito
   con celular en el bloque de contacto"; tools/generar-livincito.py --pose celular, traced mirrored by
   tools/vectorizar-livincito.py --dibujo celular --espejo --engrosar 4, so he walks toward the question holding the
   phone up). He stands just after the title's widest line, his feet on the title's foot; the box wraps the HERBI
   drawing, so he follows it at every width. Sized to the white the column leaves there (at 1000px, 78px). */
.contacto__titulo-caja { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.contacto__livincito {
  position: absolute; left: calc(100% + clamp(16px, 2vw, 28px));
  bottom: 0.12em; /* the HERBI drawing keeps 120 of its units under the baseline: his feet on the line itself */
  height: clamp(96px, 8vw, 132px); width: auto; max-width: none; pointer-events: none;
}
.contacto__datos { display: grid; gap: var(--e-5); }
@media (min-width: 1000px) {
  .contacto__datos { border-left: 1px solid var(--linea); padding-left: clamp(24px, 3vw, 40px); }
}
@media (min-width: 600px) and (max-width: 999px) { .contacto__datos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--e-5); } }
.contacto__dato { display: flex; align-items: flex-start; gap: var(--e-4); font-size: var(--t-chico); font-weight: 600; line-height: 1.45; color: var(--tinta-2); max-width: 26ch; }
.contacto__dato .icon { --icon: 24px; stroke-width: 1.4; color: var(--tinta); margin-top: -1px; }

/* ------------------------------------------------------------------ CTA band */
.faq-cta { padding-top: 0; padding-bottom: 0; }
.faq-cta__rejilla { display: grid; align-items: center; }
@media (min-width: 900px) {
  .faq-cta__rejilla { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); }
}
.faq-cta__foto { --ratio: 16 / 9; --revelar-fondo: var(--sky); margin-inline: calc(-1 * var(--gutter)); width: auto; }
@media (min-width: 900px) { .faq-cta__foto { --ratio: 7 / 4; margin-inline: 0; } }
/* the three cans floating seen from above need the square: a wider crop cuts the top and bottom ones */
.faq-cta__foto.foto-pendiente--lista { --ratio: 1 / 1; }
@media (min-width: 900px) { .faq-cta__foto.foto-pendiente--lista { --ratio: 6 / 5; } }
/* the can lies in the water: a side view turned flat, floating a little above its soft reflection */
.faq-cta__lata { --lata-x: 50%; --lata-base: 38%; --lata-alto: 86%; --lata-giro: -78deg; filter: drop-shadow(0 18px 14px rgb(29 69 83 / 0.28)); }
.faq-cta .foto-pendiente__nota { color: var(--tinta-sky); }
.faq-cta__texto { display: grid; gap: var(--e-6); justify-items: start; padding-top: var(--e-7); padding-bottom: var(--e-7); }
.faq-cta__texto .titulo-2 { max-width: 12ch; }
@media (min-width: 900px) { .faq-cta__texto { padding-top: var(--e-8); padding-bottom: var(--e-8); } }
.faq-cta .texto-suave { color: var(--tinta-sky); }

@media (prefers-reduced-motion: reduce) {
  .faq__resumen:hover .icono-circulo { transform: none; }
}

/* small blocks put the note at the top (livin.css container query): keep the cans under it */
@media (max-width: 899px) {
  .faq-hero__foto { --lata-alto: 58%; --lata-base: 8%; --lata-x: 54%; }
  .contacto__foto { --lata-alto: 62%; --lata-base: 6%; --lata-x: 58%; }
  .faq-cta__lata { --lata-base: 14%; --lata-x: 56%; --lata-alto: 80%; }
}

/* ------------------------------------------------------------------ the brand's sticker (livin.css "brand stickers") */
/* the round two-cans sticker tight in the ice-bucket photo's top-left corner, on the pool water */
.faq__sticker { --tam: clamp(84px, 8vw, 120px); --giro: -10deg; --arriba: clamp(14px, 1.6vw, 22px); --izquierda: clamp(14px, 1.6vw, 22px); }
/* matched to the closed questions (2026-11-09) the photo is almost square on desktop, so the whole square picture
   shows and the yellow can's lid comes up under the corner: at 115-120px the sticker covered it (13-18px). Sized by
   the photo's width (20% of it, 64-88px; the figure is a size container) it stays on the water at every desktop
   width (at 900px, 84px left it 3px from the lid). The photo clips (overflow: hidden), so it cannot hang out of the
   corner instead. */
@media (min-width: 900px) { .faq__sticker { --tam: clamp(64px, 20cqi, 88px); } }
/* stacked (under 900px) the photo is 4:3, wider than the square picture, so the cans stand high in it: at 390px the
   84px sticker covered the yellow can's top by 23px (2026-11-09, "sí, acomódalo"). There the picture is anchored at
   its top (more pool above the cans; the bucket's foot is cut instead) and the sticker follows the photo's width
   (18% of it, 50-84px; the figure is a size container), in the water above the yellow can. */
@media (max-width: 899px) {
  .faq__foto .foto-pendiente__foto { object-position: 50% 0%; }
  .faq__sticker { --tam: clamp(50px, 18cqi, 84px); --arriba: clamp(10px, 3cqi, 22px); --izquierda: clamp(10px, 3cqi, 22px); }
}
