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

:root {
  --lime: #9ACA41;
  --teal: #21CCCB;
  --white: #ffffff;
  --dark: #060e0b;
}

body {
  background: var(--dark);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Hero wrapper ──────────────────────────────────── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: clip; /* clip es más fuerte que hidden — corta posicionados absolutos sin excepción */
}

.hero-expand-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.65);
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  pointer-events: none;
  z-index: 15;
  opacity: 0;
  transition: opacity 0.4s ease;
  white-space: nowrap;
}
.hero-expand-hint.show { opacity: 1; }
.hero-expand-hint svg  { animation: hshBounce 1.7s ease-in-out infinite; }
@keyframes hshBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(5px); }
}

/* ── Background image + gradient overlay ──────────── */
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 50% at 22% 12%, rgba(8, 120, 110, 0.75) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 85% 90%, rgba(45, 110, 10, 0.55) 0%, transparent 70%),
    url('Media/fondos/fondo-hero.webp');
  background-size: cover;
  background-position: center;
}

/* ── Film grain noise ──────────────────────────────── */
.hero-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ── Two-column layout ─────────────────────────────── */
.hero-container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 6vh 5.5vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5vw;
  align-items: center;
  min-height: 100vh;
}

/* ── Text column ───────────────────────────────────── */
.hero-text {
  display: flex;
  flex-direction: column;
}

.hero-description {
  font-family: '', sans-serif;
  font-weight: 200;
  font-size: clamp(20px, 2.4vw, 36px);
  line-height: 1.1;
  color: rgba(255, 255, 255, 0.90);
  margin-bottom: 1.6vw;
}

.hero-description strong {
  font-weight: 700;
  color: var(--white);
}

.hero-title {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  margin-bottom: 1.2vw;
}

.title-bold {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 0.85vw, 14px);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
}

.title-regular {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 0.85vw, 14px);
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: normal;
}

.hero-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(11px, 0.85vw, 14px);
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: 0.01em;
  margin-bottom: 2vw;
  text-transform: uppercase;

}

/* ── CTA Button ────────────────────────────────────── */
.btn-wrap {
  display: inline-block;
  /* gradient border shell */
  padding: 1px;
  border-radius: 11px;
  align-self: flex-start;
}

.cta-button {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(10px, 0.85vw, 14px);
  color: #0c1a08;
  background: var(--lime);
  border: none;
  border-radius: 10px;
  padding: clamp(14px, 1.2vw, 20px) clamp(24px, 2.5vw, 40px);
  cursor: pointer;
  transition: filter 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}


/* ── Video column ──────────────────────────────────── */
.hero-media {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* gradient border frame */
.video-frame {
  width: 100%;
  max-width: 640px;
  border-radius: 14px;
  padding: 2px;
  background: linear-gradient(135deg, var(--lime), var(--teal));
  box-shadow: 5px 5px 40px rgba(154, 202, 65, 0.30);
  overflow: hidden;
}

.video-inner {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

/* play button overlay */
.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(44px, 5vw, 68px);
  height: clamp(44px, 5vw, 68px);
  border-radius: 50%;
  border: 2px solid var(--lime);
  background: rgba(154, 202, 65, 0.18);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.play-btn:hover {
  background: rgba(154, 202, 65, 0.32);
  transform: translate(-50%, -50%) scale(1.08);
}

.play-icon {
  width: clamp(16px, 1.8vw, 24px);
  height: clamp(16px, 1.8vw, 24px);
  fill: var(--lime);
  margin-left: 3px;
}

/* ── Section 3 ─────────────────────────────────────── */
.s3-section {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
}

.s3-bg {
  position: absolute;
  inset: 0;
  background-image: url('Media/fondos/fondo-s3.webp');
  background-size: cover;
  background-position: center;
}

.s3-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.s3-container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 0 0 10vw;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  align-items: stretch;
}

.s3-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5vh 0;
  margin-top: 12%;
  margin-bottom: 12%;
}

/* Title */
.s3-title {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  margin-bottom: 1vw;
}

.s3-title-line1 {
  font-family: 'Gabarito', sans-serif;
  font-weight: 700;
  font-size: clamp(25px, 2.8vw, 46px);
  color: var(--white);
}

.s3-title-line2 {
  font-family: 'Gabarito', sans-serif;
  font-weight: 700;
  font-size: clamp(45px, 5.5vw, 90px);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.5 0.5' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.44'/%3E%3C/svg%3E"),
    linear-gradient(90deg, var(--lime), var(--teal));
  background-blend-mode: multiply, normal;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.s3-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(8px, 0.65vw, 11px);
  color: var(--lime);
  letter-spacing: 0.12em;
  margin-right: 40px;
  margin-bottom: 2vw;
}

.s3-card {
  background-image: url('Media/fondos/fondo-texto.webp');
  background-size: 100% 100%;
  background-position: center;
  border-radius: 12px;
  padding: clamp(14px, 1.4vw, 26px) clamp(18px, 1.8vw, 32px);
  margin-bottom: 2vw;
}

.s3-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(12px, 0.88vw, 15px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
  max-width: 38em;
}

/* Debajo de 1080px la columna de texto queda muy angosta para los saltos
   de línea fijos del desktop sin encoger la letra a un tamaño ilegible —
   se apagan esos <br> y se deja fluir el párrafo de forma natural */
@media (max-width: 1079px) {
  .s3-desc { max-width: none; }
  .s3-break { display: none; }
}

.s3-desc strong {
  font-weight: 700;
  color: var(--white);
}

.s3-btns {
  display: flex;
  gap: 14px;
}

