/* Berlangieri – Fugazot: estilos propios sobre el sistema del kit (assets/system.css). */

/* ---------- 1. Layout flexible: ninguna sección tiene altura fija ----------
   El kit fija cada sección a la altura de la pantalla; en notebooks bajas (1280x720, 1366x768) el
   contenido se pisaba. Aquí cada sección crece con lo que tiene adentro. */
:root { --nav: 84px; --nav-h: 84px; }
@media (max-width: 639px) { :root { --nav: 64px; --nav-h: 64px; } }
main > :is(section, .section):not(.hero), footer.closing {
  height: auto !important; min-height: 0 !important;
  padding: clamp(72px, 9vw, 128px) 0 clamp(72px, 9vw, 128px);
}
main > :is(section, .section):not(.hero) > .wrap, footer.closing > .wrap { height: auto !important; }
main > .hero { height: auto !important; min-height: 100vh; min-height: 100svh; }
main > .hero { display: flex; flex-direction: column; justify-content: center; }
main > .hero > .wrap { height: auto; }
.hero--photo .hero__text { height: auto; align-self: start; }
section[id], footer[id] { scroll-margin-top: calc(var(--nav) - 1px); }
.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-5) var(--gutter); align-items: end; }
.section-head--split > p { color: var(--muted); max-width: 46ch; }
@media (max-width: 1023px) { .section-head--split { grid-template-columns: 1fr; } }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; font-weight: 600; margin-bottom: var(--s-3); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- 2. Barra de navegación ---------- */
.nav { height: var(--nav); background: rgb(248 244 240 / .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: height .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s, background .35s; }
.nav.is-scrolled { height: 68px; background: rgb(248 244 240 / .94); border-bottom-color: var(--line); box-shadow: 0 10px 30px -18px rgb(43 34 36 / .35); }
.nav__logo--img img { height: 50px; width: auto; display: block; transition: height .35s cubic-bezier(.2,.8,.2,1), transform .35s; }
.nav.is-scrolled .nav__logo--img img { height: 40px; }
.nav__logo--img:hover img { transform: translateY(-1px); }
.nav__link { position: relative; font-weight: 500; }
.nav__links > .nav__item > .nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.nav__links > .nav__item > .nav__link:hover::after, .nav__links > .nav__item > .nav__link.is-current::after { transform: scaleX(1); }
.nav__links > .nav__item > .nav__link.is-current { color: var(--accent); }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; color: var(--ink); padding: 8px 4px; white-space: nowrap; }
.nav__phone svg { width: 18px; height: 18px; color: var(--accent); }
.nav__phone:hover { color: var(--accent); }
.nav__actions .btn { box-shadow: 0 8px 20px -12px rgb(140 93 95 / .9); }
@media (max-width: 1279px) { .nav__phone span { display: none; } }
@media (max-width: 1023px) {
  header.nav .nav__bar > .nav__actions { display: none; }
  header.nav.is-open .nav__bar > .nav__actions { display: grid; }
  header.nav.is-open .nav__phone { justify-content: center; }
  header.nav.is-open .nav__phone span { display: inline; }
  header.nav:not(.is-open) .nav__bar > .nav__toggle { margin-left: auto; }
  .nav__logo--img img, .nav.is-scrolled .nav__logo--img img { height: 40px; }
}
@media (max-width: 639px) { .nav__logo--img img, .nav.is-scrolled .nav__logo--img img { height: 34px; } .nav.is-scrolled { height: var(--nav); } }

/* ---------- 3. Hero con video ---------- */
.hero--video { overflow: hidden; }
.hero--video > video.hero__bg { object-fit: cover; }
.hero__kicker { color: var(--accent); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; font-size: 12px; }
.video-toggle { position: absolute; right: max(16px, calc((100vw - var(--wrap, 1200px)) / 2)); bottom: 100px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .5); background: rgb(20 16 17 / .45);
  color: #fff; display: grid; place-items: center; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, transform .2s; }
