/* ==========================================================================
   Alternativa Humus — hoja de estilos principal
   Paleta, tipografía y medidas replicadas del diseño original.
   Breakpoints: >1199px (desktop) · 810–1199px · ≤809px (mobile)
   ========================================================================== */

/* --------------------------------------------------------- Tipografías --- */
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/rubik-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/rubik-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Rubik';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/rubik-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Rubik';
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/rubik-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* -------------------------------------------------------------- Tokens --- */
:root {
  --beige: #fbefe6;
  --green: #387b6e;
  --mint: #bcd3c3;
  --gray: #e3e3e3;
  --muted: #444;
  --white: #fff;
  --black: #000;
  --dark: #192123;

  --font: 'Rubik', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --h2: 52px;   /* títulos de sección */
  --h3: 44px;
  --h4: 36px;
  --h6: 22px;
  --reveal: 37px; /* párrafo animado de "Qué hacemos" */
}

@media (max-width: 1199.98px) {
  :root { --h2: 46px; --h3: 38px; --h4: 30px; --h6: 21px; --reveal: 34px; }
}
@media (max-width: 809.98px) {
  :root { --h2: 36px; --h3: 32px; --h4: 28px; --h6: 20px; --reveal: 20px; }
}

/* ---------------------------------------------------------------- Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--beige);
  color: var(--black);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

.h2 { font-size: var(--h2); font-weight: 700; line-height: 1.2; }
.h3 { font-size: var(--h3); font-weight: 700; line-height: 1.2; }
.h4 { font-size: var(--h4); font-weight: 700; line-height: 1.2; }
.h6 { font-size: var(--h6); font-weight: 700; line-height: 1.2; }
.p  { font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--muted); }

.title-green { color: var(--green); text-align: center; }

/* Salto de línea visible sólo en desktop (igual que el original) */
@media (max-width: 1199.98px) { br.desktop-only { display: none; } }

/* ------------------------------------------------------------- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 30px;
  border-radius: 20px;
  background: var(--green);
  color: var(--white);
  font-size: 16px;
  line-height: 1.4;
  transition: transform .2s ease;
}
.btn:active { transform: scale(.98); }
.btn--block { width: 100%; }

/* -------------------------------------------------------------- Navbar --- */
.nav-fixed {
  position: fixed;
  top: 4px;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 5px 20px 0;
  pointer-events: none;
}

.nav {
  pointer-events: auto;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 16px;
  border-radius: 16px;
  background: var(--beige);
  opacity: .975;
  box-shadow: 0 0 0 rgba(25, 33, 35, 0);
  transition: box-shadow .35s ease, background-color .35s ease;
  animation: nav-drop .8s cubic-bezier(.2, .8, .2, 1) both;
}
/* al scrollear: la barra se despega del fondo */
.nav.is-scrolled { box-shadow: 0 10px 30px -8px rgba(25, 33, 35, .28); }

