:root {
  --ff-ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
  --ff-line-soft: rgba(79, 182, 201, 0.16);
  --ff-line-warm: rgba(10, 10, 10, 0.09);
  --font-sans: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono: 'Space Grotesk', 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
  font-family: var(--font-sans);
  letter-spacing: -0.012em;
}

section[id] {
  scroll-margin-top: 112px;
}

.site-header {
  backdrop-filter: blur(18px);
  background: linear-gradient(180deg, rgba(10, 10, 10, 0.96), rgba(10, 10, 10, 0.92)) !important;
  border-bottom-color: rgba(79, 182, 201, 0.14) !important;
}

.header-inner {
  min-height: 88px;
}

.site-nav a {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.site-nav a::after {
  transition: transform 380ms var(--ff-ease-smooth), opacity 380ms var(--ff-ease-smooth);
  transform: scaleX(0.72);
  transform-origin: center;
  opacity: 0.72;
}

.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
  opacity: 1;
}

.kicker-label {
  font-size: 17px;
  letter-spacing: 0;
}

.hero-inner,
.section-header,
.filosofia-intro {
  text-wrap: balance;
}

.hero-title,
.section-title,
.section-title-light,
.contact-copy h2,
.servicio-card-head h3 {
  text-wrap: balance;
}

.hero-sub,
.section-lead,
.section-lead-light,
.servicio-card-head p,
.contact-copy p {
  text-wrap: pretty;
}

.hero-title {
  letter-spacing: -0.052em;
}

.hero-sub {
  max-width: 60ch;
  color: rgba(255, 255, 255, 0.82);
}

.hero-image {
  isolation: isolate;
}

body .hero.hero-image:not(.hero-image-tall) > .hero-overlay.hero-overlay-strong {
  background: linear-gradient(120deg,
    rgba(7, 8, 9, 0.64) 0%,
    rgba(7, 8, 9, 0.48) 46%,
    rgba(7, 8, 9, 0.34) 100%) !important;
}

body:has(.hero-image-tall) .hero.hero-image > .hero-overlay.hero-overlay-strong {
  background: linear-gradient(120deg,
    rgba(7, 8, 9, 0.34) 0%,
    rgba(7, 8, 9, 0.23) 48%,
    rgba(7, 8, 9, 0.12) 100%) !important;
}

.section-title,
.section-title-light,
.contact-copy h2 {
  letter-spacing: -0.044em;
}

.section-lead,
.section-lead-light {
  font-size: clamp(16px, 1.35vw, 19px);
}

.btn {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
  padding: 15px 28px;
  font-weight: 600;
  letter-spacing: 0.005em;
  transition:
    transform 420ms var(--ff-ease-smooth),
    box-shadow 420ms var(--ff-ease-smooth),
    border-color 420ms var(--ff-ease-smooth),
    background-color 420ms var(--ff-ease-smooth),
    color 420ms var(--ff-ease-smooth);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.12) 48%, transparent 100%);
  transform: translateX(-135%);
  transition: transform 620ms var(--ff-ease-smooth);
  pointer-events: none;
}

.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: scale(0);
  animation: btnRipple 650ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes btnRipple {
  0% {
    opacity: 0.5;
    transform: scale(0);
  }

  100% {
    opacity: 0;
    transform: scale(2.2);
  }
}

.btn:hover {
  box-shadow: 0 16px 34px rgba(10, 10, 10, 0.16);
  transform: translateY(-2px);
}

.btn:hover::before {
  transform: translateX(135%);
}

.btn:active {
  transform: translateY(0) scale(0.97);
}

.btn-outline-light,
.btn-outline-dark {
  border-width: 1px;
}

.btn-primary {
  box-shadow: 0 14px 30px rgba(79, 182, 201, 0.16);
}

.btn-primary:hover {
  box-shadow: 0 18px 34px rgba(79, 182, 201, 0.22);
}

.btn-arrow {
  transition:
    transform 420ms var(--ff-ease-smooth),
    opacity 420ms var(--ff-ease-smooth);
}

.btn:hover .btn-arrow {
  transform: translateX(5px);
}

.reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 28px, 0) scale(0.985);
  transition:
    opacity 760ms var(--ff-ease-smooth),
    transform 760ms var(--ff-ease-smooth),
    filter 760ms var(--ff-ease-smooth);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal[data-stagger] {
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.revealed {
  opacity: 1;
  filter: blur(0);
  transform: translate3d(0, 0, 0) scale(1);
}

.hero-inner > * {
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 22px, 0);
  animation: heroEntrance 880ms var(--ff-ease-smooth) forwards;
}

