/* ============================================================
   WAY Studio — Landing
   Paleta: LIGHT MODE (blanco + grises de marca)
   Marca: Blue #2064B6 · Aqua/Green #6DCCC3 · gradiente Aqua→Blue
   Fuentes: Sora (display) · DM Sans (texto)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f4f6f8;
  --card: #ffffff;
  --card-2: #f7f9fb;
  --line: rgba(14, 17, 22, 0.08);
  --line-2: #dae1e7;

  --text: #0e1116;
  --muted: #5a6470;
  --muted-2: #8a929c;

  --brand-1: #2064b6;   /* azul */
  --brand-2: #3fa9c9;   /* azul-cian */
  --brand-3: #6dccc3;   /* aqua / verde */
  --grad: linear-gradient(115deg, #2064b6 0%, #3fa9c9 55%, #6dccc3 100%);
  --grad-btn: linear-gradient(115deg, #1e5ca8 0%, #2e86b8 100%); /* más azul: texto blanco legible */
  --grad-soft: linear-gradient(115deg, rgba(32, 100, 182, 0.12), rgba(109, 204, 195, 0.12));

  --shadow-sm: 0 8px 24px -14px rgba(20, 40, 80, 0.22);
  --shadow-md: 0 20px 44px -24px rgba(20, 40, 80, 0.28);

  --radius: 18px;
  --radius-sm: 12px;
  --pill: 999px;

  --container: 1240px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--brand-3); color: #04121a; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem); }

/* ---------- Grain (muy sutil en claro) ---------- */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  opacity: 0.025; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografía / helpers ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.06; letter-spacing: -0.02em; }
.grad {
  font-style: normal;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.24em;
  color: var(--brand-1);
  margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brand-1); opacity: 0.5; }
.section-title {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.4rem);
  max-width: 20ch;
}
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--split {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: 1.5rem;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 600; font-size: 0.98rem;
  padding: 0.95rem 1.6rem; border-radius: var(--pill);
  white-space: nowrap; position: relative;
  transition: transform 0.25s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.btn i { font-size: 1.1em; transition: transform 0.3s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary { background: var(--grad-btn); color: #fff; box-shadow: 0 12px 30px -10px rgba(32, 100, 182, 0.55); }
.btn--primary:hover { box-shadow: 0 18px 42px -12px rgba(32, 100, 182, 0.7); transform: translateY(-2px); }
.btn--primary:hover i { transform: translate(2px, -2px); }

.btn--ghost { border: 1px solid var(--line-2); color: var(--text); background: #fff; }
.btn--ghost:hover { border-color: var(--brand-1); color: var(--brand-1); background: rgba(32, 100, 182, 0.05); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: 0.9rem; }
.btn--lg { padding: 1.15rem 2.1rem; font-size: 1.08rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-display); font-weight: 600; color: var(--text);
  margin-top: 0.6rem; width: fit-content;
  border-bottom: 1px solid var(--line-2); padding-bottom: 4px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), gap 0.3s var(--ease);
}
.link-arrow:hover { color: var(--brand-1); border-color: var(--brand-1); gap: 0.85rem; }

/* ---------- Brand wordmark ---------- */
.brand__mark {
  font-family: var(--font-display); font-weight: 800; font-size: 1.55rem;
  letter-spacing: -0.03em; display: inline-flex; align-items: center; line-height: 1;
}
.brand__slash {
  width: 0.42em; height: 1.05em; margin: 0 -0.04em;
  background: var(--grad);
  transform: skewX(-14deg);
  display: inline-block;
}
.brand__dot { color: var(--brand-1); }
.brand__mark--lg { font-size: 2.4rem; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { display: block; width: 100px; height: auto; }
.footer__logo { display: block; width: 72px; height: 72px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  height: 72px; display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.5rem);
}
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links > a:not(.btn) {
  font-family: var(--font-display); font-weight: 500; font-size: 0.96rem; color: var(--muted);
  position: relative; transition: color 0.25s var(--ease);
}
.nav__links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 1.5px;
  background: var(--grad); transition: width 0.3s var(--ease);
}
.nav__links > a:not(.btn):hover { color: var(--text); }
.nav__links > a:not(.btn):hover::after { width: 100%; }

.nav__links { margin-left: auto; }
.lang-switch {
  display: inline-flex; align-items: center; margin-left: 1.4rem; padding: 3px;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, 0.6);
}
.lang-switch a {
  font-family: var(--font-display); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.06em;
  padding: 0.38rem 0.7rem; border-radius: 999px; color: var(--muted); line-height: 1;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
.lang-switch a:hover { color: var(--text); }
.lang-switch a[aria-current="page"] { background: var(--text); color: var(--bg); }

.nav__toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); position: relative; }
.nav__toggle span { position: absolute; left: 11px; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav__toggle span:nth-child(1) { top: 16px; }
.nav__toggle span:nth-child(2) { top: 24px; }
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(7rem, 12vh, 9rem); padding-bottom: clamp(3rem, 6vh, 5rem);
  min-height: 100dvh; display: flex; align-items: center; overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f4f6f8 52%, #e9edf1 100%);
}
/* iluminación ambiental superior-izquierda */
.hero::before {
  content: ""; position: absolute; top: -20%; left: -10%; width: 55vw; height: 55vw;
  max-width: 780px; max-height: 780px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 65%);
}
.hero__glow {
  position: absolute; top: -6%; right: -4%; width: 58vw; height: 58vw; max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(32, 100, 182, 0.14), rgba(109, 204, 195, 0.10) 42%, transparent 70%);
  filter: blur(28px); z-index: 0; pointer-events: none;
}
.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__title {
  font-size: clamp(2.7rem, 1.6rem + 5.4vw, 5.6rem);
  margin: 0.4rem 0 1.6rem;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: block; }
