/* =============================================================
   0. Custom fonts
   ============================================================= */
@font-face {
  font-family: 'Swarsh Daisy';
  src: url('assets/fonts/swarsh-daisy-italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Swarsh Daisy';
  src: url('assets/fonts/swarsh-daisy-regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  /* Brand palette */
  --navy:      #00336A;
  --navy-dark: #001f45;
  --navy-mid:  #004080;
  --celeste:   #93B8E0;
  --blue-mid:  #4E92CC;
  --blue-light:#BED9F1;
  --bright:    #4FA3F0;
  --bright-dark: #3388d8;
  --white:     #FFFFFF;

  /* Semantic */
  --bg:        var(--navy);
  --bg-dark:   var(--navy-dark);
  --bg-card:   rgba(0, 51, 106, 0.6);
  --text:      var(--white);
  --text-soft: var(--blue-light);
  --text-mute: var(--celeste);
  --accent:    var(--bright);
  --accent-hover: var(--bright-dark);
  --line:      rgba(147, 184, 224, 0.18);

  /* Typography */
  --display: 'League Spartan', sans-serif;
  --serif:   'Swarsh Daisy', Georgia, serif;
  --body:    'Montserrat', sans-serif;

  /* Spacing */
  --gutter: clamp(1.25rem, 5vw, 2rem);
  --section-gap: clamp(5rem, 10vw, 8rem);

  /* Easings */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Nav */
  --nav-h: 140px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
address { font-style: normal; }
h1, h2, h3, h4 {
  font-family: var(--display);
  text-wrap: balance;
  line-height: 1.0;
  letter-spacing: -0.02em;
}
ul[role="list"] { list-style: none; padding: 0; }
::selection { background: var(--bright); color: var(--navy-dark); }
/* skip-link color fix */
:focus-visible {
  outline: 2px solid var(--bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--bright); color: var(--white);
  z-index: 9999; border-radius: 50px; font-weight: 600; font-family: var(--display);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* =============================================================
   4. Typography
   ============================================================= */
.section-eyebrow {
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
}
.section-header {
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section-desc {
  font-family: var(--body);
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  color: var(--blue-light);
  max-width: 62ch;
  line-height: 1.8;
  margin-top: 1.25rem;
}

/* =============================================================
   5. Buttons
   ============================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: .9rem 2rem;
  border-radius: 50px;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--bright);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--bright-dark);
  box-shadow: 0 8px 32px rgba(79, 163, 240, 0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  border-color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
}
.btn-lg {
  padding: 1.1rem 2.5rem;
  font-size: 1rem;
}
@media (max-width: 480px) {
  .btn {
    padding: 1rem 1.8rem;
    min-height: 52px;
    font-size: .88rem;
  }
  .btn-lg {
    padding: 1.1rem 2rem;
  }
}
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.65);
  font-family: var(--body);
  font-weight: 600;
  letter-spacing: .08em;
}
.btn-outline-white:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--navy);
  box-shadow: 0 8px 32px rgba(255,255,255,0.15);
}

/* =============================================================
   6. NAV
   ============================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: linear-gradient(180deg, rgba(0,20,50,0.55) 0%, transparent 100%);
  transition: height .4s cubic-bezier(.4,0,.2,1), background .5s var(--ease-soft);
}

/* Fondo difuso en ::before — el logo y links NO heredan la máscara */
.nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 14, 38, 0.96);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  -webkit-mask-image: linear-gradient(to bottom, black 45%, rgba(0,0,0,.6) 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 45%, rgba(0,0,0,.6) 75%, transparent 100%);
  opacity: 0;
  transition: opacity .5s var(--ease-soft);
}
.nav.is-scrolled {
  height: 80px;
  background: transparent;
}
.nav.is-scrolled::before {
  opacity: 1;
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: var(--gutter);
  max-width: 1200px;
  margin-inline: auto;
}
.nav-logo img {
  width: 160px;
  height: 160px;
  transition: opacity .2s, transform .4s cubic-bezier(.4,0,.2,1);
  transform-origin: left center;
}
.nav.is-scrolled .nav-logo img {
  transform: scale(0.8125); /* 160px → 130px */
}
.nav-logo:hover img { opacity: 1; }

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-family: var(--display);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-light);
  transition: color .2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--bright);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: var(--bright) !important;
  color: var(--white) !important;
  padding: .55rem 1.35rem !important;
  border-radius: 50px !important;
  transition: background .2s, transform .2s !important;
}
.nav-cta:hover {
  background: var(--bright-dark) !important;
  transform: translateY(-1px) !important;
}
.nav-cta::after { display: none !important; }

