/* ==========================================================================
   Graphic Planet — sitio 2026
   Réplica de la maqueta "referencia1": fondo gris claro con bruma blanca,
   paneles de vidrio (glassmorphism) y verde lima como único color.
   ========================================================================== */

:root {
  --bg: #ECEEEA;
  --ink: #0E100D;
  --ink-2: #3C4039;
  --muted: #6A6E66;
  --line: rgba(14, 16, 13, .12);

  --lime: #9BD62A;
  --lime-bright: #BDEE3C;
  --lime-deep: #6CB31A;
  --lime-soft: rgba(185, 236, 70, .28);
  --lime-grad: linear-gradient(95deg, #6CB31A 0%, #9BD62A 55%, #B5E639 100%);

  --glass: rgba(255, 255, 255, .42);
  --glass-strong: rgba(255, 255, 255, .62);
  --glass-border: rgba(255, 255, 255, .85);
  --glass-shadow: 0 24px 60px -28px rgba(20, 30, 10, .28), inset 0 1px 0 rgba(255, 255, 255, .9);

  --font: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Nunito", "Arial Rounded MT Bold", system-ui, sans-serif;   /* títulos: redondeada */
  --frame-r: 30px;
  --side: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  background-color: var(--bg);
  /* bruma: manchas blancas y grises difusas, como en la maqueta */
  background-image:
    radial-gradient(40% 30% at 12% 8%, rgba(255, 255, 255, .95), transparent 70%),
    radial-gradient(35% 28% at 92% 18%, rgba(255, 255, 255, .85), transparent 70%),
    radial-gradient(30% 25% at 70% 55%, rgba(210, 214, 206, .7), transparent 70%),
    radial-gradient(45% 30% at 20% 70%, rgba(255, 255, 255, .9), transparent 70%),
    radial-gradient(35% 25% at 85% 92%, rgba(214, 218, 210, .8), transparent 70%);
  background-attachment: fixed;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, dl, dd { margin: 0; }

:focus-visible { outline: 2px solid var(--lime-deep); outline-offset: 3px; border-radius: 8px; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Vidrio ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

/* ---------- Texto lima ---------- */
.lime-text {
  background: var(--lime-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.light { font-weight: 400; }

/* ---------- Botones ---------- */
.btn-lime {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 50px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: linear-gradient(90deg, #B2E937, #C8F24C);
  color: #13200A; font-size: 15px; font-weight: 600;
  box-shadow: 0 12px 30px -10px rgba(150, 210, 30, .8), inset 0 1px 0 rgba(255, 255, 255, .6);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 18px 36px -10px rgba(150, 210, 30, .9), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-lime .arrow, .btn-outline .arrow { font-size: 18px; transition: transform .3s var(--ease); }
.btn-lime:hover .arrow, .btn-outline:hover .arrow { transform: translateX(4px); }
.btn-block { width: 100%; justify-content: center; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 22px;
  min-height: 46px; padding: 0 22px 0 26px;
  border: 1.5px solid var(--ink); border-radius: 999px; background: transparent;
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: background-color .3s var(--ease);
}
.btn-outline:hover { background: rgba(255, 255, 255, .6); }
.arrow.lime { color: var(--lime-deep); }

.pill {
  display: inline-block; padding: 8px 18px;
  border: 1px solid rgba(14, 16, 13, .35); border-radius: 999px;
  font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  background: rgba(255, 255, 255, .4);
}

/* ==========================================================================
   Página y marcos de vidrio
   ========================================================================== */
.page {
  max-width: 1440px; margin: 0 auto;
  padding: 36px clamp(16px, 3vw, 44px) 0;
}
.frame {
  position: relative;
  border-radius: var(--frame-r);
  background: linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(255, 255, 255, .34));
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 40px 90px -50px rgba(20, 30, 10, .35), inset 0 1px 0 #fff;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.frame-foot {
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2);
}
.foot-url { display: inline-flex; align-items: center; gap: 22px; }
.foot-url i { display: inline-block; width: 44px; height: 1.5px; background: var(--ink-2); }
.foot-tag { text-align: right; color: var(--muted); font-weight: 500; line-height: 1.6; }

/* ==========================================================================
   Menú lateral
   ========================================================================== */
.sidebar {
  position: fixed; z-index: 40;
  /* 30px más a la izquierda (pedido el 22 sep 2026); el max evita que se salga
     de la pantalla en ventanas angostas */
  left: max(16px, calc((100vw - 1440px) / 2 + 34px));
  top: 50%; transform: translateY(-42%);
  width: var(--side);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 26px 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .5);
}
.sidebar a, .sidebar button {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  width: 72px; padding: 6px 0;
  background: none; border: 0;
  font-size: 12px; font-weight: 500; color: var(--ink-2);
  transition: color .25s;
}
.side-ico {
  width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%;
  transition: background-color .25s, box-shadow .25s;
}
.side-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sidebar a:hover .side-ico, .sidebar button:hover .side-ico { background: rgba(155, 214, 42, .18); }
.sidebar a[aria-current="page"] { color: var(--lime-deep); font-weight: 600; }
.sidebar a[aria-current="page"] .side-ico {
  width: 50px; height: 50px; color: var(--ink);
  background: radial-gradient(circle at 50% 40%, #C6F24A, #9BD62A);
  box-shadow: 0 0 0 8px rgba(185, 236, 70, .22), 0 10px 26px -6px rgba(140, 200, 30, .8);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: 34px 44px 30px calc(var(--side) + 70px); min-height: min(92vh, 860px); display: flex; flex-direction: column; }
.topbar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  margin-left: calc(-1 * (var(--side) + 20px));
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 700; letter-spacing: -.035em; }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.topnav {
  justify-self: center;
  display: flex; align-items: center; gap: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2);
}
.topnav a:hover { color: var(--ink); }
.topnav span { color: var(--muted); font-weight: 400; }

.hero-grid {
  flex: 1;
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 20px;
  padding: 20px 0;
}
.hero-title {
  font-size: clamp(56px, 6.9vw, 104px);
  line-height: .9; letter-spacing: -.05em; font-weight: 600;
}
.hero-lead { margin-top: 26px; max-width: 34em; font-size: clamp(15px, 1.25vw, 18px); color: var(--ink-2); }
.hero-copy .btn-lime { margin-top: 36px; }

.hero-visual { position: relative; justify-self: end; width: 100%; max-width: 600px; }
.hero-art { width: 100%; height: auto; display: block; overflow: visible; }
.hero-card {
  position: absolute; right: -2%; top: 44%;
  width: 36%; min-width: 180px;
  padding: 24px 24px 22px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .38);
}
.hero-card img { width: 26px; height: 26px; object-fit: contain; margin-bottom: 18px; }
.hero-card p { font-size: clamp(16px, 1.45vw, 21px); line-height: 1.22; font-weight: 500; letter-spacing: -.02em; }
.card-arrow { display: inline-block; margin-top: 18px; font-size: 24px; transition: transform .3s var(--ease); }
.card-arrow:hover { transform: translateX(4px); }

/* ==========================================================================
   Servicios
   ========================================================================== */
.services { padding: clamp(80px, 9vw, 120px) clamp(20px, 3vw, 44px) 40px calc(var(--side) + 70px); }
.services-head {
  display: grid; grid-template-columns: 1fr 300px; align-items: center; gap: 40px;
  margin-bottom: 44px;
}
.section-title {
  margin-top: 14px;
  font-size: clamp(40px, 4.8vw, 70px);
  line-height: 1; letter-spacing: -.045em; font-weight: 600;
}
.services-note { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* Carrusel de unidades: 4 visibles, avanza solo (ver main.js) */
.cards-viewport {
  --per: 4; --gap: 16px;
  overflow: hidden;
  /* espacio de sobra para que la sombra (≈56px) y el hover no se recorten */
  margin: -30px -14px -100px; padding: 30px 14px 100px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.cards {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--gap);
  will-change: transform;
}
/* Cinta continua: las tarjetas están duplicadas, así que correr media pista
   (más medio espacio) deja todo exactamente donde empezó y el ciclo no se nota */
.cards.is-marquee { width: max-content; animation: marquee var(--marquee-time, 40s) linear infinite; }
.cards.is-marquee > li { flex-basis: var(--card-w); }
.cards-viewport:hover .cards.is-marquee,
.cards-viewport:focus-within .cards.is-marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.cards > li { flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per)); }
.card {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%; min-height: 230px;
  padding: 22px 22px 20px;
  border-radius: 20px;
  transition: transform .35s var(--ease), background-color .35s var(--ease);
}
.card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .62); }
.card-ico {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(185, 236, 70, .45), rgba(185, 236, 70, .12));
}
.card-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-top: 22px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.card p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.45; }
.card-arrow-sm { margin-top: auto; padding-top: 20px; font-size: 20px; transition: transform .3s var(--ease), color .3s; }
.card:hover .card-arrow-sm { transform: translateX(5px); color: var(--lime-deep); }