.hero__title em { font-style: normal; }
.hero__sub { color: var(--muted); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 46ch; }
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 2rem; }
.stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem; }
.stat__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 1.5rem + 1.5vw, 2.8rem); background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat__plus { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--brand-1); }
.stat__label { flex-basis: 100%; color: var(--muted-2); font-size: 0.85rem; letter-spacing: 0.02em; }

/* Visual: canvas 3D + fallback */
.hero__visual { position: relative; justify-self: center; width: 100%; aspect-ratio: 1 / 1; max-width: 640px; }
.hero__canvas { position: absolute; inset: 0; z-index: 1; touch-action: none; }
.hero__canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 0; }
.hero__badge {
  position: absolute; bottom: 6%; left: -4%; z-index: 3;
  display: flex; align-items: center; gap: 0.8rem;
  background: rgba(255, 255, 255, 0.75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-2); border-radius: 14px; padding: 0.85rem 1.1rem;
  box-shadow: var(--shadow-md);
}
.hero__stats { gap: 0; padding: 0.9rem 0.4rem; }
.hero__stats .stat { padding-inline: 1.1rem; }
.hero__stats .stat + .stat { border-left: 1px solid var(--line-2); }
.hero__stats .stat__num { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.2rem); line-height: 1; }
.hero__stats .stat__label { margin-top: 0.3rem; font-size: 0.78rem; white-space: nowrap; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee { border-block: 1px solid var(--line); padding: 1.4rem 0; overflow: hidden; background: var(--bg-2); }
.marquee__track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: scroll-x 34s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.2rem, 1rem + 1vw, 1.9rem); color: var(--muted); white-space: nowrap; }
.marquee__track .dot { color: var(--brand-1); }
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ============================================================
   NOSOTROS
   ============================================================ */