.hero-inner > *:nth-child(2) {
  animation-delay: 120ms;
}

.hero-inner > *:nth-child(3) {
  animation-delay: 240ms;
}

.hero-inner > *:nth-child(4) {
  animation-delay: 360ms;
}

@keyframes heroEntrance {
  to {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
}

.servicio-card,
.servicio-card:hover {
  background: var(--blanco);
}

.servicio-card {
  border-bottom-color: var(--ff-line-warm);
  transition:
    border-color 420ms var(--ff-ease-smooth),
    box-shadow 420ms var(--ff-ease-smooth),
    transform 420ms var(--ff-ease-smooth);
}

.servicio-card-grid {
  align-items: center;
}

.servicio-card:nth-child(even) .servicio-card-grid > .servicio-card-image {
  order: -1;
}

.servicio-card::before,
.servicio-card:hover::before {
  transform: scaleY(0);
}

.servicio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(10, 10, 10, 0.04);
}

.servicio-card-image img,
.servicio-card:hover .servicio-card-image img {
  transform: none;
  filter: brightness(0.94) saturate(0.88) contrast(1.03);
}

.servicio-card-head h3 {
  font-size: 38px;
  letter-spacing: 0;
}

.modalidad {
  border-left: 1px solid var(--gris-claro);
  border-radius: 14px;
  transition:
    border-color 420ms var(--ff-ease-smooth),
    box-shadow 420ms var(--ff-ease-smooth),
    background 420ms var(--ff-ease-smooth),
    transform 420ms var(--ff-ease-smooth);
}

.modalidad:hover {
  background: var(--blanco);
  border-left-color: var(--gris-claro);
  border-color: rgba(79, 182, 201, 0.28);
  box-shadow: 0 12px 28px rgba(10, 10, 10, 0.05);
  transform: translateY(-2px);
}

.modalidad h4 {
  letter-spacing: 0;
}

.filosofia-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: end;
}

.filosofia-bg {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.filosofia-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 76% 32%, rgba(79, 182, 201, 0.18), transparent 35%),
    radial-gradient(circle at 18% 82%, rgba(255, 255, 255, 0.08), transparent 28%);
  pointer-events: none;
}

.filosofia-overlay-strong {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(120deg,
    rgba(5, 7, 10, 0.90) 0%,
    rgba(5, 7, 10, 0.78) 48%,
    rgba(5, 7, 10, 0.62) 100%);
}

.filosofia-intro {
  max-width: 520px;
}

.filosofia-intro .section-title-light {
  margin-bottom: 18px;
}

.filosofia-intro .section-lead-light {
  max-width: 46ch;
}

.filosofia-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.filosofia-item {
  min-height: 100%;
  padding: 30px 28px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(5, 8, 12, 0.18);
  transition:
    transform 480ms var(--ff-ease-smooth),
    border-color 480ms var(--ff-ease-smooth),
    box-shadow 480ms var(--ff-ease-smooth);
}

.filosofia-item:hover {
  transform: translateY(-3px);
  border-color: rgba(127, 227, 238, 0.22);
  box-shadow: 0 30px 70px rgba(5, 8, 12, 0.22);
}

.filosofia-item-label {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-claro);
}

.filosofia-item h3 {
  margin-bottom: 14px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: 0;
  color: var(--blanco);
}

.filosofia-item p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.contact-grid {
  gap: 72px;
  align-items: start;
}

.contact-copy {
  padding-top: 6px;
}

.contact-info {
  border-top-color: var(--ff-line-soft);
}

.contact-info li {
  border-bottom-color: var(--ff-line-soft);
}

.contact-form {
  border-radius: 22px;
  padding: 42px;
}

.form-row label {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.055em;
}

.form-row input,
.form-row textarea,
.wa-panel-form input {
  font-family: var(--font-sans);
  letter-spacing: -0.006em;
}

.dist-card {
  border-color: rgba(10, 10, 10, 0.08);
  transition:
    transform 520ms var(--ff-ease-smooth),
    border-color 520ms var(--ff-ease-smooth),
    box-shadow 520ms var(--ff-ease-smooth);
}