.s3-btn-fill {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(10px, 0.8vw, 13px);
  letter-spacing: 0.08em;
  color: #0c1a08;
  background: var(--lime);
  border: none;
  border-radius: 10px;
  padding: clamp(12px, 1vw, 18px) clamp(20px, 2vw, 34px);
  cursor: pointer;
  transition: filter 0.2s;
  text-decoration: none;
  display: inline-block;
}


.s3-btn-outline {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(10px, 0.8vw, 13px);
  letter-spacing: 0.08em;
  color: var(--white);
  background: transparent;
  border: 1.5px solid var(--white);
  border-radius: 10px;
  padding: clamp(12px, 1vw, 18px) clamp(20px, 2vw, 34px);
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  display: inline-block;
}

.s3-btn-outline:hover { background: rgba(255, 255, 255, 0.08); }

/* Photo strips */
.s3-strips-wrapper {
  position: relative;
  contain: layout paint;
}

.s3-strips {
  position: absolute;
  inset: 0;
  display: flex;
  gap: 5%;
  padding-right: 10%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    black 18%,
    black 82%,
    transparent 100%
  );
}

.s3-strip {
  flex: 1;
  overflow: hidden;
}

.s3-strip-set {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-bottom: 10px;
}

.s3-strip--up   .s3-strip-track { animation: s3-up   22s linear infinite; will-change: transform; }
.s3-strip--down .s3-strip-track { animation: s3-down 22s linear infinite; will-change: transform; }

@keyframes s3-up {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}

@keyframes s3-down {
  from { transform: translateY(-50%); }
  to   { transform: translateY(0); }
}

.s3-photo-frame {
  border-radius: 10px;
  padding: 1px;
  width: 65%;
  height: 160px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--lime), var(--teal));
}

.s3-strip--up .s3-photo-frame   { margin-left: auto; }
.s3-strip--down .s3-photo-frame { margin-right: auto; }

.s3-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9px;
  object-fit: cover;
}

/* ── Stats Section ─────────────────────────────────── */
.stats-section {
  position: relative;
  display: flex;
  align-items: stretch;
  background-image: url('Media/fondos/s2.webp');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding: 10% 10% 15% 0;
}


.stats-container {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 0 0 0 50%;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.stats-quote {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 34px);
  max-width: 18em;
  text-align: justify;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 5vw;
}

.stats-row {
  display: flex;
  gap: 3vw;
  align-items: flex-end;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 3.2vw, 54px);
  color: #9ACA41;
  line-height: 1;
  text-transform: uppercase;
}

.stat-label {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(10px, 0.8vw, 13px);
  color: var(--white);
  letter-spacing: 0.1em;
  padding-left: 5px;
  margin-top: 8px;
}

/* ── Video custom controls ──────────────────────────── */
.vid-controls {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 20px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(to top, rgba(0,0,0,.75) 0%, transparent 100%);
  border-radius: 0 0 10px 10px;
  opacity: 0;
  transition: opacity .25s ease;
  pointer-events: none;
  z-index: 15;
}
.vid-controls.show {
  opacity: 1;
  pointer-events: auto;
}
.vc-btn {
  background: none; border: none; cursor: pointer;
  color: #fff; padding: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: opacity .15s;
  flex-shrink: 0;
}
.vc-btn:hover { opacity: .75; }
.vc-vol-wrap { display: flex; align-items: center; gap: 8px; }
.vc-slider {
  -webkit-appearance: none; appearance: none;
  width: 80px; height: 3px; border-radius: 2px;
  background: rgba(255,255,255,.3); outline: none; cursor: pointer;
}
.vc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px; height: 13px; border-radius: 50%;
  background: #fff; cursor: pointer;
}
.vc-spacer { flex: 1; }
.vc-speed-wrap { position: relative; }
.vc-speed-btn {
  background: rgba(255,255,255,.15); border: none; cursor: pointer;
  color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .03em;
  padding: 4px 10px; border-radius: 5px;
  font-family: 'Inter', sans-serif; transition: background .15s;
}
.vc-speed-btn:hover { background: rgba(255,255,255,.25); }
.vc-speed-menu {
  position: absolute; bottom: calc(100% + 8px); right: 0;
  background: rgba(15,15,15,.95); border-radius: 8px;
  overflow: hidden; display: none; flex-direction: column;
  min-width: 72px; box-shadow: 0 8px 24px rgba(0,0,0,.5);
}
.vc-speed-menu.open { display: flex; }
.vc-speed-menu button {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.8); font-size: 12px; font-weight: 500;
  padding: 9px 16px; text-align: center;
  font-family: 'Inter', sans-serif; transition: background .15s;
}
.vc-speed-menu button:hover  { background: rgba(255,255,255,.08); color: #fff; }
.vc-speed-menu button.active { color: var(--lime); }

/* ── Section 4: Servicios ──────────────────────────── */
.sv-section {
  background: #ece7dd;
  color: #15171a;
  font-family: 'Inter', sans-serif;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 240px 300px 1fr;
  gap: 48px;
  align-items: start;
}

/* Nav column */
.sv-nav {
  border-left: 3px solid #2bd9d2;
  padding-left: 24px;
}

.sv-divider { display: none; }

.sv-eyebrow {
  font-weight: 800;
  font-size: clamp(40px, 2.2vw, 30px);
  letter-spacing: 0.4px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.sv-tab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  margin-bottom: 28px;
}

.sv-tab {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  color: #555551;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
  border-radius: 4px;
  transition: background .2s, color .2s;
  line-height: 1.35;
}

.sv-tab:hover  { color: #3e5c11; }
.sv-tab.active { background: rgba(43,217,210,.18); color: #3e5c11; }

.sv-cta {
  display: inline-block;
  background: #a7cb49;
  border: none;
  color: #15171a;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 20px;
  border-radius: 8px;
  transition: transform .15s, box-shadow .15s;
}
.sv-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(0,0,0,.12); }

/* Image column */
.sv-img-col {
  width: 100%;
  align-self: stretch;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.18);
  position: relative;
  background: #11151a;
}

.sv-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity .35s ease;
}
.sv-img.active { opacity: 1; }