.about { padding-block: clamp(5rem, 10vw, 9rem); }
.about__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__media { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/5; box-shadow: var(--shadow-md); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 62%, rgba(14, 17, 22, 0.28)); }
/* Ilustración sin recuadro: se funde con el fondo blanco de la página */
.about__media--art { aspect-ratio: 1 / 1; background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; }
.about__media--art::after { display: none; }
.about__media--art img {
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 97%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 4%, #000 97%, transparent);
          mask-composite: intersect;
}
.about__content p { color: var(--muted); margin-top: 1.3rem; max-width: 54ch; }
.about__content .section-title { max-width: 16ch; }

/* ============================================================
   SERVICIOS — Bento
   ============================================================ */
.services { padding-block: clamp(4rem, 8vw, 7rem); }
.bento {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem;
  grid-auto-rows: 275px;
}
.bento__cell { grid-column: span 1; }
.bento__cell--wide { grid-column: span 2; }
.bento__cell--tall { grid-row: span 2; }

.s-card {
  position: relative; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.s-card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.s-card__icon {
  position: absolute; top: 1.5rem; left: 1.6rem; z-index: 2;
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; color: #fff;
  background: rgba(14, 17, 22, 0.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.4s var(--ease);
}
.s-card:hover .s-card__icon { transform: scale(1.08) rotate(-4deg); }
.s-card h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.s-card p { color: var(--muted); font-size: 0.95rem; max-width: 42ch; }
.s-card__index { position: absolute; top: 1.6rem; right: 1.7rem; z-index: 2; font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); }

.s-card--media { padding: 0; }
.s-card--media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.s-card--media:hover > img { transform: scale(1.05); }
.s-card--media .s-card__overlay { position: relative; z-index: 1; padding: 1.6rem; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; background: linear-gradient(180deg, rgba(6, 12, 20, 0) 30%, rgba(6, 12, 20, 0.55) 68%, rgba(6, 12, 20, 0.92)); }
.s-card--media .s-card__overlay h3 { color: #fff; }
.s-card--media .s-card__overlay p { color: rgba(255, 255, 255, 0.78); }

/* ============================================================
   POR QUÉ
   ============================================================ */
.why { padding-block: clamp(4rem, 8vw, 7rem); }
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.why__intro .section-title { max-width: 14ch; }
.why__intro p { color: var(--muted); margin-top: 1.2rem; max-width: 40ch; }
.why__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.5rem; }
.why__list li {
  list-style: none; display: flex; align-items: center; gap: 0.8rem;
  font-family: var(--font-display); font-weight: 500; font-size: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
}
.why__list li i { display: grid; place-items: center; width: 26px; height: 26px; min-width: 26px; border-radius: 50%; background: var(--grad-btn); color: #fff; font-size: 0.85rem; font-weight: 700; }

/* ============================================================
   PROCESO
   ============================================================ */
.process { padding-block: clamp(4rem, 8vw, 7rem); }
.process__track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; position: relative; }
.process__track::before { content: ""; position: absolute; top: 26px; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 12%, var(--line-2) 88%, transparent); }
.step { position: relative; padding-top: 4rem; }
.step__num {
  position: absolute; top: 0; left: 0;
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-2);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), background 0.4s var(--ease);
}
.step:hover .step__num { background: var(--grad-btn); color: #fff; border-color: transparent; }
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; max-width: 26ch; }

/* ============================================================
   PORTAFOLIO
   ============================================================ */
