/* ============================================================
   homepage.css — Página de inicio · Web 3.0
   Marc Zamora Asesor Financiero
   Migrado a tokens.css (spec/tokens.css) — 11/09/2026.
   Breakpoints: los originales de esta página, sin tocar (afinados a
   dispositivo real: Pixel 10 Pro / Galaxy Tab S9 / PC). Revertido tras
   comprobar en Responsively que consolidarlos a 768/1200 rompía el
   layout de PC — ver CORRECCIONES.md.
   ============================================================ */
/* ─── Base y reseteos ─── */
body {
  overflow-x: hidden;
}

/* ─── Secciones base ─── */
.section {
  padding: clamp(64px, 9vw, 96px) clamp(20px, 5%, 60px);
}
.section--dark  { background-color: var(--color-primary); }
.section--light { background-color: var(--color-white); }

.section-inner {
  width: 100%;
}
.section-inner--wide {
  width: 100%;
}
.testimonials-header {
  max-width: 1560px;
  margin: 0;
  text-align: left;
}
.testimonials-eyebrow {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 20px);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.testimonials-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--color-cta);
  flex-shrink: 0;
}
.testimonials-header .section-lead {
  max-width: 960px;
  margin-bottom: 0;
}
.testimonials-header .section-lead + .section-lead {
  margin-top: 8px;
  margin-bottom: clamp(40px, 5vw, 60px);
}

/* Heading color overrides por contexto */
.section--light h2,
.section--light h3,
.section--light h4,
.section--light h5,
.section--light h6 { color: var(--color-primary) !important; }

.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--dark h5,
.section--dark h6 { color: var(--color-text-on-dark) !important; }

.section--dark p,
.section--dark li,
.section--dark span { color: var(--color-text-on-dark-muted) !important; }

.section--light p,
.section--light li,
.section--light span { color: var(--color-text) !important; }

/* Patrón encabezado + subtítulo de sección */
.section-heading { margin-bottom: 40px; }
.section-lead {
  max-width: 660px;
  margin-bottom: clamp(40px, 5vw, 60px);
  line-height: 1.7;
}
.section-lead--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: calc(100dvh - 80px);
  display: flex;
  align-items: center;
  padding: clamp(80px, 10vw, 130px) clamp(20px, 5%, 60px) clamp(60px, 8vw, 100px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--overlay-hero);
  z-index: var(--z-raised);
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-base);
  object-fit: cover;
  object-position: center right;
}
.hero-inner {
  position: relative;
  z-index: var(--z-overlay);
  max-width: var(--content-max);
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: var(--text-hero-eyebrow);
  letter-spacing: var(--tracking-hero-eyebrow);
  text-transform: uppercase;
  color: var(--color-cta);
  display: block;
  margin-bottom: 36px;
}
.hero h1 {
  font-size: var(--text-hero-title);
  color: var(--color-text-on-dark);
  line-height: 1.2;
  margin-bottom: 36px;
}
.hero-desc {
  font-size: var(--text-hero-desc);
  color: oklch(97% 0.005 280);
  max-width: 720px;
  margin: 0 auto 52px;
  line-height: 1.75;
}
.hero-trust {
  margin-top: 44px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(13px, 1.2vw, 16px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: oklch(94% 0.008 280);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.hero-trust span[aria-hidden] { color: oklch(60% 0.015 280); }

/* ─── CONÓCEME full-width ─── */
.about-content-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
}
.about-bg {
  display: none;
}

/* ── Tablet/Desktop: imagen de fondo con texto superpuesto ── */
@media (min-width: 1120px) and (max-width: 2559px) {
  .about-fullwidth {
    position: relative;
    overflow: hidden;
    min-height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
  }
  .about-fullwidth > picture { display: contents; }
  .about-bg {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
    z-index: var(--z-base);
  }
  .about-fullwidth::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to right, var(--color-white) 0%, var(--color-white) 44%, rgba(255, 255, 255, 0.9) 48%, rgba(255, 255, 255, 0) 65%);
    z-index: var(--z-raised);
    pointer-events: none;
  }
  .about-fullwidth .about-content-wrap {
    position: relative;
    z-index: var(--z-overlay);
    width: 100%;
  }
  .about-fullwidth .about-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
  }
  .about-fullwidth .about-img-wrap { display: none; }
}

