/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f4f7fb;
  --bg-2:      #eaf0f8;
  --surface:   #ffffff;
  --ink:       #121735;
  --ink-soft:  #4a5275;
  --ink-mute:  #7a82a3;
  --indigo:    #33449a;
  --indigo-2:  #4b5fd0;
  --indigo-d:  #1f2a6b;
  --green:     #76b82a;
  --green-d:   #5a9418;
  --mint:      #dff3e4;
  --sky:       #dfe6ff;
  --glass:     rgba(255, 255, 255, 0.55);
  --glass-brd: rgba(255, 255, 255, 0.75);
  --line:      rgba(18, 23, 53, 0.09);
  --shadow-sm: 0 2px 8px rgba(31, 42, 107, 0.06);
  --shadow:    0 18px 50px -18px rgba(31, 42, 107, 0.28);
  --shadow-lg: 0 40px 90px -30px rgba(31, 42, 107, 0.38);

  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --sans:    "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius:    22px;
  --radius-lg: 32px;
  --gutter:    clamp(16px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);

  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { 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; }
ul, ol { padding: 0; list-style: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { font-family: var(--display); text-wrap: balance; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; }
::selection { background: var(--indigo); color: #fff; }
:focus-visible { outline: 2px solid var(--indigo-2); outline-offset: 3px; border-radius: 6px; }

/* =============================================================
   3. Utilities
   ============================================================= */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 9999;
  padding: .6rem 1rem; background: var(--ink); color: #fff; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.glass {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-brd);
  box-shadow: var(--shadow);
}
@supports (backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px)) {
  .glass {
    background: var(--glass);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
  }
}

/* =============================================================
   4. Typography
   ============================================================= */
h1 em, h2 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--indigo) 0%, var(--indigo-2) 45%, var(--green) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--indigo);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 4px rgba(118, 184, 42, .2);
  animation: pulse 2.4s var(--ease-soft) infinite;
}
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(118, 184, 42, 0); } }

.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { margin-top: 14px; }
.section-lead { margin-top: 18px; font-size: 1.075rem; color: var(--ink-soft); }

