*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --azul:    #265c67;
  --naranja: #ed7135;
  --negro:   #000000;
  --gris:    #504d49;
  --crema:   #f6f4ee;
  --teal:    #91d0d8;
  --jade:    #80c5b0;
  --blanco:  #ffffff;
  --borde:   #e0ddd9;
  --fondo:   #f6f4ee;
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* ─── NAVBAR ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 3.5rem;
  transition: background .3s, box-shadow .3s;
}
.navbar.scrolled {
  background: var(--blanco);
  box-shadow: 0 1px 0 var(--borde);
}

.logo { display: flex; align-items: center; }

.logo-img { height: 72px; width: auto; }

/* Hero oscuro: logo blanco */
.logo-on-dark  { display: block; }
.logo-on-light { display: none; }

/* Scrolled: logo oficial color */
.navbar.scrolled .logo-on-dark  { display: none; }
.navbar.scrolled .logo-on-light { display: block; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a {
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s;
}
.navbar.scrolled .nav-links a { color: var(--gris); }
.nav-links a:hover { color: var(--naranja); }
.navbar.scrolled .nav-links a:hover { color: var(--naranja); }

.nav-cta {
  border: 1.5px solid rgba(255,255,255,.5) !important;
  padding: .45rem 1.2rem;
  border-radius: 100px;
  color: var(--blanco) !important;
  transition: border-color .2s, background .2s !important;
}
.nav-cta:hover { background: rgba(255,255,255,.1); border-color: var(--blanco) !important; }
.navbar.scrolled .nav-cta { border-color: var(--azul) !important; color: var(--azul) !important; }
.navbar.scrolled .nav-cta:hover { background: var(--azul); color: var(--blanco) !important; }

/* Menú activo (scrollspy) */
.nav-links a { position: relative; }
.nav-links a.active,
.navbar.scrolled .nav-links a.active { color: var(--naranja); }
.nav-links a:not(.nav-cta).active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -8px;
  height: 2px;
  background: var(--naranja);
  border-radius: 2px;
}
.mobile-menu a.active { color: var(--naranja); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--blanco); border-radius: 2px; transition: all .3s;
}
.navbar.scrolled .menu-toggle span { background: var(--azul); }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 250;
}
.mobile-overlay.open { display: block; }

.mobile-menu {
  display: flex; flex-direction: column;
  position: fixed; top: 0; right: -300px;
  width: 300px; height: 100vh;
  background: var(--blanco); z-index: 260;
  padding: 5rem 2.5rem 2rem;
  transition: right .3s ease;
  box-shadow: -4px 0 30px rgba(0,0,0,.12);
}
.mobile-menu.open { right: 0; }
.mobile-menu a {
  padding: 1rem 0; font-size: 1rem; font-weight: 500;
  color: var(--gris); border-bottom: 1px solid var(--borde);
}
.mobile-menu a:hover { color: var(--naranja); }

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--azul);
  display: flex;
  align-items: flex-end;
  padding: 120px 3.5rem 7rem;
  overflow: hidden;
}

/* Canvas hero */
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Scrim de legibilidad: oscurece la zona del texto (abajo-izquierda),
   deja los graficos visibles en el resto del hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top right,
    rgba(38, 92, 103, 0.97) 0%,
    rgba(38, 92, 103, 0.92) 28%,
    rgba(38, 92, 103, 0.55) 50%,
    rgba(38, 92, 103, 0) 72%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 780px;
  color: var(--blanco);
}

.hero-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.5rem;
}

.hero-inner h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  letter-spacing: -1.2px;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 400;
  font-style: italic;
  opacity: .8;
  max-width: 540px;
  margin-bottom: 2.8rem;
  line-height: 1.7;
  color: var(--blanco);
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ─── FRANJA VALORES ─── */
.values-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.2rem 3.5rem;
  background: var(--negro);
  flex-wrap: wrap;
}
.values-bar span {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}
.values-bar .dot { color: var(--naranja); }