.nav-burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;   /* touch target ≥ 44px */
  cursor: pointer;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-drawer {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: var(--navy-dark);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
}
.nav-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.nav-drawer ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  list-style: none; padding: 0;
}
.nav-drawer a {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: .02em;
  color: var(--white);
  text-transform: uppercase;
  transition: color .2s;
}
.nav-drawer a:hover { color: var(--bright); }

/* =============================================================
   6b. HERO
   ============================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Gradient base */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at var(--mx, 30%) var(--my, 40%),
      rgba(0, 80, 160, 0.6) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at calc(var(--mx, 30%) + 40%) calc(var(--my, 40%) + 20%),
      rgba(78, 146, 204, 0.2) 0%, transparent 50%),
    linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 50%, rgba(0,64,128,0.9) 100%);
  transition: background 0.4s ease;
  z-index: 0;
}

/* Grain overlay */
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

/* Radial vignette top/bottom */
.hero-radial {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,20,50,0.55) 0%, transparent 25%),
    linear-gradient(0deg, rgba(0,20,50,0.7) 0%, transparent 35%);
}

.hero-content {
  position: relative;
  z-index: 3;
  padding-block: calc(var(--nav-h) + 4rem) 5rem;
}
.hero-eyebrow {
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--bright);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .8s .2s var(--ease-out) forwards;
}
.hero-title {
  font-family: var(--body);
  font-size: clamp(2.2rem, 7vw, 5.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--white);
  max-width: 18ch;
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp .9s .35s var(--ease-out) forwards;
}
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--bright);
  letter-spacing: 0.01em;
  text-transform: none;
  display: inline;
  font-size: 1.18em;
  line-height: 1.1;
}
.hero-title .hero-brand {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--bright);
  text-transform: none;
  letter-spacing: 0.01em;
  display: inline;
  font-size: 1.22em;
  line-height: 1.0;
}

/* Swarsh Daisy accent in section headings */
.section-title em,
.section-title .serif-accent {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--bright);
  letter-spacing: 0;
}
.hero-sub {
  font-family: var(--body);
  font-size: clamp(.95rem, 2vw, 1.15rem);
  font-weight: 400;
  color: var(--blue-light);
  max-width: 50ch;
  margin-top: 1.5rem;
  line-height: 1.6;
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp .8s .5s var(--ease-out) forwards;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp .7s .65s var(--ease-out) forwards;
}

/* Scroll hint */
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: var(--gutter);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  opacity: 0;
  animation: fadeIn 1s 1.4s forwards;
}
.hero-scroll span {
  font-family: var(--display);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--celeste);
  writing-mode: vertical-rl;
}
.hero-scroll-line {
  width: 1.5px;
  height: 48px;
  background: linear-gradient(to bottom, var(--bright), transparent);
  animation: scrollPulse 2.5s 1.4s ease-in-out infinite;
}

/* =============================================================
   6c. TALLER — Servicios tipográfico 2×2
   ============================================================= */
.taller {
  padding-top: var(--section-gap);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, var(--navy-dark) 0%, var(--navy) 100%);
}

/* Encabezado */
.svc-header {
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.svc-eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-bottom: .85rem;
}
.svc-main-title {
  font-family: var(--body);
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--white);
  line-height: 0.94;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
}
.svc-main-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--bright);
  text-transform: none;
  font-size: 1.25em;
  display: inline;
  line-height: 1.0;
}
.svc-main-sub {
  font-family: var(--body);
  font-size: clamp(.9rem, 1.6vw, 1.05rem);
  color: var(--blue-light);
  line-height: 1.65;
  max-width: 52ch;
}