.dist-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 182, 201, 0.18);
  box-shadow: 0 22px 42px rgba(10, 10, 10, 0.055);
}

.dist-icon {
  filter: saturate(0.92) contrast(1.02);
  transition:
    transform 520ms var(--ff-ease-smooth),
    filter 520ms var(--ff-ease-smooth);
}

.dist-card:hover .dist-icon {
  transform: translateY(-2px);
  filter: saturate(1) contrast(1.08);
}

.form-row input,
.form-row textarea {
  border-radius: 12px;
}

.site-footer {
  border-top-color: rgba(79, 182, 201, 0.12);
}

.footer-grid {
  gap: 72px;
}

.scroll-top-btn {
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 320ms var(--ff-ease-smooth),
    transform 320ms var(--ff-ease-smooth),
    visibility 320ms var(--ff-ease-smooth),
    background var(--t-med),
    color var(--t-med),
    border-color var(--t-med);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  transform: translateY(-3px);
}

.wa-bubble-btn,
.scroll-top-btn {
  backdrop-filter: blur(14px);
}

.wa-panel-body {
  min-height: 158px;
}

.wa-bubble {
  opacity: 1;
  animation: waBubbleSoftIn 420ms var(--ff-ease-smooth);
}

.wa-typing {
  width: fit-content;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 11px 14px;
  border-radius: 12px 12px 12px 2px;
  background: var(--blanco);
  border-left: 2px solid var(--teal);
  box-shadow: var(--shadow-sm);
  animation: waBubbleSoftIn 360ms var(--ff-ease-smooth);
}

.wa-typing[hidden] {
  display: none;
}

.wa-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(45, 165, 184, 0.72);
  animation: waTypingDot 900ms ease-in-out infinite;
}

.wa-typing span:nth-child(2) {
  animation-delay: 120ms;
}

.wa-typing span:nth-child(3) {
  animation-delay: 240ms;
}