/* ─── BOTONES ─── */
.btn {
  display: inline-block;
  padding: .9rem 2rem;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: .85rem;
  letter-spacing: .5px;
  transition: all .2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-fill {
  background: var(--naranja);
  color: var(--blanco);
  border-color: var(--naranja);
}
.btn-fill:hover { background: #c9602d; border-color: #c9602d; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(237,113,53,.3); }

.btn-ghost {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255,255,255,.4);
}
.btn-ghost:hover { border-color: var(--blanco); background: rgba(255,255,255,.07); }

.btn-fill-white {
  background: var(--blanco);
  color: var(--gris);
  border-color: var(--blanco);
}
.btn-fill-white:hover { background: var(--crema); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }

/* ─── SECCIONES ─── */
.sec { padding: 7rem 3.5rem; }
.sec-dark    { background-color: var(--azul); background-image: radial-gradient(circle at 82% 0%, rgba(255,255,255,.07), transparent 55%); color: var(--blanco); }
.sec-accent  { background: var(--gris); color: var(--blanco); }

.wrap { max-width: 1200px; margin: 0 auto; }
.center { text-align: center; }

.sec-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--naranja);
  margin-bottom: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.sec-label::before {
  content: "";
  width: 26px;
  height: 2px;
  background: currentColor;
}
.sec-label-light { color: var(--teal); }

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -.3px;
  color: var(--azul);
  margin-bottom: 0;
}
.sec-dark h2  { color: var(--blanco); }
.sec-accent h2 { color: var(--blanco); }

p { color: var(--gris); line-height: 1.75; margin-bottom: .9rem; text-wrap: pretty; }
.sec-dark p  { color: rgba(255,255,255,.75); }
.sec-accent p { color: rgba(255,255,255,.8); }

strong { font-weight: 600; }
.sec-dark strong  { color: var(--teal); }

/* ─── DOS COLUMNAS ─── */
.sec-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
  margin-top: 2rem;
}

.sec-body { padding-top: .5rem; }

.link-arrow {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--naranja);
  transition: letter-spacing .2s;
}
.link-arrow:hover { letter-spacing: 1px; }

/* ─── STATS ─── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 5rem;
  border-top: 1px solid var(--borde);
}

.stat {
  padding: 2.5rem 2rem 2rem 0;
  border-right: 1px solid var(--borde);
  display: flex;
  flex-direction: column;
}
.stat:last-child { border-right: none; padding-right: 0; }
.stat:not(:first-child) { padding-left: 2rem; }
.stat::before {
  content: "";
  width: 26px;
  height: 3px;
  background: var(--naranja);
  border-radius: 2px;
  margin-bottom: 1.1rem;
}

.stat-n {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--naranja);
  line-height: 1;
  margin-bottom: .4rem;
}
.stat-l {
  font-size: .82rem;
  color: var(--gris);
  line-height: 1.4;
}

/* ─── SERVICIOS ─── */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.service-card {
  padding: 2rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.28);
}

.service-num {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--naranja);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.25;
}

.service-card p {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  margin: 0;
  flex: 1;
}

.card-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--teal);
  margin-top: .5rem;
  transition: letter-spacing .2s;
}
.card-link:hover { letter-spacing: .5px; }

/* ─── DIAGNÓSTICO ─── */
.diag-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--borde);
}

.diag-step {
  display: flex;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--borde);
  align-items: flex-start;
}

.diag-n {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--naranja);
  line-height: 1;
  min-width: 2.5rem;
  padding-top: .1rem;
}

.diag-step strong {
  display: block;
  font-size: .95rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: .3rem;
}

.diag-step p {
  font-size: .87rem;
  color: var(--gris);
  margin: 0;
}