/* ── Tablet (1120–1280px): imagen cuadrada anclada a la derecha ── */
@media (min-width: 1120px) and (max-width: 1280px) {
  .about-bg {
    object-position: right center;
    transform: translateX(15%);
  }
}

/* ── Desktop: imagen de fondo en mitad derecha, texto sobre blanco limpio ── */
@media (min-width: 2560px) {
  .about-fullwidth {
    position: relative;
    overflow: hidden;
    min-height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
  }
  .about-fullwidth > picture { display: contents; }
  .about-bg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right top;
    z-index: var(--z-base);
  }
  .about-fullwidth::before { content: none; }
  .about-fullwidth .about-content-wrap {
    position: relative;
    z-index: var(--z-overlay);
    margin-left: 0;
  }
  .about-fullwidth .about-grid {
    grid-template-columns: 1fr;
    max-width: 1000px;
  }
  .about-fullwidth .about-img-wrap { display: none; }
}

/* ─── CONÓCEME ─── */
.about-grid {
  display: grid;
  grid-template-columns: 55fr 45fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about-eyebrow {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 20px);
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: var(--color-primary);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.about-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--color-cta);
  flex-shrink: 0;
}
.about-text h2 { margin-bottom: 28px; }
.h2-tagline {
  display: block;
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.35;
  margin-top: 6px;
}
.about-intro {
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-intro:last-of-type {
  margin-bottom: 16px;
}
.about-intro--small {
  font-size: clamp(15px, 1.4vw, 18px);
}
.about-list {
  list-style: none;
  padding: 0;
  margin: 60px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.about-list li {
  padding-left: 22px;
  position: relative;
  line-height: 1.6;
  font-size: clamp(17px, 1.8vw, 21px);
}
.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 10px;
  height: 2px;
  background-color: var(--color-cta);
}
.about-credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
  justify-content: center;
  text-align: center;
}
.about-cred-num {
  display: block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 6px;
}
.about-cred-label {
  font-size: clamp(13px, 1.1vw, 16px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}
.about-img-wrap { position: sticky; top: 100px; }
.about-img-wrap picture {
  display: block;
  padding: 0;
  margin: 0;
}
.about-img {
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 0;
}

/* ─── CERTIFICACIONES ─── */
@media (min-width: 1120px) {
  .certs-fullwidth {
    min-height: calc(100dvh - 80px);
    display: flex;
    align-items: center;
  }
}

.certs-header {
  max-width: 1000px;
}
.certs-header .section-lead {
  max-width: 1000px;
}
p.certs-eyebrow {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 20px);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
p.certs-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--color-cta);
  flex-shrink: 0;
}
p.certs-eyebrow ~ .section-lead { margin-bottom: 8px; }
p.certs-eyebrow ~ .section-lead + .section-lead { margin-bottom: clamp(40px, 5vw, 60px); }

/* ─── RESPONSIVE BREAKPOINTS ─── */
/* Mobile: 420px (Pixel 10 Pro) */
/* Tablet: 1120px (Galaxy Tab S9) */
/* Desktop: 2560px (PC) */

.certs-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 36px);
  margin-bottom: clamp(24px, 3vw, 36px);
}
@media (max-width: 900px) {
  .certs-groups {
    grid-template-columns: 1fr;
  }
}