/* ── SCROLL-STACK CARDS ─────────────────────────────────────── */
.svc-stack {
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* Cada item ES el sticky — así el z-index compite entre hermanos */
.svc-stack-item {
  position: sticky;
  top: calc(var(--nav-h) + 1.25rem);
  height: 85vh;
  will-change: transform;
}
.svc-stack-item:nth-child(1) { z-index: 1; }
.svc-stack-item:nth-child(2) { z-index: 2; }
.svc-stack-item:nth-child(3) { z-index: 3; }
.svc-stack-item:nth-child(4) { z-index: 4; }
.svc-stack-item:nth-child(5) { z-index: 5; }

/* Encuadre específico por tarjeta */
.svc-stack-item:nth-child(2) .svc-stack-card { background-position: center 15%; }
.svc-stack-item:nth-child(5) .svc-stack-card { background-position: center 55%; }
.svc-stack-item--last {
  /* sin cambios: height ya viene del padre */
}

/* La tarjeta ocupa todo el item — ella no es sticky */
.svc-stack-card {
  position: relative;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.45);
}

/* Overlay: gradiente de izquierda (navy opaco) a derecha (transparente) */
.svc-stack-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 51, 106, 0.92) 0%,
    rgba(0, 51, 106, 0.80) 35%,
    rgba(0, 51, 106, 0.30) 65%,
    transparent 100%
  );
  z-index: 1;
}

/* Contenido alineado a la izquierda */
.svc-stack-content {
  position: relative;
  z-index: 2;
  padding: clamp(2.5rem, 5vw, 4rem);
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.svc-stack-num {
  font-family: var(--body);
  font-size: clamp(4rem, 9vw, 7rem);
  font-weight: 900;
  color: var(--bright);
  line-height: 0.82;
  letter-spacing: -0.05em;
  display: block;
}

.svc-stack-title {
  font-family: var(--body);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.svc-stack-desc {
  font-family: var(--body);
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  color: var(--blue-light);
  line-height: 1.72;
  max-width: 44ch;
}

.svc-stack-keywords {
  font-family: var(--body);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--celeste);
  margin-top: .2rem;
}

/* Mobile: desactivar sticky, stack vertical simple */
@media (max-width: 767px) {
  .svc-stack {
    gap: 1.25rem;
  }
  .svc-stack-item {
    position: relative;
    top: auto;
    height: 58vh;    /* menos alto → flujo más natural */
  }
  .svc-stack-card {
    border-radius: 20px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  }
  .svc-stack-overlay {
    background: linear-gradient(
      to bottom,
      rgba(0, 51, 106, 0.45) 0%,
      rgba(0, 51, 106, 0.82) 55%,
      rgba(0, 51, 106, 0.95) 100%
    );
  }
  .svc-stack-content {
    padding: 1.75rem 1.5rem;
    max-width: 100%;
    justify-content: flex-end;
    height: 100%;
  }
  /* Número de tarjeta más discreto en mobile */
  .svc-stack-num {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  /* Título de tarjeta ajustado */
  .svc-stack-title {
    font-size: clamp(1.25rem, 5vw, 1.7rem);
  }
}

/* Cierre */
.svc-footer {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  justify-content: center;
}
.svc-footer-text {
  font-family: var(--body);
  font-size: .9rem;
  color: var(--blue-light);
}
.svc-footer-link {
  font-weight: 600;
  color: var(--white);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.28);
  text-underline-offset: 3px;
  transition: color .2s, text-decoration-color .2s;
}
.svc-footer-link:hover {
  color: var(--bright);
  text-decoration-color: var(--bright);
}

/* Defensive: .reveal[data-split] must never be invisible */
.reveal[data-split] { opacity: 1; transform: none; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =============================================================
   6c2. AIRE — breathing divider between sections
   ============================================================= */
.aire {
  background: var(--navy-dark);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 0;
  padding-bottom: 2rem;
}
.aire::before {
  content: '';
  display: block;
  width: clamp(10rem, 28vw, 22rem);
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(79, 163, 240, 0.45) 25%,
    rgba(79, 163, 240, 0.45) 75%,
    transparent 100%
  );
}

/* =============================================================
   6c3. IDEAS — "Tus ideas merecen un espacio"
   ============================================================= */
.ideas {
  padding-block: clamp(5rem, 10vw, 8rem);
  background-color: #edf2f8;
  background-image: url('assets/img/stand_zonalibre_2026.png');
  background-size: cover;
  background-position: center center;
  position: relative;
  overflow: hidden;
}
.ideas::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle, rgba(0,51,106,0.05) 1px, transparent 1px),
    linear-gradient(to right, rgba(237,242,248,0.96) 30%, rgba(237,242,248,0.72) 65%, rgba(237,242,248,0.55) 100%);
  background-size: 22px 22px, auto;
  pointer-events: none;
  z-index: 0;
}
.ideas-inner {
  max-width: 860px;
  position: relative;
  z-index: 1;
}
.ideas .section-eyebrow {
  color: var(--navy);
}
.ideas-title {
  font-family: var(--body);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--navy-dark);
  margin-bottom: 1.75rem;
}
.ideas-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--bright);
  text-transform: none;
  letter-spacing: 0.01em;
  display: inline;
  font-size: 1.28em;
}
.ideas-sub {
  font-family: var(--body);
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: #2d4a6e;
  max-width: 58ch;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}