/* ==========================================================================
   Proyecto destacado
   ========================================================================== */
.featured {
  position: relative;
  padding: 60px clamp(20px, 3vw, 44px) 80px calc(var(--side) + 40px);
}
.blob {
  position: absolute; z-index: 0; pointer-events: none;
  background: linear-gradient(135deg, #C9F24E, #A6E030);
  border-radius: 36px;
}
.blob-a { left: calc(var(--side) + 90px); top: 40px; width: 26%; height: 36%; transform: rotate(14deg) skewX(-10deg); }
.blob-b { right: 12%; top: 34%; width: 12%; height: 34%; transform: rotate(-24deg) skewX(12deg); border-radius: 30px; }

/* las diapositivas se apilan en la misma celda: la sección no cambia de alto al rotar */
.featured-stage { position: relative; z-index: 1; display: grid; }
.slide { grid-area: 1 / 1; position: relative; display: grid; grid-template-columns: 34% 1fr; align-items: center; }
.slide[hidden] { display: grid; visibility: hidden; }
/* Cambio de diapositiva: la tarjeta entra desde la izquierda y la foto desde la
   derecha hasta juntarse; al salir, cada una se va por su lado. */
.featured { overflow-x: clip; }
.slide.is-active .featured-card { animation: in-left .9s var(--ease) both; }
.slide.is-active .featured-art,
.slide.is-active .featured-photo { animation: in-right .9s var(--ease) both; }
.slide.is-active .badge { animation: in-right .9s .15s var(--ease) both; }
.slide.is-leaving .featured-card { animation: out-left .45s cubic-bezier(.5, 0, .9, .4) both; }
.slide.is-leaving .featured-art,
.slide.is-leaving .featured-photo,
.slide.is-leaving .badge { animation: out-right .45s cubic-bezier(.5, 0, .9, .4) both; }
@keyframes in-left   { from { opacity: 0; transform: translateX(-140px); } to { opacity: 1; transform: none; } }
@keyframes in-right  { from { opacity: 0; transform: translateX(160px); }  to { opacity: 1; transform: none; } }
@keyframes out-left  { to { opacity: 0; transform: translateX(-140px); } }
@keyframes out-right { to { opacity: 0; transform: translateX(160px); } }
.featured-art, .featured-photo { grid-column: 1 / -1; grid-row: 1; margin-left: 24%; width: 76%; }
.featured-art { height: auto; }
.featured-photo {
  aspect-ratio: 520 / 345; overflow: hidden;
  clip-path: polygon(18% 12%, 86% 18%, 97% 76%, 90% 94%, 3% 88%, 3% 36%);
  border-radius: 30px;
}
.featured-photo img { width: 100%; height: 100%; object-fit: cover; }

.featured-card {
  grid-column: 1; grid-row: 1; z-index: 2;
  margin-left: 4%;
  padding: 36px 34px;
  border-radius: 26px;
  background: rgba(255, 255, 255, .42);
}
.kicker { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); }
.featured-card h2 { margin-top: 18px; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.02; letter-spacing: -.04em; font-weight: 600; }
.featured-card > p:not(.kicker) { margin-top: 18px; font-size: 16px; color: var(--ink-2); }
.link-lime { display: inline-flex; gap: 14px; margin-top: 32px; font-weight: 600; color: var(--lime-deep); }
.link-lime span { color: var(--ink); transition: transform .3s var(--ease); }
.link-lime:hover span { transform: translateX(4px); }

.badge {
  position: absolute; right: 1%; top: 2%; z-index: 2;
  width: clamp(120px, 12vw, 170px); aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding-left: 22px;
  background: radial-gradient(circle at 40% 40%, rgba(225, 245, 180, .9), rgba(205, 236, 140, .55));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.badge strong { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.04em; font-weight: 600; line-height: 1; }
.badge span { margin-top: 6px; font-size: 13px; color: var(--ink-2); }

.slider-nav { position: absolute; right: clamp(20px, 3vw, 44px); bottom: 110px; z-index: 3; display: flex; gap: 10px; }
.round-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid rgba(14, 16, 13, .25); background: rgba(255, 255, 255, .4);
  font-size: 20px; line-height: 1; color: var(--muted);
  transition: border-color .25s, color .25s, background-color .25s;
}
.round-btn.dark { border-color: var(--ink); color: var(--ink); }
.round-btn:hover { background: var(--lime-bright); border-color: var(--lime-bright); color: var(--ink); }

/* ==========================================================================
   Tu marca, sin límites
   ========================================================================== */
.brand-block { padding: 64px 44px 36px calc(var(--side) + 70px); margin-top: 10px; }
.brand-grid { display: grid; grid-template-columns: 1fr 1.15fr .85fr; align-items: center; gap: 30px; }
.brand-copy .section-title { font-size: clamp(42px, 4.6vw, 66px); }
.brand-copy p { margin-top: 26px; max-width: 30em; font-size: 16px; color: var(--ink-2); }
.brand-copy .btn-outline { margin-top: 30px; text-transform: none; letter-spacing: 0; font-size: 16px; }
.brand-art { width: 100%; height: auto; }