@keyframes nav-drop {
  from { opacity: 0; transform: translateY(-28px) scale(.98); }
  to   { opacity: .975; transform: none; }
}
@keyframes nav-item {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

.nav__logo { flex: none; width: 189px; height: 58px; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.nav__logo:hover { transform: scale(1.03); }
.nav__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__links li {
  animation: nav-item .6s cubic-bezier(.2, .8, .2, 1) both;
  animation-delay: calc(.3s + var(--i, 0) * .06s);
}
.nav__links li:nth-child(2) { --i: 1; }
.nav__links li:nth-child(3) { --i: 2; }
.nav__links li:nth-child(4) { --i: 3; }
.nav__links li:nth-child(5) { --i: 4; }

.nav__links a {
  position: relative;
  display: block;
  padding: 0 2px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 2em;
  text-align: center;
  color: var(--green);
}
/* subrayado que entra desde la izquierda y sale hacia la derecha */
.nav__links a::after {
  content: '';
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a.is-active::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.nav__cta {
  flex: none;
  animation: nav-item .6s cubic-bezier(.2, .8, .2, 1) .62s both;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s ease, background-color .3s ease;
}
.nav__cta:hover {
  background-color: #2f6a5e;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -6px rgba(56, 123, 110, .65);
}
.nav__cta:active { transform: translateY(0) scale(.98); }

.nav__burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
}
.nav__burger span {
  position: absolute;
  left: calc(50% - 10px);
  width: 20px;
  height: 2px;
  border-radius: 10px;
  background: var(--green);
  transition: transform .4s cubic-bezier(.2, .8, .2, 1), top .4s cubic-bezier(.2, .8, .2, 1);
}
.nav__burger span:nth-child(1) { top: calc(37.5% - 1px); }
.nav__burger span:nth-child(2) { top: calc(62.5% - 1px); }
.nav.is-open .nav__burger span:nth-child(1) { top: calc(50% - 1px); transform: rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { top: calc(50% - 1px); transform: rotate(-45deg); }

@media (min-width: 810px) {
  .nav__top { display: contents; }
  .nav__menu { display: contents; }
}

@media (max-width: 809.98px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0;
    overflow: hidden;
  }
  .nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 20px;
  }
  .nav__burger { display: block; }
  .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: max-height .5s cubic-bezier(.2, .8, .2, 1), padding .5s cubic-bezier(.2, .8, .2, 1);
  }
  .nav.is-open .nav__menu { max-height: 420px; padding: 12px 20px 20px; }
  .nav__links { flex-direction: column; gap: 6px; width: 100%; }
  .nav__links a { font-size: 17px; padding: 4px 0; }
  .nav__links a::after { left: calc(50% - 22px); right: calc(50% - 22px); }

  /* los links entran uno a uno al abrir el menú (en lugar de la animación de carga) */
  .nav__links li,
  .nav__cta {
    animation: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .35s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
  }
  .nav.is-open .nav__links li,
  .nav.is-open .nav__cta { opacity: 1; transform: none; }
  .nav.is-open .nav__links li:nth-child(1) { transition-delay: .08s; }
  .nav.is-open .nav__links li:nth-child(2) { transition-delay: .14s; }
  .nav.is-open .nav__links li:nth-child(3) { transition-delay: .2s; }
  .nav.is-open .nav__links li:nth-child(4) { transition-delay: .26s; }
  .nav.is-open .nav__links li:nth-child(5) { transition-delay: .32s; }
  .nav.is-open .nav__cta { transition-delay: .4s; }
  .nav__cta { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .nav, .nav__links li, .nav__cta { animation: none; }
}

/* ---------------------------------------------------------------- Hero --- */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

/* El original muestra el slideshow con opacity .75 (contenedor) x .85 (componente)
   sobre el fondo negro del hero: las fotos quedan al ~64%. */
.hero__slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  opacity: .6375;
}
.hero__viewport { position: absolute; inset: 0; overflow: hidden; }
.hero__track {
  display: flex;
  width: 100%;
  height: 100%;
  /* resorte del original (rigidez 200, amortiguación 40): sin rebote, asienta en ~.8s */
  transition: transform .85s cubic-bezier(.25, .8, .25, 1);
  will-change: transform;
}
.hero__track.is-instant { transition: none; }
.hero__slide { flex: 0 0 100%; height: 100%; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }

.hero__content {
  position: absolute;
  top: 0;
  left: calc(50% - 600px);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 1200px;
  height: 100vh;
  padding: 87px 30px;
}

.hero__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 80px;
  width: 100%;
}

.hero__text {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 1px;
}
.hero__text h1 {
  font-size: var(--h2);
  font-weight: 700;
  line-height: 1.2;
  color: var(--beige);
}
.hero__text p { width: 80%; color: var(--beige); }

.hero__spacer { flex: 1 0 0; width: 1px; }