/* =============================================================
   5. Components
   ============================================================= */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px; padding: 0 1.5rem;
  border-radius: 999px; font-weight: 600; font-size: .98rem;
  transform: translate(var(--mx), var(--my));
  transition: transform .5s var(--ease-out), background-color .3s, box-shadow .4s var(--ease-out), color .3s, border-color .3s;
  white-space: nowrap;
}
.btn .ico { width: 20px; height: 20px; fill: currentColor; }
.btn-sm { min-height: 44px; padding: 0 1.15rem; font-size: .92rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo) 0%, var(--indigo-2) 100%);
  color: #fff; box-shadow: 0 12px 30px -10px rgba(51, 68, 154, .65);
}
.btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(51, 68, 154, .8); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--indigo-d); border: 1px solid var(--line); }
.btn-ghost:hover { background: #fff; border-color: rgba(51,68,154,.3); }
.btn-ghost span { transition: transform .4s var(--ease-out); }
.btn-ghost:hover span { transform: translateX(4px); }
.btn-light { background: #fff; color: var(--indigo-d); }
.btn-light:hover { box-shadow: 0 18px 40px -12px rgba(0,0,0,.35); }
.btn-outline-light { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.tag {
  display: inline-block; padding: .35rem .8rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em;
  background: var(--sky); color: var(--indigo);
}
.tag--green { background: var(--mint); color: var(--green-d); }

.checks { display: grid; gap: .65rem; }
.checks li { position: relative; padding-left: 2rem; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .15em;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a9418' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .5rem 1rem; border-radius: 999px; font-weight: 500; font-size: .92rem;
  background: #fff; border: 1px solid var(--line);
  transition: transform .4s var(--ease-bounce), border-color .3s, color .3s;
}
.chips li:hover { transform: translateY(-3px); border-color: var(--green); color: var(--green-d); }

/* =============================================================
   6. Sections
   ============================================================= */

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding-block: 14px;
  transition: padding .4s var(--ease-out);
}
.nav-inner {
  display: flex; align-items: center; gap: 1.5rem;
  min-height: 68px; padding-block: 8px;
  border-radius: 999px;
  transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.nav.is-scrolled { padding-block: 10px; }
.nav.is-scrolled .nav-inner {
  background: rgba(255,255,255,.92);
  box-shadow: 0 10px 30px -14px rgba(31,42,107,.3);
  max-width: calc(1240px - 2 * var(--gutter));
  padding-inline: 22px;
}
@supports (backdrop-filter: blur(16px)) or (-webkit-backdrop-filter: blur(16px)) {
  .nav.is-scrolled .nav-inner { background: rgba(255,255,255,.7); backdrop-filter: blur(16px) saturate(180%); -webkit-backdrop-filter: blur(16px) saturate(180%); }
}
.nav-logo img { height: 46px; width: auto; transition: height .4s var(--ease-out); }
.nav-links { display: none; position: relative; margin-left: auto; gap: .25rem; }
.nav-links a {
  position: relative; z-index: 1;
  padding: .55rem 1rem; border-radius: 999px;
  font-weight: 500; font-size: .95rem; color: var(--ink-soft);
  transition: color .3s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--indigo-d); }
.nav-indicator {
  position: absolute; top: 0; left: 0; height: 100%; width: 0; z-index: 0;
  border-radius: 999px; background: var(--sky); opacity: 0;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), opacity .3s;
}
.nav-cta { display: none; }
.nav-toggle {
  margin-left: auto; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-content: center; gap: 6px;
  background: #fff; box-shadow: var(--shadow-sm);
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease-out); }
.nav.is-open .nav-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
.nav.is-open .nav-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
.nav.is-open .nav-links {
  display: flex; flex-direction: column; position: absolute; top: calc(100% + 6px); left: var(--gutter); right: var(--gutter);
  padding: 12px; border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg);
}
.nav.is-open .nav-links a { padding: .9rem 1rem; font-size: 1.05rem; }
.nav.is-open .nav-indicator { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  padding-top: clamp(120px, 16vw, 160px);
  padding-bottom: clamp(56px, 8vw, 96px);
}
.hero-mesh {
  position: absolute; inset: -20% -10% -10%; z-index: -2;
  background:
    radial-gradient(40% 45% at 15% 25%, rgba(118,184,42,.28) 0%, transparent 70%),
    radial-gradient(45% 50% at 85% 20%, rgba(75,95,208,.30) 0%, transparent 70%),
    radial-gradient(40% 40% at 60% 90%, rgba(150,220,200,.35) 0%, transparent 70%);
  filter: blur(40px);
  animation: meshDrift 26s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  33%      { transform: translate3d(3%, -2%, 0) scale(1.08); }
  66%      { transform: translate3d(-3%, 2%, 0) scale(1.04); }
}
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image:
    linear-gradient(rgba(51,68,154,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,68,154,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 40%, #000 0%, transparent 75%);
}
.hero-inner { display: grid; gap: clamp(48px, 6vw, 72px); align-items: center; }
.hero-title {
  margin-top: 20px;
  font-size: clamp(2.1rem, 1.3rem + 2.9vw, 3.5rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
}
.hero-sub { margin-top: 22px; max-width: 560px; font-size: clamp(1.02rem, .95rem + .3vw, 1.15rem); color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 32px; }
.hero-matrices { display: flex; flex-wrap: wrap; gap: .4rem .5rem; margin-top: 34px; }
.hero-matrices li {
  padding: .3rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--ink-soft);
  background: rgba(255,255,255,.65); border: 1px solid var(--line);
}

.hero-visual { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.hero-photo {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 4 / 5; box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.hero-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(31,42,107,.25) 100%);
}
.hero-photo img { width: 100%; height: 110%; object-fit: cover; object-position: center 20%; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% -6% -5% 8%; z-index: -1;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--green) 0%, var(--indigo-2) 100%);
  opacity: .9; transform: rotate(-4deg);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.1rem .85rem .85rem; border-radius: 18px; max-width: 270px;
  animation: bob 6s ease-in-out infinite;
}
.float-card strong { display: block; font-family: var(--display); font-size: .95rem; line-height: 1.2; }
.float-card small { display: block; font-size: .8rem; color: var(--ink-soft); }
.float-card--a { left: -6%; bottom: 14%; }
.float-card--b { right: -5%; top: 46%; animation-delay: -3s; }
.float-ico {
  flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--sky); color: var(--indigo);
}
.float-ico--green { background: var(--mint); color: var(--green-d); }
.float-ico svg, .mv-ico svg, .c-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; padding-block: 20px;
  background: var(--indigo-d); color: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; align-items: center; gap: 2.2rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-family: var(--display); font-weight: 600; font-size: clamp(1.1rem, 1rem + .6vw, 1.5rem); letter-spacing: -0.01em; }