/* Content panels */
.sv-panel {
  display: none;
}
.sv-panel.active {
  display: block;
  animation: sv-fade .35s ease;
}

@keyframes sv-fade {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sv-title {
  font-weight: 800;
  font-size: 3.2vw;
  line-height: 1.05;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 10px;
  letter-spacing: 0.2px;
}

.sv-subtitle {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 13px;
  text-transform: uppercase;
  line-height: 1.5;
  color: #15171a;
  margin-bottom: 18px;
}

.sv-box {
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 14px;
}

.sv-box--green {
  background: #a7cb49;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
margin-right: 10%;}

.sv-box--cyan {
  background: #2bd9d2;
  font-weight: 700;
  font-size: clamp(12px, 1vw, 20px);
  line-height: 1.28;
}

.sv-box--navy {
  background: #0f1f2e;
  color: #b8e04a;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(12px, 0.7vw, 20px);
}

.sv-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.sv-lower-left {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.sv-lower-left .sv-box {
  margin-bottom: 0;
}

.sv-lower-left .sv-box--cyan {
  flex: 1;
}

.sv-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.sv-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 12px;
  text-transform: uppercase;
  line-height: 1.32;
  padding-right: 20%;
}

.sv-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.sv-check img { width: 100%; height: 100%; object-fit: contain; }

@media (min-width: 1025px) {
  .sv-section {
    padding: 140px clamp(40px, 6vw, 110px);
  }
}

@media (max-width: 1024px) {
  .sv-section {
    grid-template-columns: 220px 1fr;
    grid-template-rows: auto auto;
  }
  .sv-img-col { max-width: 280px; grid-row: 1 / 3; grid-column: 2; }
  .sv-nav     { grid-column: 1; grid-row: 1; }
  .sv-content { grid-column: 1; grid-row: 2; }
  .sv-lower   { grid-template-columns: 1fr; }
}

/* Tablet vertical: la imagen y el contenido no caben apretados en la columna
   angosta del nav — la imagen queda junto al nav y el contenido pasa a ocupar
   el ancho completo debajo, en vez de compartir la columna de 220px. */
@media (min-width: 701px) and (max-width: 1024px) {
  .sv-img-col {
    max-width: none;
    grid-row: 1;
    grid-column: 2;
    height: 300px;
    align-self: start;
  }
  .sv-content {
    grid-column: 1 / 3;
    grid-row: 2;
    margin-top: 32px;
  }
  .sv-lower {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .sv-section { grid-template-columns: 1fr; padding: 40px 20px 48px; gap: 10px; }
  .sv-img-col { display: none; }
  .sv-nav, .sv-content { grid-column: unset; grid-row: unset; }
  .sv-title { font-size: clamp(36px, 10.5vw, 52px); white-space: normal; line-height: 1; margin-bottom: 8px; margin-top: 40px; }
  .sv-subtitle { font-size: 11px; margin-bottom: 14px; }
  .sv-box--green { font-size: 12px; margin-right: 0; line-height: 1.4; }
  .sv-lower { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sv-box--cyan { font-size: 12px; padding: 14px 14px; }
  .sv-box--navy { font-size: 12px ; padding: 14px 14px; line-height: 1.45; }
  .sv-bullets { gap: 12px; }
  .sv-bullets li { font-size: 12px; gap: 10px; line-height: 1.3;}
  .sv-check { width: 18px; height: 18px; }
  .sv-box { padding: 10px 10px; margin-bottom: 5px; }

  /* Tabs horizontales con scroll táctil */
  .sv-nav {
    border-left: none;
    padding-left: 0;
    min-width: 0;
    overflow: hidden;
  }
  .sv-tab-list {
    flex-direction: row;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 8px;
    padding-bottom: 10px;
    width: 100%;
    margin-bottom: 0;
  }
  .sv-tab-list::-webkit-scrollbar { display: none; }
  .sv-tab { flex-shrink: 0; white-space: nowrap; }
  .sv-divider {
    display: block;
    border: none;
    border-top: 2px solid #2bd9d2;
    margin: 5px 20px 25px;
  }
  .sv-cta {
    display: block;
    text-align: center;
  }
}

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    padding: 48px 6vw;
    gap: 40px;
    min-height: unset;
  }


  .hero-text {
    gap: 20px;
  }

  .hero-media {
    order: -1;
  }

  .video-frame {
    max-width: 100%;
  }

  .title-bold,
  .title-regular {
    font-size: clamp(11px, 2.5vw, 14px);
  }

  .hero-description {
    font-size: clamp(18px, 5vw, 28px);
  }

  .hero-subtitle {
    font-size: clamp(12px, 2vw, 15px);
  }

  .play-icon {
    width: 56px;
    height: 56px;
  }
}

/* ── Sección: Cómo trabajamos ──────────────────────── */
.tw-section {
  width: 100%;
  padding: 80px 64px 100px;
  background: url('Media/fondos/ct.webp') center / cover no-repeat;
  position: relative;
  overflow: hidden;
}

.tw-title {
  text-align: center;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(27px, 2.4vw, 34px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 64px 0;
}

.tw-layout {
  max-width: 720px;
  margin: 0 auto;
}

.tw-timeline {
  position: relative;
}

.tw-track {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 24px;
  width: 2px;
  background: rgba(255,255,255,0.1);
}

.tw-fill {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 2px;
  height: 0%;
  background: linear-gradient(180deg, var(--teal), var(--lime));
  transition: height 0.08s linear;
}

.tw-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 88px;
}
.tw-step:last-child { margin-bottom: 0; }

.tw-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.07);
  position: relative;
  z-index: 2;
  opacity: 0;
  transform: translateY(10px) scale(0.85);
  transition: opacity 0.5s ease, transform 0.5s ease, background 0.5s ease, box-shadow 0.5s ease;
}
.tw-icon svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255,255,255,0.35);
  fill: none;
  stroke-width: 1.8;
  transition: stroke 0.5s ease;
}