/* Puntos de los slideshows */
.dots {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  align-items: center;
  padding: 0 5px;
  border-radius: 50px;
  background: rgba(0, 0, 0, .2);
}
.dots button { display: flex; align-items: center; padding: 10px 5px; }
.dots button span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--white);
  opacity: .5;
  transition: opacity .3s ease;
}
.dots button.is-active span { opacity: 1; }

@media (max-width: 1199.98px) {
  .hero__content { left: unset; right: -1px; width: 907px; top: calc(50% - 50vh); }
}
@media (max-width: 906.98px) {
  .hero__content { width: auto; left: 0; right: 0; }
  .hero__row { flex-direction: column; }
  .hero__text { flex: none; width: 100%; }
  .hero__spacer { display: none; }
}
@media (max-width: 809.98px) {
  /* En mobile el hero mide 764px fijos, igual que el original */
  .hero__slideshow { height: 764px; }
  .hero__content {
    height: auto;
    padding: 200px 20px 0;
    justify-content: flex-start;
  }
  .hero__row { gap: 40px; }
  .hero__text { padding: 0 20px; }
  .hero__text p { width: 100%; }
  .hero__spacer { display: block; flex: none; width: 100%; height: 272px; }
}

/* ------------------------------------------------ Qué hacemos (About) ---- */
.about {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 50px;
  padding: 60px 40px 120px 60px;
  background: var(--green);
}
.about__title { color: var(--white); text-align: center; }

.about__card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: 100%;
  padding: 40px;
  border-radius: 20px;
  background: var(--beige);
  overflow: hidden;
}

.reveal-text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  color: var(--green);
  font-size: var(--reveal);
  font-weight: 500;
  line-height: 1.2;
}
.reveal-text span {
  display: inline-block;
  margin-right: .25em;
  filter: blur(1px);
  opacity: .05;
  transition: filter .1s linear, opacity .1s linear;
}
.reveal-text span.is-on { filter: blur(0); opacity: 1; }

@media (max-width: 1199.98px) {
  .about { padding: 60px 30px; }
  .reveal-text { flex: none; width: 600px; }
}
@media (max-width: 809.98px) {
  .about { padding: 40px 20px; }
  .reveal-text { width: 280px; }
}

/* ----------------------------------------------------------- Servicios --- */
.servicios {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 0 0;
  background: var(--white);
  overflow: hidden;
}
.servicios__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
  padding: 52px 30px;
}
.servicios__grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  height: 415px;
  padding: 20px 10px;
}

/* Tarjeta con giro 3D: cara frontal (foto + pill + botón) y cara trasera
   (beige + detalle). Gira con hover (mouse) o con tap (touch, ver main.js). */
.servicio {
  position: relative;
  flex: none;
  width: 347px;
  height: 415px;
  perspective: 1200px;
  border-radius: 20px;
  outline: none;
}
.servicio__flip {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.4, .2, .2, 1);
}
.servicio__face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 40px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 15px 0 rgba(0, 0, 0, .17);
  overflow: hidden;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.servicio__face--front { align-items: flex-start; justify-content: flex-start; }
.servicio__face--back {
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--beige);
  transform: rotateY(180deg);
}

.servicio.is-expanded .servicio__flip,
.servicio:focus-visible .servicio__flip { transform: rotateY(180deg); }
@media (hover: hover) {
  .servicio:hover .servicio__flip { transform: rotateY(180deg); }
}

/* Frente */
.servicio__bg { position: absolute; inset: 0; z-index: 0; }
.servicio__bg img { width: 100%; height: 100%; object-fit: cover; }
.servicio__body {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.servicio__face--front .servicio__pill { background: rgba(0, 0, 0, .53); }
.servicio__face--front .servicio__title { color: var(--white); }
.servicio__face--front .btn { position: relative; z-index: 1; }

.servicio__pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  border-radius: 1000px;
}
.servicio__icon {
  position: relative;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 100px;
  background: var(--mint);
}
.servicio__icon img {
  position: absolute;
  top: calc(48% - 14.5px);
  left: calc(48% - 14.5px);
  width: 29px;
  height: 29px;
  object-fit: contain;
}
.servicio__title { font-size: 18px; line-height: 1.4; color: var(--muted); }