.credential-extra {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--color-border);
}
.credential-extra__label {
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
  margin: 0 0 8px;
}
.credential-extra__title {
  font-size: var(--text-h5);
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}
.credential-extra__desc {
  font-size: var(--text-body);
  color: var(--color-text);
  line-height: 1.6;
  margin-bottom: 2rem;
  max-width: 640px;
}
.credential-extra-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 768px) {
  .credential-extra-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.credential-extra-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.credential-extra-item img {
  height: 36px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.credential-extra-item p {
  font-size: var(--text-body);
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}
.certs-group {
  display: flex;
  flex-direction: column;
}
.certs-group .cert-block {
  flex: 1;
  min-height: clamp(200px, 20vw, 240px);
}
.certs-group__label {
  font-family: var(--font-heading);
  font-size: clamp(16px, 2.2vw, 28px);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  opacity: 0.65;
  margin: 0 0 24px;
}

.cert-block {
  border: 1px solid var(--color-border);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: clamp(20px, 2.5vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-slow) cubic-bezier(0.16, 1, 0.3, 1), box-shadow var(--dur-slow) cubic-bezier(0.16, 1, 0.3, 1);
}
.cert-block:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
p.cert-block__source {
  font-size: clamp(10px, 1vw, 11px);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-cta);
  margin: 0;
  line-height: 1.4;
}
.cert-block__names {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}
.cert-block__names li {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--color-primary);
  line-height: 1.4;
  padding: 10px 0;
  text-transform: uppercase;
}
.cert-block__names li:first-child { padding-top: 0; }
.cert-block__names li:last-child  { padding-bottom: 0; }
.cert-block__foot {
  padding-top: 16px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cert-validated-label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin: 0 0 14px;
  text-align: center;
}
.cert-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}
.cert-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cert-logo {
  height: 52px;
  width: auto;
  display: block;
  object-fit: contain;
}
.cert-logo--sq   { height: 48px; width: 48px; }
.cert-logo--wide { height: 46px; }


/* ─── SERVICIOS ─── */
.services-header {
  margin-bottom: clamp(40px, 5vw, 60px);
}
.services-header .section-heading,
.services-header .section-lead {
  max-width: 800px;
}
.services-header .section-lead {
  margin-bottom: 0.8em;
}
.services-header .section-lead:last-child {
  margin-bottom: clamp(40px, 5vw, 60px);
}
.services-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.service-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.service-col-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.service-col-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: contents;
}
.service-col-hero-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: var(--z-raised);
}
.service-col-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(20, 18, 38, 0.45) 0%, rgba(20, 18, 38, 0.15) 50%, rgba(20, 18, 38, 0) 100%);
  z-index: var(--z-overlay);
}
.service-col-hero-content {
  position: absolute;
  inset: 0;
  z-index: var(--z-dropdown);
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: clamp(32px, 5vw, 48px);
}
.service-col-hero-content .service-col-title--hero {
  color: var(--color-text-on-dark) !important;
  font-size: clamp(26px, 3.5vw, 40px) !important;
  margin: 0 !important;
  text-transform: uppercase !important;
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-shadow: 0 2px 8px rgba(10, 8, 24, 0.5);
}
.service-col-hero-content .service-col-intro--hero {
  color: var(--color-text-on-dark) !important;
  max-width: 680px;
  font-size: clamp(20px, 1.6vw, 22px);
  margin: 0;
  text-shadow: 0 2px 6px rgba(10, 8, 24, 0.5);
}
.service-col-title--hero + .service-col-intro.service-col-intro--hero {
  margin-top: 14px;
}
.service-col-intro.service-col-intro--hero + .service-col-intro.service-col-intro--hero {
  margin-top: 0.75em;
}
.service-col-title {
  font-family: var(--font-heading);
  color: var(--color-primary);
  margin: 0;
}
.service-col-intro {
  line-height: 1.7;
  font-size: clamp(15px, 1.4vw, 18px);
  margin: 0;
}
.service-col-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.service-tiers {
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 2px solid var(--color-border);
  padding-left: 20px;
}
.service-tier-label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 3px;
}
.service-tier-desc {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.6;
}

/* ── Tiers dentro de la imagen (tablet/PC) ── */
@media (min-width: 768px) {
  .service-col-hero {
    z-index: var(--z-raised);
  }
  .service-tiers {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: var(--z-dropdown);
    flex-direction: row;
    gap: 24px;
    border-left: none;
    padding: 52px clamp(28px, 4vw, 48px) 28px;
    background: linear-gradient(to top, rgba(10, 8, 24, 0.82) 0%, transparent 100%);
  }
  .service-tier {
    flex: 1;
  }
  .service-col .service-tiers .service-tier-label {
    color: var(--color-text-on-dark) !important;
  }
  .service-col .service-tiers .service-tier-desc {
    color: var(--color-text-on-dark-muted) !important;
    font-size: clamp(14px, 1.1vw, 15px);
  }
}