.video-toggle:hover { background: rgb(20 16 17 / .7); transform: scale(1.05); }
.video-toggle svg { width: 16px; height: 16px; }
.video-toggle .i-play { display: none; }
.video-toggle[aria-pressed="true"] .i-play { display: block; }
.video-toggle[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 1023px) { .video-toggle { top: calc(var(--nav) + min(56vw, 46svh) - 60px); bottom: auto; right: 16px; } .hero__kicker { display: none; } }
@media (max-width: 639px) { .hero--photo h1 { font-size: 40px; line-height: 1.05; } .hero__lead { font-size: 16px; } }

/* ---------- 4. El estudio ---------- */
.facts-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); margin-top: var(--s-6); }
.facts-row dt { font-size: var(--t-small); color: var(--muted); }
.facts-row dd { margin: var(--s-1) 0 0; font-weight: 500; }
@media (max-width: 639px) { .facts-row { grid-template-columns: 1fr; } }
.founders { aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; margin: 0; }
.founders img { width: 100%; height: 100%; object-fit: cover; filter: sepia(.25) saturate(.9); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.founders:hover img { transform: scale(1.03); }
.founders__line { margin-top: var(--s-4); max-width: 46ch; color: var(--ink); opacity: .82; }
@media (max-width: 1023px) { #estudio .span-6.start-7 { margin-top: var(--s-7); } }

/* ---------- 5. Trayectoria (frase que se ilumina) ---------- */
#trayectoria { background: var(--surface); }
#trayectoria > .wrap { display: grid; gap: var(--s-5); }
#trayectoria .mo-wh__text { max-width: 26ch; font-size: clamp(32px, 4.4vw, 64px); line-height: 1.1; }
#trayectoria .t-label { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: 12px; }

/* ---------- 6. Servicios ---------- */
.svc-grid { row-gap: var(--gutter); }
.svc { display: grid; grid-template-rows: auto 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -30px rgb(43 34 36 / .45); }
.svc__media { aspect-ratio: 16 / 9; overflow: hidden; }
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.svc:hover .svc__media img { transform: scale(1.04); }
.svc__body { padding: clamp(24px, 3vw, 36px); display: grid; gap: var(--s-3); align-content: start; }
.svc__n, .area__n { font: 400 15px/1 var(--font-text); color: var(--accent); letter-spacing: .1em; }
.svc h3, .area h3 { font: var(--display-weight) clamp(26px, 2.4vw, 34px)/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
.svc p { max-width: 62ch; }
.svc__people { color: var(--muted); font-size: var(--t-small); padding-top: var(--s-3); border-top: 1px solid var(--line); }
@media (max-width: 767px) { .svc-grid > .svc { grid-column: 1 / -1; } }
@media (min-width: 768px) and (max-width: 1023px) { .svc-grid > .svc { grid-column: span 6; } }

.areas { row-gap: var(--s-7); }
.area { display: grid; gap: var(--s-3); padding-top: var(--s-5); border-top: 1px solid var(--line-strong, var(--line)); align-content: start; }
.area p, .area li { max-width: 62ch; }
.area__list { display: grid; gap: var(--s-3); padding: 0; margin: 0; list-style: none; }
.area__list b { font-weight: 600; }
@media (max-width: 1023px) { .areas > .area { grid-column: 1 / -1; } }

/* ---------- 7. Equipo ---------- */
.team { row-gap: var(--s-7); }
.tile--square { --tile-ratio: 4 / 3; }
.team .tile__head h3 { font: var(--display-weight) clamp(24px, 2.2vw, 30px)/1.15 var(--font-display); letter-spacing: var(--display-tracking); }
.team .tile__facts { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; margin-top: calc(-1 * var(--s-3)); }
.team .tile__media img { transition: transform 700ms cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) and (pointer: fine) { .team .tile:hover .tile__media img { transform: scale(1.04); } }
.founders-card__media { aspect-ratio: 4 / 3; display: grid; place-items: center; background: var(--surface); }
.founders-card__year { font: 400 clamp(72px, 9vw, 140px)/1 var(--font-display); color: var(--accent); letter-spacing: -0.02em; }
.team__more { margin-top: var(--s-7); padding-top: var(--s-4); border-top: 1px solid var(--line); }
@media (max-width: 1023px) { .team > .tile { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 1023px) { .team > .tile { grid-column: span 6; } .team > .founders-card { grid-column: 1 / -1; } }

/* ---------- 8. Clientes: carrusel infinito (se arma solo con cualquier cantidad de logos) ---------- */
#clientes { background: var(--surface); overflow: hidden; }
.marquee { --gap: 20px; --tile-w: 220px; --tile-h: 140px; position: relative; overflow: hidden; padding-block: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .clients { display: flex; gap: var(--gap); width: max-content; padding: 0; margin: 0; list-style: none; }
.marquee.is-running .clients { animation: marquee var(--dur, 40s) linear infinite; }
.marquee:hover .clients, .marquee:focus-within .clients { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-1 * var(--shift, 50%))); } }
.clients li { flex: none; width: var(--tile-w); height: var(--tile-h); background: #fff; border-radius: var(--r-lg); display: grid; place-items: center; padding: 22px;
  border: 1px solid var(--line); box-shadow: 0 1px 0 rgb(43 34 36 / .04); transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s, border-color .4s; }
.clients img { width: 100%; height: 100%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .7; transition: filter .5s, opacity .5s, transform .5s cubic-bezier(.2,.8,.2,1); }
.clients li:hover { transform: translateY(-4px); border-color: rgb(140 93 95 / .35); box-shadow: 0 18px 36px -20px rgb(43 34 36 / .45); }
.clients li:hover img { filter: none; opacity: 1; transform: scale(1.05); }
@media (max-width: 639px) { .marquee { --tile-w: 160px; --tile-h: 104px; --gap: 12px; } .clients img { filter: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee .clients { flex-wrap: wrap; width: auto; justify-content: center; padding-inline: var(--gut); }
  .marquee.is-running .clients { animation: none; }
}

/* ---------- 9. Contacto ---------- */
.contact-list { list-style: none; padding: 0; margin: var(--s-4) 0 0; display: grid; gap: var(--s-4); }
.contact-list li { display: grid; gap: 2px; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.contact-list li > :last-child { font-size: 20px; }
.contact-wa { display: grid; gap: 4px; }
.contact-form { background: var(--surface); padding: 40px; border-radius: var(--r-lg); }
@media (max-width: 639px) { .contact-form { padding: 24px; } }
@media (max-width: 1023px) { #contacto .span-6.start-7 { margin-top: var(--s-7); } }
.contact-form select, .contact-form textarea { width: 100%; }
.contact-form .field:has(textarea), .contact-form .field--full { grid-column: 1 / -1; }
.contact-form .t-small.muted { color: var(--ink); opacity: .82; }
.btn--wa { gap: 10px; }
.btn--wa .wa-glyph { width: 20px; height: 20px; }

/* ---------- 10. Cierre y pie ---------- */
footer .close__media { height: clamp(200px, 26vw, 380px); border-radius: var(--r-lg); overflow: hidden; margin-block: var(--s-6) var(--s-7); }
footer .close__media img { width: 100%; height: 100%; object-fit: cover; }
.footer__logo { height: 44px; width: auto; display: block; margin-bottom: var(--s-5); }

/* ---------- 11. Entradas al hacer scroll (solo si hay JS; sin JS todo queda visible) ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0ms); }
.js-reveal .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 12. WhatsApp flotante con dos contactos ---------- */
.wa-float { position: fixed; right: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 12px;
  opacity: 0; transform: translateY(16px) scale(.9); animation: wa-in .6s cubic-bezier(.2,.8,.2,1) 1.2s forwards; }
.wa-float__btn { position: relative; width: 60px; height: 60px; border: 0; padding: 0; cursor: pointer; border-radius: 50%; background: #25d366; display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgb(37 211 102 / .7), 0 2px 6px rgb(0 0 0 / .15); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.wa-float__btn svg { width: 32px; height: 32px; }
.wa-float__btn::before, .wa-float__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; opacity: 0; animation: wa-pulse 3s ease-out 2s infinite; }
.wa-float__btn::after { animation-delay: 3.5s; }
.wa-float__btn:hover { transform: scale(1.08); }
.wa-float__btn:active { transform: scale(.96); }
.wa-float__btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.wa-float__tip { background: #fff; color: #1b1b1b; font: 500 14px/1 var(--font-text); padding: 12px 16px; border-radius: 999px;
  box-shadow: 0 8px 24px -10px rgb(0 0 0 / .35); white-space: nowrap; opacity: 0; transform: translateX(8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.wa-float.is-hint .wa-float__tip { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .wa-float:not(.is-open):hover .wa-float__tip { opacity: 1; transform: none; } }
.wa-float.is-open .wa-float__tip { display: none; }
.wa-panel { position: absolute; right: 0; bottom: 76px; width: 300px; background: #fff; color: #1b1b1b; border-radius: 18px; padding: 14px;
  box-shadow: 0 22px 50px -18px rgb(0 0 0 / .4), 0 2px 8px rgb(0 0 0 / .08); transform-origin: bottom right; animation: wa-pop .25s cubic-bezier(.2,.8,.2,1); }
.wa-panel[hidden] { display: none; }
.wa-panel__title { font: 500 13px/1.3 var(--font-text); color: #555; padding: 4px 8px 10px; margin: 0; }
.wa-panel__item { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 12px; text-decoration: none; color: inherit; transition: background .2s; min-height: 44px; }
.wa-panel__item:hover, .wa-panel__item:focus-visible { background: #f0faf3; }
.wa-panel__item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 25%; flex: none; }
.wa-panel__item b { display: block; font: 600 15px/1.25 var(--font-text); }
.wa-panel__item small { display: block; font: 400 13px/1.3 var(--font-text); color: #2a8a50; }
@keyframes wa-in { to { opacity: 1; transform: none; } }
@keyframes wa-pulse { 0% { opacity: .6; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.6); } }
@keyframes wa-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@media (max-width: 639px) {
  .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); }
  .wa-float__btn { width: 56px; height: 56px; }
  .wa-float__tip { display: none; }
  .wa-panel { width: min(300px, calc(100vw - 32px)); bottom: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-float { animation: none; opacity: 1; transform: none; }
  .wa-float__btn::before, .wa-float__btn::after, .wa-panel { animation: none; }
}

/* hero: el titular se ajusta también a la ALTURA de la pantalla (notebooks bajas) */
@media (min-width: 640px) {
  .hero--photo h1 { font-size: clamp(44px, min(5.6vw, 9.2vh), 88px); line-height: 1.02; }
  .hero--photo .hero__lead { font-size: clamp(16px, min(1.45vw, 2.6vh), 20px); }
  .hero--photo .hero__text { width: min(640px, 100%); }
}
/* logo con más presencia */
:root { --nav: 92px; --nav-h: 92px; }
.nav__logo--img img { height: 60px; }
.nav.is-scrolled { height: 74px; }
.nav.is-scrolled .nav__logo--img img { height: 48px; }
@media (max-width: 1023px) { :root { --nav: 72px; --nav-h: 72px; } .nav__logo--img img, .nav.is-scrolled .nav__logo--img img { height: 44px; } }
@media (max-width: 639px) { :root { --nav: 64px; --nav-h: 64px; } .nav__logo--img img, .nav.is-scrolled .nav__logo--img img { height: 38px; } }

/* ---------- ronda 6 ---------- */
/* foto de fundadores restaurada: sin filtro sepia */
.founders img { filter: none; }

/* equipo: dos personas, más grandes */
.team > .tile--square { --tile-ratio: 4 / 3; }
.team .tile__media img { object-position: 50% 28%; }
@media (min-width: 640px) and (max-width: 1023px) { .team > .tile { grid-column: span 6; } }

/* carrusel: el logo entero dentro de la tarjeta, nunca recortado */
.clients li { position: relative; overflow: hidden; padding: 0; }
.clients li img { position: absolute; inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); object-fit: contain; object-position: center; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
  .marquee .clients { flex-wrap: nowrap; width: max-content; padding-inline: 0; }
  .marquee.is-running .clients { animation: marquee var(--dur, 40s) linear infinite; }
}

/* mapa de Google en el cierre */
.close__map { position: relative; height: clamp(280px, 34vw, 440px); background: var(--surface); }
.close__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map-cta { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; min-height: 44px;
  background: var(--p-action); color: var(--p-action-ink); border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 10px 24px -10px rgb(43 34 36 / .6); transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.map-cta:hover { transform: translateY(-2px); }
.map-cta svg { width: 18px; height: 18px; }
footer .close__media.close__map { height: clamp(320px, 36vw, 460px) !important; flex: none; }
@media (max-width: 639px) { footer .close__media.close__map { height: 360px !important; } }

/* Windows con "animaciones desactivadas": el kit congela TODAS las animaciones (system.css, reduced-motion).
   El cliente pidió que el carrusel y el WhatsApp se muevan igual, así que se restauran solo estos. */
@media (prefers-reduced-motion: reduce) {
  .marquee.is-running .clients { animation-duration: var(--dur, 40s) !important; animation-iteration-count: infinite !important; }
  .marquee .clients li, .marquee .clients li img { transition-duration: .4s !important; }
  .wa-float .wa-float__btn::before, .wa-float .wa-float__btn::after { animation: wa-pulse 3s ease-out 2s infinite !important; }
  .wa-float .wa-float__btn::after { animation-delay: 3.5s !important; }
}

/* ---------- 13. Menú móvil (rediseño) ----------
   Causa del menú cortado: backdrop-filter en .nav convierte la barra en el "contenedor" de todo lo fijo de
   adentro, así que la hoja del menú quedaba encerrada en los 64px de la barra. El vidrio pasa a un ::before. */
.nav { background: transparent !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(248 244 240 / .86);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); transition: background .35s; }
.nav.is-scrolled::before { background: rgb(248 244 240 / .94); }
.nav__toggle .i-close { display: none; }
.nav__quick { display: none; }

@media (max-width: 1023px) {
  .nav.is-open::before { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav.is-open { box-shadow: none; border-bottom-color: var(--line); }
  .nav.is-open .nav__toggle .i-menu { display: none; }
  .nav.is-open .nav__toggle .i-close { display: block; }
  .nav__toggle { border-radius: 999px; transition: background .2s, transform .2s; }
  .nav__toggle:active { transform: scale(.94); }
  .nav.is-open .nav__toggle { background: var(--ink); color: var(--bg); border-color: var(--ink); }

  /* la hoja: pantalla completa debajo de la barra, con su propio scroll */
  .nav.is-open .nav__links {
    position: fixed; top: var(--nav); left: 0; right: 0; bottom: 0; height: auto; z-index: 50;
    display: flex; flex-direction: column; gap: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    padding: var(--s-5) var(--gut) calc(220px + env(safe-area-inset-bottom)); background: var(--bg);
    animation: sheet-in .35s cubic-bezier(.2,.8,.2,1);
  }
  .nav.is-open .nav__item { display: block; border-bottom: 1px solid var(--line); counter-increment: navn;
    opacity: 0; transform: translateY(12px); animation: item-in .45s cubic-bezier(.2,.8,.2,1) forwards; }
  .nav.is-open .nav__item:nth-child(1) { animation-delay: .05s; } .nav.is-open .nav__item:nth-child(2) { animation-delay: .1s; }
  .nav.is-open .nav__item:nth-child(3) { animation-delay: .15s; } .nav.is-open .nav__item:nth-child(4) { animation-delay: .2s; }
  .nav.is-open .nav__item:nth-child(5) { animation-delay: .25s; }
  .nav.is-open .nav__links { counter-reset: navn; }
  .nav.is-open .nav__link { display: flex; align-items: center; gap: 14px; height: 68px; padding: 0; font: 400 32px/1 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
  .nav.is-open .nav__link::before { content: counter(navn, decimal-leading-zero); display: inline; position: static; width: auto; height: auto; background: none;
    font: 500 12px/1 var(--font-text); letter-spacing: .1em; color: var(--accent); transform: none; }
  .nav.is-open .nav__link::after { display: none; }
  .nav.is-open .nav__link.is-current { color: var(--accent); }
  /* sin submenú en el celular: "Servicios" va directo a la sección */
  .nav.is-open .nav__menu, .nav.is-open .nav__expand, .nav.is-open .chev { display: none !important; }

  /* pie fijo de la hoja: botón principal + contacto rápido */
  .nav.is-open .nav__bar > .nav__actions {
    display: grid; gap: 12px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 51;
    padding: 16px var(--gut) calc(16px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line);
    box-shadow: 0 -12px 30px -20px rgb(43 34 36 / .35); animation: foot-in .4s cubic-bezier(.2,.8,.2,1) .1s both;
  }
  .nav.is-open .nav__actions .btn { width: 100%; height: 52px; font-size: 17px; }
  .nav.is-open .nav__actions .nav__phone { display: none; }
  .nav.is-open .nav__quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nav__quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; border-radius: 14px;
    background: var(--surface); color: var(--ink); font-weight: 500; font-size: 14px; text-decoration: none; transition: transform .2s, background .2s; }
  .nav__quick a:active { transform: scale(.96); background: #e8ddd5; }
  .nav__quick-ic { width: 22px; height: 22px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
  .nav__quick-ic--wa { color: #1fae55; --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3C8.8 3 3 8.8 3 16c0 2.3.6 4.5 1.7 6.5L3 29l6.7-1.8A13 13 0 0 0 16 29c7.2 0 13-5.8 13-13S23.2 3 16 3Zm6 18.7c-.3.8-1.6 1.5-2.2 1.6-.6.1-1.3.1-2-.1-.5-.2-1.1-.4-1.8-.7-3.3-1.4-5.4-4.7-5.5-4.9-.2-.2-1.3-1.8-1.3-3.3 0-1.6.8-2.4 1.1-2.7.3-.3.6-.4.9-.4h.6c.2 0 .5-.1.7.6.3.7.9 2.3 1 2.4.1.2.1.4 0 .6-.1.2-.2.4-.3.5l-.5.6c-.2.2-.3.3-.1.7.2.3.8 1.4 1.8 2.2 1.2 1.1 2.3 1.4 2.6 1.6.3.2.5.1.7-.1.2-.2.8-1 1-1.3.2-.3.4-.3.7-.2.3.1 1.9.9 2.2 1.1.3.2.5.2.6.4.1.1.1.8-.2 1.5Z'/%3E%3C/svg%3E"); }
  .nav__quick-ic--tel { color: var(--accent); --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6.6 2.5 8.4 6a1 1 0 0 1-.2 1.2L6.9 8.4a10.5 10.5 0 0 0 4.7 4.7l1.2-1.3a1 1 0 0 1 1.2-.2l3.5 1.8a1 1 0 0 1 .5 1.1l-.6 2.6a1 1 0 0 1-1 .8C9 17.9 2.1 11 2.1 3.6a1 1 0 0 1 .8-1l2.6-.6a1 1 0 0 1 1.1.5Z'/%3E%3C/svg%3E"); }
  /* con el menú abierto, el botón flotante de WhatsApp se oculta (ya está en el menú) */
  body.nav-locked .wa-float { opacity: 0 !important; pointer-events: none; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } }
@keyframes item-in { to { opacity: 1; transform: none; } }
@keyframes foot-in { from { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) {
  .nav.is-open .nav__item { opacity: 1 !important; transform: none !important; }
}