.portfolio { padding-block: clamp(4rem, 8vw, 7rem); }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filter {
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--muted);
  padding: 0.5rem 1.1rem; border-radius: var(--pill); border: 1px solid var(--line-2);
  transition: all 0.25s var(--ease);
}
.filter:hover { color: var(--text); border-color: var(--brand-1); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; grid-auto-rows: 300px; }
.work { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); grid-row: span 1; box-shadow: var(--shadow-sm); transition: transform 0.5s var(--ease), opacity 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.work:hover { box-shadow: var(--shadow-md); }
.work--lg { grid-column: span 2; }
.work--tall { grid-row: span 2; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.work::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(6, 12, 20, 0.82)); opacity: 0.85; transition: opacity 0.4s var(--ease); }
.work:hover img { transform: scale(1.07); }
.work__meta { position: absolute; left: 1.3rem; bottom: 1.3rem; z-index: 1; transform: translateY(8px); opacity: 0; transition: transform 0.4s var(--ease), opacity 0.4s var(--ease); }
.work:hover .work__meta { transform: translateY(0); opacity: 1; }
.work__meta strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: #fff; }
.work__meta small { color: var(--brand-3); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; }
.work.is-hidden { display: none; }
.portfolio__foot { display: flex; justify-content: center; margin-top: 2.6rem; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonials { padding-block: clamp(4rem, 8vw, 7rem); }
.testimonials .section-title { max-width: 24ch; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quote {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem; display: flex; flex-direction: column; gap: 1.1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.quote:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow-md); }
.quote__stars { display: flex; gap: 0.2rem; color: var(--brand-1); font-size: 0.95rem; }
.quote p { font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; line-height: 1.5; }
.quote footer { margin-top: auto; }
.quote footer strong { display: block; font-family: var(--font-display); }
.quote footer span { color: var(--muted); font-size: 0.88rem; }

/* ============================================================
   CTA
   ============================================================ */
.cta { position: relative; padding-block: clamp(5rem, 10vw, 9rem); overflow: hidden; text-align: center; }
.cta__glow { position: absolute; inset: 0; margin: auto; width: 70vw; height: 70vw; max-width: 700px; max-height: 700px; background: radial-gradient(circle, rgba(32, 100, 182, 0.12), rgba(109, 204, 195, 0.08) 42%, transparent 66%); filter: blur(20px); pointer-events: none; }
.cta__inner { position: relative; z-index: 1; max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.cta h2 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 4rem); }
.cta p { color: var(--muted); font-size: 1.15rem; max-width: 48ch; }
.cta .btn { margin-top: 0.6rem; }
.contact__grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; max-width: 720px; margin-top: clamp(3rem, 6vw, 4.5rem); text-align: left; }
.contact__card {
  display: flex; align-items: center; gap: 1rem; padding: 1.4rem 1.5rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.contact__card:hover { transform: translateY(-4px); border-color: var(--brand-1); box-shadow: var(--shadow-md); }
.contact__card > i { display: grid; place-items: center; width: 46px; height: 46px; min-width: 46px; border-radius: 12px; background: var(--grad-btn); color: #fff; font-size: 1.35rem; }
.contact__card small { display: block; color: var(--muted-2); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; }
.contact__card strong { display: block; font-family: var(--font-display); font-size: 1rem; overflow-wrap: anywhere; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vw, 5rem); background: var(--bg-2); }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer__brand p { color: var(--muted); margin-top: 1rem; max-width: 34ch; font-size: 0.92rem; }
.footer__col h4 { font-family: var(--font-display); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.16em; color: var(--muted-2); margin-bottom: 1.1rem; }
.footer__col a { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); padding: 0.4rem 0; transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--brand-1); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-block: 1.6rem; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 0.85rem; }

/* ============================================================
   WHATSAPP CHAT (botón flotante + ventana)
   ============================================================ */
.wa { --wa-green: #25d366; --wa-green-2: #128c7e; position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.wa__fab {
  position: relative; width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; font-size: 2rem;
  background: var(--wa-green); box-shadow: 0 14px 30px -10px rgba(18, 140, 126, 0.65);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.wa__fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 18px 36px -10px rgba(18, 140, 126, 0.75); }
.wa__fab:focus-visible, .wa__close:focus-visible, .wa__send:focus-visible { outline: 3px solid var(--brand-1); outline-offset: 3px; }
.wa__fab i { position: absolute; transition: transform 0.35s var(--ease), opacity 0.25s var(--ease); }
.wa__icon-close { font-size: 1.6rem; opacity: 0; transform: rotate(-90deg); }
.wa.is-open .wa__icon-open { opacity: 0; transform: rotate(90deg); }
.wa.is-open .wa__icon-close { opacity: 1; transform: rotate(0); }