/* ── Tiers en móvil (flujo normal debajo de la imagen con diseño original) ── */
@media (max-width: 767px) {
  .service-tiers {
    /* Mantiene los estilos normales definidos al inicio, fluyendo debajo de la imagen */
    margin-top: 10px;
    margin-bottom: 20px;
  }
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: var(--fw-accent);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  text-decoration: none;
  margin-top: 16px;
  border-bottom: 1px solid var(--color-primary);
  padding-bottom: 2px;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.service-link:hover { opacity: 0.65; }
.service-link--hero {
  color: var(--color-text-on-dark) !important;
  border-bottom-color: var(--color-text-on-dark) !important;
  font-size: clamp(16px, 1.4vw, 18px);
  margin-top: 22px;
  opacity: 0.9;
}
.service-link--hero:hover { opacity: 1; }

/* ─── PROCESO ─── */
.process-eyebrow {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 20px);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 1000px;
}
.section:has(.process-grid) > .section-inner > h2,
.section:has(.process-grid) > .section-inner > .section-lead {
  max-width: 1000px;
}
.process-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--color-cta);
  flex-shrink: 0;
}
.process-break {
  display: block;
  margin-top: 0.6em;
}
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr; /* Fuerza a que todas las filas (cajas) tengan la misma altura */
  gap: clamp(32px, 6vw, 40px); /* Aumentado el espacio entre cajas arriba/abajo */
  padding: 0 12px; /* Añadido espacio a izquierda y derecha en móvil */
  margin: 0;
  list-style: none;
}
@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 0; /* Quitamos el padding extra en tablet/PC ya que la sección ya tiene márgenes amplios */
  }
}
@media (min-width: 1121px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process-step {
  padding: 32px 24px; /* Padding explícito 100% seguro para móvil (32px vertical, 24px lateral) */
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform var(--dur-slow) cubic-bezier(0.16, 1, 0.3, 1), box-shadow var(--dur-slow) cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .process-step {
    padding: 40px 32px; /* Padding más amplio para tablet y PC */
  }
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.section--light span.process-num {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(56px, 7vw, 76px);
  line-height: 1;
  color: var(--color-white) !important;
  -webkit-text-fill-color: var(--color-white) !important;
  -webkit-text-stroke: 2px var(--color-primary);
  display: block;
  margin-bottom: 8px;
  text-align: center;
}
.process-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 22px);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  line-height: 1.4;
  margin: 0;
  text-align: center;
}
.process-desc {
  font-size: var(--text-body); /* Lectura real, no metadata: rule 21 */
  color: var(--color-text-muted);
  line-height: 1.7;
  margin: 0;
  text-align: left; /* Alinear a la izquierda el texto dentro de la tarjeta */
}
.process-title + .process-desc { margin-top: 10px; }
.process-desc + .process-desc { margin-top: -6px; }

/* ─── TESTIMONIOS ─── */
.testimonials-wrapper {
  position: relative;
  margin-top: clamp(32px, 4vw, 48px);
  overflow: hidden;
}
.testimonials-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 4px 2px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.testimonials-carousel::-webkit-scrollbar { display: none; }
.testimonial {
  flex: 0 0 calc(33.333% - 16px);
  scroll-snap-align: start;
  padding: clamp(20px, 2.5vw, 28px) clamp(24px, 2.5vw, 32px);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-slow) cubic-bezier(0.16, 1, 0.3, 1), box-shadow var(--dur-slow) cubic-bezier(0.16, 1, 0.3, 1);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.testimonial__stars {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.star-icon {
  width: 30px;
  height: 30px;
  fill: oklch(82% 0.19 75);
  flex-shrink: 0;
}
.testimonial__quote {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.75;
  color: var(--color-text);
  margin: 0;
  flex-grow: 1;
}
.testimonial__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}
.testimonial__role {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-top: 2px;
}
.testimonial__source {
  font-size: var(--text-meta);
  color: var(--color-text-muted);
  font-family: var(--font-body);
  font-weight: var(--fw-accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding-top: 8px;
}
.testimonial__source:hover { text-decoration: underline; }

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
}
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  border: 1px solid var(--color-border-strong);
  background: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
  flex-shrink: 0;
}
.carousel-btn:hover { background: var(--color-primary); color: var(--color-white); border-color: var(--color-primary); }
.carousel-btn:disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.carousel-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.carousel-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-circle);
  background: var(--color-border-strong);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.carousel-dot.is-active {
  background: var(--color-primary);
  transform: scale(1.4);
}