/* ─── RESULTADOS / TRANSFORMACIÓN ─── */
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem 2.2rem;
  margin-top: 2.5rem;
}
.outcome {
  position: relative;
  padding-left: 2rem;
  color: rgba(255,255,255,.85);
  font-size: 1rem;
  line-height: 1.45;
}
.outcome::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--jade);
  font-weight: 700;
  font-size: 1.1rem;
}
.diag-quote {
  margin: 3.5rem auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--azul);
  line-height: 1.5;
}

/* ─── DESAFÍOS ─── */
.desafios-lead { max-width: 720px; color: var(--gris); margin: 1.2rem 0 2.5rem; }
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.challenge {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 1.6rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.challenge:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0,0,0,.08);
  border-color: rgba(237,113,53,.45);
}
.challenge-num {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--naranja);
}
.challenge-txt {
  font-size: .95rem;
  font-weight: 500;
  color: var(--azul);
  line-height: 1.45;
}

/* ─── CONTACTO ─── */
.contact-lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,.78) !important;
  max-width: 520px;
  margin: 1.5rem auto 2.5rem;
}
/* Formulario */
.contact-form {
  max-width: 640px;
  margin: 2.5rem auto 0;
  text-align: left;
}
.form-row { display: flex; gap: 1.2rem; }
.form-row .field { flex: 1; }
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.3rem;
}
.field label {
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .3px;
  margin-bottom: .45rem;
  color: rgba(255,255,255,.9);
}
.field label .opt { color: rgba(255,255,255,.5); font-weight: 400; }
.field input,
.field textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: .95rem;
  color: var(--blanco);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 10px;
  padding: .95rem 1.05rem;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,.4); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--naranja);
  background: rgba(255,255,255,.13);
  box-shadow: 0 0 0 3px rgba(237,113,53,.22);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-submit { margin-top: .4rem; }
.form-submit:disabled { opacity: .6; cursor: default; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: .9rem;
  min-height: 1.2em;
}
.form-status.ok  { color: var(--jade) !important; }
.form-status.err { color: #ffb3a0 !important; }

.contact-alt {
  margin-top: 2.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  font-size: .9rem;
  color: rgba(255,255,255,.6);
}
.contact-alt a { color: var(--blanco); text-decoration: none; font-weight: 500; }
.contact-alt a:hover { color: var(--teal); }

/* CTA de agendar en contacto */
.contact-book {
  max-width: 640px;
  margin: 2rem auto 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.contact-book-label {
  margin: 1rem auto 0 !important;
  font-size: .9rem;
  color: rgba(255,255,255,.65) !important;
}

/* ─── MODAL AGENDAR REUNIÓN ─── */
.booking-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.booking-modal.open { display: flex; }
.booking-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(2px);
}
.booking-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  height: min(86vh, 760px);
  background: var(--blanco);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  animation: bookingIn .25s ease;
}
@keyframes bookingIn {
  from { opacity: 0; transform: translateY(12px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.booking-close {
  position: absolute;
  top: 8px; right: 12px;
  z-index: 2;
  width: 36px; height: 36px;
  border: none;
  background: rgba(0,0,0,.06);
  color: var(--gris);
  border-radius: 50%;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s;
}
.booking-close:hover { background: rgba(0,0,0,.12); }
.booking-dialog iframe { flex: 1; width: 100%; border: 0; }
.booking-fallback {
  display: block;
  text-align: center;
  padding: .7rem;
  font-size: .82rem;
  color: var(--gris);
  text-decoration: none;
  border-top: 1px solid var(--borde);
}
.booking-fallback:hover { color: var(--naranja); }

/* ─── DETALLE DE SERVICIOS (sección que se amplía) ─── */
.service-card { cursor: pointer; }
.service-detail {
  margin-top: 2.5rem;
  padding: 2.5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  animation: detailIn .3s ease;
}
.service-detail[hidden] { display: none; }
@keyframes detailIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.service-detail .service-num { display: block; margin-bottom: .5rem; }
.service-detail h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blanco);
  line-height: 1.2;
  margin-bottom: .8rem;
}
.service-detail > p {
  color: rgba(255,255,255,.7);
  margin-bottom: 1.4rem;
  max-width: 680px;
}
.service-detail ul {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
}
.service-detail li {
  position: relative;
  padding-left: 1.7rem;
  margin-bottom: .65rem;
  color: rgba(255,255,255,.78);
  font-size: .95rem;
  line-height: 1.5;
}
.service-detail li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--jade);
  font-weight: 700;
}