.wa__panel {
  width: min(360px, calc(100vw - 40px)); border-radius: var(--radius); overflow: hidden;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(20, 40, 80, 0.4);
  transform-origin: bottom right; animation: wa-in 0.35s var(--ease);
}
.wa__panel[hidden] { display: none; }
@keyframes wa-in { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: none; } }

.wa__head { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; background: var(--wa-green-2); color: #fff; }
.wa__avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; padding: 3px; object-fit: contain; background: #231f20; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.35); }
.wa__who { flex: 1; min-width: 0; line-height: 1.25; }
.wa__who strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.wa__who small { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.8rem; opacity: 0.9; }
.wa__close { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.15rem; transition: background 0.25s var(--ease); }
.wa__close:hover { background: rgba(255, 255, 255, 0.16); }

.wa__body { padding: 1.2rem 1rem 1.4rem; background: #efeae2; min-height: 120px; }
.wa__bubble {
  position: relative; max-width: 85%; padding: 0.7rem 0.9rem; border-radius: 0 12px 12px 12px;
  background: #fff; color: var(--text); font-size: 0.94rem; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
}
.wa__bubble::before { content: ""; position: absolute; top: 0; left: -8px; border-top: 0 solid transparent; border-right: 8px solid #fff; border-bottom: 10px solid transparent; }

.wa__form { display: flex; align-items: flex-end; gap: 0.6rem; padding: 0.75rem; border-top: 1px solid var(--line); background: var(--card); }
.wa__form textarea {
  flex: 1; resize: none; border: 1px solid var(--line-2); border-radius: 20px; padding: 0.6rem 0.95rem;
  font: inherit; font-size: 0.94rem; line-height: 1.35; color: var(--text); background: var(--card-2); max-height: 120px;
}
.wa__form textarea:focus { outline: none; border-color: var(--wa-green-2); background: #fff; }
.wa__send { width: 42px; height: 42px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.15rem; background: var(--wa-green); transition: transform 0.25s var(--ease); }
.wa__send:hover { transform: scale(1.06); }
.wa__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 720px) {
  .wa { right: 16px; bottom: 16px; }
  .wa__panel { width: calc(100vw - 32px); }
}

/* ============================================================
   REVEAL (estado inicial; GSAP anima a visible)
   ============================================================ */
.reveal, .reveal-stagger > * { opacity: 0; transform: translateY(28px); }
.hero__title .line > span { transform: translateY(110%); }

/* ============================================================
   FLOAT anim
   ============================================================ */
.float-a { animation: floatA 7s ease-in-out infinite; }
.float-b { animation: floatB 5.5s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes floatB { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__visual { order: -1; max-width: 420px; margin-inline: auto; } /* W arriba, texto abajo */
  .about__grid, .why__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 480px; }
  .why__grid { gap: 2.5rem; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 270px; }
  .bento__cell--wide { grid-column: span 2; }
  .bento__cell--tall { grid-row: span 1; }
  .process__track { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .process__track::before { display: none; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .contact__grid { grid-template-columns: 1fr; max-width: 480px; }
}

@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(20px);
    padding: 1rem clamp(1.2rem, 4vw, 2.5rem) 2rem; border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
  }
  .nav.is-open .nav__links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__links > a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__links .btn { margin-top: 1rem; justify-content: center; }
  .nav__toggle { display: block; }
  .lang-switch { margin-left: auto; margin-right: 0.7rem; }

  .hero__badge { left: 0; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento__cell, .bento__cell--wide, .bento__cell--tall { grid-column: span 1; grid-row: span 1; min-height: 220px; }
  .why__list { grid-template-columns: 1fr; }
  .process__track { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .work--lg, .work--tall { grid-column: span 1; grid-row: span 1; }
  .section-head--split { align-items: flex-start; }
  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
  .hero__title .line > span { transform: none !important; }
  .float-a, .float-b { animation: none !important; }
}