@keyframes waTypingDot {
  0%,
  72%,
  100% {
    opacity: 0.34;
    transform: translateY(0);
  }

  36% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

@keyframes waBubbleSoftIn {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@media (max-width: 980px) {
  .servicio-card:nth-child(even) .servicio-card-grid > .servicio-card-image,
  .servicio-card-grid > .servicio-card-image {
    order: 2;
  }

  .servicio-card-grid > .servicio-card-content {
    order: 1;
  }

  .filosofia-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .filosofia-intro {
    max-width: 100%;
  }

  .contact-grid {
    gap: 44px;
  }
}

@media (max-width: 700px) {
  section[id] {
    scroll-margin-top: 88px;
  }

  .header-inner {
    min-height: 72px;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-title {
    font-size: 38px;
    letter-spacing: -0.045em;
  }

  .hero-sub {
    font-size: 17px;
    line-height: 1.7;
  }

  .btn {
    width: auto;
    min-width: 0;
    padding: 14px 22px;
  }

  .servicio-card {
    padding: 34px 20px;
  }

  .servicio-card-image img {
    height: 220px;
  }

  .servicio-card-head h3 {
    font-size: 31px;
  }

  .filosofia-grid {
    grid-template-columns: 1fr;
  }

  .filosofia-item {
    padding: 24px 22px 26px;
  }

  .filosofia-item h3 {
    font-size: 25px;
  }

  .contact-form {
    padding: 28px 18px;
    border-radius: 18px;
  }

  .footer-grid {
    gap: 28px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.revealed {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .hero-inner > * {
    opacity: 1;
    filter: none;
    transform: none;
    animation: none;
  }

  .btn,
  .servicio-card,
  .modalidad,
  .filosofia-item,
  .dist-card,
  .dist-icon {
    transition: none;
  }

  .btn-ripple {
    display: none;
  }
}

/* Página de inicio: tarjetas de principios responsivas. */
.distingue-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.2vw, 24px);
  width: 100%;
}

.dist-card,
.dist-card:nth-child(n) {
  grid-column: auto;
  min-width: 0;
}

.dist-card {
  height: 100%;
  padding: clamp(24px, 3vw, 36px) clamp(20px, 2.5vw, 28px);
}

.dist-icon {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .distingue-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* El timeline de cuatro columnas necesita más aire; debajo de 1200px
   se convierte en una secuencia vertical para evitar cruces de texto. */
@media (max-width: 1199px) {
  .operacion-steps {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 680px;
    padding: 0 0 0 54px;
  }

  .operacion-steps::before {
    top: 15px;
    bottom: 15px;
    left: 16px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(79, 182, 201, 0.2), var(--teal), rgba(79, 182, 201, 0.2));
  }

  .operacion-step,
  .operacion-step:first-child,
  .operacion-step:last-child,
  .operacion-step:nth-child(3) {
    padding: 0;
    border: 0;
    text-align: left;
  }

  .operacion-number {
    left: -54px;
    transform: none;
  }

  .operacion-step p {
    max-width: 520px;
    margin: 0;
  }
}

/* Desktop: los nodos y la línea comparten eje; el contenido empieza debajo. */
@media (min-width: 1200px) {
  .operacion-steps {
    padding-top: 0 !important;
  }

  .operacion-steps::before {
    top: 16px;
  }

  .operacion-step,
  .operacion-step:first-child,
  .operacion-step:last-child {
    padding-top: 58px !important;
  }

  .operacion-number {
    top: 0 !important;
  }
}

/* Todos los iconos de principios comparten el teal de marca, incluido
   el nuevo icono de gobernanza generado sobre fondo transparente. */
.dist-icon,
.dist-card:hover .dist-icon {
  filter: brightness(0) saturate(100%) invert(69%) sepia(42%) saturate(698%) hue-rotate(140deg) brightness(88%) contrast(89%);
}

.dist-icon[src*="icon-gobernanza-trazabilidad"],
.dist-card:hover .dist-icon[src*="icon-gobernanza-trazabilidad"] {
  filter: none;
}

@media (max-width: 600px) {
  .distingue-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .dist-card {
    padding: 24px 20px;
  }

  .dist-icon {
    margin-bottom: 16px;
  }
}

/* Proceso operativo: secuencia de cuatro pasos. */
.section-asymmetric {
  padding-bottom: clamp(48px, 6vw, 80px);
}

#operacion {
  padding-top: clamp(48px, 6vw, 80px);
}

.operacion-header {
  max-width: 760px;
  margin-bottom: 48px;
}

/* Cinco indicadores acumulados. */
.stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  max-width: 1180px;
  gap: clamp(14px, 2vw, 24px);
}

.stats-grid .stat {
  min-width: 0;
  padding: 32px 18px;
}

.stats-grid .stat strong::before {
  content: '+';
}

.stats-grid .stat-label {
  max-width: 18ch;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-grid .stat {
    padding: 28px 16px;
  }
}

@media (max-width: 500px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid .stat-label {
    max-width: 28ch;
  }
}

/* Línea de proceso para "Nuestra operación diaria". */
.operacion-steps {
  position: relative;
  isolation: isolate;
  padding-top: 58px;
}

.operacion-steps::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 16px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(79, 182, 201, 0.2), var(--teal), rgba(79, 182, 201, 0.2));
}

.operacion-step,
.operacion-step:first-child,
.operacion-step:last-child {
  padding: 0 24px;
  border-left: 0;
  text-align: center;
}

.operacion-step:first-child {
  padding-left: 0;
}

.operacion-step:last-child {
  padding-right: 0;
}

.operacion-number {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  transform: translateX(-50%);
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--blanco);
  color: var(--teal-dark);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
}

.operacion-step p {
  max-width: 250px;
  margin: 0 auto;
}

@media (max-width: 1199px) {
  .operacion-steps {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 680px;
    padding: 0 0 0 54px;
  }

  .operacion-steps::before {
    top: 15px;
    bottom: 15px;
    left: 16px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(79, 182, 201, 0.2), var(--teal), rgba(79, 182, 201, 0.2));
  }

  .operacion-step,
  .operacion-step:first-child,
  .operacion-step:last-child,
  .operacion-step:nth-child(3) {
    padding: 0;
    border: 0;
    text-align: left;
  }

  .operacion-number {
    left: -54px;
    transform: none;
  }

  .operacion-step p {
    max-width: 520px;
    margin: 0;
  }
}

.operacion-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.operacion-step {
  position: relative;
  min-width: 0;
  padding: 0 28px 0 24px;
  border-left: 1px solid rgba(10, 10, 10, 0.14);
}

.operacion-step:first-child {
  border-left: 0;
  padding-left: 0;
}

.operacion-step:last-child {
  padding-right: 0;
}