/* Dorso */
.servicio__checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.servicio__checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}
.servicio__checklist svg { flex: none; width: 20px; height: 20px; color: var(--dark); }

@media (max-width: 1199.98px) {
  .servicios { padding: 70px 0 0; }
  .servicios__inner { padding: 0 30px; }
  .servicios__grid { flex-direction: column; height: auto; }
  .servicio { width: 100%; height: 366px; }
}
@media (max-width: 906.98px) {
  .servicios { padding: 30px 0 0; }
  .servicio { height: 415px; }
}
@media (max-width: 809.98px) {
  .servicios { padding: 35px 0 70px; }
  .servicios__inner { padding: 52px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .servicio__flip { transition: none; }
}

/* ------------------------------------------------------- Plan / pasos ---- */
.plan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 643px;
  padding: 10px 40px 50px;
  background: var(--white);
  overflow: hidden;
}
.plan__inner {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  gap: 100px;
  width: 1px;
  max-width: 1280px;
}
.plan__steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 60px;
  width: 100%;
}

.paso {
  position: relative;
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 1px;
  max-width: 450px;
}
.paso__icon { width: 123px; height: 123px; }
.paso__icon img { width: 100%; height: 100%; object-fit: contain; }

.paso__body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
}
.paso__title {
  position: relative;
  z-index: 1;
  width: min-content;
  white-space: pre;
}
.paso__title::after {
  content: '';
  position: absolute;
  z-index: 0;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 5px;
  border-radius: 1000px;
  background: var(--green);
  transform: skewX(20deg) skewY(-2deg);
}
/* Botón "i": el texto del paso sólo se muestra mientras se pasa el mouse por
   la i (o, en touch, al tocarla). Su lugar queda reservado para que nada salte. */
.paso__head { position: relative; width: fit-content; }
.paso__info {
  position: absolute;
  top: 2px;
  left: calc(100% + 14px);
  z-index: 1;
  width: 24px;
  height: 24px;
  padding: 0;
  color: var(--black);
  cursor: help;
  border-radius: 50%;
  transition: color .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.paso__info svg { display: block; width: 100%; height: 100%; }
.paso__info:hover,
.paso__info:focus-visible,
.paso.is-info-open .paso__info { color: var(--green); transform: scale(1.15); }
.paso__info:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.paso__text {
  width: 100%;
  max-width: 300px;
  text-align: center;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1);
  pointer-events: none;
}
.paso__body:has(.paso__info:hover) .paso__text,
.paso__body:has(.paso__info:focus-visible) .paso__text,
.paso.is-info-open .paso__text { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .paso__text, .paso__info { transition: none; }
}

@media (max-width: 1199.98px) { .plan { height: auto; padding: 70px 40px 10px; } .plan__inner { gap: 60px; } }
@media (max-width: 906.98px) { .plan { padding: 50px 40px 0; } .plan__inner { gap: 60px; } }
@media (max-width: 809.98px) {
  .plan { flex-direction: column; padding: 0 10px 60px; }
  .plan__inner { flex: none; width: 100%; gap: 60px; }
  .plan__steps { flex-direction: column; align-items: center; gap: 60px; }
  .paso { flex: none; width: 100%; }
}

/* ---------------------------------------------------------- Resultados --- */
.resultados {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  padding: 120px 40px 100px;
  background: var(--beige);
}
.resultados__row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 80px;
  width: 100%;
  max-width: 1120px;
}
.resultados__media {
  display: flex;
  flex: 1 0 0;
  width: 1px;
  border-radius: 16px;
  overflow: hidden;
}
.resultados__media img { width: 100%; height: 100%; object-fit: cover; }

