/*
 * Home page (docs/design/approved/inicio.html): css/estilos.css of Jose's approved design
 * (docs/design/package/inmercost-web-daci-2026-11-04), without its @font-face rules, which moved to
 * site-chrome.css (linked on every page). Changes, each in docs/design/APPROVALS.md (2026-11-04):
 * 'Atkinson Hyperlegible Next Fallback' after the web font in every font stack, the <picture> rule,
 * the pause on focus (with a visible focus ring on the focusable tracks), the hero photo rules aimed through their <picture> (with the cycle starting on
 * the first photo, photos 2 and 3 waiting for it and no animation without JavaScript), the grey
 * of the empty stars of a review below 5, and the WhatsApp forms (their fields hidden without
 * JavaScript, the day and time buttons following aria-pressed). Since 2026-11-05: the ninth tile of
 * «TU CASO» («Ver todos los casos →») and the wait of the site chrome's floating WhatsApp link, which
 * never covers «Ver cuánto vale».
 */
body{margin:0;background:#10260C}
*{box-sizing:border-box}
a{color:#3A7A26}a:hover{color:#1B3D14}
input::placeholder{color:#5E7A53}
summary{list-style:none;cursor:pointer}
summary::-webkit-details-marker{display:none}
@keyframes inm-ltr{from{transform:translateX(-50%)}to{transform:translateX(0)}}
.inm-track{animation:inm-ltr 60s linear infinite}
.inm-track:hover,.inm-track:focus-within{animation-play-state:paused}
.inm-track:focus-visible{outline:3px solid currentColor;outline-offset:-3px}
@media (prefers-reduced-motion: reduce){.inm-track{animation:none}}
/* <picture> wrappers of the WebP versions: no box of their own, so the layout is the package's */
picture{display:contents}picture>source{display:none}
.cv-list{margin:16px 0 0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px}
.cv-list li{display:flex;gap:10px;align-items:flex-start;font-size:17px;line-height:1.4;font-weight:400}
.cv-ok{width:20px;height:20px;flex:none;margin-top:1px;border-radius:50%;background:#4C9D33;display:flex;align-items:center;justify-content:center}
.cv-stat{padding:18px 20px;background:#EEF6EA;border-radius:20px}
.cv-num{font-family:'Atkinson Hyperlegible Next','Atkinson Hyperlegible Next Fallback','Helvetica Neue',Arial,sans-serif;font-size:38px;line-height:1;font-weight:700}
.cv-lab{margin-top:8px;font-size:15px;font-weight:400;line-height:1.4;color:#4A5D43}
.cv-card{margin-top:16px;flex:1;display:flex;flex-direction:column;background:#FFFFFF;border:1px solid #D3E5CB;border-radius:20px;overflow:hidden}
.cv-img{display:block;width:100%;height:140px;object-fit:cover}
.cv-h3{margin:0;font-family:'Atkinson Hyperlegible Next','Atkinson Hyperlegible Next Fallback','Helvetica Neue',Arial,sans-serif;font-size:22px;line-height:1.2;font-weight:700}
.hx-callout{display:inline-flex;align-items:center;gap:10px;padding:7px 18px 7px 7px;border-radius:999px;background:#FFFFFF;border:1px solid #D3E5CB;color:#1B3D14;font-size:16px;font-weight:600}
.hx-callout-ico{width:28px;height:28px;flex:none;border-radius:50%;background:#4C9D33;display:flex;align-items:center;justify-content:center}
@media (max-width:600px){#valoracion form select{flex:1 1 100% !important}}
@media (max-width:420px){.hx-callout{font-size:13px;gap:8px;padding:6px 14px 6px 6px}.hx-callout-ico{width:24px;height:24px}}
.re-dato{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px 22px;background:#EEF6EA;border-radius:20px}
.re-num{font-size:40px;line-height:1;font-weight:800;color:#1B3D14}
.re-lab{font-size:15px;line-height:1.35;color:#4A5D43}
.re-estrellas{font-size:18px;letter-spacing:2px;color:#F2B01E;line-height:1}
/* The stars a review of fewer than 5 does not have (cards filled at serve time, src/site/google-reviews.ts) */
.re-estrella-vacia{color:#C7DDBE}
.re-g{font-size:14px;font-weight:700;color:#5E7A53}
.re-card{margin:0;padding:16px 18px;background:#FFFFFF;border:1px solid #D3E5CB;border-radius:16px;display:flex;flex-direction:column;gap:10px}
.re-texto{margin:0;flex:1;font-size:15px;line-height:1.45;color:#1B3D14}
.re-autor{display:flex;align-items:center;gap:10px;font-size:14px;line-height:1.3;color:#4A5D43}
.re-avatar{width:32px;height:32px;flex:none;border-radius:50%;background:#E9F2E5;color:#3A7A26;display:flex;align-items:center;justify-content:center;font-weight:700}

.hx-fondo{position:absolute;inset:0;pointer-events:none;overflow:hidden;background:#F6F4EE}
.hx-foto{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;animation:hx-cine 27s linear infinite}
/* Each photo is the only <img> of its <picture>: its place among the three is that of its <picture>. The
   package's delays (0, -18 s and -9 s) moved 1.35 s (the fade-in) earlier, so the cycle starts with the
   first photo, the one the package preloads, already shown, and not with the third one fading out */
.hx-fondo>picture:nth-of-type(1)>.hx-foto{opacity:1;transform-origin:30% 45%;animation-delay:-1.35s}
.hx-fondo>picture:nth-of-type(2)>.hx-foto{transform-origin:70% 50%;animation-delay:-19.35s}
.hx-fondo>picture:nth-of-type(3)>.hx-foto{transform-origin:50% 60%;animation-delay:-10.35s}
@keyframes hx-cine{0%{opacity:0;transform:scale(1.03)}5%{opacity:1}33.3%{opacity:1}38.3%{opacity:0;transform:scale(1.15)}100%{opacity:0;transform:scale(1.15)}}
/* The hero (APPROVALS.md 2026-11-18, option 5b; light «B» version the same day): a warm cream veil over the
   photos, dark green text, green only as accent. The headline across the whole width, the team asking
   «¿En qué te ayudamos?» and six cards that peek out of the photo into the white band below it */
.hx{position:relative;background:#F6F4EE;color:#1B3D14;overflow:hidden;border-bottom:1px solid #E6E2D6}
.hx a:focus-visible{outline:3px solid #4C9D33;outline-offset:3px}
.hx-tinte{position:absolute;inset:0;background:linear-gradient(180deg,rgba(246,244,238,0.90) 0%,rgba(246,244,238,0.86) 100%)}
.hx-dentro{position:relative;max-width:1240px;margin:0 auto;padding:44px clamp(20px,4vw,48px) 120px}
.hx-h1{margin:0;font-size:clamp(38px,4.8vw,68px);line-height:1.04;font-weight:800;letter-spacing:-0.025em;color:#1B3D14;text-wrap:balance}
.hx-kicker{display:block;margin:0 0 18px;font-size:17px;line-height:1.5;font-weight:400;letter-spacing:normal;text-wrap:wrap}
.hx-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.hx-verde{display:block;color:#3A7A26}
.hx-sub{margin:22px 0 0;max-width:760px;font-size:20px;line-height:1.5;color:#4A5D43;text-wrap:pretty}
.hx-equipo{margin-top:30px;padding-top:24px;border-top:1px solid #DDE6D6;display:flex;flex-wrap:wrap;align-items:center;gap:16px 22px}
.hx-caras{display:flex;flex:none}
.hx-caras img{display:block;width:60px;height:60px;border-radius:50%;border:3px solid #FFFFFF;object-fit:cover;background:#EEF6EA;box-shadow:0 4px 12px rgba(27,61,20,0.18)}
.hx-caras img+img{margin-left:-16px}
.hx-quien{min-width:0}
.hx-nombres{margin:0;font-size:16px;line-height:1.35;color:#4A5D43}
.hx-nombres strong{color:#1B3D14;font-weight:700}
.hx-pregunta{margin:2px 0 0;font-size:clamp(26px,2.6vw,34px);line-height:1.15;font-weight:800;color:#1B3D14}
.hx-google{margin-left:auto;display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 20px;border-radius:999px;background:#FFFFFF;border:1px solid #D3E5CB;color:#1B3D14;font-size:16px;text-decoration:none}
.hx-google strong{font-weight:800}
.hx-google:hover{background:#EEF6EA}
.hx-estrellas{color:#F2B01E;letter-spacing:1px}
.hx-ico{width:24px;height:24px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.hx-tareas{position:relative;z-index:2;margin-top:-92px}
.hx-tareas-dentro{max-width:1240px;margin:0 auto;padding:0 clamp(20px,4vw,48px)}
.hx-rejilla{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
.hx-tile{display:flex;flex-direction:column;gap:14px;height:100%;min-height:172px;padding:18px 18px 20px;background:#FFFFFF;border:1px solid #D3E5CB;border-radius:22px;box-shadow:0 10px 28px rgba(27,61,20,0.10);color:#1B3D14;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}
.hx-tile-cab{display:flex;align-items:flex-start;justify-content:space-between}
.hx-tile-ico{width:52px;height:52px;border-radius:16px;background:#EEF6EA;color:#3A7A26;display:flex;align-items:center;justify-content:center}
.hx-tile-ico .hx-ico{width:28px;height:28px}
.hx-tile-flecha{width:22px;height:22px;color:#3A7A26}
.hx-tile-txt{font-size:18px;line-height:1.25;font-weight:700;text-wrap:balance}
.hx-tile:hover{transform:translateY(-3px);border-color:#4C9D33;box-shadow:0 18px 40px rgba(27,61,20,0.18)}
.hx-tile:focus-visible{outline:3px solid #4C9D33;outline-offset:3px}
.hx-tile--destacada{background:#1B3D14;border-color:#1B3D14;color:#EEF6EA}
.hx-tile--destacada .hx-tile-ico{background:rgba(140,196,116,0.18);color:#8CC474}
.hx-tile--destacada .hx-tile-flecha{color:#8CC474}
.hx-tile--destacada:hover{border-color:#8CC474}
@media (prefers-reduced-motion: reduce){.hx-tile{transition:none}.hx-tile:hover{transform:none}}
.hx-otro{margin:18px 0 0;font-size:17px;color:#4A5D43}
.hx-otro a{display:inline-flex;align-items:center;gap:6px;min-height:48px;color:#2F6B20;font-weight:700;text-decoration:none}
.hx-otro a:hover{color:#1B3D14;text-decoration:underline;text-underline-offset:3px}
.hx-otro a:focus-visible{outline:3px solid #4C9D33;outline-offset:2px}
.hx-otro .hx-ico{width:18px;height:18px}
.hx-confianza{background:#FFFFFF}
.hx-confianza-dentro{max-width:1240px;margin:0 auto;padding:10px clamp(20px,4vw,48px) 30px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 28px;border-bottom:1px solid #D3E5CB}
.hx-api{margin:0;display:flex;align-items:flex-start;gap:10px;font-size:16px;line-height:1.4;color:#4A5D43}
.hx-api strong{color:#1B3D14}
.hx-api .hx-ico{width:20px;height:20px;margin-top:1px;color:#3A7A26}
@media (max-width:1100px){.hx-rejilla{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:860px){
.hx-tinte{background:rgba(246,244,238,0.92)}
.hx-dentro{padding-top:28px;padding-bottom:96px}
.hx-kicker{margin-bottom:16px}
.hx-sub{margin-top:14px}
.hx-equipo{padding-top:22px;gap:12px 16px}
.hx-caras img{width:50px;height:50px}
.hx-caras img+img{margin-left:-13px}
.hx-google{margin-left:0;padding:0 16px}
.hx-tareas{margin-top:-72px}
.hx-rejilla{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.hx-tile{min-height:136px;padding:14px 14px 16px;gap:12px;border-radius:20px}
.hx-tile-ico{width:44px;height:44px;border-radius:14px}
.hx-tile-ico .hx-ico{width:24px;height:24px}
.hx-tile-txt{font-size:17px}
.hx-confianza-dentro{padding-top:6px}
}
@media (max-width:640px){
.hx-sub{font-size:19px}
.hx-quien{flex:1 1 100%}
.hx-google{width:100%;justify-content:center}
}
@media (prefers-reduced-motion: reduce){.hx-foto{animation:none}.hx-fondo>picture:nth-of-type(1)>.hx-foto{opacity:1}}
/* Photos 2 and 3 wait for .hx-listo (public/assets/js/inicio.js, once the first photo is on screen);
   without JavaScript the first photo stays still, as with reduced motion */
.hx-fondo:not(.hx-listo)>picture:nth-of-type(n+2)>.hx-foto{display:none}
html:not(.js) .hx-foto{animation:none}
.re-track{animation-duration:90s}
/* About half the size of the cards of 2026-11-04 (Jose, 2026-11-18): narrower, smaller type, at most 4 lines of text */
.re-track .re-card{width:270px;flex:none}
.re-track .re-texto{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}
.re-track .re-estrellas{font-size:15px;letter-spacing:1px}
img{max-width:100%}
/* The WhatsApp forms (public/assets/js/whatsapp.js, docs/design/APPROVALS.md 2026-11-04): without
   JavaScript only their WhatsApp links show; the office card's day and time buttons look pressed when
   aria-pressed says so (the design writes both looks inline, one button each) */
html:not(.js) [data-wa-js]{display:none!important}
#contacto [data-wa-dias]>button,#contacto [data-wa-horas]>button{cursor:pointer}
#contacto [data-wa-dias]>button[aria-pressed="false"],#contacto [data-wa-horas]>button[aria-pressed="false"]{border-color:#C7DDBE!important;background:#FFFFFF!important;color:#1B3D14!important;font-weight:400!important}
#contacto [data-wa-dias]>button[aria-pressed="true"],#contacto [data-wa-horas]>button[aria-pressed="true"]{border-color:#1B3D14!important;background:#1B3D14!important;color:#EEF6EA!important;font-weight:700!important}
/* «TU CASO» (#casos, docs/design/APPROVALS.md 2026-11-05): the ninth tile «Ver todos los casos →» (/casos)
   leaves no cell empty. The grid has 3 columns from 1060 px of its own width (3 × 340 px + 2 gaps of
   20 px), 2 from 700 px (2 × 340 + 20) and 1 below: nine items fill 3 rows of 3 or stack one per row, and
   with 2 columns the tile takes the whole last row. The grid's own width decides (container query), so
   neither the scrollbar nor the padding can move the thresholds */
.tc-rejilla{container-type:inline-size}
@container (700px <= width < 1060px){.tc-todos{grid-column:1/-1}}
/* The floating WhatsApp link of the site chrome never covers «Ver cuánto vale» (public/assets/js/inicio.js,
   APPROVALS.md 2026-11-05). Until the script's first decision it waits hidden (site-chrome.css,
   --sc-float-wait) wherever it could cover the button: below 260 px of width at any height (there the
   button ends lower, 992 px from the top of the page at 240 px), from 260 to 767 px up to 1023 px of height
   (at most 919 px) and up to 1534 px of width up to 767 px (at most 640 px; the link takes the last 80 px of
   the window, plus 8 px of margin). Since 2026-11-15 the link carries Naiara's face and «¿En qué te puedo
   ayudar?» (about 295 px wide instead of 153): measured again with and without the web fonts, from 1514 px of
   layout width it is always to the right of the hero form, and the 21 px more leave room for a classic
   scrollbar (17 px) and for other fonts. At most 10 s: on a
   slow connection the deferred script can run seconds after the first paint, and if it never runs the link
   shows as before. Without JavaScript (no .js) it shows as before. Since 2026-11-18 the link also hides
   while the hero's team row is in the window, and that row is in the first screen at every size: the wait
   applies at every size */
@keyframes inm-flotante-espera{from,to{visibility:hidden}}
html.js{--sc-float-wait:inm-flotante-espera 10s}
/* «TU CASO» (APPROVALS.md 2026-11-15): «Ver el caso →» is a dark pill (#1B3D14, white text, 12.2:1). On hover and
   focus it turns a lighter green (#2F6B20, 6.5:1; the inline background needs !important), with a 3 px ring on focus */
.tc-caso .tc-enlace:hover,.tc-caso .tc-enlace:focus-visible{background:#2F6B20!important}
.tc-caso .tc-enlace:focus-visible{outline:3px solid #4C9D33;outline-offset:3px}
/* «Lo que más nos preguntan»: closed by default since 2026-11-18 (APPROVALS.md); the answers stay in the HTML, so
   search engines and AI still read them and they stay marked as FAQPage. The + of an open question turns into a × */
details[open]>summary>span[aria-hidden="true"]{display:inline-block;transform:rotate(45deg)}