.tw-step.active .tw-icon {
  opacity: 1;
  transform: translateY(0) scale(1);
  background: linear-gradient(135deg, var(--teal), var(--lime));
  box-shadow: 0 0 18px rgba(33,204,203,0.35);
}
.tw-step.active .tw-icon svg { stroke: #060e0b; }

.tw-connector {
  width: 20px; /* desktop */
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin-top: 23px;
  flex-shrink: 0;
  transition: background 0.5s ease;
}
.tw-step.active .tw-connector {
  background: linear-gradient(90deg, var(--teal), var(--lime));
}

.tw-body {
  padding-top: 0;
  padding-left: 20px;
  padding-right: 30%;
}

.tw-num {
  color: rgba(255,255,255,0.25);
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  margin: 0 0 3px 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease, color 0.5s ease;
}
.tw-step.active .tw-num {
  opacity: 1;
  transform: translateY(0);
  color: rgba(255,255,255,0.55);
}

.tw-step-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.2vw, 18px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.25;
  margin: 0 0 8px 0;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.05s, transform 0.5s ease 0.05s;
}
.tw-step.active .tw-step-title {
  opacity: 1;
  transform: translateY(0);
}

.tw-desc {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: clamp(12px, 0.95vw, 14px);
  line-height: 1.7;
  color: rgba(233,233,231,0.75);
  max-width: 560px;
  margin: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease 0.1s, transform 0.5s ease 0.1s;
}
.tw-step.active .tw-desc {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  .tw-num { font-size: 30px; }
  .tw-section { padding: 56px 24px 72px; }
  .tw-layout   { max-width: 100%; }
  .tw-connector { width: 20px; } /* mobile: largo línea horizontal */
  .tw-body { padding-left: 10px; padding-right: 0px; } /* mobile: gap línea→texto */
  .tw-desc { max-width: 100%; font-size: clamp(10px, 3.8vw, 16px); }
  .tw-step-title { font-size: clamp(16px, 4.5vw, 20px); }
}

.paratisi-section {
  --green:        #9ACA41;
  --green-light:  #6f8f33;
  --teal:         #21CCCB;
  --teal-light:   #157875;
  --accent-green: #a7d24a;
  --cyan:         #2bd9d2;
  --text:         #e9e9e7;

  width: 100%;
  position: relative;
  padding: clamp(64px, 8vw, 128px) clamp(32px, 7vw, 120px) clamp(128px, 16vw, 224px);
  overflow: hidden;
  background-image: url(Media/fondos/fondo-s5-6.webp);
  background-size: cover;
  background-position: center;
}

.paratisi-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.paratisi-inner {
  max-width: 1440px;
  margin: 0 auto;
}

.paratisi-section .section-title {
  color: #fff;
  font-weight: 800;
  font-size: clamp(36px, 5.5vw, 80px);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin: 0 0 clamp(14px, 5vw, 200px) 10%;
  position: relative;
  z-index: 3;
  line-height: 1.1;
}

.paratisi-section .cards {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: clamp(50px, 1vw, 80px);
  margin: 0;
  padding: 0 10%;
}

.paratisi-section .card {
  position: relative;
  display: flex;
  align-items: stretch;
  height: auto;
  overflow: visible;
  isolation: isolate;
}

.paratisi-section .card-bg {
  position: absolute;
  inset: 0;
  border-radius: clamp(14px, 1.5vw, 22px);
  z-index: 0;
}

.paratisi-section .card-agencia .card-bg {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), var(--green);
}
.paratisi-section .card-empresa .card-bg {
  background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), var(--teal);
}

/* ── Columna de texto: 60% del card (el card es el 50% central de la sección) ── */
.paratisi-section .card-agencia .card-text {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 1.6vw, 22px) clamp(20px, 2vw, 28px) clamp(70px, 1.6vw, 22px) clamp(20px, 2vw, 28px);
  position: relative;
  z-index: 3;
}

.paratisi-section .card-empresa .card-text {
  flex: 0 0 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 1.6vw, 22px) clamp(20px, 2vw, 28px) clamp(70px, 1.6vw, 22px) clamp(20px, 2vw, 28px);
  position: relative;
  z-index: 3;
}

.paratisi-section .card-title {
  color: #ffffff;
  font-weight: 800;
  font-size: clamp(16px, 1.8vw, 26px);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin: 0 0 clamp(10px, 1vw, 16px) 0;
}

.paratisi-section .card-text p {
  color: rgba(255,255,255,0.92);
  font-weight: 400;
  font-size: clamp(13px, 1.05vw, 17px);
  line-height: 1.75;
  margin: 0;
}

.paratisi-section .card-divider {
  width: 70%;
  height: auto;
  display: block;
  margin: 0 auto clamp(16px, 1.5vw, 24px) auto;
}

/* ── Columna de foto: llena el alto completo de la tarjeta ── */
.paratisi-section .card-photo {
  flex: 1 1 auto;
  position: relative;
  z-index: 3;
  overflow: hidden;
}

.paratisi-section .card-agencia .card-photo {
  border-radius: 0 clamp(14px, 1.5vw, 22px) clamp(14px, 1.5vw, 22px) 0;
}