.stats {
  padding: 32px 34px;
  border-radius: 26px;
  display: flex; flex-direction: column; gap: 22px;
}
.stats img { width: 28px; height: 28px; object-fit: contain; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { font-size: clamp(34px, 3.4vw, 48px); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.stats dt { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.brand-block .frame-foot { margin-top: 40px; }

/* ==========================================================================
   Pie
   ========================================================================== */
.footer {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 32px;
  padding: 48px 44px 110px calc(var(--side) + 70px);
  font-size: 14px; color: var(--ink-2);
}
.footer .brand { font-size: 20px; color: var(--ink); }
.footer .brand img { width: 28px; height: 28px; }
.footer address { font-style: normal; display: flex; flex-wrap: wrap; gap: 6px 24px; }
.footer-social { display: flex; gap: 18px; }
.footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.copy { color: var(--muted); }

/* ==========================================================================
   Diálogo de contacto
   ========================================================================== */
.contact {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100svh - 32px);
  border-radius: 30px; padding: clamp(28px, 5vw, 44px);
  background: rgba(246, 248, 243, .82);
  color: var(--ink);
}
.contact::backdrop { background: rgba(214, 220, 206, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.contact[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.contact-close-form { position: absolute; top: 18px; right: 18px; margin: 0; }
.contact-close {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--glass-border); background: rgba(255, 255, 255, .7);
  font-size: 22px; line-height: 1;
}
.contact-title { margin: 16px 0 26px; font-size: clamp(30px, 4.6vw, 44px); line-height: 1; letter-spacing: -.04em; font-weight: 600; }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  font: inherit; font-size: 16px; font-weight: 400; color: var(--ink);
  background: rgba(255, 255, 255, .75); border: 1px solid rgba(14, 16, 13, .12); border-radius: 14px;
  padding: 12px 14px; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--lime-deep); box-shadow: 0 0 0 4px var(--lime-soft); }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; padding: 0; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(14, 16, 13, .14); background: rgba(255, 255, 255, .7); font-size: 14px;
  transition: background-color .2s, border-color .2s;
}
.chips input:checked + span { background: var(--lime-bright); border-color: var(--lime-bright); }
.chips input:focus-visible + span { outline: 2px solid var(--lime-deep); outline-offset: 2px; }
.form-error { color: #A12A1A; font-size: 14px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .cards-viewport { --per: 3; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
}

@media (max-width: 899px) {
  :root { --side: 0px; }
  .page { padding-top: 12px; }
  .sidebar {
    left: 12px; right: 12px; top: auto; bottom: 12px; transform: none;
    width: auto; flex-direction: row; justify-content: space-around; gap: 0;
    padding: 8px 6px;
  }
  .sidebar a, .sidebar button { width: auto; min-width: 56px; font-size: 11px; }
  .sidebar a[aria-current="page"] .side-ico { width: 36px; height: 36px; box-shadow: 0 0 0 5px rgba(185, 236, 70, .22); }
  .hero, .services, .featured, .brand-block, .footer { padding-left: 20px; padding-right: 20px; }
  .hero { min-height: 0; padding-top: 20px; }
  .topbar { margin-left: 0; grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .brand { font-size: 21px; }
  .brand img { width: 30px; height: 30px; }
  .btn-outline { gap: 12px; padding: 0 16px; font-size: 12px; min-height: 42px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 40px; }
  .hero-visual { justify-self: center; }
  .hero-card { right: 0; width: 46%; padding: 16px; }
  .services-head { grid-template-columns: 1fr; gap: 18px; }
  .cards-viewport { --per: 2; }
  .slide { grid-template-columns: 1fr; }
  .featured-art, .featured-photo { margin-left: 0; width: 100%; }
  .featured-card { grid-row: 2; margin: -40px 12px 0; }
  .badge { top: -20px; right: 0; }
  .slider-nav { position: static; justify-content: flex-end; margin-top: 18px; }
  .blob-a { left: 0; width: 50%; }
  .brand-grid { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
  .footer { grid-template-columns: 1fr; padding-bottom: 120px; }
  .frame-foot { font-size: 10px; }
}
@media (max-width: 560px) {
  /* en celular "Contacto" ya está en la barra inferior */
  .topbar .btn-outline { display: none; }
  .cards-viewport { --per: 1.15; }   /* se asoma la siguiente tarjeta */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ==========================================================================
   Títulos: Nunito (redondeada). Va al final para mandar sobre las reglas de arriba.
   ========================================================================== */
.hero-title, .section-title, .featured-card h2, .card h3, .stats dd,
.badge strong, .contact-title, .brand span {
  font-family: var(--display);
  font-weight: 800;
}
.hero-title { letter-spacing: -.035em; }
.section-title, .contact-title, .featured-card h2 { letter-spacing: -.03em; }
.section-title .light { font-weight: 400; }

/* ==========================================================================
   Scroll por zonas: cada gesto lleva a la sección completa siguiente/anterior.
   Solo en pantallas de escritorio con altura suficiente; en celular las
   secciones son más altas que la pantalla y el ajuste estorbaría.
   ========================================================================== */
@media (min-width: 900px) and (min-height: 640px) {
  /* La rueda y el teclado los maneja main.js (una zona por gesto) sobre los
     elementos marcados con data-zone. No se usa scroll-snap del navegador:
     reacomodaba la página por su cuenta y peleaba con el script.
     overflow-anchor: none evita que el navegador corrija la posición cuando algo
     cambia de tamaño (p. ej. un carrusel) a mitad del desplazamiento. */
  html { scroll-behavior: auto; overflow-anchor: none; }

  /* zonas sueltas: pantalla completa, contenido centrado */
  [data-zone]:not(.frame):not(.footer) {
    min-height: 100svh;
    display: flex; flex-direction: column; justify-content: center;
  }
  /* zonas dentro de un marco de vidrio: dejan ver el margen de 36px arriba y abajo */
  .frame[data-zone] {
    min-height: calc(100svh - 72px);
    scroll-margin-top: 36px;
    display: flex; flex-direction: column;
  }
  .brand-block .brand-grid, .cta-block .cta-inner { margin-block: auto; }   /* centrado; el pie del marco queda abajo */
}

/* Wordmark: "graphic" en verde y "planet" en negro, como en el logo */
.brand-green {
  background: var(--lime-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ==========================================================================
   Nosotros
   ========================================================================== */
.hero-copy .pill { margin-bottom: 22px; }
.about-title { font-size: clamp(46px, 5.1vw, 76px); }

/* secciones sueltas: mismo aire lateral que "servicios" */
.timeline-block, .process-block, .team-block {
  padding: clamp(80px, 9vw, 120px) clamp(20px, 3vw, 44px) 60px calc(var(--side) + 70px);
}

/* Línea de tiempo */
.timeline {
  list-style: none; margin: 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.timeline::before {
  /* hilo que une los años */
  content: ""; position: absolute; left: 4%; right: 4%; top: 46px; height: 2px;
  background: linear-gradient(90deg, rgba(108, 179, 26, .15), var(--lime), rgba(108, 179, 26, .15));
}
.milestone { position: relative; padding: 24px 22px 26px; border-radius: 22px; }
.milestone-year {
  display: inline-block; position: relative;
  font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; letter-spacing: -.03em;
  background: var(--glass-strong); padding-right: 10px;
}
.milestone h3 { margin-top: 26px; font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.milestone p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.milestone.is-now { background: linear-gradient(160deg, rgba(200, 242, 76, .55), rgba(155, 214, 42, .3)); }
.milestone.is-now .milestone-year { background: none; }
.milestone.is-now p { color: var(--ink-2); }

/* Cómo trabajamos */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px;
}
.step { display: flex; flex-direction: column; padding: 24px 22px 26px; border-radius: 22px; transition: transform .35s var(--ease); }
.step:hover { transform: translateY(-4px); }
.step-n { margin-top: 22px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--lime-deep); }
.step h3 { margin-top: 6px; font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.step p { margin-top: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Equipo: cinta continua de retratos */
.team-viewport { --per: 5; }
.member { padding: 10px 10px 16px; border-radius: 22px; }
.member img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 16px; background: #1a1d18;
  transition: transform .5s var(--ease);
}
.member:hover img { transform: scale(1.02); }
.member h3 { margin: 14px 6px 0; font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.member p { margin: 2px 6px 0; font-size: 13px; color: var(--muted); }

/* Cierre */
.cta-block { padding: 56px 44px 36px calc(var(--side) + 70px); margin-bottom: 10px; }
.cta-inner { text-align: center; max-width: 760px; margin: 0 auto; }
.cta-mark { width: 44px; height: 44px; margin: 0 auto 22px; object-fit: contain; }
.cta-inner .section-title { margin-top: 0; }
.cta-inner > p { margin: 22px auto 0; max-width: 36em; color: var(--ink-2); }
.cta-actions { margin-top: 32px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cta-actions .btn-outline { text-transform: none; letter-spacing: 0; font-size: 15px; }
.cta-block .frame-foot { margin-top: 40px; }

@media (max-width: 1180px) {
  .team-viewport { --per: 3.5; }
  .milestone-year { font-size: 28px; }
}
@media (max-width: 899px) {
  .timeline-block, .process-block, .team-block, .cta-block { padding-left: 20px; padding-right: 20px; }
  .timeline, .steps { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .team-viewport { --per: 2.2; }
}

/* ==========================================================================
   Transición entre páginas (View Transitions, Chrome/Edge/Safari).
   El menú y el logo se quedan quietos; el círculo lima del menú se desliza a la
   nueva página; el contenido sale hacia arriba y entra desde abajo.
   ========================================================================== */
@view-transition { navigation: auto; }

.sidebar { view-transition-name: sidebar; }
.sidebar [aria-current="page"] .side-ico { view-transition-name: nav-active; }
.topbar .brand { view-transition-name: brand; }

::view-transition-old(root) { animation: page-out .38s cubic-bezier(.5, 0, .9, .4) both; }
::view-transition-new(root) { animation: page-in .7s cubic-bezier(.2, .7, .2, 1) .12s both; }
::view-transition-group(nav-active) { animation-duration: .55s; animation-timing-function: cubic-bezier(.2, .7, .2, 1); }
@keyframes page-out { to   { opacity: 0; transform: translateY(-28px) scale(.985); filter: blur(6px); } }
@keyframes page-in  { from { opacity: 0; transform: translateY(44px) scale(.985); filter: blur(8px); } }

/* Navegadores sin View Transitions (Firefox): fundido simple que maneja main.js */
.page-fading .page { opacity: 0; transform: translateY(-16px); transition: opacity .28s ease, transform .28s ease; }
.page-entering .page { animation: page-in .6s cubic-bezier(.2, .7, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ==========================================================================
   Entradas animadas. Cada elemento lleva data-anim="left|right|top|bottom|zoom|spin"
   y opcionalmente data-delay (ms). main.js les pone .in cuando aparecen en
   pantalla y, al terminar, les quita el atributo para que vuelvan a su estilo
   normal (hover incluido). La clase .anim en <html> la pone un script en <head>,
   así no hay destello de contenido antes de ocultarlo.
   ========================================================================== */
.anim [data-anim] {
  transition: opacity .8s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0ms);
}
.anim [data-anim]:not(.in) { opacity: 0; }
.anim [data-anim="left"]:not(.in)   { transform: translateX(-90px); }
.anim [data-anim="right"]:not(.in)  { transform: translateX(90px); }
.anim [data-anim="top"]:not(.in)    { transform: translateY(-70px); }
.anim [data-anim="bottom"]:not(.in) { transform: translateY(70px); }
.anim [data-anim="zoom"]:not(.in)   { transform: scale(.82); }
.anim [data-anim="spin"]:not(.in)   { transform: translateX(-40px) rotate(-220deg) scale(.3); }
.anim svg [data-anim] { transform-box: fill-box; transform-origin: center; }
.line, .brand .ch { display: inline-block; }
.brand .ch { transition-duration: .6s, .7s; }

/* con las entradas propias del contenido, la página nueva solo necesita un fundido */
::view-transition-new(root) { animation: page-fade .45s ease .1s both; }
@keyframes page-fade { from { opacity: 0; } }
/* lo que entra desde los lados no debe abrir una barra de desplazamiento horizontal */
html, body { overflow-x: clip; }

/* ==========================================================================
   Nosotros v2
   ========================================================================== */

/* --- Hero con la G en 3D de fondo (sin máscara) --- */
.hero-bg {
  background: #050805; border-color: rgba(255, 255, 255, .1); color: #EDEFE9;
  isolation: isolate;   /* sin overflow: hidden, o lo que entra desde arriba queda recortado y no se anima */
}
.hero-media {
  position: absolute; inset: 0; z-index: -1; border-radius: inherit; overflow: hidden;
  background: url("../assets/img/Graphic.webp") no-repeat right -4% center / auto 125%;
}
.hero-media::after {
  /* oscurece la izquierda para que el texto se lea; la G queda libre a la derecha */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #050805 0%, rgba(5, 8, 5, .94) 30%, rgba(5, 8, 5, .45) 55%, rgba(5, 8, 5, 0) 74%),
    linear-gradient(0deg, rgba(5, 8, 5, .75), transparent 28%);
}
.hero-bg .hero-title, .hero-bg .brand { color: #fff; }
.hero-bg .hero-lead { color: rgba(237, 239, 233, .74); }
.hero-bg .topnav { color: rgba(237, 239, 233, .75); }
.hero-bg .topnav a:hover { color: #fff; }
.hero-bg .topnav span { color: rgba(237, 239, 233, .35); }
.hero-bg .btn-outline { border-color: rgba(255, 255, 255, .7); color: #fff; }
.hero-bg .btn-outline:hover { background: rgba(255, 255, 255, .08); }
.hero-bg .pill { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); color: #fff; }
.hero-bg .frame-foot { color: rgba(237, 239, 233, .75); }
.hero-bg .foot-url i { background: rgba(237, 239, 233, .75); }
.hero-bg .foot-tag { color: rgba(237, 239, 233, .55); }
.hero-bg .hero-card {
  position: relative; right: auto; top: auto;
  align-self: end; justify-self: end; width: 230px;
  background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}

/* --- Línea de tiempo: la línea pasa por encima de las tarjetas, sin parches --- */
.timeline { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding-top: 30px; }
.timeline::before { top: 6px; left: 22px; right: 22px; }
.milestone { padding: 22px 18px; }
.milestone::before {
  content: ""; position: absolute; top: -30px; left: 22px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 5px rgba(155, 214, 42, .2);
}
.milestone-year { background: none; padding-right: 0; font-size: 30px; }
.milestone h3 { margin-top: 18px; font-size: 17px; }
.milestone p { font-size: 13px; }

/* --- Cómo trabajamos: panel oscuro con aurora verde --- */
.process-dark {
  background: #070A07; border: 1px solid rgba(255, 255, 255, .06); color: #EDEFE9;
  overflow: hidden; isolation: isolate; backdrop-filter: none; -webkit-backdrop-filter: none;
  padding: 64px 44px 56px calc(var(--side) + 70px); margin-top: 10px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .5);
}
.aurora {
  position: absolute; inset: -25%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 30% at 22% 30%, rgba(155, 214, 42, .34), transparent 70%),
    radial-gradient(30% 28% at 78% 18%, rgba(46, 160, 96, .30), transparent 70%),
    radial-gradient(40% 32% at 62% 88%, rgba(190, 240, 80, .20), transparent 70%),
    radial-gradient(28% 24% at 10% 85%, rgba(60, 140, 60, .22), transparent 70%);
  filter: blur(50px);
  animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(5%, -4%, 0) rotate(10deg) scale(1.1); }
  100% { transform: translate3d(-4%, 5%, 0) rotate(-8deg) scale(1.02); }
}
.process-inner { margin-block: auto; }
.process-dark .section-title { color: #fff; }
.process-dark .services-note { color: rgba(237, 239, 233, .7); }
.process-dark .pill { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .05); color: #fff; }

.stages-wrap { position: relative; margin-top: 10px; }
.stages-line {
  /* a la altura de los nodos: 78px del número + 18px de margen + medio nodo */
  position: absolute; left: 0; right: 0; top: 103px; height: 1px;
  background: linear-gradient(90deg, rgba(185, 236, 70, .9), rgba(155, 214, 42, .5) 60%, rgba(155, 214, 42, .08));
  box-shadow: 0 0 12px rgba(155, 214, 42, .6);
  transform-origin: left center;
}
.anim [data-anim="line"] { transition-duration: .6s, 1.6s; }
.anim [data-anim="line"]:not(.in) { transform: scaleX(0); }
.stages {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px;
}
.stage-num {
  display: block; height: 78px;
  font-family: var(--display); font-weight: 800; font-size: 78px; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(185, 236, 70, .55);
  transition: color .4s, -webkit-text-stroke-color .4s;
}
.stage:hover .stage-num { color: var(--lime); -webkit-text-stroke-color: transparent; }
.stage-node {
  display: block; width: 13px; height: 13px; border-radius: 50%; margin: 18px 0 26px;
  background: var(--lime-bright);
  box-shadow: 0 0 0 6px rgba(155, 214, 42, .16), 0 0 22px 2px rgba(155, 214, 42, .75);
}
.stage h3 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 22px; letter-spacing: -.02em; color: #fff;
}
.stage h3 svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--lime-bright); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stage p { margin-top: 12px; font-size: 14px; line-height: 1.55; color: rgba(237, 239, 233, .62); }

/* --- Equipo: organigrama con filtro pop verde; al pasar el mouse, foto limpia --- */
.team-block { padding-top: 44px; padding-bottom: 40px; }
.team-block .section-title { font-size: clamp(34px, 3.6vw, 54px); }
.team-block .services-head { margin-bottom: 26px; }
.team-tree { display: grid; gap: 14px; justify-items: center; }
.tier, .tier-split > div { display: grid; justify-items: center; gap: 10px; }
.tier-split { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 64px; }
.tier-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.tier-label::before, .tier-label::after { content: ""; width: 28px; height: 1px; background: rgba(14, 16, 13, .18); }
.team-row { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.person { width: 136px; text-align: center; }
.person figure { width: 96px; margin-inline: auto !important; }
.person.lead figure { width: 112px; }
.person figure {
  position: relative; margin: 0; aspect-ratio: 1; border-radius: 22px; overflow: hidden;
  background: #10220b center 18% / cover no-repeat;          /* foto limpia, debajo */
  box-shadow: 0 16px 30px -18px rgba(20, 40, 10, .55);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.person img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 18%;
  filter: url(#pop-green);                                   /* versión pop, encima */
  transition: opacity .45s var(--ease);
}
.person figure::after {
  /* trama de puntos tipo cómic */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(10, 30, 5, .55) 1px, transparent 1.6px);
  background-size: 5px 5px; mix-blend-mode: multiply; opacity: .55;
  transition: opacity .45s var(--ease);
}
.person:hover figure { transform: translateY(-4px); box-shadow: 0 22px 36px -18px rgba(20, 40, 10, .6); }
.person:hover img, .person:hover figure::after { opacity: 0; }
.no-photo { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #C6F24A, #4E8A12) !important; }
.no-photo span { font-family: var(--display); font-weight: 800; font-size: 32px; color: #10200A; }
.person h3 { margin-top: 10px; font-family: var(--display); font-weight: 800; font-size: 14px; line-height: 1.2; }
.person p { margin-top: 3px; font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (max-width: 1180px) {
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .timeline::before, .milestone::before { display: none; }
}
@media (max-width: 899px) {
  .hero-media { background-position: center top; background-size: cover; }
  .hero-media::after { background: linear-gradient(0deg, #050805 35%, rgba(5, 8, 5, .6) 70%, rgba(5, 8, 5, .3)); }
  .hero-bg .hero-card { justify-self: start; }
  .process-dark { padding: 48px 20px; }
  .stages { grid-template-columns: 1fr; gap: 34px; }
  .stages-line, .stage-node { display: none; }
  .timeline { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .aurora { animation: none; } }

/* ==========================================================================
   Nosotros v4 (ajustes sobre v2)
   ========================================================================== */

/* Menú lateral durante la transición entre páginas: el desenfoque de fondo no se
   puede capturar en la "foto" de la transición y salía un rectángulo oscuro */
html:active-view-transition .sidebar {
  backdrop-filter: none; -webkit-backdrop-filter: none;
  background: rgba(250, 251, 248, .94);
}

/* Números de las etapas: relleno negro con trazo verde. paint-order pinta el relleno
   encima del trazo, así desaparecen las líneas internas de la fuente */
.stage-num {
  color: #050805; -webkit-text-stroke: 3px var(--lime); paint-order: stroke fill;
  letter-spacing: -.02em; transition: color .4s;
}
.stage:hover .stage-num { color: var(--lime); -webkit-text-stroke-color: var(--lime); }

/* Nuestra historia: tamaños de las tarjetas */
.timeline.tl4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tl4 .milestone {
  padding: 28px 26px 30px;
  transition: transform .6s var(--ease), background-color .6s var(--ease), box-shadow .6s var(--ease);
}
.tl4 .milestone-year { font-size: 48px; }
.tl4 .milestone h3 { margin-top: 20px; font-size: 21px; }
.tl4 .milestone p { font-size: 14.5px; }
.tl4 .milestone::before { transition: transform .5s var(--ease), box-shadow .5s var(--ease); }

/* Cierre centrado: mismo aire a ambos lados (antes solo reservaba espacio a la izquierda) */
.cta-block { padding-left: calc(var(--side) + 70px); padding-right: calc(var(--side) + 70px); }

/* Equipo (estructura de v3): dos filas ordenadas por área; fotos grandes, desaturadas, a color al pasar el mouse --- */
.team-block { padding-top: 48px; padding-bottom: 40px; }
.team-block .services-head { margin-bottom: 26px; }
.org { display: grid; grid-template-columns: 2fr 3fr; gap: 22px 36px; }
.org-group { display: grid; gap: 12px; align-content: start; }
.tier-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 10px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.tier-label::after { content: ""; flex: 1; height: 1px; background: rgba(14, 16, 13, .15); }
.org-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.g2 .org-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 .org-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.org .member {
  padding: 8px 8px 14px; border-radius: 20px;
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: var(--glass-shadow);
  transition: transform .4s var(--ease), background-color .4s var(--ease);
}
.org .member:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .75); }
.org .member figure { margin: 0; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #1a1d18; }
.org .member img {
  width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0;
  object-fit: cover; object-position: center 20%;
  filter: grayscale(.6) brightness(.97);          /* ligeramente desaturadas */
  transition: filter .5s var(--ease), transform .6s var(--ease);
}
.org .member:hover img { filter: none; transform: scale(1.04); }
.org .member h3 { margin: 12px 6px 0; font-family: var(--display); font-weight: 800; font-size: 15px; line-height: 1.2; }
.org .member p { margin: 3px 6px 0; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.no-photo { display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #C6F24A, #4E8A12) !important; }
.no-photo span { font-family: var(--display); font-weight: 800; font-size: 40px; color: #10200A; }

.org .tier-label::before { display: none; }
@media (max-width: 1180px) { .timeline.tl4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .timeline.tl4 { grid-template-columns: 1fr; }
  .cta-block { padding-left: 20px; padding-right: 20px; }
  .org { grid-template-columns: 1fr; }
  .g3 .org-row, .g2 .org-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Etapas sin línea ni nodos (se parecía a la línea de tiempo): el número va sobre el título */
.stage h3 { margin-top: 22px; }

/* Nuestra historia (v5): las 6 fechas, 4 visibles; cada 4 s se desliza una a la
   izquierda (main.js, data-step-carousel). La línea y los puntos viajan con las
   tarjetas: cada tarjeta lleva su tramo de línea hasta la siguiente. */
.tl-viewport {
  --per: 4; --gap: 18px;
  overflow: hidden;
  /* a los lados deja exactamente el espacio entre tarjetas (la siguiente sigue oculta)
     y lo desvanece; abajo, espacio de sobra para que la sombra termine sola */
  margin: -12px calc(-1 * var(--gap)) -70px; padding: 12px var(--gap) 70px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gap), #000 calc(100% - var(--gap)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--gap), #000 calc(100% - var(--gap)), transparent 100%);
}
.timeline.tl-slide { display: flex; gap: var(--gap); padding-top: 30px; }
.timeline.tl-slide::before { display: none; }
.tl-slide.is-moving { transition: transform .8s var(--ease); }
.tl-slide > li { flex: 0 0 calc((100% - var(--gap) * (var(--per) - 1)) / var(--per)); }
.tl-slide .milestone::after {
  /* tramo de línea desde este punto hasta el de la tarjeta siguiente */
  content: ""; position: absolute; top: -25px; left: 34px; height: 2px;
  width: calc(100% + var(--gap) - 12px);
  background: linear-gradient(90deg, rgba(155, 214, 42, .7), rgba(155, 214, 42, .35));
}
@media (max-width: 1180px) { .tl-viewport { --per: 2.3; } }
@media (max-width: 899px)  { .tl-viewport { --per: 1.15; } }

/* Cierre en verde */
.cta-green {
  background: linear-gradient(135deg, #C6F24A 0%, #A5DC2E 50%, #7CC520 100%);
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 40px 90px -40px rgba(100, 160, 20, .6), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.cta-green .section-title { color: #0E100D; }
.cta-green .accent { color: #fff; }
.cta-green .cta-inner > p { color: rgba(14, 16, 13, .78); }
.cta-green .cta-mark { filter: brightness(0); opacity: .85; }
.cta-green .btn-outline { border-color: #0E100D; color: #0E100D; text-transform: none; letter-spacing: 0; font-size: 15px; }
.cta-green .btn-outline:hover { background: rgba(255, 255, 255, .25); }
.cta-green .frame-foot { color: rgba(14, 16, 13, .75); }
.cta-green .foot-url i { background: rgba(14, 16, 13, .75); }
.cta-green .foot-tag { color: rgba(14, 16, 13, .6); }
.btn-dark {
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 50px; padding: 0 26px; border: 0; border-radius: 999px;
  background: #0E100D; color: #fff; font-size: 15px; font-weight: 600;
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease);
}
.btn-dark:hover { transform: translateY(-2px); }
.btn-dark .arrow { font-size: 18px; transition: transform .3s var(--ease); }
.btn-dark:hover .arrow { transform: translateX(4px); }

/* ==========================================================================
   Servicios
   ========================================================================== */

/* --- Desplegable de Servicios en el menú lateral (solo CSS) --- */
.has-flyout { position: relative; display: grid; justify-items: center; }
.flyout {
  /* fondo sólido: un panel con desenfoque dentro del menú (que ya lo usa) no
     alcanza a desenfocar la página y se veía transparente */
  background: #FAFBF8;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 30px 60px -28px rgba(20, 30, 10, .45);
  z-index: 5;
  position: absolute; left: calc(100% + 14px); top: 50%;
  transform: translate(-10px, -50%) scale(.98);
  width: 290px; padding: 18px; border-radius: 22px;
  opacity: 0; visibility: hidden; pointer-events: none;
  /* al salir espera un poco: si no, al mover el mouse en diagonal se cierra solo */
  transition: opacity .25s var(--ease) .18s, transform .3s var(--ease) .18s, visibility .25s .18s;
}
.flyout::before {
  /* puente invisible entre el botón y el panel: cubre el hueco de 14px */
  content: ""; position: absolute; left: -22px; top: -14px; bottom: -14px; width: 26px;
}
.has-flyout:hover .flyout, .has-flyout:focus-within .flyout {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(0, -50%) scale(1);
  transition-delay: 0s;
}
.flyout a { min-height: 42px; }   /* más alto para acertarle sin esfuerzo */
.flyout-title { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.flyout ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 2px; }
.flyout a {
  display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px;
  /* width: auto le gana a los 72px del menú lateral; si no, el resaltado del hover
     solo cubría el número y el nombre, y "8 servicios" quedaba fuera */
  width: auto;
  padding: 8px 10px; border-radius: 12px;
  transition: background-color .2s;
}
.flyout a:hover { background: rgba(155, 214, 42, .18); }
.fly-num { font-size: 11px; font-weight: 600; color: var(--muted); }
.fly-name { font-family: var(--display); font-weight: 800; font-size: 15px; }
.fly-count { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* --- Hero: accesos a las unidades --- */
.unit-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.unit-chips a {
  display: inline-flex; align-items: baseline; gap: 8px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid rgba(14, 16, 13, .18); background: rgba(255, 255, 255, .55);
  font-size: 14px; font-weight: 600;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.unit-chips a span { font-size: 11px; color: var(--muted); font-weight: 600; }
.unit-chips a:hover { background: var(--lime-bright); border-color: var(--lime-bright); transform: translateY(-2px); }
.unit-chips a:hover span { color: rgba(14, 16, 13, .6); }

/* --- Una zona por unidad: texto a la izquierda, lista a la derecha,
       y debajo, centradas y más grandes, las fotos de referencia --- */
.unit-zone {
  display: grid; align-content: center; justify-content: center;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px clamp(28px, 3.4vw, 52px);
  /* mismo aire a los dos lados (lo justo para librar el menú): queda centrada */
  padding: 30px calc(var(--side) + 20px);
  width: 100%;
  scroll-margin-top: 0;
}

.unit-num {
  display: block;
  font-family: var(--display); font-weight: 800; font-size: clamp(46px, 4.4vw, 70px); line-height: 1;
  /* relleno del color del fondo y borde verde; paint-order pinta el relleno encima
     del trazo y así no se ven las líneas internas donde la fuente superpone contornos */
  color: var(--bg); -webkit-text-stroke: 3px var(--lime); paint-order: stroke fill;
  letter-spacing: .01em;
  transition: color .4s;
}
.unit-zone:hover .unit-num { color: var(--lime); }
/* el nombre de la unidad es el título de la sección: va en la redondeada, como el
   número de arriba y la frase de abajo (se había quedado en la fuente del texto) */
.unit-name {
  margin-top: 6px; font-family: var(--display); font-weight: 800;
  font-size: clamp(38px, 4.4vw, 64px); line-height: 1; letter-spacing: -.03em;
}
.unit-tagline { margin-top: 12px; font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.8vw, 24px); }
.unit-desc { margin-top: 14px; max-width: 42ch; font-size: 16px; color: var(--ink-2); }
.unit-copy .btn-lime { margin-top: 24px; }

.unit-services { align-self: center; padding: 26px 30px; border-radius: 24px; }
.unit-count { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.unit-services ul {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 22px;
}
.unit-services li {
  position: relative; padding: 9px 0 9px 20px;
  font-size: 16px; border-bottom: 1px solid rgba(14, 16, 13, .07);
}
.unit-services li::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime);
}

/* Fotos de referencia: dos juegos que se alternan con fundido (main.js, data-gallery) */
.unit-gallery {
  grid-column: 1 / -1; width: 100%;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.unit-gallery figure {
  position: relative; margin: 0; height: 290px; overflow: hidden;
  border-radius: 20px; background: #dfe3dc;
  box-shadow: 0 26px 46px -28px rgba(20, 30, 10, .55);
}
.unit-gallery img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1s var(--ease), transform .7s var(--ease);
}
.unit-gallery img.is-on { opacity: 1; }
.unit-gallery figure:hover img.is-on { transform: scale(1.05); }
.unit-gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 18px 16px;
  background: linear-gradient(0deg, rgba(8, 14, 5, .88), rgba(8, 14, 5, 0));
  color: #fff; font-size: 14px; line-height: 1.35;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.unit-gallery figure:hover figcaption, .unit-gallery figure:focus-within figcaption { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .flyout { display: none; }                      /* en celular el botón va directo a la página */
  .unit-zone { grid-template-columns: 1fr; padding: 48px 20px; justify-content: stretch; }
  .unit-services ul { grid-template-columns: 1fr; }
  .unit-gallery { gap: 10px; }
  .unit-gallery figure { height: 120px; }
  .unit-gallery figcaption { font-size: 11px; padding: 18px 10px 10px; }
}

/* Las zonas sueltas se muestran como columna (ver "Scroll por zonas"); las unidades
   de Servicios necesitan su rejilla, así que se impone aquí con el mismo peso */
@media (min-width: 900px) and (min-height: 640px) {
  [data-zone]:not(.frame).unit-zone { display: grid; }
}

/* ==========================================================================
   Nosotros v6 + formulario con correo
   ========================================================================== */

/* La G del hero, más pequeña: acompaña, no compite con el título */
.hero-media { background-size: auto 78%; background-position: right 2% center; }

/* Historia en zigzag: los hitos bajan alternando lados de una línea vertical */
.zigzag { list-style: none; margin: 16px 0 0; padding: 0; position: relative; display: grid; gap: 10px; }
.zigzag::before {
  content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px;
  transform: translateX(-1px);
  background: linear-gradient(180deg, rgba(155, 214, 42, .1), var(--lime) 12%, var(--lime) 88%, rgba(155, 214, 42, .1));
}
.hito { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 0 46px; }
.hito::before {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 5px rgba(155, 214, 42, .18);
  transition: transform .4s var(--ease);
}
.hito:hover::before { transform: scale(1.3); }
.hito-year { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 2.2vw, 30px); line-height: 1; }
.hito-card { padding: 14px 18px; border-radius: 16px; transition: transform .4s var(--ease); }
.hito:hover .hito-card { transform: translateY(-3px); }
.hito-card h3 { font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.01em; }
.hito-card p { margin-top: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }

.hito.izq .hito-card { grid-column: 1; text-align: right; }
.hito.izq .hito-year { grid-column: 2; justify-self: start; }
.hito.der .hito-card { grid-column: 2; }
.hito.der .hito-year { grid-column: 1; justify-self: end; }
.hito.is-now .hito-card { background: linear-gradient(160deg, rgba(200, 242, 76, .7), rgba(155, 214, 42, .45)); }
.hito.is-now .hito-card p { color: var(--ink-2); }
.hito.is-now::before { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(155, 214, 42, .25); }

/* Equipo: administración y creativo/operativo en una sola fila de cinco */
.org-group.g5 { grid-column: 1 / -1; }
.g5 .org-row { grid-template-columns: repeat(5, minmax(0, 1fr)); }

/* Formulario: enviar por WhatsApp o por correo */
.send-row { display: flex; flex-wrap: wrap; gap: 10px; }
.send-row .btn-lime, .send-row .btn-outline { flex: 1 1 200px; justify-content: center; }
.send-row .btn-outline { text-transform: none; letter-spacing: 0; font-size: 15px; gap: 12px; min-height: 50px; }

@media (max-width: 899px) {
  .zigzag::before { left: 14px; }
  .hito { grid-template-columns: 1fr; gap: 4px; padding-left: 38px; }
  .hito::before { left: 14px; top: 22px; }
  .hito.izq .hito-card, .hito.der .hito-card { grid-column: 1; text-align: left; }
  .hito.izq .hito-year, .hito.der .hito-year { grid-column: 1; justify-self: start; }
  .g5 .org-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* La historia en zigzag debe caber en una pantalla: encabezado e hitos más compactos */
.timeline-block { padding-top: 44px; padding-bottom: 40px; }
.timeline-block .services-head { margin-bottom: 18px; }
.timeline-block .section-title { font-size: clamp(32px, 3.4vw, 50px); }
.zigzag { gap: 6px; }
.hito-card { padding: 11px 16px; }
.hito-card h3 { font-size: 16px; }
.hito-card p { margin-top: 3px; font-size: 12.5px; }
.hito-year { font-size: clamp(20px, 2vw, 27px); }

/* Historia como montaña: los picos a distinta altura unidos por una línea quebrada
   que se dibuja al entrar; las tarjetas van en dos franjas fijas (3 arriba, 3 abajo)
   y se unen a su pico con una línea punteada */
.mountain { position: relative; height: 470px; margin-top: 6px; }
.mountain-line {
  position: absolute; inset: 0; width: 100%; height: 100%; fill: none; overflow: visible;
  clip-path: inset(-40px -40px -40px -40px);   /* holgura para el resplandor */
}
.mountain-line polyline {
  stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 0 6px rgba(155, 214, 42, .45));
}
/* se revela de izquierda a derecha con un recorte: con stroke-dasharray el trazo
   quedaba corto (Chrome lo calcula mal junto a non-scaling-stroke y el estirado).
   Debe terminar antes de que el sistema de entradas limpie el elemento (retraso + 1100 ms) */
.anim [data-anim="draw"] { transition: clip-path .9s var(--ease); }
.anim [data-anim="draw"]:not(.in) { clip-path: inset(-40px 100% -40px -40px); }

.peaks { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); }
.peak { position: relative; }
.peak-dot {
  position: absolute; left: 50%; bottom: var(--y);
  width: 14px; height: 14px; margin: 0 0 -7px -7px; border-radius: 50%;
  background: var(--lime); box-shadow: 0 0 0 5px rgba(155, 214, 42, .18);
  transition: transform .4s var(--ease);
}
.peak:hover .peak-dot { transform: scale(1.35); }
.peak.is-now .peak-dot { box-shadow: 0 0 0 7px rgba(155, 214, 42, .28), 0 0 22px 3px rgba(155, 214, 42, .6); }

/* línea punteada entre la tarjeta y su pico */
.peak-link {
  position: absolute; left: 50%; width: 1px; margin-left: -.5px;
  background-image: linear-gradient(180deg, rgba(14, 16, 13, .28) 55%, transparent 0);
  background-size: 1px 7px;
}
.peak.up .peak-link { top: 104px; bottom: calc(var(--y) + 10px); }
.peak.down .peak-link { top: calc(100% - var(--y) + 10px); bottom: 104px; }

.peak-year {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(var(--y) + 16px);
  font-family: var(--display); font-weight: 800; font-size: clamp(20px, 2vw, 28px); line-height: 1;
}
.peak.up .peak-year { bottom: auto; top: calc(100% - var(--y) + 16px); }

.peak-card {
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 240px; min-height: 92px; padding: 12px 16px; border-radius: 16px;
  transition: transform .4s var(--ease);
}
.peak.up .peak-card { top: 0; }
.peak.down .peak-card { bottom: 0; }
/* la primera y la última se alinean al borde para no salirse del bloque */
.peak:first-child .peak-card { left: 0; transform: none; }
.peak:last-child .peak-card { left: auto; right: 0; transform: none; }
.peak:hover .peak-card { transform: translate(-50%, -3px); }
.peak:first-child:hover .peak-card, .peak:last-child:hover .peak-card { transform: translateY(-3px); }
.peak-card h3 { font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.01em; }
.peak-card p { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.peak.is-now .peak-card { background: linear-gradient(160deg, rgba(200, 242, 76, .75), rgba(155, 214, 42, .5)); }
.peak.is-now .peak-card p { color: var(--ink-2); }

@media (max-width: 899px) {
  /* en celular la montaña se convierte en una lista vertical */
  .mountain { height: auto; }
  .mountain-line, .peak-dot, .peak-link { display: none; }
  .peaks { position: static; grid-template-columns: 1fr; gap: 10px; }
  .peak-year, .peak.up .peak-year { position: static; transform: none; display: block; }
  .peak-card, .peak.up .peak-card, .peak.down .peak-card,
  .peak:first-child .peak-card, .peak:last-child .peak-card {
    position: static; transform: none; width: auto; margin-top: 6px;
  }
  .peak:hover .peak-card { transform: none; }
}

/* Historia: la tarjeta de cada hito aparece al pasar el cursor por el año (o al
   enfocarlo con el teclado). Solo donde hay cursor: en pantallas táctiles y en
   celular las tarjetas siguen siempre visibles. */
@media (min-width: 900px) and (hover: hover) {
  .peak-card {
    opacity: 0; pointer-events: none;
    transition: opacity .3s var(--ease), transform .35s var(--ease);
  }
  .peak.up .peak-card { transform: translate(-50%, 10px); }
  .peak.down .peak-card { transform: translate(-50%, -10px); }
  .peak:first-child .peak-card { transform: translateY(10px); }
  .peak:last-child .peak-card { transform: translateY(-10px); }
  .peak:hover .peak-card, .peak:focus-within .peak-card {
    opacity: 1; pointer-events: auto; transform: translateX(-50%);
  }
  .peak:first-child:hover .peak-card, .peak:first-child:focus-within .peak-card,
  .peak:last-child:hover .peak-card, .peak:last-child:focus-within .peak-card {
    opacity: 1; transform: none;
  }
  .peak-link { opacity: 0; transition: opacity .3s var(--ease); }
  .peak:hover .peak-link, .peak:focus-within .peak-link { opacity: 1; }
  .peak-year { cursor: default; transition: color .25s var(--ease); }
  .peak:hover .peak-year, .peak-year:focus-visible { color: var(--lime-deep); }
}

/* Pie: el logo va apilado como el original — la G arriba y el nombre en dos líneas */
.brand-stack { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.footer .brand-stack img { width: 84px; height: 84px; }   /* gana a la regla del pie (28px) */
.brand-word { display: grid; font-size: 26px; line-height: .95; letter-spacing: -.02em; }
@media (max-width: 899px) { .brand-stack { align-items: flex-start; text-align: left; } }

/* ==========================================================================
   Móvil: el hero va centrado (texto, botones y tarjeta)
   ========================================================================== */
@media (max-width: 899px) {
  .hero-grid { justify-items: center; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions, .unit-chips { justify-content: center; }
  .hero-visual, .hero-card, .hero-veil .hero-card { justify-self: center; }
  .hero-card { text-align: left; }
  .frame-foot { flex-direction: column; align-items: center; gap: 10px; text-align: center; }
  .foot-tag { text-align: center; }
}

/* En móvil los títulos de sección van centrados (con su etiqueta y su bajada) */
@media (max-width: 899px) {
  .services-head { text-align: center; justify-items: center; }
  .services-head .pill, .services-note, .section-title { margin-inline: auto; }
  .services-note { max-width: 46ch; }
  /* Servicios: el bloque de texto de cada unidad también */
  .unit-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .unit-desc { margin-inline: auto; }
  /* Nosotros: los hitos de la historia y el pie del marco */
  .peak-year, .peak-card { text-align: center; }
  .cta-inner { text-align: center; }
}

/* ==========================================================================
   Contacto: a la izquierda los datos, a la derecha el formulario (maqueta de referencia)
   ========================================================================== */
.contact-grid {
  flex: 1;
  display: grid; grid-template-columns: minmax(330px, 33%) 1fr;
  gap: clamp(28px, 4vw, 52px); align-items: center;
  padding: 6px 0 0;
}

.info-head {
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 20px;
}
.info-head + .info-item { margin-top: 0; }
.contact-info .info-head:not(:first-child) { margin-top: 34px; }

.info-item { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
.info-ico {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-border);
  box-shadow: 0 14px 30px -18px rgba(20, 30, 10, .4), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.info-ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.info-item:hover .info-ico { background: rgba(185, 236, 70, .5); transform: translateY(-2px); }

.info-label { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-text a { display: block; font-size: 14px; font-weight: 500; line-height: 1.55; }   /* los correos son largos: caben en una línea */
.info-text a:hover { text-decoration: underline; text-underline-offset: 4px; }
.info-text address { font-style: normal; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.info-link { margin-top: 8px; font-size: 13px !important; font-weight: 600 !important; color: var(--lime-deep); }

.socials { display: flex; gap: 12px; }
.socials a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, .55); border: 1px solid var(--glass-border);
  box-shadow: 0 14px 30px -18px rgba(20, 30, 10, .4), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.socials svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.socials a:hover { background: rgba(185, 236, 70, .5); transform: translateY(-3px); }

/* El panel del formulario */
.contact-panel {
  border-radius: 30px; padding: clamp(22px, 2.2vw, 30px);
  background: rgba(255, 255, 255, .5);
}
.panel-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 3.6vw, 52px); line-height: 1; letter-spacing: -.04em;
}
.panel-lead { margin-top: 12px; font-size: 15px; color: var(--ink-2); }
.panel-form { margin-top: 20px; gap: 12px; }
.panel-form .field input, .panel-form .field textarea { padding: 12px 16px; border-radius: 16px; }
.form-note { font-size: 12px; line-height: 1.5; color: var(--muted); }

/* El mapa: una franja baja debajo del formulario, en la misma pantalla */
/* el mapa vive en la columna de datos, entre la dirección y las redes; se mide en vh
   para que la sección completa siga cabiendo en una pantalla */
.map-strip {
  margin: 20px 0 26px;
  height: clamp(130px, 18vh, 210px);
  overflow: hidden; border-radius: 26px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 26px 50px -34px rgba(20, 30, 10, .5);
}
.map-strip iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.3) contrast(1.03); }
.map-strip:hover iframe { filter: none; }

/* Sin submenú arriba: el logo a un lado y el botón al otro */
.topbar-simple { grid-template-columns: auto auto; justify-content: space-between; }
.contact-hero { padding-top: 26px; padding-bottom: 24px; }
/* el bloque quedaba pegado a la derecha: se reparte el aire que sobra a los dos
   lados, midiendo el de la izquierda desde donde termina el menú lateral */
@media (min-width: 900px) {
  .contact-hero { padding-left: calc(var(--side) + 36px); padding-right: 48px; }
}
/* sin esto la columna del formulario se sale unos píxeles de su casilla */
.contact-grid > * { min-width: 0; }

@media (max-width: 1180px) {
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 899px) {
  .contact-hero .contact-grid { padding-top: 28px; }
  /* en celular la sección ya no tiene que caber en una pantalla: el mapa respira */
  .map-strip { height: 200px; margin: 24px 0; width: min(100%, 420px); }
  /* la columna de datos se centra en bloque; cada dato sigue leyéndose alineado */
  .contact-info { display: flex; flex-direction: column; align-items: center; }
  .contact-info .info-head { text-align: center; }
  .info-item { width: min(100%, 420px); }
  .socials { justify-content: center; }
  /* el título del panel va centrado como los demás; el formulario no */
  .contact-panel { text-align: center; }
  .panel-lead { margin-inline: auto; max-width: 40ch; }
  .panel-form { text-align: left; }
}
/* correos largos: parten de línea antes que salirse de la pantalla */
.info-text a { overflow-wrap: anywhere; }
@media (max-width: 560px) {
  /* en pantallas angostas el icono pasa arriba: así el correo largo cabe en una línea */
  .info-item { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .info-text { width: 100%; }
  .info-text a, .info-text address { font-size: 14px; }
}

/* ==========================================================================
   Proyectos: página de "Próximamente" mientras se arma el portafolio
   ========================================================================== */
.soon {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; gap: 18px; padding: 20px 0;
}
.soon-mark { width: 92px; height: 92px; object-fit: contain; }
.soon-title { font-size: clamp(52px, 8vw, 116px); }
.soon-lead { max-width: 46ch; font-size: clamp(15px, 1.3vw, 18px); color: var(--ink-2); }
.soon-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 8px; }
.soon-actions .btn-outline { text-transform: none; letter-spacing: 0; font-size: 15px; gap: 14px; min-height: 50px; }
@media (max-width: 899px) { .soon { padding: 40px 0; } .soon-mark { width: 72px; height: 72px; } }

/* El pie tenía 110px de aire debajo del logo: en escritorio se recorta (los 120px de
   abajo en celular se quedan, ahí el menú es una barra flotante que tapa el final) */
@media (min-width: 900px) {
  .footer { padding-top: 36px; padding-bottom: 40px; }
}