.marquee i { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Especialidad ---------- */
.esp-grid { display: grid; gap: 20px; }
.esp-card { padding: clamp(28px, 4vw, 40px); border-radius: var(--radius); }
.esp-card blockquote { margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); line-height: 1.2; letter-spacing: -0.02em; }
.esp-card p { margin-top: 14px; color: var(--ink-soft); }
.stats {
  display: grid; gap: 1px; border-radius: var(--radius); overflow: hidden;
  background: var(--line); box-shadow: var(--shadow-sm);
}
.stat { padding: 26px 28px; background: var(--surface); display: flex; align-items: baseline; gap: 1rem; }
.stat-num {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); line-height: 1;
  background: linear-gradient(135deg, var(--indigo), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent;
  min-width: 1.2ch;
}
.stat-label { color: var(--ink-soft); font-weight: 500; }

/* ---------- Servicios ---------- */
.servicios { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.services-grid { display: grid; gap: 22px; }
.service {
  --rx: 0deg; --ry: 0deg;
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-sm); border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease-out), box-shadow .5s var(--ease-out);
  will-change: transform;
}
.service:hover { box-shadow: var(--shadow-lg); }
.service-media { aspect-ratio: 16 / 11; overflow: hidden; position: relative; }
.service-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(18,23,53,.35)); opacity: .6; transition: opacity .5s; }
.service-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1.1s var(--ease-out); }
.service:hover .service-media img { transform: scale(1.07); }
.service:hover .service-media::after { opacity: .2; }
.service-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.service-num { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--green-d); letter-spacing: .06em; }
.service h3 { margin-top: 6px; }
.service-body > p { margin-top: 10px; color: var(--ink-soft); font-size: .97rem; }
.service details { padding-top: 18px; }
details summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; color: var(--indigo); font-size: .95rem;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--sky); font-size: 1rem; line-height: 1; transition: transform .4s var(--ease-out), background-color .3s;
}
details[open] summary::after { transform: rotate(45deg); background: var(--mint); }
details ul { margin-top: 14px; display: grid; gap: .4rem; }
details ul li { position: relative; padding-left: 1.1rem; font-size: .93rem; color: var(--ink-soft); }
details ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
details > p { margin-top: 12px; font-size: .93rem; color: var(--ink-soft); }
details[open] > *:not(summary) { animation: fadeDown .5s var(--ease-out); }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } }

.service-wide {
  margin-top: 22px; padding: clamp(26px, 4vw, 40px); border-radius: var(--radius);
  display: grid; gap: 22px; align-items: center;
}
.service-wide h3 { margin-top: 6px; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); }
.service-wide p { margin-top: 10px; color: var(--ink-soft); max-width: 560px; }