.ideas-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.ideas-stat {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.ideas-stat strong {
  font-family: var(--display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  color: var(--bright-dark);
  line-height: 1;
}
.ideas-stat span {
  font-family: var(--body);
  font-size: .82rem;
  font-weight: 500;
  color: #3a5a7a;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* =============================================================
   6c4. PROCESO — "Diseña · Imprime · Crea"
   ============================================================= */
.proceso {
  padding-block: var(--section-gap);
  background: #ffffff;
  position: relative;
}

.proceso-eyebrow {
  font-family: var(--body);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: .9rem;
}

.proceso-title {
  font-family: var(--body);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: -0.015em;
  line-height: 1.04;
  margin-bottom: 1rem;
}
.proceso-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--bright);
  font-size: 1.38em;
  letter-spacing: 0;
  display: inline;
}
.proceso-logo {
  height: 1.05em;
  width: auto;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -0.08em;
}

.proceso-sub {
  font-family: var(--body);
  font-size: clamp(.95rem, 1.6vw, 1.05rem);
  color: rgba(0, 51, 106, 0.68);
  max-width: 54ch;
  line-height: 1.65;
}

.proceso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 6vw, 4rem);
  margin-top: clamp(3rem, 7vw, 5rem);
}

.proceso-step {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding-top: 1.5rem;
  border-top: 1.5px solid #dce8f4;
}

.proceso-num {
  font-family: var(--body);
  font-size: clamp(5rem, 13vw, 8.5rem);
  font-weight: 900;
  color: #93B8E0;
  line-height: 0.82;
  letter-spacing: -0.05em;
  display: block;
  margin-bottom: .25rem;
}

.proceso-step-title {
  font-family: var(--body);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1;
}

.proceso-step-text {
  font-family: var(--body);
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  color: rgba(0, 51, 106, 0.75);
  line-height: 1.72;
}

@media (min-width: 720px) {
  .proceso-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(2rem, 4vw, 3.5rem);
  }
}

/* =============================================================
   6d. CONTACTO
   ============================================================= */
.contacto {
  padding-block: var(--section-gap);
  background: #f8fafc;
  position: relative;
}

.cto-header {
  text-align: center;
  max-width: 920px;
  margin: 0 auto clamp(3rem, 6vw, 5rem);
}
.cto-header h2 {
  font-family: var(--body);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--navy-dark);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 1rem;
}
.cto-header h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--bright);
  font-size: 1.18em;
  display: inline;
}
.cto-header p {
  font-size: clamp(.95rem, 1.7vw, 1.08rem);
  color: #3a5a7a;
  line-height: 1.55;
  max-width: 76ch;
  margin-inline: auto;
}