/* ─── NUESTRO EQUIPO ─── */
.team { margin-top: 5rem; }
.team-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: .6rem;
}
.team-intro { max-width: 640px; color: var(--gris); margin-bottom: 2.5rem; }
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.team-card {
  cursor: pointer;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.4rem;
  transition: transform .2s, box-shadow .2s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 10px;
  overflow: hidden;
  background: var(--azul);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.team-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.team-initials { color: var(--blanco); font-size: 2.4rem; font-weight: 700; letter-spacing: 1px; }
.team-card h4 { font-size: 1.1rem; font-weight: 700; color: var(--azul); margin-bottom: .2rem; }
.team-card > p { font-size: .85rem; color: var(--gris); margin-bottom: .7rem; line-height: 1.4; }
.team-card .card-link { color: var(--naranja); }

.team-detail {
  margin-top: 2.5rem;
  padding: 2.5rem;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 14px;
  animation: detailIn .3s ease;
}
.team-detail[hidden] { display: none; }
.team-detail h3 { font-size: 1.6rem; font-weight: 700; color: var(--azul); margin-bottom: .3rem; }
.team-detail-roles { color: var(--naranja); font-weight: 600; font-size: .9rem; margin-bottom: 1.1rem; }
.team-detail > p { color: var(--gris); margin-bottom: 1.5rem; max-width: 680px; }

/* ─── FOOTER ─── */
.footer {
  background: var(--negro);
  padding: 4rem 3.5rem 2rem;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  flex-wrap: wrap;
  gap: 3rem;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-width: 340px;
}
.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--blanco);
}
.footer-tagline {
  font-size: .85rem;
  line-height: 1.6;
  color: rgba(255,255,255,.5);
}
.footer-cta {
  font-size: .85rem;
  font-weight: 600;
  color: var(--naranja);
  transition: letter-spacing .2s;
}
.footer-cta:hover { letter-spacing: .4px; }
.footer-cols {
  display: flex;
  gap: 4rem;
  flex-wrap: wrap;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.footer-col-title {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: .3rem;
}
.footer-col a {
  font-size: .85rem;
  color: rgba(255,255,255,.6);
  transition: color .2s;
}
.footer-col a:hover { color: var(--naranja); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 1.5rem;
  font-size: .75rem;
  color: rgba(255,255,255,.3);
  flex-wrap: wrap;
  gap: .5rem;
}
.footer-bottom a { color: rgba(255,255,255,.3); transition: color .2s; }
.footer-bottom a:hover { color: var(--naranja); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .sec        { padding: 5rem 2rem; }
  .hero       { padding: 100px 2rem 5rem; }
  .navbar     { padding: 0.7rem 2rem; }
  .logo-img   { height: 60px; }
  .values-bar { padding: 1rem 2rem; gap: 1rem; }
  .footer     { padding: 3rem 2rem 2rem; }

  .sec-grid-2          { grid-template-columns: 1fr; gap: 3rem; }
  .outcomes-grid       { grid-template-columns: 1fr 1fr; }
  .challenge-grid      { grid-template-columns: 1fr 1fr; }
  .stats-row           { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2)   { border-right: none; }
  .stat:nth-child(3)   { border-top: 1px solid var(--borde); }
  .stat:nth-child(4)   { border-top: 1px solid var(--borde); border-right: none; }
  .service-grid        { grid-template-columns: 1fr; }
  .footer-top          { flex-direction: column; }
}

@media (max-width: 600px) {
  .nav-links   { display: none; }
  .menu-toggle { display: flex; }
  .logo-img    { height: 50px; }
  .hero-inner h1 { font-size: 2rem; }
  .hero        { padding: 90px 1.5rem 4rem; }
  .hero-tag    { font-size: .65rem; }
  .hero-sub    { font-size: .95rem; }
  .stats-row   { grid-template-columns: 1fr; }
  .stat        { border-right: none !important; border-top: 1px solid var(--borde); padding-left: 0 !important; }
  .stat:first-child { border-top: none; }
  .sec-grid-2  { gap: 2rem; }
  .values-bar  { display: none; }
  .form-row    { flex-direction: column; gap: 0; }
  .contact-alt { flex-direction: column; gap: .6rem; }
  .team-grid   { grid-template-columns: 1fr; }
  .team-detail { padding: 1.8rem; }
  .outcomes-grid { grid-template-columns: 1fr; }
  .diag-quote  { font-size: 1.1rem; }
  .challenge-grid { grid-template-columns: 1fr; }
  html { scroll-padding-top: 80px; }
  .btn         { width: 100%; text-align: center; }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .8s cubic-bezier(.22,.61,.36,1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* Delays escalonados */
.stat:nth-child(1) { transition-delay: .0s; }
.stat:nth-child(2) { transition-delay: .1s; }
.stat:nth-child(3) { transition-delay: .2s; }
.stat:nth-child(4) { transition-delay: .3s; }

.service-card:nth-child(1) { transition-delay: .0s; }
.service-card:nth-child(2) { transition-delay: .15s; }
.service-card:nth-child(3) { transition-delay: .3s; }

.diag-step:nth-child(1) { transition-delay: .0s; }
.diag-step:nth-child(2) { transition-delay: .15s; }
.diag-step:nth-child(3) { transition-delay: .3s; }

.challenge:nth-child(1) { transition-delay: .0s; }
.challenge:nth-child(2) { transition-delay: .08s; }
.challenge:nth-child(3) { transition-delay: .16s; }
.challenge:nth-child(4) { transition-delay: .24s; }
.challenge:nth-child(5) { transition-delay: .32s; }

.outcome:nth-child(1) { transition-delay: .0s; }
.outcome:nth-child(2) { transition-delay: .08s; }
.outcome:nth-child(3) { transition-delay: .16s; }
.outcome:nth-child(4) { transition-delay: .24s; }
.outcome:nth-child(5) { transition-delay: .32s; }
.outcome:nth-child(6) { transition-delay: .4s; }

.team-card:nth-child(1) { transition-delay: .0s; }
.team-card:nth-child(2) { transition-delay: .12s; }
.team-card:nth-child(3) { transition-delay: .24s; }

/* Cursor personalizado en hero */
.hero { cursor: crosshair; }

/* ─── BANNER DE COOKIES ─── */
.cookie-banner {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 400;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .35s ease, transform .35s ease;
}
.cookie-banner.is-visible { opacity: 1; transform: translateY(0); }
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  pointer-events: auto;
  max-width: 720px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--blanco);
  border: 1px solid var(--borde);
  border-radius: 18px;
  box-shadow: 0 14px 44px rgba(38, 92, 103, .20);
  padding: 1.1rem 1.4rem;
}
.cookie-text {
  flex: 1;
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--gris);
}
.cookie-actions {
  display: flex;
  gap: .6rem;
  flex-shrink: 0;
}
.btn-cookie {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 600;
  border-radius: 100px;
  padding: .55rem 1.35rem;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn-cookie-accept { background: var(--naranja); color: #fff; }
.btn-cookie-accept:hover { background: #c9602d; transform: translateY(-1px); }
.btn-cookie-reject { background: transparent; color: var(--gris); border-color: var(--borde); }
.btn-cookie-reject:hover { border-color: var(--gris); color: var(--negro); }

@media (max-width: 600px) {
  .cookie-banner { left: .75rem; right: .75rem; bottom: .75rem; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 1rem; padding: 1.1rem; }
  .cookie-actions { justify-content: flex-end; }
}
