/* Componentes reutilizables: tipografía de sección, botones, header, menú móvil,
   botón flotante de WhatsApp, utilidades y animaciones de entrada. */
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.15; color: var(--ink); }
.lead { font-size: 16.5px; line-height: 1.7; }
.sec-h { display: flex; flex-direction: column; gap: 14px; max-width: 600px; }
.sec-h.center { align-items: center; text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font: 500 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.btn-lg { min-height: 52px; padding: 0 30px; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-line { border-color: var(--ink); color: var(--ink); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn-dark:hover { background: #3A332E; }
  .btn-line:hover { background: var(--ink); color: var(--bg); }
}
.btn:active { transform: scale(.98); }

/* ---------- Header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid transparent; transition: border-color .3s; }
.hdr-in { height: var(--hdr-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 64px; width: auto; }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; color: var(--ink); text-decoration: none; font-size: 14.5px; padding: 10px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hdr-cta { min-height: 44px; padding: 0 22px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }
.burger .ic { width: 22px; height: 22px; }

/* ---------- Mobile menu (popover) ---------- */
.menu {
  position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 14px 20px 28px; border: 0; background: var(--bg); color: var(--ink);
  flex-direction: column; opacity: 0; transform: translateY(-10px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-out), overlay .45s allow-discrete, display .45s allow-discrete;
}
.menu:popover-open { display: flex; opacity: 1; transform: none; }
@starting-style { .menu:popover-open { opacity: 0; transform: translateY(-10px); } }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 60px; margin-bottom: 24px; }
.menu-top img { height: 56px; width: auto; }
.menu .burger { display: inline-flex; }
.mi {
  font-family: var(--serif); font-size: 30px; line-height: 1.2; color: var(--ink); text-decoration: none;
  padding: 16px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s var(--ease), transform .55s var(--ease-out); transition-delay: calc(var(--i, 0) * 50ms + 60ms);
}
.mi-cta { margin-top: auto; width: 100%; }
.menu:popover-open .mi { opacity: 1; transform: none; }
@starting-style { .menu:popover-open .mi { opacity: 0; transform: translateY(12px); } }

/* ---------- Floating WhatsApp ---------- */
.fab { position: fixed; right: 24px; bottom: 24px; z-index: 50; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #FFFFFF; box-shadow: 0 8px 20px rgba(0, 0, 0, .18); transition: transform .35s var(--ease); }
.fab svg { width: 32px; height: 32px; }
.fab:hover { transform: scale(1.08); }

/* ---------- Utilidades ----------
   Retrasos escalonados de animación (--d en el hero, --i en el resto). Reemplazan
   los style="" en línea, que la CSP (_headers) no permite. */
.d-1 { --d: 1; } .d-2 { --d: 2; } .d-3 { --d: 3; } .d-4 { --d: 4; } .d-5 { --d: 5; }
.i-1 { --i: 1; } .i-2 { --i: 2; } .i-3 { --i: 3; } .i-4 { --i: 4; } .i-5 { --i: 5; }
.self-start { align-self: flex-start; }
.sprite { position: absolute; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* ==========================================================================
   Animaciones de entrada al hacer scroll
   Navegadores con animation-timeline: solo CSS. Resto: js/main.js agrega la
   clase .js y usa IntersectionObserver (.is-in).
   ========================================================================== */
.js .reveal { opacity: 0; transform: translate3d(0, 28px, 0); }
.js .reveal-img { opacity: 0; clip-path: inset(10% 6% 10% 6% round var(--r-lg)); }
.js .reveal, .js .reveal-img { transition: opacity .9s var(--ease), transform 1s var(--ease-out), clip-path 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in, .js .reveal-img.is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round var(--r-lg)); }
.js .collage .c1.is-in { transform: rotate(-4deg); }
.js .collage .c2.is-in { transform: rotate(5deg); }

@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry calc(var(--i, 0) * 6%) entry calc(75% + var(--i, 0) * 6%); }
  .reveal-img { animation: revealImg linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  .collage .c1 { animation-name: revealC1; }
  .collage .c2 { animation-name: revealC2; }
  .hdr { animation: hdrLine linear both; animation-timeline: scroll(root block); animation-range: 0 80px; }
}

@keyframes fadeUp { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(100% 0 0 0 round var(--r-lg)); } to { clip-path: inset(0 0 0 0 round var(--r-lg)); } }
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes reveal { from { opacity: 0; transform: translate3d(0, 28px, 0); animation-timing-function: var(--ease-out); } to { opacity: 1; transform: none; } }
@keyframes revealImg { from { opacity: 0; clip-path: inset(10% 6% 10% 6% round var(--r-lg)); animation-timing-function: var(--ease-out); } to { opacity: 1; clip-path: inset(0 0 0 0 round var(--r-lg)); } }
@keyframes revealC1 { from { opacity: 0; transform: translateY(40px) rotate(0deg); animation-timing-function: var(--ease-out); } to { opacity: 1; transform: rotate(-4deg); } }
@keyframes revealC2 { from { opacity: 0; transform: translateY(60px) rotate(0deg); animation-timing-function: var(--ease-out); } to { opacity: 1; transform: rotate(5deg); } }
@keyframes hdrLine { to { border-bottom-color: var(--line); } }