.cto-layout {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.cto-form-side {
  flex: 1.4;
}
.cto-form-label {
  display: block;
  font-family: var(--display);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 1.5rem;
}
.cto-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.cto-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.cto-form-group {
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.cto-form-group label {
  font-size: .82rem;
  color: #3a5a7a;
  font-family: var(--body);
}
.cto-form-group input,
.cto-form-group textarea {
  font-family: var(--body);
  font-size: .92rem;
  color: var(--navy-dark);
  background: #fff;
  border: 1.5px solid #c8daea;
  border-radius: 8px;
  padding: .75rem 1rem;
  min-height: 44px;   /* touch target */
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  width: 100%;
}
.cto-form-group textarea {
  resize: vertical;
  min-height: 140px;
}
.cto-form-group input::placeholder,
.cto-form-group textarea::placeholder {
  color: #a0bdd0;
}
.cto-form-group input:focus,
.cto-form-group textarea:focus {
  border-color: var(--bright);
  box-shadow: 0 0 0 3px rgba(79, 163, 240, 0.18);
}
.cto-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: .5rem;
}

.cto-info-side {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.cto-info-label {
  font-family: var(--display);
  font-size: .84rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: -.5rem;
}
.cto-branch h3 {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: .9rem;
  padding-bottom: .5rem;
  border-bottom: 1.5px solid #c8daea;
}
.cto-branch ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.cto-branch li {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  font-size: .88rem;
  color: #3a5a7a;
  line-height: 1.5;
}
.cto-branch li svg {
  flex-shrink: 0;
  color: var(--navy);
  width: 16px;
  height: 16px;
  margin-top: .15rem;
}

.btn-dark {
  background: var(--navy-dark);
  color: var(--white);
}
.btn-dark:hover {
  background: var(--navy);
  box-shadow: 0 8px 28px rgba(0, 51, 106, 0.3);
}
.btn-outline-navy {
  background: transparent;
  color: var(--navy-dark);
  border: 1.5px solid rgba(0, 51, 106, 0.35);
  transition: background .25s var(--ease-out), border-color .25s, color .25s, box-shadow .25s var(--ease-out), transform .25s var(--ease-out);
}
.btn-outline-navy:hover {
  background: var(--bright);
  border-color: var(--bright);
  color: var(--white);
  box-shadow: 0 8px 28px rgba(79, 163, 240, 0.38);
}

/* Feedback form submit */
.cto-feedback {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-family: var(--body);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.5;
  animation: fadeUp .4s var(--ease-out) forwards;
}
.cto-feedback[hidden] { display: none; }
.cto-feedback.is-success {
  background: #e8f3fc;
  color: var(--navy-dark);
  border: 1.5px solid var(--bright);
}
.cto-feedback.is-error {
  background: #fdecea;
  color: #b71c1c;
  border: 1.5px solid #ef9a9a;
}

/* =============================================================
   6e. FOOTER
   ============================================================= */
.footer {
  background: var(--navy-dark);
  border-top: 1px solid var(--line);
  padding-top: 3.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.footer-logo {
  display: block;
  align-self: flex-start;
}
.footer-logo img {
  width: 100px; height: 100px;
  transition: opacity .2s;
  display: block;
}
.footer-logo:hover img { opacity: 1; }
.footer-tagline {
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--celeste);
  line-height: 1.55;
}
.footer-tagline em {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.45rem;
  color: var(--bright);
  text-transform: none;
  letter-spacing: 0;
  margin-top: .4rem;
}
.footer-social {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  margin-top: .5rem;
}
.footer-social a {
  color: var(--celeste);
  transition: color .2s, transform .2s;
  display: flex;
}
.footer-social a:hover {
  color: var(--bright);
  transform: translateY(-2px);
}

/* Location columns */
.footer-loc-col {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}
.footer-loc-col h4 {
  font-family: var(--display);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--bright);
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.footer-loc-col address {
  font-size: .85rem;
  color: var(--blue-light);
  line-height: 1.75;
  font-style: normal;
}
.footer-loc-col address strong {
  display: block;
  font-weight: 600;
  color: var(--white);
  margin-bottom: .15rem;
}
.footer-horario {
  margin-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.footer-horario p {
  font-size: .8rem;
  color: var(--celeste);
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.footer-horario p span:first-child {
  font-weight: 600;
  color: var(--blue-light);
  min-width: 7rem;
}
.footer-horario p small {
  font-size: .75em;
  opacity: .65;
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 1.25rem var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  text-align: center;
}
.footer-bottom p {
  font-size: .75rem;
  color: var(--celeste);
  opacity: .45;
}
.footer-bottom a {
  color: var(--celeste);
  opacity: .45;
  font-size: .75rem;
  transition: opacity .2s;
}
.footer-bottom a:hover { opacity: .8; }
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-jobs-link {
  font-family: var(--body);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--white);
  opacity: .55;
  border-top: 1px solid rgba(147,184,224,0.2);
  padding-top: .9rem;
  margin-top: .25rem;
  display: block;
  transition: opacity .2s, color .2s;
}
.footer-jobs-link:hover {
  opacity: 1;
  color: var(--bright);
}

.footer-wa-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: .75rem;
  font-family: var(--display);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--bright);
  transition: color .2s;
}
.footer-wa-link:hover { color: var(--white); }

/* =============================================================
   7. Effects & Keyframes
   ============================================================= */
@keyframes fadeUp {
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.5; transform: scaleY(1) translateY(0); }
  50%       { opacity: 1;   transform: scaleY(1.2) translateY(4px); }
}