/* ---------- Proceso ---------- */
.steps { position: relative; display: grid; gap: 18px; counter-reset: step; }
.step {
  position: relative; z-index: 1; padding: 28px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step-n {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: #fff;
  background: linear-gradient(135deg, var(--indigo), var(--indigo-2));
  box-shadow: 0 10px 24px -10px rgba(51,68,154,.7);
}
.step:nth-child(even) .step-n { background: linear-gradient(135deg, var(--green-d), var(--green)); box-shadow: 0 10px 24px -10px rgba(90,148,24,.7); }
.step h3 { margin-top: 18px; }
.step p { margin-top: 8px; color: var(--ink-soft); font-size: .97rem; }
.steps-line { display: none; }

/* ---------- Tecnología ---------- */
.tecnologia { background: var(--surface); }
.tec-grid { display: grid; gap: clamp(48px, 7vw, 88px); align-items: center; }
.tec-media { position: relative; max-width: 520px; margin-inline: auto; width: 100%; padding-bottom: 12%; }
.tec-img-main { width: 82%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.tec-img-float {
  position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; object-fit: cover;
  border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow-lg);
  animation: bob 7s ease-in-out infinite;
}
.tec-copy h2 { margin-top: 14px; }
.tec-copy > p { margin-top: 18px; color: var(--ink-soft); font-size: 1.05rem; }
.tec-copy .checks { margin-top: 22px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quote { margin-top: 32px; padding: 28px 30px; border-radius: var(--radius); position: relative; }
.quote::before {
  content: "“"; position: absolute; top: -10px; left: 22px;
  font-family: var(--display); font-size: 5rem; line-height: 1; color: var(--green); opacity: .55;
}
.quote blockquote { font-family: var(--display); font-weight: 600; font-size: 1.15rem; line-height: 1.45; letter-spacing: -0.01em; }
.quote figcaption { margin-top: 16px; display: flex; flex-direction: column; }
.quote figcaption span { font-size: .88rem; color: var(--ink-mute); }

/* ---------- Nosotros ---------- */
.nosotros { overflow: clip; }
.nosotros::before {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; right: -30vmax; top: -10vmax; z-index: -1;
  background: radial-gradient(closest-side, rgba(118,184,42,.16), transparent);
}
.mv-grid { display: grid; gap: 22px; }
.mv-card { padding: clamp(28px, 4vw, 40px); border-radius: var(--radius); }
.mv-card h3 { margin-top: 18px; font-size: 1.5rem; }
.mv-card p { margin-top: 12px; color: var(--ink-soft); }
.mv-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--sky); color: var(--indigo); }
.mv-card--accent { background: linear-gradient(140deg, var(--indigo-d) 0%, var(--indigo) 55%, var(--indigo-2) 100%); color: #fff; box-shadow: var(--shadow-lg); }
.mv-card--accent p { color: rgba(255,255,255,.82); }
.mv-card--accent .mv-ico { background: rgba(255,255,255,.14); color: #c9f29b; }
.sub-title { margin-top: clamp(56px, 7vw, 80px); font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.values { margin-top: 26px; display: grid; gap: 14px; }
.value {
  padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
  transition: transform .5s var(--ease-out), border-color .3s, box-shadow .5s var(--ease-out);
}
.value:hover { transform: translateY(-4px); border-color: rgba(118,184,42,.55); box-shadow: var(--shadow); }
.value strong { font-family: var(--display); font-size: 1.1rem; }
.value strong::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--green); vertical-align: middle; }
.value span { color: var(--ink-soft); font-size: .95rem; }
.objetivos { margin-top: 28px; padding: 24px 28px; border-radius: var(--radius); }
.objetivos summary { font-size: 1.05rem; }
.objetivos .checks { margin-top: 20px; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  margin-inline: var(--gutter); border-radius: var(--radius-lg);
  background: var(--indigo-d); color: #fff; text-align: center;
  padding: clamp(64px, 9vw, 110px) 0;
}
.cta-mesh {
  position: absolute; inset: -30%; z-index: -1;
  background:
    radial-gradient(35% 45% at 20% 30%, rgba(118,184,42,.55), transparent 70%),
    radial-gradient(40% 50% at 80% 70%, rgba(75,95,208,.8), transparent 70%);
  filter: blur(30px);
  animation: meshDrift 22s ease-in-out infinite;
}
.cta-inner h2 { font-size: clamp(2.2rem, 1.4rem + 3.2vw, 3.8rem); }
.cta-inner p { margin: 18px auto 0; max-width: 560px; color: rgba(255,255,255,.85); font-size: 1.08rem; }
.cta-inner .hero-ctas { justify-content: center; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: clamp(40px, 6vw, 64px); align-items: stretch; }
.contact-info h2 { margin-top: 14px; }
.contact-list { margin: 30px 0; display: grid; gap: 14px; }
.contact-list li {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.contact-list small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); font-weight: 600; }
.contact-list strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-list span { color: var(--ink-soft); }
.contact-list a:hover strong { color: var(--indigo-2); }
.c-ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sky); color: var(--indigo); }
.map { min-height: 360px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; }