.resultados__stats {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  gap: 64px;
  width: 1px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 30px 0 0;
  box-shadow: inset 0 2px 0 var(--green);
}
.stat__number {
  font-size: 54px;
  font-weight: 500;
  line-height: 1em;
  color: var(--green);
  text-align: center;
}
.stat__label { text-align: center; }

@media (max-width: 1199.98px) {
  .resultados { padding: 100px 32px 80px; }
  .resultados__row { height: 594px; align-items: flex-start; }
  .resultados__media { flex: 1 0 0; height: 594px; }
  .resultados__stats { height: 100%; gap: 12px; justify-content: center; }
}
@media (max-width: 906.98px) {
  .resultados__row { height: 455px; }
  .resultados__media { height: 455px; }
  .resultados__stats { gap: 19px; }
}

@media (max-width: 809.98px) {
  .resultados { padding: 64px 20px 80px; }
  .resultados__row { flex-direction: column; gap: 64px; height: auto; }
  .resultados__media, .resultados__stats { flex: none; width: 100%; }
  .resultados__media { height: 210px; }
  .resultados__stats { gap: 60px; height: auto; justify-content: flex-start; }
}

/* --------------------------------------------- Clientes / certificados --- */
.clientes {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  background: var(--white);
}
.clientes__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
  max-width: 1000px;
  padding: 0 60px;
}
.clientes__title { text-align: center; }

.clientes__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  width: 956px;
  max-width: 100vw;
}
.clientes__grid img { object-fit: contain; }

.certificaciones {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px 20px;
  padding: 20px 60px;
  border-radius: 20px;
  background: var(--beige);
}
.certificaciones__row {
  display: flex;
  align-items: center;
  gap: 25px;
}
.certificaciones__row img { object-fit: contain; }
.certificaciones__label {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 1199.98px) { .clientes__grid { width: 842px; } }
@media (max-width: 906.98px) { .clientes__grid { width: 743px; } }
@media (max-width: 809.98px) {
  .clientes { padding: 70px 0; }
  .clientes__inner { padding: 0 30px; }
  .clientes__grid { width: 350px; gap: 40px; }
  /* en mobile cada logo tiene su tamaño propio y entran de a dos por fila (medidas del original) */
  .clientes__grid img:nth-child(1) { width: 103px; height: 25px; }
  .clientes__grid img:nth-child(2) { width: 103px; height: 30px; }
  .clientes__grid img:nth-child(3) { width: 102px; height: 25px; }
  .clientes__grid img:nth-child(4) { width: 102px; height: 25px; }
  .clientes__grid img:nth-child(5) { width: 88px; height: 32px; }
  .clientes__grid img:nth-child(6) { width: 107px; height: 25px; }
  .clientes__grid img:nth-child(7) { width: 109px; height: 56px; }
  .clientes__grid img:nth-child(8) { width: 111px; height: 51px; }
  .clientes__grid img:nth-child(9) { width: 94px; height: 29px; }
  .clientes__grid img:nth-child(10) { width: 111px; height: 49px; }
  .clientes__grid img:nth-child(11) { width: 46px; height: 47px; }
  .clientes__grid img:nth-child(12) { width: 82px; height: 26px; }
  .certificaciones { gap: 20px; padding: 20px; width: 274px; }
  .certificaciones__row { gap: 17px; }
  .certificaciones__row img:nth-child(1) { width: 69px; height: 55px; }
  .certificaciones__row img:nth-child(2) { width: 148px; height: 59px; }
}

/* -------------------------------------------------------------- Equipo --- */
.equipo {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 120px 0;
  background: var(--white);
}
.equipo__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
  padding: 0 30px;
}
.equipo__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 50px 100px;
  width: 100%;
}
.miembro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 247px;
}
.miembro__foto {
  width: 150px;
  height: 150px;
  border-radius: 100px;
  overflow: hidden;
}
.miembro__foto img { width: 100%; height: 100%; object-fit: cover; }
.miembro__data {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
}
.miembro__data h3 { text-align: center; }
.miembro__data p { color: var(--black); text-align: center; }