.operacion-number {
  display: block;
  margin-bottom: 22px;
  color: var(--teal-dark);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.operacion-step h3 {
  margin-bottom: 12px;
  color: var(--negro);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
}

.operacion-step p {
  max-width: 240px;
  color: var(--gris-oscuro);
  font-size: 15px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .operacion-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 0;
  }

  .operacion-step:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 600px) {
  .operacion-header {
    margin-bottom: 32px;
  }

  .operacion-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .operacion-step,
  .operacion-step:first-child,
  .operacion-step:last-child,
  .operacion-step:nth-child(3) {
    padding: 0 0 28px 48px;
    border-left: 1px solid rgba(10, 10, 10, 0.14);
  }

  .operacion-step:last-child {
    padding-bottom: 0;
    border-left-color: transparent;
  }

  .operacion-number {
    position: absolute;
    top: 0;
    left: -14px;
    width: 28px;
    height: 28px;
    margin: 0;
    border: 1px solid var(--teal);
    border-radius: 50%;
    background: var(--blanco);
    color: var(--teal-dark);
    font-size: 10px;
    line-height: 27px;
    text-align: center;
    letter-spacing: 0;
  }

  .operacion-step h3 {
    font-size: 19px;
  }
}

/* Indicadores acumulados: tarjetas limpias, sin retícula de líneas. */
.stats-bar {
  padding: clamp(72px, 8vw, 104px) 0;
}

.stats-bar .section-header-light {
  margin-bottom: 36px;
}

.stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  align-items: stretch;
}

.stats-grid .stat,
.stats-grid .stat:hover {
  align-items: center;
  justify-content: center;
  min-height: 164px;
  padding: 28px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  transition: opacity var(--t-med), transform var(--t-med);
}

.stats-grid .stat:hover {
  background: transparent;
  transform: translateY(-2px);
}

.stats-grid .stat strong {
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 0.95;
  text-align: center;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.3);
}

.stats-grid .stat-label {
  max-width: 22ch;
  margin-top: 2px;
  color: var(--teal-claro);
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1100px) {
  .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .stats-bar {
    padding: 64px 0 72px;
  }

  .stats-bar .section-header-light {
    margin-bottom: 28px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stats-grid .stat,
  .stats-grid .stat:hover {
    min-height: 148px;
    padding: 22px 12px;
  }

  .stats-grid .stat strong {
    font-size: clamp(36px, 9vw, 50px);
  }

  .stats-grid .stat-label {
    font-size: 10px;
    letter-spacing: 1.1px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid .stat,
  .stats-grid .stat:hover {
    min-height: 118px;
  }
}

/* Ajuste final del timeline para prevalecer sobre las reglas base. */
@media (min-width: 1200px) {
  .operacion-steps {
    padding-top: 0;
  }

  .operacion-steps::before {
    top: 16px;
  }

  .operacion-step,
  .operacion-step:first-child,
  .operacion-step:last-child {
    padding-top: 58px;
  }

  .operacion-number {
    top: 0;
  }
}

.operacion-steps {
  position: relative;
  isolation: isolate;
  padding-top: 58px;
}

.operacion-steps::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 16px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, rgba(79, 182, 201, 0.2), var(--teal), rgba(79, 182, 201, 0.2));
}

.operacion-step,
.operacion-step:first-child,
.operacion-step:last-child {
  padding: 0 24px;
  border-left: 0;
  text-align: center;
}

.operacion-step:first-child { padding-left: 0; }
.operacion-step:last-child { padding-right: 0; }

.operacion-number {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin: 0;
  transform: translateX(-50%);
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--blanco);
  color: var(--teal-dark);
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0;
}

.operacion-step p {
  max-width: 250px;
  margin: 0 auto;
}

@media (max-width: 1199px) {
  .operacion-steps {
    grid-template-columns: 1fr;
    gap: 28px;
    max-width: 680px;
    padding: 0 0 0 54px;
  }

  .operacion-steps::before {
    top: 15px;
    bottom: 15px;
    left: 16px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, rgba(79, 182, 201, 0.2), var(--teal), rgba(79, 182, 201, 0.2));
  }

  .operacion-step,
  .operacion-step:first-child,
  .operacion-step:last-child,
  .operacion-step:nth-child(3) {
    padding: 0;
    border: 0;
    text-align: left;
  }

  .operacion-number {
    left: -54px;
    transform: none;
  }

  .operacion-step p {
    max-width: 520px;
    margin: 0;
  }
}