/* ─── FAQ + CTA FINAL ─── */
.faq-eyebrow {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(13px, 1.6vw, 20px);
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.faq-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--color-cta);
  flex-shrink: 0;
}

/* picture actúa como contenedor absoluto; img hereda object-fit */
.faq-bg {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: var(--z-base);
}
.faq-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  display: block;
}

.faq-fullwidth {
  position: relative;
  overflow: hidden;
  min-height: 1397px;
}
/* degradado base: móvil — de arriba a abajo, oscuro donde va el texto */
.faq-fullwidth::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    color-mix(in oklch, var(--color-primary) 90%, transparent) 0%,
    color-mix(in oklch, var(--color-primary) 75%, transparent) 55%,
    color-mix(in oklch, var(--color-primary) 40%, transparent) 100%
  );
  z-index: var(--z-raised);
  pointer-events: none;
}
/* Sobre foto, el muted de .section--dark (55%) no da contraste: texto pleno */
.faq-fullwidth.section--dark .faq-content p { color: var(--color-text-on-dark) !important; }
.faq-fullwidth .faq-eyebrow { color: var(--color-cta); }
.faq-fullwidth .link-arrow { color: var(--color-text-on-dark); }
.faq-fullwidth .link-arrow:focus-visible { outline-color: var(--color-focus-on-dark); }
.faq-content-wrap {
  position: relative;
  z-index: var(--z-overlay);
}
.faq-content {
  max-width: 560px;
}
.faq-content h2 { margin-bottom: 24px; }
.faq-content p  { margin-bottom: 32px; line-height: 1.7; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(15px, 1.3vw, 17px);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transition: gap var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.link-arrow::after {
  content: '→';
  font-style: normal;
}
.link-arrow:hover {
  gap: 12px;
  opacity: 0.75;
}
.link-arrow:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: var(--radius-xs);
}