@media (max-width: 1199.98px) { .equipo__grid { gap: 30px; } }
@media (max-width: 906.98px) { .equipo__grid { gap: 50px; } }
@media (max-width: 809.98px) {
  .equipo { padding: 70px 0; }
  .equipo__inner { gap: 40px; padding: 0 20px; }
  .equipo__grid { gap: 40px; }
  .miembro { width: 153px; }
}

/* ------------------------------------------------------------ Trabajos --- */
.trabajos {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0;
  background: var(--white);
}
.trabajos__carousel-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 50px 100px;
}

.carousel {
  position: relative;
  width: 100%;
  max-width: 1065px;
  height: 498px;
}
.carousel__viewport { height: 100%; overflow: hidden; }
.carousel__track.is-instant { transition: none; }
.carousel__track {
  display: flex;
  gap: 10px;
  transition: transform .6s cubic-bezier(.44, 0, .06, 1);
}
.carousel__slide {
  flex: 0 0 calc((100% - 10px) / 2);
  height: 498px;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: var(--white);
  overflow: hidden;
}
.carousel__slide figure { margin: 0; }
.carousel__img {
  width: 100%;
  height: 298px;
  border-radius: 20px;
  object-fit: cover;
}
.carousel__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px;
}
.carousel__caption h3,
.carousel__caption p { width: 100%; }

.carousel__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-top: -20px;
  border-radius: 40px;
  background: rgba(0, 0, 0, .2);
}
.carousel__arrow--prev { left: 20px; }
.carousel__arrow--next { right: 20px; }
.carousel__arrow img { width: 40px; height: 40px; }

.carousel .dots { bottom: 10px; }

@media (max-width: 1199.98px) { .trabajos__carousel-wrap { padding: 50px; } }
@media (max-width: 906.98px) {
  .trabajos__carousel-wrap { padding: 50px 30px; }
}
@media (max-width: 809.98px) {
  .trabajos__carousel-wrap { padding: 50px 20px; }
  .trabajos { padding: 70px 0; }
  .carousel__slide { flex: 0 0 100%; }
}

/* -------------------------------------------------------------- Tienda --- */
.tienda {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 80px 24px;
  background: var(--white);
}
.tienda__inner {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 1px;
  max-width: 1200px;
}
.tienda__media {
  display: flex;
  flex: 1 0 0;
  align-items: center;
  justify-content: center;
  gap: 48px;
  width: 1px;
}
.tienda__media > div {
  flex: 2 0 0;
  width: 1px;
  aspect-ratio: 1.66667;
  border-radius: 16px;
  overflow: hidden;
}
.tienda__media img { width: 100%; height: 100%; object-fit: cover; }

.tienda__content {
  display: flex;
  flex: 1 0 0;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 1px;
}
.tienda__content h2 { width: 100%; text-align: center; }
.tienda__content p { width: 100%; }

@media (max-width: 1199.98px) { .tienda__media > div { aspect-ratio: 1; } }
@media (min-width: 907px) and (max-width: 1199.98px) {
  .tienda { height: 504px; }
  .tienda__inner, .tienda__media { height: 100%; }
}
@media (max-width: 809.98px) {
  .tienda { padding: 0 24px 80px; }
  .tienda__inner { flex-direction: column; flex: none; width: 100%; }
  .tienda__media { flex: none; gap: 0; width: 100%; }
  .tienda__media > div { flex: 1 0 0; aspect-ratio: 1.66667; }
  .tienda__content { flex: none; width: 100%; }
}

/* ------------------------------------------------------------ Contacto --- */
.contacto {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 0 100px;
  background: var(--white);
}
.contacto__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  width: 100%;
  padding: 0 30px;
}
.contacto__inner h2,
.contacto__inner p {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}
.contacto__inner h2 { color: var(--black); }
.contacto__inner p { color: var(--green); }

@media (max-width: 809.98px) { .contacto__inner { padding: 0 20px; } }