/* ---------- Footer ---------- */
.footer { margin-top: clamp(40px, 6vw, 72px); background: var(--ink); color: rgba(255,255,255,.75); padding-top: 56px; }
.footer-inner { display: grid; gap: 36px; padding-bottom: 40px; }
.footer-brand img { height: 52px; width: auto; padding: 8px 14px; border-radius: 14px; background: #fff; }
.footer-brand p { margin-top: 16px; max-width: 360px; font-size: .95rem; }
.footer-links, .footer-contact { display: grid; gap: .55rem; align-content: start; }
.footer a { transition: color .3s; }
.footer a:hover { color: #c9f29b; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 22px; font-size: .85rem; color: rgba(255,255,255,.5); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: #25d366; color: #fff; box-shadow: 0 14px 30px -8px rgba(37,211,102,.6);
  transition: transform .5s var(--ease-bounce);
}
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: ring 2.6s var(--ease-out) infinite;
}
.wa-float:hover { transform: scale(1.1) rotate(-6deg); }
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }

/* =============================================================
   7. Effects — reveals (only when JS is present)
   ============================================================= */
/* Uses an animation on `opacity` + `translate` so it never fights the
   transform/transition of tilt and hover effects on the same element. */
.js .reveal { opacity: 0; }
.js .reveal.is-in { animation: revealUp .9s var(--ease-out) var(--d, 0s) both; }
@keyframes revealUp { from { opacity: 0; translate: 0 28px; } to { opacity: 1; translate: 0 0; } }
.js .hero-anim { opacity: 0; transform: translateY(24px); }
.js.hero-done .hero-anim, .no-gsap .hero-anim { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }

/* =============================================================
   8. Responsive
   ============================================================= */
@media (min-width: 540px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { flex-direction: column; gap: .4rem; }
  .values { grid-template-columns: repeat(2, 1fr); }
  .checks--cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .esp-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-column: 1 / -1; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: 1.35fr 1fr; }
  .service-wide { grid-template-columns: 1.2fr 1fr; }
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-logo img { height: 66px; }
  .nav.is-scrolled .nav-logo img { height: 54px; }
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .nav-links a:not(:hover):not(.is-active) { color: var(--ink-soft); }
  .hero-inner { grid-template-columns: 1.1fr .9fr; }
  .hero-visual { margin-right: 0; order: 0; }
  .hero-photo { aspect-ratio: 4 / 5; }
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps-line {
    display: block; position: absolute; z-index: 0; left: 52px; right: 52px; top: 54px; height: 3px;
    background: var(--line); border-radius: 3px; overflow: hidden;
  }
  .steps-line-fill { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--indigo), var(--green)); transform-origin: left; transform: scaleX(1); }
  .js .steps-line-fill { transform: scaleX(0); }
  .tec-grid { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.1fr; }
  .map, .map iframe { min-height: 100%; }
}
@media (min-width: 1280px) {
  .hero-title { font-size: 3.6rem; }
}
/* Below desktop: photo first, shorter, so the first screen isn't all text */
@media (max-width: 959px) {
  .hero { padding-top: 104px; }
  .hero-inner { gap: 40px; }
  .hero-visual { order: -1; max-width: 460px; }
  .hero-photo { aspect-ratio: 5 / 4; transform: rotate(1deg); }
  .hero-photo img { object-position: center 30%; }
  .hero-title { margin-top: 14px; }
}
@media (max-width: 539px) {
  .float-card { max-width: 220px; padding: .65rem .85rem .65rem .65rem; }
  .float-card--a { left: -2%; }
  .float-card--a { bottom: -8%; }
  .float-card--b { display: none; }
  .float-ico { width: 36px; height: 36px; }
  .btn { white-space: normal; text-align: center; }
  .hero-ctas .btn { width: 100%; }
}

/* =============================================================
   9. Reduced motion — only intrusive, looping effects
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .hero-mesh, .cta-mesh, .marquee-track, .wa-float::before, .float-card, .tec-img-float { animation: none; }
  html { scroll-behavior: auto; }
}