.paratisi-section .card-empresa .card-photo {
  border-radius: clamp(14px, 1.5vw, 22px) 0 0 clamp(14px, 1.5vw, 22px);
}

/* Imagen: llena toda la columna de foto */
.paratisi-section .card-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.paratisi-section .card-empresa { flex-direction: row-reverse; }

/* ── Con quienes hemos trabajado ── */
.clientes-block {
  position: relative;
  z-index: 2;
  margin-top: 96px;
  text-align: center;
}

.clientes-title {
  color: #fff;
  font-weight: 800;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin: 0 0 48px 0;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px 32px;
  max-width: 1100px;
  margin: 0 auto 56px;
}

.logo-item {
  flex: 0 0 calc((100% - 5 * 32px) / 6);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-item img[src*="c12.webp"] {
  width: 75%;
  height: 75%;
}

.logo-item img[src*="comce2.webp"] {
  width: 120%;
  height: 120%;
}

.logo-placeholder {
  height: 56px;
  width: 100%;
  border: 1px dashed rgba(255,255,255,0.25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.45);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.clientes-copy {
  max-width: 760px;
  margin: 0 auto 36px;
  color: var(--text);
  font-weight: 400;
  font-size: 14px;
  text-transform: uppercase;
  line-height: 1.8;
}

.clientes-copy b {
  font-weight: 700;
  color: #fff;
}

.clientes-cta-line {
  color: #fff;
  font-weight: 600;
  font-size: clamp(25px, 1.2vw, 14px);
  text-transform: uppercase;
  margin: 0 0 36px 0;
}

.clientes-cta-line .highlight {
  color: var(--accent-green);
  font-weight: 800;
}

.cta-row {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.paratisi-section .btn {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: transform .15s ease, box-shadow .15s ease;
}

.paratisi-section .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

.paratisi-section .btn-outline {
  background: transparent;
  border: 1.5px solid var(--cyan);
  color: var(--cyan);
}

.paratisi-section .btn-solid {
  background: var(--accent-green);
  border: 1.5px solid var(--accent-green);
  color: #0a0a0a;
}


@media (max-width: 760px) {
  /* ── Paratisi: layout columna ── */
  .paratisi-section { padding: 48px 16px 64px; }
  .paratisi-section .section-title { text-align: center; font-size: clamp(24px, 7vw, 32px); margin: 20px 0 48px; }
  .paratisi-section .cards { padding: 0; gap: 32px; }
  .paratisi-section .card { flex-direction: column !important; min-height: 0; }
  .paratisi-section .card-bg { display: none; }

  /* foto: arriba con esquinas redondeadas */
  .paratisi-section .card-photo,
  .paratisi-section .card-agencia .card-photo,
  .paratisi-section .card-empresa .card-photo {
    order: -1;
    height: auto;
    overflow: hidden;
    border-radius: 22px 22px 0 0;
    flex: none;
    width: 100%;
  }
  .paratisi-section .card-photo img,
  .paratisi-section .card-agencia .card-photo img,
  .paratisi-section .card-empresa .card-photo img {
    position: relative;
    inset: auto;
    height: auto;
    width: 100%;
    bottom: auto;
    right: auto !important;
    left: auto !important;
    transform: none !important;
    object-fit: cover;
    object-position: center top;
    display: block;
  }

  /* texto: esquinas de abajo rectas, padding limpio */
  .paratisi-section .card-text,
  .paratisi-section .card-agencia .card-text,
  .paratisi-section .card-empresa .card-text {
    flex: none;
    width: 100%;
    padding: 24px 20px 32px;
    border-radius: 0;
  }
  .paratisi-section .card-agencia .card-text { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), var(--green); }
  .paratisi-section .card-empresa .card-text { background: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), var(--teal); }

  /* texto dentro de las cards: tamaño legible */
  .paratisi-section .card-title { font-size: clamp(18px, 5vw, 24px); }
  .paratisi-section .card-text p { font-size: 13px; line-height: 1.7; }
}

@media (max-width: 640px) {
  .logos-grid { gap: 16px 16px; }
  .logo-item { flex: 0 0 calc((100% - 2 * 16px) / 3); height: 48px; }
  .clientes-title { font-size: clamp(18px, 5.5vw, 26px); margin-bottom: 32px; }
  .clientes-block { margin-top: 56px; }
}


/* ── Testimonios ────────────────────────────────────────────────── */
.testi-section {
  --g1: #9ACA41;
  --g2: #21CCCB;
  --testi-bg: #e8e4dc;
  --testi-dark: #1a1a1a;
  --testi-muted: #888;
  --card-bg: #ffffff;
  --card-inactive-bg: #f5f5f5;
  width: 100%;
  padding: clamp(48px, 6vw, 96px) clamp(24px, 5vw, 80px);
  background: var(--testi-bg);
}

.testi-inner {
  max-width: 1440px;
  margin: 0 auto;
}
.testi-header {
  text-align: center;
  margin-bottom: clamp(36px, 4vw, 64px);
}
.testi-title {
  font-weight: 800;
  font-size: clamp(22px, 2.08vw, 30px);
  text-transform: uppercase;
  color: var(--testi-dark);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.testi-subtitle {
  font-weight: 400;
  font-size: clamp(14px, 1.39vw, 20px);
  color: var(--testi-dark);
}
.slider-row {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1vw, 16px);
  margin-bottom: 18px;
}
.arrow-btn {
  flex-shrink: 0;
  width: clamp(32px, 2.8vw, 44px);
  height: clamp(32px, 2.8vw, 44px);
  border: 1.5px solid var(--g2);
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.arrow-btn:hover { background: rgba(33, 204, 203, 0.12); }
.arrow-btn:disabled { opacity: 0.3; cursor: default; }
.arrow-btn svg {
  width: 14px; height: 14px;
  stroke: var(--g2); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.cards-outer {
  flex: 1;
  overflow: hidden;
  padding: 10px 0;
  margin: -10px 0;
}
.cards-track {
  display: flex;
  gap: clamp(8px, 1vw, 14px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.testi-card {
  flex-shrink: 0;
  width: calc(25% - 10.5px);
  border-radius: 14px;
  cursor: pointer;
  position: relative;
  background: var(--card-inactive-bg);
  padding: 2px;
  transition: transform 0.25s ease;
}
.testi-card:hover { transform: translateY(-2px); }
.testi-card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--g1), var(--g2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}
.testi-card.active::before { opacity: 1; }
.testi-card::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  border: 1.5px solid #cccccc;
  transition: opacity 0.3s;
}
.testi-card.active::after { opacity: 0; }
.testi-card-inner {
  display: flex;
  align-items: center;
  gap: clamp(8px, 0.8vw, 12px);
  padding: clamp(10px, 1vw, 16px);
  border-radius: 12px;
  background: transparent;
  position: relative;
  z-index: 1;
}
.testi-avatar {
  flex-shrink: 0;
  width: clamp(44px, 4vw, 62px);
  height: clamp(44px, 4vw, 62px);
  border-radius: 10px;
  overflow: hidden;
}
.testi-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  transition: filter 0.3s;
  filter: grayscale(100%);
}
.testi-card.active .testi-avatar img { filter: grayscale(0%); }
.testi-card-info { flex: 1; min-width: 0; }
.testi-card-name {
  font-weight: 700;
  font-size: clamp(11px, 1.25vw, 18px);
  color: var(--testi-dark);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}
.testi-card-role {
  font-weight: 400;
  font-size: clamp(9px, 0.833vw, 12px);
  color: var(--testi-muted);
  text-transform: uppercase;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.testi-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.testi-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #bbb;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.testi-dot.active { background: var(--g1); transform: scale(1.25); }
.testi-video-border {
  position: relative;
  max-width: 905px;
  margin: 0 auto clamp(32px, 4vw, 52px);
  border-radius: 25px;
  padding: 2.5px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.testi-video-border::before {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 200%;
  aspect-ratio: 1;
  background: conic-gradient(from 0deg, #9ACA41, #21CCCB 50%, #9ACA41);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: testiSpin 4s linear infinite;
}
@keyframes testiSpin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
.testi-video-wrap {
  position: relative;
  z-index: 1;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: pointer;
}
.testi-su {
  position: absolute;
  inset: 0;
  will-change: transform;
}
.testi-video-thumb {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.testi-video-name-overlay {
  position: absolute; inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  pointer-events: none;
}
.testi-video-name-text {
  font-weight: 800;
  font-size: clamp(32px, 6vw, 88px);
  text-transform: uppercase;
  letter-spacing: -1px;
  line-height: 1;
  padding: clamp(16px, 2.5vw, 36px);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-image: linear-gradient(135deg, var(--g1), var(--g2));
  mix-blend-mode: screen;
}
.testi-play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(44px, 5vw, 68px);
  height: clamp(44px, 5vw, 68px);
  border-radius: 50%;
  border: 2px solid var(--g1);
  background: rgba(154, 202, 65, 0.18);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.testi-video-wrap:hover .testi-play-btn {
  background: rgba(154, 202, 65, 0.32);
  transform: translate(-50%, -50%) scale(1.08);
}
.testi-play-btn svg {
  width: clamp(16px, 1.8vw, 24px);
  height: clamp(16px, 1.8vw, 24px);
  fill: var(--g1);
  margin-left: 3px;
}
.testi-video-embed {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: none;
  display: none;
  border-radius: 10px;
}
.testi-video-wrap.playing .testi-su,
.testi-video-wrap.playing .testi-play-btn { display: none; }
.testi-video-wrap.playing:not(.loading) .testi-video-embed { display: block; }
.testi-spinner {
  position: absolute;
  top: 50%; left: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 15%, #9ACA41 45%, #21CCCB 75%, transparent 90%);
  animation: spinRing 0.75s linear infinite;
  display: none;
  z-index: 5;
}
.testi-spinner::after {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: #000;
}
.testi-video-wrap.loading .testi-spinner { display: block; }
@keyframes spinRing { to { transform: rotate(360deg); } }
.testi-cta { text-align: center; }
.btn-testi-cta {
  display: inline-block;
  padding: clamp(13px, 1.2vw, 18px) clamp(28px, 3vw, 48px);
  background: var(--g1);
  color: #0a0a0a;
  font-weight: 700;
  font-size: clamp(12px, 0.9vw, 14px);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  text-decoration: none;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn-testi-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(154, 202, 65, 0.35);
}
@media (max-width: 900px) { .testi-card { width: calc(50% - 7px); } }
@media (max-width: 560px) {
  .testi-card { width: 100%; }
  .testi-video-name-text { font-size: clamp(28px, 8vw, 48px); }
}

@media (max-width: 767px) {
  /* Segunda sección: una sola columna en mobile */
  /* padding-top grande para que la foto se vea antes del contenido sin dejarla descubierta */
  .stats-section {
    padding: 30vw 28px 20vw;
    background-position: center top;
  }
  .stats-container { padding: 0; gap: 20px; }
  .stats-quote { font-size: clamp(14px, 4.5vw, 18px); line-height: 1.5; margin-bottom: 16px; }
  /* Fila de stats: una sola fila horizontal, 4 items distribuidos en el ancho */
  .stats-row { flex-direction: row; flex-wrap: nowrap; gap: 0; justify-content: space-between; align-items: flex-end; }
  .stat-item { flex: 1; min-width: 0; }
  .stat-number { font-size: clamp(14px, 5.5vw, 28px); white-space: nowrap; }
  .stat-label { font-size: clamp(7px, 2.2vw, 11px); letter-spacing: 0.08em; margin-top: 4px; padding-left: 0; white-space: nowrap; }

  /* ── Hero mobile ── */
  #heroSection { overflow: hidden; }
  .hero-container { position: absolute; inset: 0; display: block; padding: 0; min-height: unset; }
  .hero-text {
    position: absolute;
    top: calc(50% + 52px);
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    display: flex; flex-direction: column; align-items: flex-start;
    text-align: left; gap: 10px; z-index: 10;
    pointer-events: none;
    will-change: transform, opacity;
  }
  .hero-description { margin: 0; font-size: clamp(1.3rem, 4.8vw, 1.8rem); margin-bottom: 4%; }
  .hero-title { margin: 0; }
  .title-bold, .title-regular { font-size: clamp(0.65rem, 2.3vw, 0.85rem); white-space: normal; }
  .hero-subtitle { margin: 2px 0 0; font-size: clamp(0.6rem, 2.6vw, 0.85rem); }
  .btn-wrap { margin-top: 28px; align-self: flex-start; pointer-events: auto; }
  .cta-button { font-size: clamp(13px, 3.8vw, 16px); padding: 14px 28px; pointer-events: auto; }
  .hero-media { display: none; }
  #playBtn { display: none; }
  #heroVidFrame { opacity: 0; will-change: opacity; }
  #heroVidFrame .video-inner { width: 100%; height: 100%; aspect-ratio: unset; border-radius: 10px; overflow: hidden; }

  /* ── s3-section mobile ── */
  .s3-container { grid-template-columns: 1fr; padding: 0; gap: 0; }
  .s3-text { padding: 32px 24px 28px; margin: 0; }
  .s3-subtitle { font-size: 10px; margin-right: 0; margin-bottom: 16px; }
  .s3-desc { font-size: 13px; line-height: 1.65; max-width: none; }
  .s3-card { padding: 14px; margin-top: 4%; margin-bottom: 6%; }
  .s3-btns { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 20px; }
  .s3-btn-fill, .s3-btn-outline { text-align: center; font-size: 13px !important; padding: 15px 20px !important; border-radius: 8px; width: 100%; }
  .s3-strips-wrapper { contain: none; position: static; width: 100%; height: 240px; overflow: hidden; }
  .s3-strips {
    position: static;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    height: 240px;
    mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  }
  .s3-strip { overflow: hidden; flex: 1; width: 100%; }
  .s3-strip-track { display: flex; flex-direction: row; height: 100%; }
  .s3-strip-set { flex-direction: row; flex-shrink: 0; height: 100%; gap: 8px; padding-bottom: 0; padding-right: 8px; }
  .s3-strip--down { margin-bottom: 32px; }
  .s3-strip--up   .s3-strip-track { animation: s3-left  22s linear infinite; }
  .s3-strip--down .s3-strip-track { animation: s3-right 22s linear infinite; }
  .s3-photo-frame { width: auto; height: 100%; flex-shrink: 0; }
  .s3-strip--up   .s3-photo-frame { margin-left: 0; }
  .s3-strip--down .s3-photo-frame { margin-right: 0; }
  .s3-photo-frame img { width: auto; height: 100%; aspect-ratio: 3 / 4; }

  @keyframes s3-left  { from { transform: translateX(0); }    to { transform: translateX(-50%); } }
  @keyframes s3-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
}

/* ── Topbar ─────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 201;
  height: 36px;
  background: #091510;
  border-bottom: 1px solid rgba(154,202,65,0.14);
  transition: transform 0.3s ease;
}
.topbar.hidden {
  transform: translateY(-100%);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 5.5vw;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.topbar-link {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.62);
  text-decoration: none;
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}
.topbar-link svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  opacity: 0.75;
}
.topbar-link:hover {
  color: #9ACA41;
}
.topbar-link:hover svg {
  opacity: 1;
}
.topbar-sep {
  color: rgba(255,255,255,0.18);
  font-size: 11px;
  user-select: none;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-social {
  display: flex;
  align-items: center;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}
.topbar-social svg {
  width: 14px;
  height: 14px;
}
.topbar-social:hover {
  color: #21CCCB;
}
@media (max-width: 520px) {
  .topbar-left .topbar-sep,
  .topbar-left .topbar-link:first-child { display: none; }
}

/* ── Navbar ─────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 36px; left: 0; right: 0;
  z-index: 200;
  transition: top 0.3s ease, background 0.35s ease, backdrop-filter 0.35s ease;
}
.navbar.topbar-gone {
  top: 0;
}

.navbar.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(6,14,11,0.40);
  mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,0.2) 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, rgba(0,0,0,1) 100%);
  transition: opacity 0.35s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 40px 5.5vw;
  background: linear-gradient(to bottom, rgba(6,14,11,0.88) 0%, transparent 100%);
  transition: background 0.35s ease;
}

.navbar.scrolled .nav-inner {
  background: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(16px, 2vw, 32px);
  flex: 1;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--lime); }

.nav-logo {
  flex: 1;
  display: flex;
  justify-content: center;
}
.nav-logo img { height: 50px; display: block; }

.nav-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-cta {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #0c1a08;
  background: var(--lime);
  border-radius: 8px;
  padding: 10px 20px;
  text-decoration: none;
  transition: filter 0.2s;
}

/* Hamburger hidden on desktop */
.nav-hamburger { display: none; }

/* Mobile menu hidden by default */
.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(6,14,11,0.97);
  padding: 8px 24px 28px;
}
.nav-mobile-menu.open { display: flex; }

.nav-mobile-links {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.nav-mobile-links li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-mobile-links a {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  padding: 16px 0;
  transition: color 0.2s;
}
.nav-mobile-links a:hover { color: var(--white); }
.nav-mobile-cta { color: var(--lime) !important; font-weight: 700 !important; letter-spacing: 0.06em; }

@media (max-width: 767px) {
  .nav-inner { padding: 40px 5px; }
  .nav-links, .nav-right { display: none; }
  .nav-logo { flex: none; justify-content: flex-start; }
  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
  }
  .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-hamburger.open span:nth-child(2) { opacity: 0; }
  .nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ═══════════════════════════════
   FOOTER
═══════════════════════════════ */
.footer {
  background: #060e0b;
  border-top: 1px solid rgba(154, 202, 65, 0.15);
}

.footer-inner {
  width: 100%;
  padding: clamp(48px, 6vw, 80px) clamp(24px, 5vw, 110px) clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}

.footer-logo { display: inline-block; }
.footer-logo img { display: block; }

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.45);
  font-size: clamp(12px, 0.85vw, 13px);
  line-height: 1.7;
  max-width: 300px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.footer-social a:hover {
  color: #0c1a08;
  background: var(--lime);
  border-color: var(--lime);
}

.footer-social svg {
  width: 16px;
  height: 16px;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px clamp(24px, 3vw, 48px);
  padding-top: 6px;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--lime); }

.footer-copy {
  width: 100%;
  padding: 22px clamp(24px, 5vw, 110px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-copy p {
  color: rgba(255, 255, 255, 0.25);
  font-size: 11px;
  letter-spacing: 0.06em;
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-tagline { max-width: none; }
  .footer-copy { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ── Mobile extra pequeño ──────────────────────────── */
@media (max-width: 400px) {
  .s3-title-line1 { font-size: 22px; }
  .s3-title-line2 { font-size: 38px; }
  .s3-subtitle    { font-size: 12px; }
  .tw-section     { padding: 48px 16px 60px; }
  .testi-section  { padding: 40px 16px; }
  .stats-section  { padding: 28vw 16px 18vw; }
  .logo-item      { flex: 0 0 calc((100% - 16px) / 3); height: 40px; }
  .footer-inner   { padding-left: 16px; padding-right: 16px; }
}

/* ═══════════════════════════════
   ANIMACIONES DE ENTRADA
═══════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {

  /* — Títulos — */
  .anim-title {
    opacity: 0;
    transform: translateY(30px);
    transition:
      opacity  0.7s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .anim-title.anim-in {
    opacity: 1;
    transform: none;
  }

  /* — Logos: estado inicial oculto — */
  .anim-logo {
    opacity: 0;
    transition:
      opacity   0.55s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.55s cubic-bezier(0.16, 1, 0.3, 1),
      filter    0.55s ease;
    transition-delay: calc(var(--li, 0) * 38ms);
  }

  /* Cada logo entra desde una dirección distinta */
  .anim-logo:nth-child(1)  { transform: translateY(-26px); }
  .anim-logo:nth-child(2)  { transform: translateX(26px); }
  .anim-logo:nth-child(3)  { transform: translateY(26px); }
  .anim-logo:nth-child(4)  { transform: translateX(-26px); }
  .anim-logo:nth-child(5)  { transform: scale(0.72); }
  .anim-logo:nth-child(6)  { transform: translateY(-20px) rotate(-7deg); }
  .anim-logo:nth-child(7)  { transform: translateX(22px) scale(0.88); }
  .anim-logo:nth-child(8)  { transform: translateY(22px) translateX(-14px); }
  .anim-logo:nth-child(9)  { transform: translateY(22px) translateX(14px); }
  .anim-logo:nth-child(10) { transform: scale(0.78) rotate(5deg); }
  .anim-logo:nth-child(11) { transform: translateY(-20px); filter: blur(5px); }
  .anim-logo:nth-child(12) { transform: translateX(-22px) rotate(-4deg); }
  .anim-logo:nth-child(13) { transform: translateX(26px) scale(0.86); }
  .anim-logo:nth-child(14) { transform: translateY(-30px) scale(0.9); }
  .anim-logo:nth-child(15) { transform: translateX(-20px) scale(0.88); }
  .anim-logo:nth-child(16) { transform: rotate(8deg) scale(0.85); }
  .anim-logo:nth-child(17) { transform: scale(0.68); filter: blur(4px); }

  /* Estado final de todos los logos */
  .anim-logo.anim-in {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

/* ═══════════════════════════════
   BOTONES CTA — misma tipografía que "Cotiza con nosotros" del hero,
   sin bordes de color (solo el radio), y desvanecido a azul en hover
═══════════════════════════════ */
.cta-button,
.nav-cta,
.sv-cta,
.s3-btn-fill,
.paratisi-section .btn-solid,
.btn-testi-cta {
  font-weight: 400;
  font-size: clamp(10px, 0.85vw, 14px);
  letter-spacing: normal;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.paratisi-section .btn-solid {
  border: none;
}

.cta-button::before,
.nav-cta::before,
.sv-cta::before,
.s3-btn-fill::before,
.paratisi-section .btn-solid::before,
.btn-testi-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--teal);
  opacity: 0;
  transition: opacity 0.35s ease;
  z-index: -1;
}

.cta-button:hover::before,
.nav-cta:hover::before,
.sv-cta:hover::before,
.s3-btn-fill:hover::before,
.paratisi-section .btn-solid:hover::before,
.btn-testi-cta:hover::before {
  opacity: 1;
}

/* ═══════════════════════════════
   PÁRRAFOS DE CONTENIDO — texto justificado (ambos bordes parejos)
═══════════════════════════════ */
.s3-desc,
.card-text p,
.tw-desc,
.footer-tagline {
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