/* =============================================================
   8. Responsive — mobile-first
   ============================================================= */
@media (min-width: 540px) {
  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 540px) {
  .cto-form-row { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 720px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 3rem;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 960px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .svc-card-img { height: 220px; }

  .cto-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 5rem;
  }
  .cto-info-side {
    padding-top: .25rem;
  }
}

@media (min-width: 1280px) {
  .svc-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================================================
   8b. Mobile-only patches
   ============================================================= */

/* Nav logo: reduce solo en mobile (desktop keeps 160px) */
@media (max-width: 719px) {
  :root { --nav-h: 80px; }

  .nav-logo img {
    width: 96px;
    height: 96px;
  }
  .nav.is-scrolled .nav-logo img {
    transform: scale(0.83); /* 96px → 80px */
  }
  .nav.is-scrolled {
    height: 60px;
  }

  /* Hero: centrado vertical con respiro equilibrado */
  .hero {
    align-items: center;        /* contenido centrado en el espacio disponible */
    min-height: 100svh;
  }
  .hero-content {
    /* padding-top reserva el nav; padding-bottom da aire hacia abajo */
    padding-block: calc(var(--nav-h) + 1rem) 2.5rem;
  }
  .hero-title {
    font-size: clamp(2.75rem, 11vw, 5.6rem);
    max-width: 100%;
    line-height: 0.93;
  }
  .hero-sub {
    font-size: 1rem;
    margin-top: 1.5rem;
    max-width: 100%;
    line-height: 1.55;
  }
  .hero-actions {
    flex-direction: column;
    margin-top: 2.25rem;
    gap: .85rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-eyebrow {
    font-size: .7rem;
    margin-bottom: 1.25rem;
    letter-spacing: .16em;
  }
  /* Ocultar scroll hint en mobile — choca con los botones */
  .hero-scroll {
    display: none;
  }
}

/* Form buttons: stack verticalmente en mobile */
@media (max-width: 640px) {
  .cto-form-actions {
    flex-direction: column;
  }
  .cto-form-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================================
   9. Reduced-motion (only intrusive effects)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; }
  html { scroll-behavior: auto; }
  /* Hero entrance animations still play — they're quick and functional */
}