/* ── Tablet+: imagen de fondo — degradado horizontal ── */
@media (min-width: 1120px) {
  .faq-bg img {
    object-position: right center;
  }
  /* Degradado horizontal a transparente (CORRECCIONES §HTML regla 30) */
  .faq-fullwidth::before {
    background: var(--overlay-hero);
  }
}
.cta-final {
  text-align: center;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--color-border);
}
.cta-final h2 { margin-bottom: 20px; }
.cta-final p {
  color: var(--color-text-muted);
  margin-bottom: 40px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

/* CTA standalone — bloque de texto */
.cta-standalone__inner .cta-intro {
  margin-top: 40px;
  margin-bottom: 8px;
}
.cta-standalone__inner .cta-body {
  margin-bottom: 8px;
}
.cta-standalone__inner .cta-btn {
  margin-top: 32px;
}

/* ─── CTA STANDALONE (sección independiente fondo blanco) ─── */
.section--white {
  background-color: var(--color-white);
}
.cta-standalone {
  text-align: center;
}
.cta-standalone__inner {
  max-width: 100%;
}
.cta-standalone__inner h2 {
  color: var(--color-primary);
  margin-bottom: 20px;
}
.cta-standalone__inner p {
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
  font-size: clamp(17px, 1.6vw, 20px);
}

/* ─── CTA standalone: left-align on mobile ─── */
@media (max-width: 1119px) {
  .cta-standalone {
    text-align: left;
  }
  .cta-standalone .btn-primary {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ─── RESPONSIVE — Desktop only: left-align hero (≥1280px) ─── */
@media (min-width: 2560px) {
  .hero { align-items: flex-start; }
  .hero-inner { text-align: left; margin: 0; }
  .hero-desc { margin-left: 0; margin-right: 0; }
  .hero-trust { justify-content: flex-start; }
}

/* ─── RESPONSIVE — Tablet (≤1119px) ─── */
@media (max-width: 1119px) {
  .hero-bg { object-position: 70% center; }
  .certs-groups { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .certs-groups .certs-group:nth-child(n+2) { margin-top: clamp(24px, 3vw, 40px); }
  .certs-group__label { font-size: 20px; }


  .testimonial { flex: 0 0 calc(50% - 12px); }
  .testimonials-header .section-lead { max-width: 100%; }
  .faq-content { max-width: 100%; }
  .faq-fullwidth { min-height: 800px; }
}

/* ─── RESPONSIVE — Servicios: columna única en tablet hasta 1280px (Galaxy Tab S9) ─── */
@media (max-width: 1280px) {
  /* Solo la sección de servicios apila en columna única con imagen full-bleed */
  .services-cols { grid-template-columns: 1fr; }
  /* Servicios: imagen full-bleed pantalla completa */
  .service-col-hero {
    aspect-ratio: unset;
    height: 100dvh;
    width: auto;
    margin-left: calc(-1 * clamp(20px, 5vw, 60px)) !important;
    margin-right: calc(-1 * clamp(20px, 5vw, 60px)) !important;
    max-width: none;
    left: auto;
    transform: none;
  }

  /* Sobre mí: 2 columnas en tablet, apilado solo en mobile */
  .about-grid { grid-template-columns: 55fr 45fr; }
  .about-img-wrap {
    position: sticky;
    top: 100px;
    max-width: none;
    margin: 0;
  }

}

/* ─── RESPONSIVE — Servicios tablet: tiers full-bleed (768px–1280px) ─── */
@media (min-width: 768px) and (max-width: 1280px) {
  .services-cols {
    gap: 0;
  }
  .service-tiers {
    width: 100vw;
    margin-left: calc(-1 * clamp(20px, 5%, 60px));
    margin-right: calc(-1 * clamp(20px, 5%, 60px));
    padding-left: clamp(20px, 5%, 60px) !important;
    padding-right: clamp(20px, 5%, 60px) !important;
  }
}

/* ─── RESPONSIVE — Mobile (≤767px) ─── */
@media (max-width: 767px) {
  .hero {
    min-height: 100dvh;
    align-items: flex-start;
    padding: 140px 20px 60px;
  }
  .about-text {
    padding: 0 20px;
  }
  .hero-bg { object-position: 80% center; }
  .certs-formation__row { grid-template-columns: 1fr; }
  .service-item,
  .service-item--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  .service-item-img { aspect-ratio: 16 / 9; }
  .services-cols { grid-template-columns: 1fr; }
  /* Mobile: imagen full-bleed y alta */
  .service-col-hero {
    aspect-ratio: unset;
    min-height: 650px;
    height: 85svh;
    width: auto;
    margin-left: calc(-1 * clamp(20px, 5vw, 60px)) !important;
    margin-right: calc(-1 * clamp(20px, 5vw, 60px)) !important;
    max-width: none;
    position: relative;
    left: auto;
    transform: none;
  }
  .about-grid { grid-template-columns: 1fr; }
  .about-img-wrap {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    max-width: none;
    position: static;
    left: auto;
    transform: none;
    display: block;
  }
  .about-img {
    width: 100%;
    height: auto;
    max-width: none;
  }

  .testimonial { flex: 0 0 100%; }
  .testimonials-header { text-align: left; }
  .about-credentials { gap: 20px; }
  .about-credentials > div { flex: 0 0 calc(50% - 10px); }
  .hero-trust { gap: 6px 12px; }
  .faq-fullwidth { min-height: 100dvh; }
}

/* ─── ANIMACIONES PREMIUM (SCROLL REVEAL) ─── */
/* Solo se oculta cuando animations.js confirma que está activo (html.js-anim).
   Sin JS, el contenido queda visible por defecto. */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out-quart), transform 0.8s var(--ease-out-quart);
  will-change: opacity, transform;
}

.js-anim .reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.delay-100 { transition-delay: 100ms; }
.reveal.delay-200 { transition-delay: 200ms; }
.reveal.delay-300 { transition-delay: 300ms; }

/* Desactivar animaciones para usuarios que prefieren movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─── Sombra suave del texto del hero ───
   Mismo valor en todos los heros del sitio (tomado de las tarjetas de la home):
   tinte #1B1832, difusa y de baja opacidad — separa el texto de la foto sin "halo". */
/* Acotado al contenedor del hero: .hero-eyebrow se reutiliza en eyebrows de sección (p. ej. /empresas/) que no llevan sombra */
.hero .hero-eyebrow { text-shadow: 0 1px 4px rgba(10, 8, 24, 0.6); }
.hero h1,
.hero .hero-subtitle { text-shadow: 0 2px 8px rgba(10, 8, 24, 0.5); }
.hero .hero-desc,
.hero .hero-trust { text-shadow: 0 2px 6px rgba(10, 8, 24, 0.5); }