/* -------------------------------------------------------------- Footer --- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 0 40px;
  background: var(--green);
  color: var(--beige);
}
/* Desktop/tablet: dos columnas (izquierda: logo + contacto; derecha: descargas + redes) */
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0 30px;
}
.footer__col { display: flex; flex-direction: column; }
.footer__col--left { flex: none; gap: 36px; width: 451px; padding-right: 50px; }
.footer__col--right { flex: 1 1 0; min-width: 0; align-self: stretch; justify-content: flex-start; gap: 4px; }

.footer__logo { display: block; width: 351px; height: 95px; }
.footer__logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }

.footer__block {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 20px 50px 0 0;
}
.footer__col--left .footer__block:last-child { padding-right: 0; }
.footer__block svg { flex: none; width: 56px; height: 56px; }
.footer__block-text { display: flex; flex-direction: column; gap: 4px; }
.footer__value { font-size: 20px; font-weight: 400; line-height: 1.4; color: var(--beige); }
.footer__label { font-size: 20px; font-weight: 300; line-height: 1.4; color: rgba(227, 227, 227, .52); }

.footer__downloads {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px 0 0;
}
.footer__downloads a { width: max-content; }
.footer__link { display: flex; align-items: center; gap: 10px; }
.footer__link svg { flex: none; width: 22px; height: 22px; }

.footer__social {
  display: flex;
  gap: 34px;
  padding: 20px 0 0;
}
.footer__social a { display: block; width: 36px; height: 36px; }
.footer__social svg { width: 36px; height: 36px; }

/* Mobile: una sola columna, logo más chico y más aire entre bloques (igual que el original) */
@media (max-width: 809.98px) {
  .footer { padding: 70px 0 20px; }
  .footer__inner { flex-direction: column; align-items: stretch; padding: 0 20px; gap: 10px; }
  .footer__col--left { width: auto; padding-right: 0; }
  .footer__col--right { flex: none; align-self: auto; }
  .footer__logo { width: 229px; height: 62px; }
  .footer__block { padding-top: 30px; }
  .footer__social { padding-top: 30px; }
}

/* --------------------------------------------------- Botón de WhatsApp --- */
.whatsapp-wrap {
  position: fixed;
  top: calc(93.375% - 32.5px);
  left: calc(95.5833% - 32.5px);
  z-index: 10;
  width: 65px;
  height: 65px;
}
.whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 8px;
}
.whatsapp img { width: 100%; height: 100%; border-radius: 8px; object-fit: cover; }

/* Visible por defecto, igual que en el sitio original; se puede cerrar con la X */
.whatsapp__tip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 8px;
  border-radius: 20px;
  background: rgba(0, 0, 0, .2);
  color: var(--white);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}
.whatsapp-wrap.is-dismissed .whatsapp__tip { display: none; }

.whatsapp__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .8);
  color: var(--green);
  flex: none;
}
.whatsapp__close svg { width: 10px; height: 10px; }

@media (max-width: 1199.98px) { .whatsapp-wrap { left: unset; right: 20px; } }
@media (max-width: 906.98px) { .whatsapp-wrap { top: calc(93.3333% - 32.5px); } }
@media (max-width: 809.98px) { .whatsapp__tip { display: none; } }

/* -------------------------------------------- Animaciones de aparición --- */
.fade-up {
  opacity: 0;
  transform: perspective(1200px) translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.is-visible { opacity: 1; transform: perspective(1200px) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .reveal-text span { filter: none; opacity: 1; }
  .carousel__track { transition: none; }
}

/* ---- Rango 810–906px (tablet chico): valores propios del original ---- */
@media (min-width: 810px) and (max-width: 906.98px) {
  .servicios__inner { padding: 52px 30px; }
  .clientes { padding: 60px 0 90px; }
  .equipo { padding: 90px 0; }
  .equipo__inner { gap: 40px; }
  .trabajos { padding: 90px 0; }
  .contacto { padding: 40px 0; }
  .footer { padding-bottom: 30px; }
}
