@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* =========================
   RESET
   ========================= */
* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: #1e293b;
  background: #fff;
  line-height: 1.6
}

img {
  max-width: 100%;
  height: auto;
  display: block
}

a {
  text-decoration: none;
  color: inherit
}

/* =========================
   TOKENS
   ========================= */
:root {
  --brand: #004899;
  --brand-2: #006EB7;
  --ink: #152238;
  --muted: #4d4d4d;
  --line: #e2e8f0;

  --primary: #004899;
  --primary-hover: #003775;
  --secondary: #006EB7;
  --secondary-hover: #005a96;
  --dark-gray: #4d4d4d;
  --danger: #ef4444;

  --container: 1440px;

  /* nav pills */
  --nav-pill-h: clamp(36px, 2.6vw, 44px);
  --nav-pill-px: clamp(14px, 1.6vw, 22px);
  --menu-gap: clamp(14px, 1.8vw, 28px);
  --menu-size: clamp(14px, 1.05vw, 16px);

  /* logos */
  --logo-h-desktop: clamp(46px, 4vw, 64px);
  --logo-h-mobile: 34px;
}

/* =========================
   LAYOUT
   ========================= */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 2rem
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 12px;
  padding: .6rem 1.1rem;
  font-weight: 700
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 0;
  box-shadow: 0 8px 18px rgba(31, 78, 158, .25);
  transition: background-color .18s ease, transform .05s ease
}

.btn-primary:hover {
  background: var(--primary-hover)
}

.btn-primary:active {
  transform: translateY(1px)
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .3)
}

.btn-cta {
  background: var(--secondary);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 110, 183, .25)
}

/* =========================
   HEADER (banda clara + card blanco)
   ========================= */

   
.site-header {
  position: sticky;
  top: 0;
  z-index: 100
}

.site-header.white {
  background: #eef2f5
}

.site-header.white .container {
  padding: clamp(10px, 1.8vw, 24px) 20px
}

.header-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(20, 28, 40, .08);
  padding: 14px 20px;
  margin: 0 0 8px 0;
}

.site-header.white.scrolled .header-card {
  box-shadow: 0 12px 32px rgba(20, 28, 40, .12)
}

.header-card .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(8px, 1.4vw, 22px)
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0
}

.brand .logo-desktop {
  display: none;
  height: var(--logo-h-desktop);
  width: auto
}

.brand .logo-mobile {
  display: block;
  height: var(--logo-h-mobile);
  width: auto
}

@media(min-width:980px) {
  .brand .logo-desktop {
    display: block
  }

  .brand .logo-mobile {
    display: none
  }
}

/* =========================
   NAV DESKTOP
   ========================= */
.nav {
  display: none
}

@media(min-width:980px) {
  .nav {
    display: block
  }
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--menu-gap);
  font-size: var(--menu-size)
}

.menu>li {
  display: flex;
  align-items: center
}

/* anti-jitter: caja homogénea para <a> y <button> */
:root {
  --nav-pill-bw: 2px
}

.site-header.white .menu a,
.site-header.white .sub-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: var(--nav-pill-h);
  padding: 0 var(--nav-pill-px);
  border-radius: 999px;
  border: var(--nav-pill-bw) solid transparent;
  line-height: 1;
  font-weight: 600;
  letter-spacing: 0;
  box-sizing: border-box;
  color: #222;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}

/* activo (pastilla oscura) */
.site-header.white .menu a.is-active {
  background: var(--brand);
  color: #fff !important;
  border-color: var(--brand)
}

/* hover azul sin alterar caja */
.site-header.white .menu a:hover:not(.is-active),
.site-header.white .sub-toggle:hover:not(.is-active) {
  color: var(--primary);
  /* azul de marca */
}

/* Servicios activo por dropdown abierto o por página */
.has-sub {
  position: relative
}

.site-header.white .has-sub>.sub-toggle.is-active {
  background: var(--brand-2);
  color: #fff;
  border-color: var(--brand-2);
}

.chev {
  width: 16px;
  height: 16px;
  color: #222;
  transition: transform .15s ease
}

.has-sub.open .chev {
  transform: rotate(180deg)
}

/* =========================
   SUBMENU (centrado bajo la pastilla)
   ========================= */
.submenu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 320px;
  background: #fff;
  color: #1b2333;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  display: none;
  box-shadow: 0 14px 40px rgba(20, 28, 40, .14), 0 2px 6px rgba(20, 28, 40, .06);
  z-index: 110;
}

.has-sub.open .submenu {
  display: block
}

.submenu a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.1;
  color: inherit
}

/* Hover suave y texto/ícono en azul */
.submenu a:hover {
  background: #f5f8ff;
  color: var(--primary);
}

.submenu a:hover svg {
  stroke: var(--primary);
  color: var(--primary);
}

/* Selección real (página activa) → azul sólido */
.submenu a.is-active {
  background: var(--primary);
  color: #fff;
  font-weight: 600;
}

.submenu a.is-active svg {
  stroke: #fff;
  color: #fff;
}

/* =========================
   CTA (derecha)
   ========================= */
.cta-wrap {
  display: flex;
  align-items: center;
  gap: .6rem
}

.btn-cta-outline {
  display: none
}

/* nos quedamos con .btn-primary */

/* =========================
   BURGER + MOBILE DRAWER
   ========================= */
.burger {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid #e6e6e9;
  border-radius: 10px;
  color: #222
}

.burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: #222
}

.burger span+span {
  margin-top: 4px
}

@media(min-width:980px) {
  .burger {
    display: none
  }
}

/* ↑ z-index por encima del header */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(2px);
  z-index: 1100
}

.mobile-nav {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(86vw, 380px);
  background: #fff;
  color: #222;
  padding: clamp(16px, 3vw, 22px);
  padding-left: calc(clamp(16px, 3vw, 22px) + env(safe-area-inset-left));
  padding-right: calc(clamp(16px, 3vw, 22px) + env(safe-area-inset-right));
  overflow: auto;
  border-left: 1px solid #eee;
  animation: drawer .25s ease;
}

@keyframes drawer {
  from {
    transform: translateX(10%);
    opacity: .5
  }

  to {
    transform: none;
    opacity: 1
  }
}

.mobile-nav a {
  display: block;
  padding: 12px 10px;
  border-radius: 12px;
  color: #222;
  font-weight: 600
}

.mobile-nav a:hover {
  background: #f3f6ff
}

.mobile-nav a.is-active {
  font-weight: 700;
  color: #222734
}

.mobile-nav details summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 10px;
  border-radius: 12px;
  font-weight: 700
}

.mobile-sub {
  padding: 0 0 10px 10px
}

/* =========================
   RESPONSIVE TUNING
   ========================= */
@media(max-width:1000px) {
  .slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto
  }

  .media {
    order: 2;
    padding: 0 18px 18px
  }

  .media img {
    width: 100%;
    max-width: 520px
  }
}

@media(min-width:980px) and (max-width:1160px) {
  .menu {
    gap: 16px
  }

  .site-header.white .menu a,
  .site-header.white .sub-toggle {
    height: 38px;
    padding: 0 14px
  }

  .btn-primary {
    padding: .5rem .95rem
  }

  .submenu {
    min-width: 300px
  }

  :root {
    --logo-h-desktop: clamp(46px, 4.2vw, 60px)
  }
}

/* =========================
   ACCESSIBILITY / MOTION
   ========================= */
@media(prefers-reduced-motion:reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important
  }
}

/* --- CSS de Fuerza Bruta para Header Fijo --- */
html body .site-header.white,
html body .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 99999 !important; /* Se asegura de estar por encima de CUALQUIER elemento */
  background-color: #ffffff !important; /* Evita que sea transparente */
  transform: none !important; /* Desactiva cualquier transform heredado que rompa el fixed */
}

/* Espacio para que el contenido no se meta debajo del menú */
html body {
  padding-top: 90px !important;
}

@media (max-width: 980px) {
  html body {
    padding-top: 72px !important;
  }
}


/* ====== CTA con gradiente azul y anti-wrap ====== */
:root {
  /* stops del gradiente (ajústalos si quieres) */
  --primary-1: #1f4e9e;
  --primary-2: #2f66c6;
  --primary-3: #3b7de9;
  --primary-gradient: linear-gradient(135deg, var(--primary-1) 0%, var(--primary-2) 52%, var(--primary-3) 100%);
}

/* que el contenedor no envuelva el CTA */
.header-card .nav-inner {
  flex-wrap: nowrap;
}

.cta-wrap {
  flex: 0 0 auto;
}

.btn-cta-gradient {
  white-space: nowrap;
  /* ← nunca parte la frase */
  background: var(--primary-gradient);
  background-size: 200% 200%;
  /* para animar el hover */
  background-position: 0% 50%;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: clamp(.52rem, .9vw, .62rem) clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 700;
  line-height: 1;
  /* mantiene altura estable */
  box-shadow: 0 10px 22px rgba(31, 78, 158, .25);
  transition: background-position .25s ease, filter .25s ease, transform .05s ease;
}

.btn-cta-gradient:hover {
  background-position: 100% 50%;
  /* recorre el gradiente */
  filter: brightness(1.04);
  /* sutil highlight */
}

.btn-cta-gradient:active {
  transform: translateY(1px);
  box-shadow: 0 8px 18px rgba(31, 78, 158, .25);
}

/* móvil: mantén 1 línea bajando un poco tamaño/padding si es necesario */
@media (max-width: 979px) {
  .btn-cta-gradient {
    font-size: clamp(.9rem, 3.2vw, 1rem);
    padding: .5rem .9rem;
  }
}

@media (min-width: 980px) and (max-width: 1160px) {
  .menu {
    gap: 14px;
  }

  /* compacta un poco el menú */
  .site-header.white .menu a,
  .site-header.white .sub-toggle {
    padding: 0 14px;
    height: 38px;
    /* misma caja → sin saltos */
  }

  .btn-cta-gradient {
    padding: .5rem .95rem;
  }
}

/* === HOTFIX: Dropdown Servicios === */

/* 1) Tamaño de iconos (fuerza 16px en desktop) */
.submenu a svg,
.submenu a .i-16 {
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px !important;
}

/* 2) Hover neutral (para que al abrir NO parezca selección) */
.submenu a:hover {
  background: transparent !important;
  /* sin pill al pasar el mouse */
}

/* 3) Selección real (solo la página activa) -> azul sólido */
.submenu a.is-active {
  background: var(--primary) !important;
  color: #fff !important;
  font-weight: 600;
}

.submenu a.is-active svg {
  stroke: #fff !important;
  color: #fff !important;
}

/* 4) Tamaño de icono en el drawer móvil (un pelín más grande) */
@media (max-width: 979px) {

  .mobile-nav a svg,
  .mobile-nav a .i-16 {
    width: 18px !important;
    height: 18px !important;
    flex: 0 0 18px !important;
  }
}

/* (opcional) por si alguna capa tapa el drawer en algunas vistas */
.mobile-drawer {
  z-index: 1100 !important;
}

/* Iconos del submenú: 16px exactos */
.submenu a svg,
.submenu a .i-16 {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.submenu a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  /* controla la separación entre icono y texto */
}

.mobile-nav a {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  /* idem en el drawer móvil */
}

/* 1) Hover más suave en submenú (celestito + transición) */
.submenu a {
  transition: background-color .15s ease, color .15s ease;
}

.submenu a:hover {
  background: #f5f8ff;
  color: var(--primary);
}

.submenu a:hover svg {
  stroke: var(--primary);
  color: var(--primary);
}

/* 2) Un pelín más de aire entre icono y texto */
.submenu a {
  gap: .9rem;
}

/* antes .75rem/.85rem */
.mobile-nav a {
  gap: .9rem;
}

/* 3) Sombrita del dropdown un poco más suave */
.submenu {
  box-shadow: 0 12px 34px rgba(20, 28, 40, .12), 0 1px 4px rgba(20, 28, 40, .06);
}

/* Smart header */
.site-header {
  transition: transform .18s ease;
}

.site-header.head-hide {
  transform: translateY(calc(-100% - 12px));
  /* súbelo fuera de vista */
}

/* ===== Ajustes MOBILE ===== */
@media (max-width: 979px) {

  /* Logo móvil más grande */
  :root {
    --logo-h-mobile: 42px;
    /* antes 34px; sube si querés: 44–48px */
  }

  /* Burger: líneas más pequeñas y juntas */
  .burger {
    width: 40px;
    height: 40px;
    /* botón igual de compacto */
  }

  .burger span {
    width: 16px;
    /* antes 20px */
    height: 2px;
    /* finitas y elegantes */
  }

  .burger span+span {
    margin-top: 3px;
    /* antes 4px: más pegadas */
  }
}

/* ===== Mobile sidebar (independiente de desktop) ===== */
@media (max-width: 979px) {

  /* --- Tuyo (se respeta) --- */
  .mobile-nav {
    padding-top: 18px;
  }

  /* Ítem base */
  .mobile-nav .nav-item {
    display: flex;
    align-items: center;
    gap: .85rem;
    padding: 12px 12px;
    border-radius: 12px;
    color: #222;
    font-weight: 600;
    transition: background-color .18s ease, color .18s ease;
  }

  .mobile-nav .nav-item svg {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #6b7280;
    stroke: #6b7280;
  }

  /* Hover: celestito + icono azul */
  .mobile-nav .nav-item:hover {
    background: #f5f8ff;
    color: var(--primary);
  }

  .mobile-nav .nav-item:hover svg {
    color: var(--primary);
    stroke: var(--primary);
  }

  /* Activo: pill azul (texto e icono blanco) */
  .mobile-nav .nav-item.is-active {
    background: var(--primary);
    color: #fff;
  }

  .mobile-nav .nav-item.is-active svg {
    color: #fff;
    stroke: #fff;
  }

  /* Grupo Servicios (summary) */
  .mobile-nav .nav-group {
    margin: 6px 0;
  }

  .mobile-nav .nav-group>summary {
    list-style: none;
    cursor: pointer;
  }

  .mobile-nav .nav-group>summary::-webkit-details-marker {
    display: none;
  }

  /* Chevron del summary a la derecha */
  .mobile-nav .nav-group>summary {
    display: flex;
    align-items: center;
    gap: .85rem;
    position: relative;
  }

  .mobile-nav .nav-group>summary .chev {
    margin-left: auto;
    width: 16px;
    height: 16px;
    color: inherit;
    transition: transform .15s ease;
  }

  .mobile-nav .nav-group[open]>summary .chev {
    transform: rotate(180deg);
  }

  /* Subitems */
  .mobile-nav .nav-sub {
    padding-left: 10px;
    padding-top: 6px;
  }

  .mobile-nav .nav-sub .nav-item {
    font-weight: 600;
  }

  /* --- Nuevo: estructura con logo arriba y CTA abajo --- */
  .mobile-nav {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Logo arriba */
  .mobile-nav .nav-logo {
    text-align: center;
    margin: 8px 0 18px;
  }

  .mobile-nav .nav-logo img {
    height: 48px;
    /* ajusta 48–56px si quieres más grande */
    max-width: 190px;
  }

  /* Lista de links en medio (scroll si es larga) */
  .mobile-nav .nav-links {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow-y: auto;
  }

  /* CTA abajo ancho, texto blanco */
  .mobile-nav .nav-cta {
    margin-top: auto;
    padding-top: 12px;
  }

  .mobile-nav .btn-cta-sidebar {
    display: block;
    width: 100%;
    text-align: center;
    padding: 14px;
    border-radius: 12px;
    background: var(--primary-gradient);
    /* ya definido en tus tokens */
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(31, 78, 158, .25);
  }

  .mobile-nav .btn-cta-sidebar:hover {
    filter: brightness(1.05);
  }
}

/* ===== Back to top ===== */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
}

.to-top[hidden] {
  display: none;
}

.to-top-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--primary-gradient);
  /* base oscura */
  color: #fff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .28);
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}

.to-top-btn:hover {
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.to-top-btn:active {
  transform: translateY(-1px);
}

.to-top-btn:focus {
  outline: 2px solid var(--ring, #bfd6ff);
  outline-offset: 2px;
}

/* opcional: en temas claros puedes usar tu gradiente de marca */
@media (prefers-color-scheme: light) {
  .to-top-btn {
    background: var(--primary-gradient);
  }
}

/* que no tape el CTA del drawer si está abierto en móvil (se puede ajustar) */
@media (max-width: 979px) {
  .mobile-drawer:not([hidden])~.to-top {
    right: 12px;
    bottom: 86px;
    /* despega del botón "Haz una cita" del sidebar */
  }
}

/* ====== Base existente ====== */
.dark-hero {
  background: #0b1424;
  color: #eaf0ff
}

.slider {
  position: relative;
  height: min(72vh, 600px);
  /* antes 86vh/720px → más bajo */
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .6s ease;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  /* texto un poco más ancho, imagen más centrada */
  gap: 0;
  /* sin espacio extra en medio */
}

.slide.active {
  opacity: 1;
  z-index: 1
}

/* Fondo por slide */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--bg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: contrast(1) saturate(.95);
}

/* asegúrate que copy y media estén por encima */
.copy,
.media {
  position: relative;
  z-index: 1;
}

/* copy + media */
.copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: .8rem;
  padding: clamp(18px, 3vw, 32px) 2vw 0 8vw;
}

.media {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  padding-right: clamp(8px, 3vw, 24px);
}

.media img {
  width: min(90%, 720px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 22px 44px rgba(0, 0, 0, .44))
}

/* Contenedor de texto sin fondo (ajustado al área guía) */
.copy-block {
  max-width: 480px;
  padding: 0;
  /* sin panel */
  color: #fff;
  /* texto blanco */
}

.t1 {
  margin: 0;
  line-height: 1.02;
  font-size: clamp(28px, 4.6vw, 48px);
  font-weight: 800;
  color: #fff
}

.subtitle {
  margin: .35rem 0 1rem;
  font-weight: 600;
  color: #e6eeff
}


/* Logos con tarjeta clara pero no “bloque” */
.brand-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  background: rgba(255, 255, 255, .9);
  border-radius: 12px;
  padding: .6rem .8rem;
  margin-top: .6rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .15)
}

.brand-logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block
}

@media (min-width:1280px) {
  .brand-logos img {
    height: 60px
  }
}

/* ====== Entradas animadas por slide ====== */
.animate-in {
  opacity: 0;
  transform: translateY(16px);
  transition: transform .7s cubic-bezier(.2, .75, .2, 1), opacity .7s
}

.slide.active .copy.animate-in {
  opacity: 1;
  transform: translateY(0)
}

.slide.active .media.animate-in {
  opacity: 1;
  transform: translateY(0)
}

.slide.active .media img {
  animation: hero-zoom .9s ease .05s both
}

@keyframes hero-zoom {
  from {
    transform: scale(.96);
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .22))
  }

  to {
    transform: scale(1);
    filter: drop-shadow(0 22px 44px rgba(0, 0, 0, .44))
  }
}

/* arrows + dots (tu base) */
/* Flechas del slider: mucho más pequeñas y transparentes */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 22px;
  /* antes 44px */
  height: 22px;
  /* antes 44px */
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  background: rgba(255, 255, 255, .28);
  /* mucho más transparente */
  border: none;
  /* sin borde */
  display: grid;
  place-items: center;
  box-shadow: none;
  /* sin sombra */
  color: #fff;
  /* símbolo blanco */
  font-size: 12px;
  /* flecha más pequeña */
  opacity: .6;
  /* aún más sutil */
  transition: opacity .25s, background .25s, transform .25s;
}

.arrow.left {
  left: 10px;
}

/* más cerca del borde */
.arrow.right {
  right: 10px;
}

.arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, .45);
  /* un poquito más visible al hover */
  transform: translateY(-50%) scale(1.05);
}

/* En móvil: todavía más pequeñas o si querés, ocultarlas */
@media (max-width:640px) {
  .arrow {
    width: 18px;
    height: 18px;
    font-size: 11px;
    opacity: .55;
  }

  /* Si prefieres ocultarlas por completo, usa: */
  /* .arrow{ display:none; } */
}

.dots {
  bottom: 10px;
  gap: 6px;
}

.dots button {
  width: 8px;
  height: 8px;
  opacity: .4;
  border: none;
  background: #fff;
}

.dots button.active {
  opacity: .9;
}

/* ====== Responsivo ====== */
@media (max-width:980px) {
  .slide {
    grid-template-columns: 1fr
  }

  .media {
    padding-right: 0
  }

  /* sin order */
  .media img {
    width: min(80%, 560px)
  }
}

/* ===== Ajuste global del layout del hero ===== */
.slide {
  grid-template-columns: auto auto;
  justify-content: center;
  align-items: center;
  gap: 0;
}


@media (max-width:980px) {
  .slide {
    grid-template-columns: 1fr
  }

  .copy {
    padding: clamp(16px, 5vw, 28px)
  }

  .media {
    margin-left: 0;
    padding-right: 0
  }
}


/* ===== SLIDE 1: "Sensores de PROCESOS" ===== */
/* Título grande */
.slide-1 .hero-title {
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  /* controlamos altura de línea */
  margin: 0 0 8px 0;
  color: #fff;
  text-transform: uppercase;
}

.slide-1 .hero-title .highlight {
  display: inline-block;
  /* lo trata como bloque independiente */
  line-height: 1;
  /* quita aire vertical innecesario */
  padding: 0px 10px 2px;
  /* menos alto, más fino */
  border-radius: 20px;
  background: #fff;
  color: #1f4e9e;
}

.slide-1 .hero-subtitle {
  font-size: clamp(18px, 2vw, 26px);
  /* más grande en desktop */
  color: #eaf0ff;
  margin: 0 0 1px 0;
  font-weight: 500;
}

.slide-1 .brand-logos {
  display: inline-block;
  background: transparent;
  /* porque ya es parte de la imagen */
  border-radius: 0;
  /* ya viene en el diseño */
  padding: 0;
  box-shadow: none;
  /* opcional */
}

.slide-1 .brand-logos img {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
}

/* ===== SLIDE 2: "Sensores de PROCESOS" ===== */
/* Título grande */
.slide-2 .hero-title {
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  /* controlamos altura de línea */
  margin: 0 0 8px 0;
  color: #fff;
  text-transform: uppercase;
}

.slide-2 .hero-title .highlight {
  display: inline-block;
  /* lo trata como bloque independiente */
  line-height: 1;
  /* quita aire vertical innecesario */
  padding: 0px 10px 2px;
  /* menos alto, más fino */
  border-radius: 20px;
  background: #fff;
  color: #1f4e9e;
}

.slide-2 .hero-subtitle {
  font-size: clamp(18px, 2vw, 26px);
  /* más grande en desktop */
  color: #eaf0ff;
  margin: 0 0 1px 0;
  font-weight: 500;
}

.slide-2 .brand-logos {
  display: inline-block;
  background: transparent;
  /* porque ya es parte de la imagen */
  border-radius: 0;
  /* ya viene en el diseño */
  padding: 0;
  box-shadow: none;
  /* opcional */
}

.slide-2 .brand-logos img {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
}


/* ===== SLIDE 3: "Repuestos 100% ORIGINALES Y CONFIABLES" ===== */
.slide-3 .hero-title {
  font-size: clamp(38px, 5.5vw, 80px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 12px 0;
  color: #fff;
  text-transform: uppercase;
}

.slide-3 .hero-title .highlight {
  display: inline-block;
  line-height: 1;
  padding: 0px 10px 2px;
  border-radius: 24px;
  /* redondeo más pronunciado */
  background: #fff;
  color: #1f4e9e;
}

.slide-3 .brand-logos {
  display: inline-block;
  background: transparent;
  /* porque ya es parte de la imagen */
  border-radius: 0;
  /* ya viene en el diseño */
  padding: 0;
  box-shadow: none;
  /* opcional */
}

.slide-3 .brand-logos img {
  display: block;
  height: auto;
  width: auto;
  max-width: 100%;
}

.slide-3 .line-nowrap {
  white-space: nowrap;
  /* no permite salto entre ORIGINALES y Y */
  display: inline-block;
}

@media (max-width:480px) {
  .slide-3 .hero-title {
    font-size: clamp(30px, 8vw, 64px);
  }
}

/* ===== FOOTER OPTIMA — 4 COLS con acentos de color ===== */
.footer,
.footer * {
  box-sizing: border-box;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

/* Base */
.footer {
  color: var(--ink);
  background: #ffffff;
  border-top: 3px solid var(--brand);
  /* toque de color arriba */
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Inter, Ubuntu, Arial, sans-serif;
}

.footer .footer-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 20px;
}

/* Grid: 4 columnas */
.footer .footer-top {
  display: grid;
  gap: 20px;
  align-items: start;
}

@media (min-width: 980px) {
  .footer .footer-top {
    grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
    /* Logo | Services | Contact | Map */
  }
}

@media (min-width: 720px) and (max-width: 979px) {
  .footer .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

/* -------- Brand / Logos -------- */
.footer .footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Dos logos: desktop vs mobile */
.footer .footer-logo-desktop {
  display: block;
  height: var(--logo-h-desktop);
  max-width: 100%;
}

.footer .footer-logo-mobile {
  display: none;
  align-items: center;
  gap: 10px;
}

.footer .footer-logo-mobile img {
  height: var(--logo-h-mobile);
}

.footer .footer-slogan {
  font-weight: 700;
  letter-spacing: .3px;
  color: var(--brand);
}

/* Mostrar el combo (logo+eslogan) SOLO en mobile */
@media (max-width: 719px) {
  .footer .footer-logo-desktop {
    display: none;
  }

  .footer .footer-logo-mobile {
    display: flex;
  }
}

/* Texto intro */
.footer .footer-brand-tag {
  font-size: 14px;
  color: var(--brand);
}

.footer .footer-brand-desc {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 46ch;
}

/* Social */
.footer .footer-social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.footer .footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: .18s;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
  background: #fff;
}

.footer .footer-social a:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  color: var(--brand);
}

.footer .footer-social svg {
  width: 18px;
  height: 18px;
}

/* -------- Títulos de columna con subrayado de marca -------- */
.footer .footer-col-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: var(--ink);
  border-bottom: 2px solid var(--brand);
  display: inline-block;
  padding-bottom: 4px;
}

/* -------- Lists (Services) -------- */
.footer .footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer .footer-list-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 6px 0;
}

.footer .footer-dot {
  width: 7px;
  height: 7px;
  background: var(--secondary);
  border-radius: 999px;
  position: relative;
  top: 8px;
  flex: 0 0 7px;
}

.footer .footer-list a {
  color: var(--ink);
}

.footer .footer-list a:hover {
  color: var(--brand);
}

/* -------- Contact card con borde de marca -------- */
.footer .footer-contact {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.footer .footer-contact p {
  margin: 8px 0;
  color: var(--muted);
}

.footer .footer-contact strong {
  color: var(--ink);
}

/* -------- Map card con borde superior de marca -------- */
.footer .footer-map {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.footer .footer-map iframe {
  width: 100%;
  height: 170px;
  border: 0;
  display: block;
}

/* -------- CTA -------- */
.footer .footer-cta {
  display: flex;
  justify-content: center;
  margin: 18px 0 8px;
}

.footer .footer-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-radius: 999px;
  background: #fff;
  border: 2px solid var(--brand);
  font-weight: 700;
  color: var(--brand-2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .06);
}

.footer .footer-pill .footer-dot {
  top: 0;
}

/* -------- Bottom strip -------- */
.footer .footer-bottom {
  background: var(--brand);
  color: #e5e7eb;
}

.footer .footer-bottom .footer-wrap {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.footer .footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.footer .footer-links a {
  opacity: .92;
}

.footer .footer-links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer .footer-copy {
  opacity: .88;
}

/* Focus visible */
.footer a:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

/* ====== OPTIMA — BODY COMPONENTS (usa variables de tu :root) ====== */

/* Utilidades */
.opt-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px;
}

.opt-title {
  font-size: clamp(22px, 2.2vw, 32px);
  margin: 0 0 10px 0;
  color: var(--ink);
  display: inline-block;
  padding-bottom: 6px;
  border-bottom: 3px solid var(--brand);
}

.opt-sub {
  color: var(--muted);
  max-width: 70ch;
  margin-top: 6px;
}

/* Botones */
.opt-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: 2px solid transparent;
  transition: .2s;
}

.opt-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

.opt-btn.outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.opt-btn.outline:hover {
  color: #fff;
  background: var(--primary);
}

/* Sección: Servicios destacados */
.opt-services {
  background: #fff;
}

.opt-grid {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .opt-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .opt-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.opt-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .06);
}

.opt-card h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: var(--ink);
}

.opt-card p {
  margin: 0;
  color: var(--muted);
}

/* Sección: Por qué elegirnos */
.opt-why {
  background: linear-gradient(0deg, #fff, #fff), radial-gradient(1200px 400px at 20% 0%, rgba(31, 78, 158, .06), transparent);
}

.opt-why .opt-bullets {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

@media (min-width: 860px) {
  .opt-why .opt-bullets {
    grid-template-columns: repeat(3, 1fr);
  }
}

.opt-bullet {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.opt-bullet strong {
  color: var(--ink);
}

.opt-bullet span {
  color: var(--muted);
  display: block;
  margin-top: 8px;
}

/* KPIs */
.opt-kpis {
  background: #fff;
}

.opt-kpi-grid {
  display: grid;
  gap: 16px;
  margin-top: 22px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 860px) {
  .opt-kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.opt-kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .05);
}

.opt-kpi .num {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  color: var(--brand);
}

.opt-kpi .lab {
  color: var(--muted);
  margin-top: 6px;
}

/* Proceso (timeline compacto) */
.opt-process {
  background: #fff;
}

.opt-steps {
  display: grid;
  gap: 18px;
  margin-top: 22px;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .opt-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.opt-step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .05);
}

.opt-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.opt-step h4 {
  margin: 10px 0 6px;
}

.opt-step p {
  margin: 0;
  color: var(--muted);
}

/* CTA grande */
.opt-cta {
  background: linear-gradient(135deg, rgba(31, 78, 158, .065), rgba(255, 210, 0, .065));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.opt-cta .opt-cta-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .06);
  flex-wrap: wrap;
}

/* ===== Animaciones on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s, transform .7s;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal.fade-up {
  transform: translateY(24px);
}

.reveal.fade-right {
  transform: translateX(-24px);
}

.reveal.fade-left {
  transform: translateX(24px);
}

.reveal.zoom-in {
  transform: scale(.94);
}

.reveal.is-in.fade-up,
.reveal.is-in.fade-right,
.reveal.is-in.fade-left,
.reveal.is-in.zoom-in {
  transform: none;
}

/* Stagger: se usa var(--d,0ms) como delay */
.reveal[style*="--d"] {
  transition-delay: var(--d);
}

/* ===== OPT Showcase (prefijo opt-sh) — CSS COMPLETO =====
   Requiere las variables de tu :root:
   --brand, --brand-2, --accent, --ink, --muted, --line, --primary, --primary-hover, --container
*/

/* ===== Fondo con dinamismo de color ===== */
.opt-sh {
  background:
    radial-gradient(800px 300px at 12% 0%, rgba(31, 78, 158, .06), transparent),
    radial-gradient(600px 260px at 90% 10%, rgba(255, 210, 0, .07), transparent),
    #fff;
}

.opt-sh .opt-sh-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 46px 20px;
}

/* ===== Header ===== */
.opt-sh-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.opt-sh-eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
}

.opt-sh-title {
  margin: 6px 0 0;
  line-height: 1.1;
  font-size: clamp(24px, 3vw, 38px);
}

.opt-sh-title .tone-1 {
  color: var(--brand-2);
}

.opt-sh-title .tone-2 {
  background: linear-gradient(90deg, var(--brand) 0%, var(--primary-hover) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.opt-sh-sub {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 70ch;
}

/* CTA del header (abre modal) */
.opt-sh-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  border: 2px solid transparent;
  transition: .2s;
  box-shadow: 0 8px 20px rgba(31, 78, 158, .25);
}

.opt-sh-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
}

/* ===== Track: móvil scroll / desktop grid ===== */
.opt-sh-track {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
}

.opt-sh-track::-webkit-scrollbar {
  height: 8px;
}

.opt-sh-track::-webkit-scrollbar-thumb {
  background: rgba(31, 78, 158, .25);
  border-radius: 8px;
}

.opt-sh-card {
  /* Control fino del icono entre hero y texto */
  --icon-overlap: 18px;
  /* 16–22px: sube/baja el ícono */
  scroll-snap-align: start;
  min-width: 90%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .06);
  transition: .22s transform, .22s box-shadow;
}

.opt-sh-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .10);
}

@media (min-width:980px) {
  .opt-sh-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    overflow: visible;
  }

  .opt-sh-card {
    min-width: 0;
  }
}

@media (max-width:719px) {
  .opt-sh-card {
    --icon-overlap: 16px;
  }

  /* un poco más pegado en móvil */
}

@media (min-width:1200px) {
  .opt-sh-card {
    --icon-overlap: 20px;
  }

  /* leve más abajo en desktop grande */
}

/* ===== Hero (imagen superior) ===== */
.opt-sh-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: visible;
  /* deja salir el icono */
}

.opt-sh-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opt-sh-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .06) 100%);
}

/* Ícono centrado y consistente en todas las cards */
.opt-sh-icon {
  position: absolute;
  left: 50%;
  bottom: calc(var(--icon-overlap) * -1);
  /* flotado hacia el body */
  transform: translateX(-50%);
  z-index: 2;
}

/* Círculo */
.opt-sh-icon .circle {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(31, 78, 158, .35), 0 0 0 6px #fff;
}

.opt-sh-icon svg {
  width: 26px;
  height: 26px;
}

/* ===== Body de la card ===== */
.opt-sh-body {
  /* compensa el “colgado” del icono para que no choque con el título */
  padding: calc(var(--icon-overlap) + 14px) 16px 6px;
}

.opt-sh-h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--ink);
}

.opt-sh-desc {
  margin: 0;
  color: var(--muted);
}

/* Imagen de producto (abajo) */
.opt-sh-product {
  width: 100%;
  aspect-ratio: 4/3;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(31, 78, 158, .05), rgba(255, 210, 0, .06));
  border-top: 1px solid var(--line);
}

.opt-sh-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}


/* ===== Modal descarga ===== */
.opt-modal {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, .45);
  z-index: 60;
}

.opt-modal.is-open {
  display: block;
  animation: optFade .18s ease-out;
}

@keyframes optFade {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

.opt-modal-dialog {
  width: min(520px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .30);
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.opt-modal-title {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--ink);
}

.opt-modal-text {
  margin: 0 0 16px;
  color: var(--muted);
}

.opt-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Botones del modal */
.opt-btn-ghost,
.opt-btn-primary {
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
}

.opt-btn-ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--brand-2);
}

.opt-btn-ghost:hover {
  border-color: var(--brand);
}

.opt-btn-primary {
  background: var(--primary);
  color: #fff;
}

.opt-btn-primary:hover {
  background: var(--primary-hover);
}

/* ===== Animaciones on-scroll (genéricas) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s, transform .7s;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.reveal.fade-up {
  transform: translateY(26px);
}

.reveal.zoom-in {
  transform: scale(.95);
}

.reveal.is-in.fade-up,
.reveal.is-in.zoom-in {
  transform: none;
}

.reveal[style*="--d"] {
  transition-delay: var(--d);
}

/* Accesibilidad: focus visible */
.opt-sh a:focus,
.opt-sh button:focus,
.opt-modal button:focus {
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

/* Respeta usuarios con motion reducido */
@media (prefers-reduced-motion: reduce) {

  .reveal,
  .opt-sh-cta,
  .opt-sh-card {
    transition: none !important;
  }
}

/* ==== Anti-overflow móvil para la sección OPT Showcase ==== */

/* 0) Por si algún navegador suma 1px, evita que el body se mueva lateralmente */
html,
body {
  overflow-x: hidden;
}

/* 1) Aísla el ancho calculado de la sección y corta cualquier fuga horizontal */
.opt-sh {
  overflow-x: clip;
  /* mantiene el scroll interno del track */
  position: relative;
  contain: inline-size;
  /* aísla el cálculo del ancho de los hijos */
}


/* ===== OPT About (prefijo opt-ab) — CSS COMPLETO (fix KPIs + mobile) =====
   Requiere tu :root con --brand, --brand-2, --accent, --ink, --muted, --line, --primary, --primary-hover, --container
*/

/* ===== Sección y fondo ===== */
.opt-ab {
  position: relative;
  color: #fff;
  background:
    radial-gradient(900px 360px at 12% 0%, rgba(255, 255, 255, .06), transparent),
    radial-gradient(720px 300px at 92% 12%, rgba(255, 255, 255, .06), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .06)),
    var(--brand-2);
  overflow-x: clip;
  /* evita scroll lateral */
}

.opt-ab .opt-ab-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(38px, 4.2vw, 64px) 20px;
}

/* patrón punteado blanco, sutil a la derecha */
.opt-ab::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(48vw, 760px);
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.15px, transparent 1.15px);
  background-size: 18px 18px;
  opacity: .55;
  pointer-events: none;
}

/* ===== Grid ===== */
.opt-ab-grid {
  display: grid;
  gap: clamp(20px, 2.6vw, 38px);
  align-items: center;
}

@media (min-width: 1020px) {
  .opt-ab-grid {
    grid-template-columns: 1.05fr 1fr;
  }
}

/* ===== Media con marco azul desplazado ===== */
.opt-ab-media-wrap {
  position: relative;
  padding: clamp(18px, 2.2vw, 26px) 0 0 clamp(18px, 2.2vw, 26px);
  /* espacio para el marco */
  z-index: 1;
}

/* Marco azul detrás de la foto (solo desktop/tablet) */
.opt-ab-media-wrap::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: clamp(78%, 86%, 92%);
  height: clamp(78%, 86%, 92%);
  background: var(--brand);
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(6, 17, 38, .35);
  z-index: 0;
}

/* En móvil ocultamos el marco para que no aparezca un bloque gigante */
@media (max-width: 1019px) {
  .opt-ab-media-wrap {
    padding: 0;
  }

  .opt-ab-media-wrap::before {
    display: none;
  }
}

.opt-ab-media {
  position: relative;
  z-index: 1;
  /* la foto queda debajo de los KPIs pero sobre el marco */
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  /* imagen recomendada 4:3 (ej. 2000x1500) */
  background: #0e1624;
  /* fallback si tarda en cargar */
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.opt-ab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== KPIs ===== */
/* En desktop van superpuestos a la derecha y por ENCIMA de la foto */
.opt-ab-stats {
  position: absolute;
  right: clamp(-8px, -1.5vw, -18px);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(230px, 24vw, 280px);
  display: grid;
  gap: 12px;
  z-index: 3;
  /* <— clave: por encima de .opt-ab-media (z-index:1) */
}

/* En móvil se apilan debajo de la imagen y ocupan ancho completo */
@media (max-width: 1019px) {
  .opt-ab-stats {
    position: static;
    transform: none;
    width: 100%;
    margin: 14px 0 0;
  }
}

.opt-ab-stat {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .18);
}

.opt-ab-stat .num {
  font-weight: 900;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--brand);
}

.opt-ab-stat .lab {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

/* ===== Texto ===== */
.opt-ab-eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 800;
  color: rgba(255, 255, 255, .85);
  font-size: 12px;
}

.opt-ab-title {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.08;
  color: #fff;
}

.opt-ab-title .accent {
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .9) 60%, rgba(255, 255, 255, .75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.opt-ab-lead {
  margin: 10px 0 14px;
  color: rgba(255, 255, 255, .90);
  font-weight: 600;
}

.opt-ab-copy {
  color: rgba(255, 255, 255, .86);
}

.opt-ab-copy p {
  margin: 0 0 10px;
}

/* Chips de highlights */
.opt-ab-highlights {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

@media (max-width: 640px) {
  .opt-ab-highlights {
    grid-template-columns: 1fr;
  }
}

.opt-ab-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}

/* CTA */
.opt-ab-cta {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.opt-ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--accent);
  color: #0b1320;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: .18s transform, .18s background;
}

.opt-ab-btn:hover {
  transform: translateY(-2px);
  background: #ffd83a;
}

.opt-ab-btn.outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .40);
}

.opt-ab-btn.outline:hover {
  background: rgba(255, 255, 255, .12);
}

/* ===== Animaciones on-scroll (si usas .reveal) ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s, transform .7s;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ===== Anti-overflow general ===== */
.opt-ab,
.opt-ab * {
  box-sizing: border-box;
}

.opt-ab img {
  max-width: 100%;
  height: auto;
}


/* ========== OPT Services (prefijo opt-svc) ========== */
/* Requiere variables :root: --brand, --brand-2, --accent, --ink, --muted, --line, --primary, --primary-hover, --container */

.opt-svc {
  position: relative;
  background:
    radial-gradient(800px 300px at 8% -10%, rgba(31, 78, 158, .06), transparent),
    radial-gradient(700px 280px at 92% 0%, rgba(255, 210, 0, .06), transparent),
    #fff;
  overflow-x: clip;
}

.opt-svc .opt-svc-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px;
}

/* Header */
.opt-svc-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
}

.opt-svc-title {
  margin: 6px 0 0;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--brand-2);
}

.opt-svc-sub {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 70ch;
}

/* Grid (móvil: 1 por fila, desktop: 3) */
.opt-svc-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media (min-width: 980px) {
  .opt-svc-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }
}

/* Card */
.opt-svc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .08);
  overflow: hidden;
  /* recorta a los bordes redondeados del card (no recorta el badge) */
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.opt-svc-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(0, 0, 0, .12);
  border-color: rgba(31, 78, 158, .18);
}

/* Header visual de la card: imagen + badge */
.opt-svc-header {
  position: relative;
}

.opt-svc-hero {
  aspect-ratio: 16 / 9;
  /* IMAGEN 16:9 */
  overflow: hidden;
}

.opt-svc-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform-origin: center;
  transition: transform .6s ease;
}

.opt-svc-card:hover .opt-svc-hero img {
  transform: scale(1.06);
}

.opt-svc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, .08));
  pointer-events: none;
}

/* Badge/ícono: NO se corta (está fuera del .opt-svc-hero y dentro del header) */
.opt-svc-badge {
  position: absolute;
  left: 18px;
  bottom: -26px;
  z-index: 2;
  width: 74px;
  height: 74px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  /* anillo blanco para separar de la foto/cuerpo */
  box-shadow: 0 14px 24px rgba(31, 78, 158, .25), 0 0 0 6px #fff;
}

.opt-svc-badge svg {
  width: 36px;
  height: 36px;
}

/* Cuerpo */
.opt-svc-body {
  padding: 34px 18px 16px;
}

/* 34px compensa el badge que muerde la imagen */
.opt-svc-h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  /* título con dinamismo: gradiente usando tu paleta */
  background: linear-gradient(90deg, var(--brand) 0%, var(--primary-hover) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.opt-svc-desc {
  margin: 0;
  color: var(--muted);
}

/* Chips */
.opt-svc-foot {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.opt-svc-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line);
  color: var(--brand-2);
  background: #fff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, .04);
}

/* Animaciones on-scroll (si ya usas .reveal) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s, transform .7s;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}


/* ========== OPT Why (prefijo opt-why) ========== */
/* Requiere :root con --brand, --brand-2, --accent, --ink, --muted, --line, --primary, --primary-hover, --container */

.opt-why {
  position: relative;
  background:
    radial-gradient(800px 320px at 10% -10%, rgba(31, 78, 158, .06), transparent),
    radial-gradient(700px 280px at 95% 0%, rgba(255, 210, 0, .06), transparent),
    #fff;
  overflow-x: clip;
}

.opt-why .opt-why-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 48px 20px;
}

/* puntitos sutiles a la derecha */
.opt-why::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(48vw, 720px);
  height: 100%;
  background-image: radial-gradient(rgba(0, 0, 0, .06) 1.1px, transparent 1.1px);
  background-size: 18px 18px;
  pointer-events: none;
}

/* Grid principal */
.opt-why-grid {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 980px) {
  .opt-why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

/* Columna izquierda: heading + foto */
.opt-why-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
}

.opt-why-title {
  margin: 6px 0 8px;
  font-size: clamp(24px, 3.6vw, 40px);
  line-height: 1.12;
  color: var(--brand-2);
}

.opt-why-title .accent {
  background: linear-gradient(90deg, var(--brand) 0%, var(--primary-hover) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.opt-why-lead {
  color: var(--muted);
  margin-bottom: 14px;
}

/* Foto (sustituye al video del mock) */
.opt-why-media {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  /* pon una imagen 4:3 (p.ej. 1600x1200) */
  box-shadow: 0 18px 44px rgba(0, 0, 0, .12);
  background: #0e1624;
}

.opt-why-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Columna derecha: lista de motivos */
.opt-why-feats {
  display: grid;
  gap: 12px;
}

.opt-why-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .06);
  padding: 12px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
}

/* Icono circular */
.opt-why-ico {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  position: relative;
  box-shadow: 0 10px 22px rgba(31, 78, 158, .25), 0 0 0 6px #f6f8fb;
  /* anillo claro */
}

.opt-why-ico svg {
  width: 26px;
  height: 26px;
}

/* Textos de cada item */
.opt-why-item h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
  background: linear-gradient(90deg, var(--brand) 0%, var(--primary-hover) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.opt-why-item p {
  margin: .25rem 0 0;
  color: var(--muted);
}

/* Animación (si ya usas .reveal) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s, transform .6s;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ===== OPT Download (prefijo opt-dl) ===== */
/* Usa tus variables :root (brand, brand-2, accent, ink, muted, line, primary, primary-hover, container) */

.opt-dl {
  --dl-bg: none;
  /* define la imagen de fondo desde el style del section */
  position: relative;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(11, 19, 32, .78) 0%, rgba(11, 19, 32, .78) 45%, rgba(11, 19, 32, .35) 70%, rgba(11, 19, 32, .18) 100%),
    var(--dl-bg) center/cover no-repeat;
  overflow-x: clip;
}

.opt-dl .opt-dl-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(36px, 4vw, 64px) 20px;
}

.opt-dl-grid {
  display: grid;
  gap: clamp(18px, 2.4vw, 32px);
  align-items: start;
}

@media (min-width: 1020px) {
  .opt-dl-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Copy */
.opt-dl-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 3.8vw, 48px);
  line-height: 1.05;
  color: #fff;
}

.opt-dl-title .accent {
  background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, .88) 60%, rgba(255, 255, 255, .75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.opt-dl-lead {
  color: rgba(255, 255, 255, .9);
  max-width: 48ch;
  font-weight: 600;
}

/* Mock del catálogo (opcional) */
.opt-dl-mock {
  margin: 18px 0 0;
  width: min(460px, 92%);
}

.opt-dl-mock img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, .35);
}

/* Card (form) */
.opt-dl-card {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(16px, 1.8vw, 22px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .28);
}

.opt-dl-row {
  display: grid;
  gap: 12px;
}

.opt-dl-row-2 {
  grid-template-columns: 1fr;
}

@media (min-width: 680px) {
  .opt-dl-row-2 {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

.opt-dl-group {
  display: block;
}

.opt-dl-group label {
  display: block;
  font-weight: 800;
  margin: 6px 0 6px;
  color: var(--brand-2);
}

.opt-dl-group b {
  color: var(--danger);
}

.opt-dl-field {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  height: clamp(42px, 3.6vw, 46px);
  padding: 10px 12px;
  font: inherit;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}

textarea.opt-dl-field {
  height: auto;
  resize: vertical;
  min-height: 110px;
}

/* foco / válido / error */
.opt-dl-field:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(31, 78, 158, .15);
}

.opt-dl-group.has-error .opt-dl-field {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(229, 57, 53, .12);
}

.opt-dl-error {
  display: none;
  margin-top: 4px;
  color: var(--danger);
  font-size: 12px;
}

.opt-dl-group.has-error .opt-dl-error {
  display: block;
}

/* acciones */
.opt-dl-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.opt-dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  padding: 12px 18px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: .18s transform, .18s background;
}

.opt-dl-btn:hover {
  transform: translateY(-2px);
  background: var(--primary-hover);
}

/* zona de avisos accesible */
.opt-dl-live {
  position: absolute;
  left: -9999px;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* animaciones reveal si ya las usas */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s, transform .7s;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}


/* ====== OPT Brand Strip (opt-br) — CSS COMPLETO (logos a color) ====== */
/* Requiere :root con --brand, --brand-2, --accent, --ink, --muted, --line, --container */

.opt-br {
  --optbr-gap: 24px;
  /* separación entre logos */
  --optbr-speed: 36s;
  /* velocidad del loop (↑ más rápido, ↓ más lento) */
  background:
    radial-gradient(700px 260px at 12% -10%, rgba(31, 78, 158, .06), transparent),
    #fff;
  overflow-x: clip;
}

.opt-br .opt-br-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 20px 30px;
}

/* Título */
.opt-br-head {
  text-align: center;
  margin-bottom: 10px;
}

.opt-br-title {
  margin: 0;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.1;
  font-weight: 900;
  background: linear-gradient(90deg, var(--brand) 0%, var(--primary-hover) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Scroller con degradado en bordes */
.opt-br-scroller {
  position: relative;
  overflow: hidden;
}

.opt-br-scroller::before,
.opt-br-scroller::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  z-index: 2;
  pointer-events: none;
}

.opt-br-scroller::before {
  left: 0;
  background: linear-gradient(to right, #fff, rgba(255, 255, 255, 0));
}

.opt-br-scroller::after {
  right: 0;
  background: linear-gradient(to left, #fff, rgba(255, 255, 255, 0));
}

/* Pista animada */
.opt-br-track{
    display:flex;
    width:max-content;
    align-items:center;
    gap:var(--optbr-gap);
    animation:optbr-scroll var(--optbr-speed) linear infinite;
}

.opt-br:hover .opt-br-track {
  animation-play-state: paused;
}

/* Dos secuencias idénticas para loop perfecto */
.opt-br-seq {
  display: flex;
  gap: var(--optbr-gap);
}

/* Ítem 200x100 clicable */
.opt-br-item {
  width: 200px;
  height: 100px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.opt-br-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .12);
  border-color: rgba(31, 78, 158, .2);
}

.opt-br-item:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Logo dentro del área 200x100 — A COLOR (sin filtros) */
.opt-br-item img {
  width: 160px;
  /* ancho máximo sugerido del logo */
  max-height: 64px;
  /* alto máximo sugerido */
  height: auto;
  object-fit: contain;
  display: block;
  filter: none;
  /* <— clave: elimina escala de grises */
  transition: transform .2s ease;
}

/* (Opcional) Efecto sutil al hover sin alterar color */
.opt-br-item:hover img {
  transform: scale(1.02);
}

/* Animación del loop (mueve la primera mitad = 1 secuencia) */
@keyframes optbr-scroll {
  to {
    transform: translateX(-50%);
  }
}

/* Motion reducido */
@media (prefers-reduced-motion: reduce) {
  .opt-br-track {
    animation: none;
  }
}


/* ===== OPT Banner (opt-band) — RESPONSIVE =====
   Requiere :root con --brand, --brand-2, --accent, --ink, --muted, --line, --container
*/

.opt-band {
  --band-bg: none;
  /* cambia imagen por sección */
  position: relative;
  display: grid;
  place-items: center;
  box-sizing: border-box;

  /* Más bajo por defecto (desktop/tablet) */
  aspect-ratio: 4 / 1;
  /* 4:1 compacto */
  min-height: 120px;

  color: #fff;
  background: var(--band-bg) center/cover no-repeat;
  overflow: hidden;
}

/* Variantes más delgadas (opcionales) */
.opt-band--slim {
  aspect-ratio: 5 / 1;
  min-height: 100px;
}

.opt-band--xs {
  aspect-ratio: 6 / 1;
  min-height: 92px;
}

/* Degradados/patrón — siempre debajo del contenido */
.opt-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(31, 78, 158, .65) 0%, rgba(31, 78, 158, .28) 45%, rgba(255, 210, 0, .18) 100%),
    linear-gradient(0deg, rgba(34, 39, 52, .58), rgba(34, 39, 52, .58));
}

.opt-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .25;
  pointer-events: none;
}

/* Contenido */
.opt-band-inner {
  position: relative;
  z-index: 1;
  /* por encima de ::before/::after */
  width: min(var(--container), 100%);
  padding: clamp(12px, 2vw, 24px);
  text-align: center;
  text-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  margin-inline: auto;
  box-sizing: border-box;
}

/* Variante alineada a la izquierda */
.opt-band--left {
  justify-items: start;
}

.opt-band--left .opt-band-inner {
  text-align: left;
}

/* Tipografías */
.opt-band-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: 12px;
  color: rgba(255, 255, 255, .9);
  margin-bottom: 2px;
}

.opt-band-title {
  margin: 0;
  font-size: clamp(20px, 3.4vw, 36px);
  /* compacto por defecto */
  line-height: 1.08;
  font-weight: 900;
  text-wrap: balance;
  /* mejora quiebre (donde esté soportado) */
}

.opt-band-sub {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, .92);
  font-weight: 600;
}

/* ---------- RESPONSIVE ---------- */

/* Tablet: un poco más alto si el texto se alarga */
@media (max-width: 980px) {
  .opt-band {
    aspect-ratio: 3.5 / 1;
    /* un pelín más alto */
    min-height: 140px;
  }

  .opt-band-title {
    font-size: clamp(20px, 5vw, 34px);
  }
}

/* Móvil: suelta el aspect-ratio, prioriza legibilidad y centrado */
@media (max-width: 640px) {
  .opt-band {
    aspect-ratio: auto;
    /* evita cortes por altura fija */
    min-height: 180px;
    /* un poquito más alto en móvil */
    padding-block: 16px;
    /* extra de respiro vertical */
  }

  .opt-band-inner {
    padding: 16px;
    /* compacto y centrado */
  }

  .opt-band-title {
    font-size: clamp(18px, 7vw, 28px);
    /* baja tamaño */
    line-height: 1.12;
    /* más respiración */
  }

  .opt-band-sub {
    margin-top: 6px;
    font-size: clamp(12px, 3.6vw, 14px);
  }

  /* Variantes respetan móvil (más legibles) */
  .opt-band--slim,
  .opt-band--xs {
    aspect-ratio: auto;
    /* sin ratio fijo en móvil */
    min-height: 170px;
    /* asegura que no se corte */
  }
}

/* Ajuste extra para títulos muy largos o pantallas muy angostas */
@media (max-width: 380px) {
  .opt-band {
    min-height: 200px;
  }

  .opt-band-title {
    font-size: clamp(18px, 8vw, 26px);
  }
}

/* Motion reducido (por si agregas transiciones después) */
@media (prefers-reduced-motion: reduce) {

  .opt-band,
  .opt-band * {
    transition: none !important;
  }
}

/* ===== OPT Story (Historia) — versión equilibrada ===== */
.opt-story {
  background:
    radial-gradient(800px 260px at 10% 0%, rgba(31, 78, 158, .06), transparent),
    radial-gradient(600px 240px at 90% 10%, rgba(255, 210, 0, .06), transparent),
    #fff;
  padding: clamp(20px, 3vw, 44px) 16px;
}

.opt-story-card {
  width: min(var(--container), 100%);
  margin: 0 auto;
  display: grid;
  /* Columna izquierda con ancho controlado (evita imagen enorme) */
  grid-template-columns: minmax(280px, 460px) 1fr;
  gap: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 46px rgba(0, 0, 0, .06);
  padding: clamp(16px, 2.6vw, 28px);
  position: relative;
  overflow: hidden;
  align-items: start;
  /* quita espacios raros verticales */
}

/* patrón sutil */
.opt-story-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(34, 39, 52, .08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .18;
}

/* ------- Media ------- */
.opt-story-media {
  position: relative;
  z-index: 1;
  align-self: start;
}

.opt-story-hero {
  margin: 0 0 10px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  /* CUADRADA y con alto limitado: evita que sobrepase el texto */
  aspect-ratio: 1 / 1;
  height: clamp(260px, 36vw, 420px);
  background: #f7f9fc;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .07);
}

.opt-story-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opt-story-thumbs {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.opt-story-thumbs li {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.opt-story-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opt-story-thumbs li:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 22px rgba(0, 0, 0, .09);
}

/* ------- Texto ------- */
.opt-story-content {
  position: relative;
  z-index: 1;
}

.opt-story-eyebrow {
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 800;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.opt-story-title {
  margin: 0 0 10px 0;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.1;
  font-weight: 900;
  background: linear-gradient(90deg, var(--brand) 0%, var(--primary-hover) 60%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Chips de hitos */
.opt-story-milestones {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.opt-story-milestones li {
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(31, 78, 158, .12), rgba(31, 78, 158, .06));
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-2);
}

/* Cuerpo — mismo color para todos + justificado */
.opt-story-body {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.opt-story-body p {
  margin: 0 0 12px;
}

/* (Importante) asegura que ningún párrafo tenga color distinto */
.opt-story-body p:first-child {
  color: inherit;
}

/* ------- Responsive ------- */
@media (max-width: 980px) {
  .opt-story-card {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .opt-story-hero {
    height: clamp(240px, 58vw, 380px);
    /* un pelín más alto si hace falta en móvil */
  }

  .opt-story-title {
    font-size: clamp(20px, 6.4vw, 30px);
  }
}

@media (max-width: 520px) {
  .opt-story-thumbs {
    gap: 8px;
  }

  .opt-story-body {
    font-size: 14.5px;
    line-height: 1.7;
  }
}

/* === PATCH OPT STORY: hero del mismo ancho que los 3 thumbs === */
.opt-story-media {
  --media-gap: 12px;
  /* controla el espacio entre hero y miniaturas */
}

.opt-story-hero {
  width: 100%;
  margin: 0 0 var(--media-gap) 0;
  /* el mismo gap que la grilla de thumbs */
  box-sizing: border-box;
  /* incluye el borde en el ancho total */
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  height: auto;
  /* deja que la altura la calcule el aspect-ratio */
  background: #f7f9fc;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .07);
}

.opt-story-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.opt-story-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--media-gap);
  padding: 0;
  margin: 0;
  list-style: none;
}

.opt-story-thumbs li {
  box-sizing: border-box;
  /* bordes no “engordan” la celda */
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
}

.opt-story-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* móvil: mismo comportamiento, solo ajusta el gap si quieres */
@media (max-width: 520px) {
  .opt-story-media {
    --media-gap: 10px;
  }
}

/* ===== Testimonial / Quote (prefijo opt-quote) ===== */
.opt-quote {
  position: relative;
  background: var(--brand-2, #222734);
  color: #fff;
  overflow: hidden;
}

/* luces sutiles en el fondo */
.opt-quote::before,
.opt-quote::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.opt-quote::before {
  background:
    radial-gradient(700px 280px at 10% 0%, rgba(255, 210, 0, .10), transparent 70%),
    radial-gradient(600px 260px at 100% 60%, rgba(31, 78, 158, .18), transparent 72%);
  mix-blend-mode: screen;
  opacity: .9;
}

.opt-quote::after {
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: .12;
}

.opt-quote-wrap {
  max-width: var(--container, 1200px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 28px);
}

/* Layout */
.opt-quote-figure {
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto;
  gap: clamp(18px, 3vw, 28px);
}

/* Texto */
.opt-quote-text {
  position: relative;
  margin: 0;
  font-weight: 800;
  line-height: 1.6;
  font-size: clamp(16px, 1.25vw, 20px);
  letter-spacing: .01em;
  text-align: center;
  padding: clamp(14px, 2vw, 18px) clamp(10px, 1.8vw, 16px);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .03));
  box-shadow: 0 14px 34px rgba(0, 0, 0, .25) inset, 0 10px 30px rgba(0, 0, 0, .25);
}

/* comillas decorativas */
.opt-quote-text::before,
.opt-quote-text::after {
  position: absolute;
  font-weight: 900;
  line-height: 1;
  color: rgba(255, 255, 255, .45);
  font-size: clamp(32px, 4vw, 48px);
}

.opt-quote-text::before {
  content: "“";
  left: 10px;
  top: -6px;
}

.opt-quote-text::after {
  content: "”";
  right: 10px;
  bottom: -10px;
}

/* Autor */
.opt-quote-author {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
}

.opt-quote-avatar {
  width: clamp(86px, 10vw, 120px);
  height: clamp(86px, 10vw, 120px);
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent, #ffd200), var(--brand, #1f4e9e));
  padding: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 0 8px rgba(255, 255, 255, .10);
}

.opt-quote-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: inherit;
  border: 4px solid rgba(255, 255, 255, .92);
  object-fit: cover;
}

.opt-quote-meta {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.opt-quote-name {
  font-weight: 900;
  letter-spacing: .02em;
  font-size: clamp(15px, 1.2vw, 20px);
  color: #fff;
  text-shadow: 0 6px 22px rgba(0, 0, 0, .35);
}

.opt-quote-role {
  font-weight: 700;
  font-size: 14px;
  color: rgba(255, 255, 255, .85);
}

/* Hover suave del avatar */
.opt-quote-author:hover .opt-quote-avatar {
  transform: translateY(-2px);
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 22px 46px rgba(0, 0, 0, .50), 0 0 0 10px rgba(255, 255, 255, .10);
}

/* Responsive */
@media (max-width: 900px) {
  .opt-quote-figure {
    grid-template-columns: 1fr;
  }

  .opt-quote-text {
    text-align: left;
  }
}

/* Card blanco moderno */
.opt-industries-card {
  background: #fff;
  border: 1px solid var(--opt-soft-border);
  border-radius: var(--opt-card-radius);
  box-shadow: 0 8px 30px rgba(16, 24, 40, .06);
  padding: clamp(20px, 3.5vw, 40px);
  display: grid;
  gap: clamp(18px, 2vw, 28px);
  grid-template-columns: 1fr 1.25fr;
  align-items: stretch;
}

/* Columna de texto */
.opt-ind-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.opt-ind-head h2 {
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  margin: 0 0 10px 0;
  color: #1b2430;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.opt-ind-underline {
  display: block;
  width: 70px;
  height: 6px;
  border-radius: 6px;
  background: var(--opt-accent);
}

.opt-ind-copy p {
  color: #3b4656;
  margin: 0 0 10px 0;
  font-size: clamp(15px, 1.15vw, 17px);
}

/* Galería expanding */
.opt-ind-gallery {
  display: flex;
  gap: 10px;
  height: clamp(280px, 36vw, 420px);
  min-height: 260px;
  overflow: hidden;
  border-radius: calc(var(--opt-card-radius) - 2px);
}

.opt-ind-panel {
  position: relative;
  flex: 1;
  border: 0;
  cursor: pointer;
  background: var(--bg) center/cover no-repeat;
  border-radius: 16px;
  overflow: hidden;
  transition: flex .55s ease, filter .45s ease, transform .45s ease;
  filter: grayscale(.35) contrast(1.05);
  outline: none;
  isolation: isolate;
}

.opt-ind-panel::after {
  /* sombreado suaviza texto y da profundidad */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .05) 70%);
  opacity: .85;
  transition: .35s ease;
  z-index: 0;
}

.opt-ind-panel span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 1;
  font-weight: 800;
  color: #fff;
  font-size: clamp(14px, 1.4vw, 18px);
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .45);
  letter-spacing: .2px;
  transform: translateY(6px);
  transition: .35s ease;
  pointer-events: none;
}

.opt-ind-panel:hover,
.opt-ind-panel:focus-visible,
.opt-ind-panel.active {
  flex: 4;
  filter: grayscale(0) contrast(1.08);
}

.opt-ind-panel:hover::after,
.opt-ind-panel.active::after {
  opacity: .35;
}

.opt-ind-panel:hover span,
.opt-ind-panel.active span {
  transform: none;
  background: color-mix(in srgb, var(--opt-accent) 70%, rgba(0, 0, 0, 0) 30%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

/* Responsive */
@media (max-width: 980px) {
  .opt-industries-card {
    grid-template-columns: 1fr;
  }

  .opt-ind-gallery {
    height: 48vw;
    min-height: 240px;
    /* En móviles: carrusel horizontal con snap */
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 70%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .opt-ind-panel {
    flex: unset;
    width: auto;
    scroll-snap-align: center;
  }

  /* Evita que “salte” la expansión en móvil; usamos tap para activar */
  .opt-ind-panel:hover {
    flex: unset;
  }
}


/* ===== CONTACT ===== */
.contact-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(18px, 3vw, 36px);
  display: grid;
  grid-template-columns: 1.25fr .9fr;
  gap: clamp(18px, 2.5vw, 36px);
  align-items: stretch;
}

.contact-left,
.contact-aside {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(16, 24, 40, .06);
}

.contact-left {
  padding: clamp(18px, 2.6vw, 28px);
}

.contact-aside {
  padding: clamp(16px, 2.2vw, 22px);
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 70%);
  color: #fff;
  border: 0;
}

.contact-head h3 {
  margin: 0 0 6px 0;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.02em;
}

.contact-head p {
  color: var(--muted);
  margin: 0;
  font-size: clamp(14px, 1.05vw, 16px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.field {
  position: relative;
}

.field.full {
  grid-column: 1/-1;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border .2s ease, box-shadow .2s ease;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #97a0b3;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: color-mix(in srgb, var(--primary) 75%, #fff 25%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent 82%);
}

.split .split-inner {
  display: flex;
  gap: 8px;
}

.split select {
  flex: 0 0 96px;
  text-align-last: center;
  font-weight: 600;
  background: #f7f9fc;
}

.split input {
  flex: 1;
}

.actions {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
}

.btn-primary {
  background: var(--primary);
  border: 0;
  color: #fff;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  box-shadow: 0 8px 20px rgba(31, 78, 158, .22);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
}

.aside-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-aside h4 {
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.25;
  margin: 2px 0 8px 0;
  font-weight: 800;
  letter-spacing: -.01em;
}

.contact-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 12px;
  border-radius: 14px;
  backdrop-filter: blur(6px);
}

.chip-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  flex: 0 0 38px;
}

.chip-icon svg {
  width: 20px;
  height: 20px;
  fill: #fff;
  opacity: .95;
}

.chip-info strong {
  display: block;
  font-size: 14px;
}

.chip-info span {
  display: block;
  font-size: 13px;
  opacity: .9;
}

.chip-info a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.social p {
  margin: 10px 0 6px 0;
  font-weight: 700;
  opacity: .9;
}

.social-row {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .2);
  transition: transform .12s ease, background .2s;
}

.social-btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .22);
}

.social-btn svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.map-card iframe {
  display: block;
}

@media (max-width:980px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}

/* Reveal (tu convención) */
.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.reveal.fade-in {
  transform: none;
}

.reveal.fade-up {
  transform: translateY(16px);
}

.reveal.fade-left {
  transform: translateX(18px);
}

.reveal.zoom-in {
  transform: scale(.96);
}

.delay-100 {
  transition-delay: .1s;
}

/* Accesibilidad para etiquetas ocultas */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Blog Preview ---- */
.blogs-preview {
  margin: 2rem auto;
  max-width: 1200px;
  padding: 0 1rem;
}

.blogs-preview .bp-head h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
}

.blogs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

@media (max-width: 1024px) {
  .blogs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blogs-grid {
    grid-template-columns: 1fr;
  }
}

.bp-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}

.bp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}

.bp-media {
  display: block;
  aspect-ratio: 16/9;
  background: #f3f4f6;
}

.bp-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bp-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f5f6fa, #eef1f7);
}

.bp-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bp-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
  text-decoration: none;
}

.bp-title:hover {
  text-decoration: underline;
}

.bp-excerpt {
  color: #4b5563;
  margin: .25rem 0 .5rem;
  line-height: 1.5;
}

.bp-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: .9rem;
}

.bp-author {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.bp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}

.bp-date {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.bp-dot {
  opacity: .6;
}

.bp-tags {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin: .25rem 0 0;
  padding: 0;
  list-style: none;
}

.bp-tag {
  display: inline-block;
  padding: .25rem .5rem;
  background: #f3f4f6;
  color: #374151;
  border-radius: 999px;
  font-size: .8rem;
}

/* ===== Blog Detailed - Modern (scoped) ===== */
.bdm {
  --bdm-radius: 22px;
  --bdm-shadow: 0 10px 30px rgba(0, 0, 0, .12)
}

.bdm-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1rem
}

.bdm-hero {
  aspect-ratio: 16/7;
  background: linear-gradient(135deg, #eef2f7, #e9eef6);
  border-radius: 0 0 var(--bdm-radius) var(--bdm-radius);
  overflow: hidden
}

.bdm-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.05) contrast(1.02)
}

.bdm-card {
  background: #fff;
  position: relative;
  top: -48px;
  margin-bottom: -32px;
  border-radius: var(--bdm-radius);
  box-shadow: var(--bdm-shadow);
  padding: 1.25rem 1.25rem 1.75rem
}

@media (min-width:768px) {
  .bdm-card {
    padding: 2rem 2rem 2.25rem
  }
}

.bdm-title {
  font-weight: 800;
  line-height: 1.15;
  margin: .25rem 0 1rem;
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  letter-spacing: .2px
}

.bdm-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .6rem;
  color: #6b7280;
  margin-bottom: 1rem
}

.bdm-dot {
  opacity: .6
}

.bdm-author {
  display: flex;
  align-items: center;
  gap: .5rem
}

.bdm-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #111827;
  color: #fff;
  font-weight: 700
}

.bdm-tags {
  display: flex;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: 0
}

.bdm-tags li span {
  background: #f3f4f6;
  border-radius: 999px;
  padding: .25rem .6rem;
  font-size: .85rem;
  color: #374151
}

.bdm-content {
  color: #1f2937;
  line-height: 1.75;
  margin-top: 1rem
}

.bdm-content img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: .75rem 0
}

.bdm-content h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  margin: 1.25rem 0 .5rem;
  font-weight: 800
}

.bdm-content h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  margin: 1rem 0 .35rem;
  font-weight: 700
}

.bdm-content p {
  margin: .65rem 0
}

.bdm-content blockquote {
  border-left: 4px solid #1f4e9e;
  background: #f8fafc;
  padding: .75rem 1rem;
  border-radius: 12px;
  margin: 1rem 0;
  color: #0f172a
}

.bdm-content a {
  color: #1f4e9e;
  text-decoration: underline
}

.bdm-content ul,
.bdm-content ol {
  padding-left: 1.2rem;
  margin: .5rem 0
}

.bdm-foot {
  margin-top: 1.5rem;
  display: flex;
  justify-content: flex-start
}

.bdm-btn {
  display: inline-block;
  background: #111827;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  padding: .55rem .9rem;
  font-weight: 600
}

.bdm-btn:hover {
  opacity: .92
}

body:has(.bdm) {
  background:
    radial-gradient(900px 360px at -10% -10%, rgba(31, 78, 158, .08) 0%, transparent 60%),
    radial-gradient(820px 320px at 115% -5%, rgba(99, 102, 241, .07) 0%, transparent 55%),
    linear-gradient(180deg, #f6f8fb 0%, #eef2f7 100%);
}

body:has(.bdm)::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(17, 24, 39, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
  opacity: .30;
}

/* ===== HERO: contenedor con fondo + imagen enmarcada centrada ===== */
.bdm-hero {
  /* IMPORTANTE: anulamos el aspect-ratio antiguo */
  aspect-ratio: auto !important;

  /* alto controlado del hero */
  height: clamp(150px, 22vh, 220px);

  background:
    radial-gradient(1100px 380px at -10% -20%, #dfe7f7 0%, transparent 60%),
    radial-gradient(900px 340px at 115% 0%, #e8eefb 0%, transparent 55%),
    linear-gradient(135deg, #eef2f7, #e9eef6);
  border-radius: 0 0 var(--bdm-radius) var(--bdm-radius);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* La imagen va MÁS PEQUEÑA, centrada y con marco */
.bdm-hero>img {
  /* forzamos a ignorar reglas antiguas que la estiran */
  width: min(820px, 84vw) !important;
  height: auto !important;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .14);
  display: block;
  filter: saturate(1.05) contrast(1.02);
}

/* Card: leve “glass” y menor superposición para el nuevo alto */
.bdm-card {
  position: relative;
  top: -20px;
  /* sube un poquito sobre el hero */
  margin-bottom: -8px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid rgba(17, 24, 39, .06);
  border-radius: var(--bdm-radius);
  box-shadow: var(--bdm-shadow);
}

/* ===== Automation Info (scoped) ===== */
.auto-info {
  position: relative;
  padding: clamp(24px, 5vw, 56px) 1rem;
}

.auto-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: clamp(18px, 3vw, 36px);
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  align-items: center;
}

@media (max-width: 900px) {
  .auto-wrap {
    grid-template-columns: 1fr;
  }
}

/* Fondo moderno (mesh + puntitos muy sutiles) solo detrás del bloque */
.auto-mesh {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100%;
  background:
    radial-gradient(900px 340px at -8% -10%, rgba(31, 78, 158, .08) 0%, transparent 60%),
    radial-gradient(820px 300px at 110% -6%, rgba(99, 102, 241, .07) 0%, transparent 55%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  mask-image: radial-gradient(100% 80% at 50% 20%, #000 65%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.auto-info::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(17, 24, 39, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .25;
}

/* Media con “marco” y ribete angular */
.auto-media {
  position: relative;
  z-index: 1;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #e9eef6;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}

.auto-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.04) contrast(1.02);
}

.auto-media::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 110px;
  height: 110px;
  background: linear-gradient(135deg, #1f4e9e, #6f5cff);
  clip-path: polygon(0 0, 100% 100%, 0 100%);
  opacity: .9;
}

.auto-media::after {
  content: "";
  position: absolute;
  left: -18px;
  top: 18px;
  width: 38px;
  height: 70%;
  background: linear-gradient(180deg, rgba(31, 78, 158, .16), rgba(31, 78, 158, 0));
  border-radius: 10px;
}

/* Texto */
.auto-body {
  z-index: 1;
  position: relative;
}

.auto-kicker {
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #1f4e9e;
  font-size: .82rem;
  margin: 0 0 .25rem;
}

.auto-title {
  margin: 0 0 .5rem;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 900;
  line-height: 1.15;
}

.auto-lead {
  color: #374151;
  margin: .25rem 0 1rem;
  line-height: 1.7;
}

/* Lista de bullets pro */
.auto-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.1rem;
  display: grid;
  gap: .55rem;
}

.auto-list li {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  color: #1f2937;
}

.auto-bullet {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  color: #fff;
  font-size: .8rem;
  background: linear-gradient(135deg, #1f4e9e, #6f5cff);
  box-shadow: 0 4px 12px rgba(31, 78, 158, .25);
}

/* Botones */
.auto-cta {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}

.auto-btn {
  --btn-pad: .6rem 1rem;
  display: inline-block;
  padding: var(--btn-pad);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 20px rgba(17, 24, 39, .15);
}

.auto-btn:hover {
  opacity: .95;
  transform: translateY(-1px);
}

.auto-btn--ghost {
  background: transparent;
  color: #111827;
  border: 1px solid rgba(17, 24, 39, .15);
  box-shadow: none;
}

.auto-btn--ghost:hover {
  background: #f3f4f6;
}

/* ===== Overrides de paleta para Automation Info ===== */

/* 1) “Ribete” inferior-izquierdo de la imagen (triángulo) con tus colores */
.auto-media::before {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  /* resto se mantiene igual (posición, clip-path, etc.) */
}

/* 2) Faja vertical decorativa a la izquierda de la imagen con tu brand */
.auto-media::after {
  /* fallback amplio (soporte universal) */
  background: linear-gradient(180deg, rgba(31, 78, 158, .22), rgba(31, 78, 158, 0));
}

/* Si hay soporte para color-mix, usa directamente el token */
@supports (color: color-mix(in srgb, #000 0%, #fff 100%)) {
  .auto-media::after {
    background: linear-gradient(180deg,
        color-mix(in srgb, var(--brand) 28%, transparent),
        transparent);
  }
}

/* 3) Bullets “check” con gradiente brand → accent y sombra a tono */
.auto-bullet {
  background: linear-gradient(135deg, var(--brand) 0 60%, var(--accent) 100%);
  color: #fff;
  /* contraste sobre el gradiente */
  box-shadow: 0 6px 16px rgba(31, 78, 158, .28);
  border: 1px solid rgba(0, 0, 0, .06);
  /* borde sutil para definición */
}

/* ===== Detailed Explanation (dark) ===== */
.detailed-explanation {
  position: relative;
  isolation: isolate;
  background: #111827;
  /* fondo pedido */
  color: #fff;
  padding: clamp(38px, 8vw, 84px) 1rem;
  overflow: hidden;
}

/* Mesh/acentos sutiles detrás */
.detailed-explanation::before,
.detailed-explanation::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  z-index: 0;
  pointer-events: none;
  width: 52vw;
  height: 52vw;
  max-width: 720px;
  max-height: 720px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .14;
}

.detailed-explanation::before {
  left: -20vw;
  bottom: -28vw;
  background: radial-gradient(ellipse at center, var(--brand) 0%, transparent 60%);
}

.detailed-explanation::after {
  right: -18vw;
  bottom: -22vw;
  left: auto;
  background: radial-gradient(ellipse at center, var(--accent) 0%, transparent 60%);
}

.dexp-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* Pill */
.dexp-pill {
  display: inline-block;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .18);
  color: var(--accent);
}

/* Títulos y párrafos */
.dexp-title {
  margin: .9rem 0 .5rem;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
}

.dexp-title strong {
  font-weight: 900;
}

.dexp-lead {
  margin: .5rem auto 0;
  color: #e5e7eb;
  line-height: 1.8;
  max-width: 820px;
  font-size: clamp(.98rem, 1.1vw, 1.06rem);
}

.dexp-lead--muted {
  color: #cfd3db;
}

/* énfasis dentro del texto */
.dexp-hl {
  color: var(--accent);
  font-weight: 800;
}

/* Fallback de animación por si no cargan tus reveals */
@keyframes dexpFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.detailed-explanation .reveal.fade-up {
  animation: dexpFadeUp .6s ease both
}

.detailed-explanation .reveal.fade-in {
  animation: dexpFadeUp .6s ease both
}

/* ===== Steps (fondo blanco) ===== */
.steps {
  background: #fff;
  padding: clamp(28px, 6vw, 72px) 1rem;
  position: relative;
}

.steps-inner {
  max-width: var(--container, 1200px);
  margin: 0 auto;
}

/* Encabezado */
.steps-kicker {
  display: inline-block;
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(31, 78, 158, .08);
  border: 1px solid rgba(31, 78, 158, .18);
  padding: .35rem .7rem;
  border-radius: 999px;
}

.steps-title {
  margin: .6rem 0 1rem;
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--brand-2);
}

.steps-title strong {
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps-cta {
  margin-top: .25rem;
}

.steps-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: .65rem 1rem;
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(31, 78, 158, .25);
}

.steps-btn:hover {
  background: var(--primary-hover);
}

.steps-plus {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  font-weight: 900;
}

/* Grid */
.steps-grid {
  margin-top: clamp(16px, 3vw, 28px);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 20px);
}

@media (max-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* Card */
.step-card {
  grid-column: span 3;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(14px, 2vw, 18px) clamp(14px, 2vw, 18px) clamp(18px, 2.2vw, 22px);
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(2, 6, 23, .06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

@media (max-width: 1200px) {
  .step-card {
    grid-column: span 4;
  }
}

@media (max-width: 900px) {
  .step-card {
    grid-column: span 1;
  }
}

.step-card::after {
  /* franja decorativa inferior */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: .9;
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(2, 6, 23, .12);
  border-color: rgba(31, 78, 158, .25);
}

/* Contenido de la card */
.step-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: .6rem;
}

.step-badge {
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .14em;
  color: var(--brand);
  background: rgba(31, 78, 158, .08);
  border: 1px solid rgba(31, 78, 158, .2);
  padding: .35rem .6rem;
  border-radius: 999px;
}

.step-title {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 900;
  color: #111827;
  line-height: 1.2;
  margin: .35rem 0 .25rem;
}

.step-desc {
  color: var(--muted);
  line-height: 1.6;
  font-size: .98rem;
}

/* Separador/indicador a la derecha */
.step-arrow {
  position: absolute;
  right: 14px;
  top: 14px;
  color: var(--brand);
  font-weight: 900;
  opacity: .25;
}

/* Animación fallback (si no cargas tu sistema de reveals) */
@keyframes stepsFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.steps .reveal.fade-up {
  animation: stepsFadeUp .6s ease both;
}

.steps .reveal.fade-in {
  animation: stepsFadeUp .6s ease both;
}

/* ===== FAQ Dark ===== */
.faq-dark {
  background: #111827;
  color: #fff;
  position: relative;
  isolation: isolate;
  padding: clamp(36px, 7vw, 84px) 1rem;
  overflow: hidden;
}

.faq-dark::before,
.faq-dark::after {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  pointer-events: none;
  z-index: 0;
  width: 50vw;
  height: 50vw;
  max-width: 700px;
  max-height: 700px;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .14;
}

.faq-dark::before {
  left: -18vw;
  bottom: -26vw;
  background: radial-gradient(ellipse, var(--brand) 0%, transparent 60%);
}

.faq-dark::after {
  right: -16vw;
  left: auto;
  bottom: -20vw;
  background: radial-gradient(ellipse, var(--accent) 0%, transparent 60%);
}

.faqd-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: clamp(16px, 3vw, 28px);
  position: relative;
  z-index: 1;
  grid-template-columns: 1.1fr 1.3fr;
}

@media (max-width: 900px) {
  .faqd-inner {
    grid-template-columns: 1fr;
  }
}

/* Head */
.faqd-head {
  padding-right: clamp(0px, 2vw, 20px);
}

.faqd-pill {
  display: inline-block;
  padding: .35rem .8rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
}

.faqd-title {
  margin: .7rem 0 .4rem;
  font-weight: 900;
  line-height: 1.12;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.faqd-title strong {
  color: var(--accent);
}

.faqd-sub {
  color: #cfd3db;
  line-height: 1.7;
  max-width: 48ch;
}

/* List */
.faqd-list {
  display: grid;
  gap: 12px;
}

/* Item */
.faqd-item {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.faqd-item[open] {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .24);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

/* Summary as button */
.faqd-summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: clamp(12px, 1.8vw, 16px) clamp(14px, 2vw, 18px);
  font-weight: 700;
  color: #fff;
}

.faqd-summary::-webkit-details-marker {
  display: none;
}

.faqd-q {
  font-size: clamp(.98rem, 1.2vw, 1.06rem);
}

/* Toggle icon */
.faqd-toggle {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: var(--brand);
  font-weight: 900;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

.faqd-item[open] .faqd-toggle {
  background: var(--accent);
  color: #111827;
  transform: rotate(45deg);
  /* plus → close */
}

/* Panel */
.faqd-panel {
  padding: 0 clamp(14px, 2vw, 18px) clamp(14px, 2vw, 18px);
  color: #e5e7eb;
  line-height: 1.7;
  font-size: .98rem;
}

.faqd-panel .hl {
  color: var(--accent);
  font-weight: 800;
}

/* Fallback animaciones */
@keyframes faqFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: none
  }
}

.faq-dark .reveal.fade-up {
  animation: faqFadeUp .6s ease both
}

.faq-dark .reveal.fade-in {
  animation: faqFadeUp .6s ease both
}


/* ===== Portafolio (fondo blanco) ===== */
.portafolio {
  background: #fff;
  padding: clamp(28px, 4vw, 56px) 0;
}

.port-head {
  max-width: var(--container);
  margin: 0 auto clamp(18px, 2.6vw, 28px);
  padding: 0 clamp(16px, 3.2vw, 28px);
  display: grid;
  gap: clamp(10px, 1.4vw, 16px);
  align-items: end;
}

.port-title {
  font-size: clamp(22px, 2.6vw, 32px);
  color: var(--ink);
}

.port-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--menu-gap);
}

/* Pills */
.port-pill {
  height: var(--nav-pill-h);
  padding: 0 var(--nav-pill-px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: var(--menu-size);
  line-height: 1;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: .2s ease-in-out;
}

.port-pill:hover {
  border-color: var(--primary-hover);
  color: var(--primary-hover);
}

.port-pill.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Grid */
.port-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(16px, 3.2vw, 28px);
  display: grid;
  gap: clamp(12px, 1.8vw, 22px);
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

.port-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f6f8fc;
  box-shadow: 0 1px 0 rgba(11, 19, 32, .04);
}

.port-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Imagen cuadrada */
.port-media {
  aspect-ratio: 1 / 1;
}

.port-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay azul en hover */
.port-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  padding: clamp(14px, 2vw, 18px);
  gap: 6px;
  color: #fff;
  /* velo azul */
  background: linear-gradient(180deg,
      rgba(31, 78, 158, 0.12) 0%,
      rgba(31, 78, 158, 0.65) 100%);
  opacity: 0;
  transition: opacity .25s ease;
}

.port-card:hover .port-overlay,
.port-card:focus-within .port-overlay {
  opacity: 1;
}

.port-kicker {
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .95;
}

.port-caption {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  line-height: 1.2;
}

/* Accesibilidad */
.port-pill:focus-visible,
.port-card a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Asegura que los ocultos no ocupen espacio */
.port-card[hidden] {
  display: none !important;
}

/* La card manda el radio y recorta todo dentro */
.port-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  /* opcional: sin gris alrededor */
}

/* El figure no debe dejar margen */
.port-media {
  margin: 0;
  /* <-- quita el colchón del figure */
  aspect-ratio: 1 / 1;
}

/* La imagen siempre ocupa TODO el cuadrado y hereda el radio */
.port-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* elimina espacio de línea */
  border-radius: inherit;
  /* por si se usa la imagen fuera de la card */
}

/* El overlay cubre el área completa respetando esquinas redondeadas */
.port-overlay {
  inset: 0;
  border-radius: inherit;
  /* opcional, por claridad */
  pointer-events: none;
  /* opcional: no bloquear clics al link */
}

/* Por si queda algún caso oculto, forzamos ocultar sin hueco */
.port-card[hidden] {
  display: none !important;
}


/* === Social FAB (bottom-left) === */
:root {
  --sfab-size-desktop: 56px;
  --sfab-size-mobile: 44px;
  --sfab-gap: 12px;
  --sfab-shadow: 0 12px 30px rgba(0, 0, 0, .18), 0 3px 8px rgba(0, 0, 0, .12);
}

.social-fab {
  position: fixed;
  left: calc(env(safe-area-inset-left, 0) + 14px);
  bottom: calc(env(safe-area-inset-bottom, 0) + 14px);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--sfab-gap);
  pointer-events: none; /* evita bloquear clicks del fondo */
}

/* Contenedor de iconos (oculto por defecto) */
.sfab-links {
  display: flex;
  flex-direction: column;
  gap: var(--sfab-gap);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8); /* Inicia un poco abajo y más pequeño */
  transform-origin: bottom center;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  pointer-events: none;
}

/* Cuando el contenedor tiene la clase .is-open */
.social-fab.is-open .sfab-links {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto; /* Permite clicks a los links */
}

.social-fab .sfab-btn {
  pointer-events: auto; /* los botones sí reciben click */
  width: var(--sfab-size-desktop);
  height: var(--sfab-size-desktop);
  border-radius: 9999px;
  display: grid;
  place-items: center;
  box-shadow: var(--sfab-shadow);
  transform: translateZ(0);
  transition: transform .18s ease, box-shadow .18s ease;
  overflow: hidden;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.social-fab .sfab-btn img {
  width: 58%;
  height: 58%;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .15));
}

/* === Estilos del Botón Principal (Toggle) === */
.sfab-toggle {
  background: linear-gradient(135deg, #333333, #111111); /* Cambia este color al de tu marca */
  color: white;
}

.sfab-toggle svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

/* Rota el ícono "+" a una "x" al abrir */
.social-fab.is-open .sfab-toggle svg {
  transform: rotate(45deg);
}

/* Colores/gradientes por red (círculo) */
.sfab-facebook { background: linear-gradient(180deg, #1b74e4, #0e5fcc); }
.sfab-linkedin { background: linear-gradient(180deg, #0a66c2, #004182); }
.sfab-instagram {
  background:
    radial-gradient(30% 30% at 70% 30%, #ffd776 0 60%, transparent 61%),
    radial-gradient(45% 45% at 30% 70%, #f56040 0 60%, transparent 61%),
    linear-gradient(180deg, #bc2a8d, #8a3ab9);
}
.sfab-whatsapp { background: linear-gradient(180deg, #25D366, #128C7E); }

/* Hover/Focus */
.social-fab .sfab-btn:hover,
.social-fab .sfab-btn:focus-visible {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .22), 0 6px 12px rgba(0, 0, 0, .14);
  outline: none;
}

/* Ajuste sutil para que la 'x' no gire raro en hover cuando está abierto */
.social-fab.is-open .sfab-toggle:hover svg {
  transform: rotate(45deg) scale(1.1);
}

/* Responsive */
@media (max-width: 768px) {
  .social-fab {
    left: 10px;
    bottom: 10px;
    gap: 10px;
  }
  .sfab-links {
    gap: 10px;
  }
  .social-fab .sfab-btn {
    width: var(--sfab-size-mobile);
    height: var(--sfab-size-mobile);
  }
}

@media (max-width: 380px) {
  /* En pantallas muy estrechas, expándelo horizontalmente hacia la derecha */
  .social-fab {
    flex-direction: row-reverse; /* El botón principal a la izquierda */
    align-items: center;
  }
  .sfab-links {
    flex-direction: row;
    transform: translateX(-20px) scale(0.8); /* Animación desde la izquierda */
    transform-origin: left center;
  }
  .social-fab.is-open .sfab-links {
    transform: translateX(0) scale(1);
  }
}

/* Accesibilidad/UX extra */
@media (prefers-reduced-motion: reduce) {
  .social-fab .sfab-btn, 
  .sfab-links, 
  .sfab-toggle svg {
    transition: none;
  }
}

@media print {
  .social-fab { display: none; }
}


body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f4f4;
}

.ctanew {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
}

.ctanew-content {
  background: linear-gradient(10deg, #111827, #0e2b5c);
  color: white;
  border-radius: 24px;
  padding: 40px 30px;
  max-width: 700px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.ctanew-title {
  font-size: 1.4rem;
  margin: 0;
  opacity: 0.95;
}

.ctanew-highlight {
  font-size: 2.2rem;
  font-weight: bold;
  margin: 10px 0 15px;
  text-decoration: underline;
}

.ctanew-text {
  font-size: 1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.ctanew-form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.ctanew-form input {
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  outline: none;
  flex: 1;
  min-width: 220px;
}

.ctanew-form button {
  padding: 12px 26px;
  border-radius: 999px;
  border: none;
  background: white;
  color: #0e2b5c;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ctanew-form button:hover {
  background: var(--accent);
}

.ctanew-disclaimer {
  display: block;
  margin-top: 15px;
  font-size: 0.75rem;
  opacity: 0.8;
}

@media (max-width: 600px) {
  .ctanew-highlight {
    font-size: 1.8rem;
  }
}

/* ==========================================
   SECCIÓN SOBRE NOSOTROS (UNIFICADA OSCURA)
   ========================================== */

/* ==========================================
   SECCIÓN SOBRE NOSOTROS (UNIFICADA OSCURA + TEXTURA ORIGINAL)
   ========================================== */

.opt-ab-unified {
  position: relative;
  color: #fff;
  /* 1. Recuperamos tus gradientes radiales originales para esa profundidad exacta */
  background:
    radial-gradient(900px 360px at 12% 0%, rgba(255, 255, 255, .06), transparent),
    radial-gradient(720px 300px at 92% 12%, rgba(255, 255, 255, .06), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(0, 0, 0, .06)),
    var(--brand-2);
  overflow-x: clip;
  /* evita scroll lateral */
  padding: clamp(48px, 6vw, 80px) 0;
}

/* 2. Tu patrón de puntitos original, sutil y alineado a la derecha */
.opt-ab-unified::after {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: min(48vw, 760px);
  height: 100%;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1.15px, transparent 1.15px);
  background-size: 18px 18px;
  opacity: .55;
  pointer-events: none;
  z-index: 0;
}

/* Aseguramos que el contenido esté por encima de los puntitos */
.opt-ab-unified .opt-ab-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container, 1440px);
  margin: 0 auto;
  padding: 0 20px;
}

.opt-ab-unified .opt-ab-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container, 1440px);
  margin: 0 auto;
  padding: 0 20px;
}

.opt-ab-unified .opt-ab-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 64px);
  align-items: center;
}

@media (min-width: 1024px) {
  .opt-ab-unified .opt-ab-grid {
    grid-template-columns: 1fr 1.1fr;
    /* Lado derecho ligeramente más ancho */
  }
}

/* === LADO IZQUIERDO: TARJETA TRANSLÚCIDA (GLASS-MORPHISM) === */
.opt-ab-stats-card {
  background: rgba(11, 19, 32, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: clamp(32px, 4vw, 48px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
}

.stat-hero {
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-hero .num {
  font-size: clamp(4rem, 8vw, 6rem);
  font-weight: 900;
  color: var(--accent);
  /* Tu color amarillo */
  line-height: 0.85;
  letter-spacing: -0.03em;
}

.stat-hero .text {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.stat-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  margin: 32px 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item .s-num {
  font-size: clamp(2rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--accent);
  /* Tu color amarillo */
  line-height: 1;
}

.stat-item .s-lab {
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.3;
}

.stat-highlight {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 210, 0, 0.1);
  border: 1px solid rgba(255, 210, 0, 0.2);
  padding: 12px 20px;
  border-radius: 12px;
}

.stat-highlight svg {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.stat-highlight span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* === LADO DERECHO: TEXTO UNIFICADO === */
.opt-ab-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.opt-ab-eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 800;
  color: var(--accent);
}

.opt-ab-title {
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
}

.opt-ab-title .accent-text {
  color: var(--accent);
  /* Resalta "Calidad" en amarillo */
}

.opt-ab-lead {
  margin: 0;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  line-height: 1.5;
}

.opt-ab-copy p {
  margin: 0 0 24px 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
}

.opt-ab-copy p strong {
  color: #ffffff;
}

.opt-ab-tags {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.opt-ab-tags .tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  text-align: center;
}

.opt-ab-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 12px;
}

.btn-primary-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent);
  color: #1a1600;
  font-weight: 800;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(255, 210, 0, 0.25);
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}

.btn-primary-yellow:hover {
  transform: translateY(-2px);
  background: #ffd83a;
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: transparent;
  color: #ffffff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
  text-decoration: none;
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
}

/* === RESPONSIVE AJUSTES === */
@media (max-width: 640px) {
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .opt-ab-cta {
    flex-direction: column;
  }

  .btn-primary-yellow,
  .btn-outline-white {
    width: 100%;
  }
}

/* ==========================================
   SECCIÓN SERVICIOS INTERACTIVOS (TABS)
   ========================================== */

.opt-svc-interactive {
  position: relative;
  background: #ffffff;
  padding: clamp(48px, 6vw, 80px) 0;
  overflow: hidden;
}

/* Fondo con degradado sutil */
.opt-svc-interactive::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(800px 400px at 10% 0%, rgba(31, 78, 158, 0.04), transparent),
    radial-gradient(800px 400px at 90% 100%, rgba(255, 210, 0, 0.04), transparent);
  pointer-events: none;
}

.opt-svc-interactive .opt-svc-wrap {
  max-width: var(--container, 1440px);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}

/* HEADER: Títulos y Botones */
.opt-svc-top-bar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

@media (min-width: 980px) {
  .opt-svc-top-bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
}

.opt-svc-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--muted);
  font-size: 12px;
}

.opt-svc-title {
  margin: 6px 0 0;
  font-size: clamp(24px, 3.5vw, 40px);
  color: var(--brand-2);
  line-height: 1.1;
  font-weight: 900;
}

/* Navegación de Pestañas */
.opt-svc-tabs-nav {
  display: flex;
  gap: 8px;
  background: rgba(31, 78, 158, 0.05);
  /* Gris/Azul muy claro */
  padding: 6px;
  border-radius: 999px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}

/* Ocultar scrollbar en los tabs */
.opt-svc-tabs-nav::-webkit-scrollbar {
  display: none;
}

.opt-svc-tabs-nav {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.opt-tab-btn {
  border: none;
  background: transparent;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  scroll-snap-align: center;
  transition: all 0.3s ease;
}

.opt-tab-btn:hover {
  color: var(--brand);
}

.opt-tab-btn.active {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(31, 78, 158, 0.25);
}

/* CONTENEDOR Y PANELES */
.opt-tab-pane {
  display: none;
  animation: optFadeInUp 0.4s ease forwards;
}

.opt-tab-pane.active {
  display: block;
}

@keyframes optFadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.opt-pane-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

@media (min-width: 980px) {
  .opt-pane-grid {
    grid-template-columns: 420px 1fr;
    /* Card a la izquierda, texto expandido a la derecha */
  }
}

/* LADO DERECHO: Textos y Marcas */
.opt-pane-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.opt-pane-title {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 900;
  color: var(--brand-2);
  margin: 0 0 16px 0;
  line-height: 1.15;
}

.opt-pane-intro {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 65ch;
}

.opt-pane-marcas-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 16px;
  border-bottom: 2px solid rgba(31, 78, 158, 0.1);
  padding-bottom: 8px;
  display: inline-block;
}

.opt-marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.opt-marca-box {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 16px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.opt-marca-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(11, 19, 32, 0.06);
  border-color: rgba(31, 78, 158, 0.2);
}

.opt-marca-box strong {
  display: block;
  font-size: 1.05rem;
  color: var(--brand-2);
  margin-bottom: 4px;
}

.opt-marca-box span {
  display: block;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Reutilización de tus clases originales para la Card .opt-svc-card (Se asume que ya están en tu CSS, no las sobreescribo) */

.opt-svc-tabs-nav {
  display: flex;
  flex-wrap: wrap;
  /* Permitir que salten a la siguiente línea */
  gap: 8px;
  background: rgba(31, 78, 158, 0.05);
  padding: 6px;
  border-radius: 12px;
  /* Un poco menos redondeado para más orden */
  justify-content: center;
  /* Centrar en móvil */
}

/* Tarjetas de marcas más compactas */
.opt-marcas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  /* Más pequeño */
  gap: 10px;
}

.opt-marca-box {
  padding: 12px;
  border-radius: 8px;
}

.opt-marca-box strong {
  font-size: 0.9rem;
}

.opt-marca-box span {
  font-size: 0.8rem;
}

/* ==========================================
   BADGE SOBRE IMAGEN
========================================== */

.opt-why-media {
  position: relative;
}

.opt-why-badge {
  position: absolute;
  top: 20px;
  left: 20px;

  z-index: 3;

  background: var(--brand);

  color: #fff;

  padding: 12px 18px;

  border-radius: 999px;

  font-weight: 700;

  font-size: 14px;

  box-shadow:
    0 10px 25px rgba(31, 78, 158, .25);
}

/* ==========================================
   TITULO
========================================== */

.opt-why-title::after {
  content: "";

  display: block;

  width: 90px;

  height: 4px;

  margin-top: 14px;

  border-radius: 999px;

  background:
    linear-gradient(90deg,
      var(--brand),
      var(--accent));
}

/* ==========================================
   CARDS PRINCIPALES
========================================== */

.opt-why-item {
  border-radius: 18px;

  border: 1px solid rgba(31, 78, 158, .08);

  box-shadow:
    0 12px 30px rgba(0, 0, 0, .06);

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.opt-why-item:hover {

  transform: translateY(-4px);

  box-shadow:
    0 18px 40px rgba(31, 78, 158, .12);
}

.opt-why-item h3 {

  color: var(--brand);

  background: none;

  -webkit-text-fill-color: unset;
}

/* ==========================================
   FILA INFERIOR
========================================== */

.opt-why-extra {

  margin-top: 40px;

  display: grid;

  gap: 20px;
}

@media(min-width:900px) {

  .opt-why-extra {

    grid-template-columns:
      repeat(3, 1fr);
  }
}

.opt-why-mini {

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 16px;

  padding: 24px;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, .05);
}

.opt-why-mini .dot {

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: #ff9d2f;

  display: block;

  margin-bottom: 16px;
}

.opt-why-mini h4 {

  margin: 0 0 10px;

  font-size: 20px;

  color: var(--brand-2);

  font-weight: 800;
}

.opt-why-mini p {

  margin: 0;

  color: var(--muted);

  line-height: 1.7;
}

.opt-br {
  position: relative;

  background:
    radial-gradient(900px 360px at 12% 0%,
      rgba(255, 255, 255, .04),
      transparent),
    radial-gradient(720px 300px at 92% 12%,
      rgba(255, 255, 255, .04),
      transparent),
    linear-gradient(180deg,
      rgba(255, 255, 255, .02),
      rgba(0, 0, 0, .04)),
    var(--brand-2);

  padding: 80px 0;

  overflow: hidden;
}

.opt-br::after {
  content: "";

  position: absolute;

  inset: 0;

  background-image:
    radial-gradient(rgba(255, 255, 255, .12) 1px,
      transparent 1px);

  background-size: 18px 18px;

  opacity: .5;

  pointer-events: none;
}

.opt-br-item {
  background: #fff;

  border-radius: 18px;

  padding: 18px;

  min-width: 220px;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, .12);

  transition: .25s;
}

/* ==========================================================================
   LANDING PAGE REDESIGN - PREMIUM COMPONENT SYSTEMS
   ========================================================================== */

/* --- Scroll Progress Bar --- */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  width: 0%;
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* --- Animated Nav Underlines --- */
.site-header.white .menu a {
  position: relative;
  overflow: hidden;
  transition: color 0.3s ease;
}

.site-header.white .menu a::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 100%;
  height: 2px;
  background-color: var(--secondary);
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.site-header.white .menu a:hover::after,
.site-header.white .menu a.is-active::after {
  transform: translateX(-50%) scaleX(0.7);
}

/* --- Magnetic Button Helper --- */
.btn-magnetic {
  display: inline-flex;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s ease;
  will-change: transform;
}

/* --- Floating Decorative Shapes --- */
.floating-shapes-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.floating-shape {
  position: absolute;
  background: radial-gradient(circle, rgba(0, 110, 183, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float-around 25s infinite alternate ease-in-out;
}

.floating-shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -50px;
  animation-duration: 20s;
}

.floating-shape-2 {
  width: 450px;
  height: 450px;
  bottom: 15%;
  right: -100px;
  animation-duration: 28s;
  animation-delay: -5s;
}

.floating-shape-3 {
  width: 250px;
  height: 250px;
  top: 50%;
  left: 45%;
  background: radial-gradient(circle, rgba(0, 110, 183, 0.05) 0%, transparent 70%);
  animation-duration: 22s;
  animation-delay: -10s;
}

@keyframes float-around {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-40px) scale(1.1) rotate(180deg);
  }

  100% {
    transform: translateY(20px) scale(0.9) rotate(360deg);
  }
}

/* ==========================================================
   PREMIUM HERO
========================================================== */

.opt-hero {
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #f3f7fa 100%);
  padding: clamp(55px, 4vw, 75px) 0 clamp(55px, 4vw, 75px);
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.opt-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 5vw, 90px);
  align-items: center;
  position: relative;
  z-index: 5;
}

.opt-hero-content {
  max-width: 620px;
}

.opt-hero-brand {
  margin-bottom: 28px;
}

.opt-hero-brand img {
  width: 360px;
  max-width: 100%;
  display: block;
}

.opt-hero-title {
  font-size: clamp(1.85rem, 2.8vw, 2.7rem);
  line-height: 1.2;
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 560px;
}

.opt-hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.opt-hero-lead {
  font-size: 1.08rem;
  color: var(--dark-gray);
  line-height: 1.75;
  margin-bottom: 34px;
  max-width: 610px;
}

.opt-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.opt-hero-actions .btn {
  padding: 16px 28px;
  border-radius: 12px;
}

.opt-hero-actions .btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: none;
  box-shadow: 0 15px 35px rgba(0, 72, 153, .18);
}

.opt-hero-actions .btn-secondary {
  background: #fff;
  border: 1px solid var(--line);
}

.opt-hero-media {
  position: relative;
}

.opt-hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .16);
}

.opt-hero-image-wrapper img {
  width: 100%;
  height: 620px;
  object-fit: cover;
  display: block;
}

.opt-hero-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 40, 90, .45), transparent 60%);
}

.opt-hero-floating {
  position: absolute;
  right: -25px;
  bottom: 35px;
  width: 250px;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, .16);
  z-index: 5;
}

.opt-hero-floating h4 {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 1rem;
  font-weight: 800;
}

.opt-hero-floating ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.opt-hero-floating li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
  font-size: .95rem;
  font-weight: 600;
  color: var(--ink);
}

.opt-hero-floating li span {
  color: var(--secondary);
}

.opt-hero-trust {
  margin-top: 55px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
}

.opt-hero-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .92rem;
  color: var(--dark-gray);
  font-weight: 600;
}

.opt-hero-trust-item b {
  color: var(--secondary);
}

/* ===========================
   TABLET
=========================== */

@media (max-width: 992px) {

  .opt-hero {
    min-height: auto;
    padding: 70px 0;
  }

  .opt-hero-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .opt-hero-content {
    max-width: 100%;
    text-align: center;
  }

  .opt-hero-brand img {
    width: 300px;
    margin: auto;
  }

  .opt-hero-title {
    margin-inline: auto;
  }

  .opt-hero-lead {
    margin-inline: auto;
  }

  .opt-hero-actions {
    justify-content: center;
  }

  .opt-hero-image-wrapper img {
    height: 500px;
  }

  .opt-hero-floating {
    right: 20px;
    bottom: 20px;
  }

  .opt-hero-trust {
    grid-template-columns: repeat(2, 1fr);
  }

}

/* ===========================
   MOBILE
=========================== */

@media (max-width:576px) {

  .opt-hero {
    padding: 55px 0;
  }

  .opt-hero-brand img {
    width: 230px;
  }

  .opt-hero-title {
    font-size: 2rem;
  }

  .opt-hero-lead {
    font-size: 1rem;
  }

  .opt-hero-actions {
    flex-direction: column;
  }

  .opt-hero-actions .btn {
    width: 100%;
  }

  .opt-hero-image-wrapper img {
    height: 340px;
  }

  .opt-hero-floating {
    position: relative;
    right: auto;
    bottom: auto;
    width: 100%;
    margin-top: 20px;
  }

  .opt-hero-trust {
    grid-template-columns: 1fr;
  }

}

/* Contenedor principal: le pasamos la altura para que no colapse */
.opt-hero-image-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .16);
  height: 620px; /* Altura movida al contenedor */
}

/* Estilos de las imágenes del slider */
.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; /* Ocultas por defecto */
  transition: opacity 1.5s ease-in-out; /* Efecto de desvanecimiento suave (1.5 segundos) */
  z-index: 1;
}

/* Imagen activa (visible) */
.slider-img.active {
  opacity: 1;
  z-index: 2;
}

/* La capa oscura por encima (el gradiente que ya tenías) */
.opt-hero-image-wrapper::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 40, 90, .45), transparent 60%);
  z-index: 3; /* Asegura que el gradiente quede siempre por encima de las fotos */
  pointer-events: none; /* Para que no bloquee interacciones */
}
@media (max-width: 992px) {
  .opt-hero-image-wrapper {
    height: 500px;
  }
}

@media (max-width: 576px) {
  .opt-hero-image-wrapper {
    height: 340px;
  }
}




/* ==========================================================
   SCROLL INDICATOR
========================================================== */

.scroll-indicator-wrap {

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 10px;

  margin-top: 40px;

  text-align: center;
}

.scroll-indicator-wrap span {

  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dark-gray);
  opacity: .75;

}

.scroll-indicator-mouse {

  width: 24px;
  height: 40px;

  border: 2px solid rgba(0, 0, 0, .35);
  border-radius: 20px;

  position: relative;

}

.scroll-indicator-wheel {

  position: absolute;
  left: 50%;
  top: 7px;

  width: 4px;
  height: 8px;

  border-radius: 999px;

  background: var(--secondary);

  transform: translateX(-50%);

  animation: scroll-wheel-animate 1.8s infinite ease-in-out;

}

@keyframes scroll-wheel-animate {

  0% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

  60% {
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
  }

  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }

}

@media (max-width:576px) {

  .scroll-indicator-wrap {
    margin-top: 30px;
  }

}

/* --- Proof metrics banner --- */
.opt-proof-strip {
  background: var(--ink);
  background-image: url('../img/hero-project.jpg');
  background-size: cover;
  background-position: center;
  background-blend-mode: overlay;
  color: #fff;
  padding: 56px 0;
  position: relative;
  z-index: 10;
}

.opt-proof-strip::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 72, 153, 0.88) 0%, rgba(0, 110, 183, 0.82) 100%);
  z-index: 0;
}

.opt-proof-strip .container {
  position: relative;
  z-index: 1;
}

.opt-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.opt-proof-card {
  padding: 10px 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.opt-proof-card:first-child {
  border-left: none;
}

.opt-proof-card .number {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 6px;
  display: block;
}

.opt-proof-card .label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  line-height: 1.4;
}

/* --- Solutions grid redesign --- */
.opt-solutions-section {
  background: #f8fafc;
  padding: clamp(40px, 6vw, 70px) 0;
  position: relative;
}

.opt-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.opt-section-eyebrow {
  color: var(--secondary);
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
}

.opt-section-title {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.opt-section-desc {
  font-size: 1.05rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

.opt-sol-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.opt-sol-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.01);
  display: flex;
  flex-direction: column;
}

.opt-sol-card-body {
  padding: 22px 24px 24px;
}

.opt-sol-card-img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;

}

.opt-sol-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 0;
  background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
  transition: height 0.35s ease;
}

.opt-sol-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 72, 153, 0.08);
  border-color: transparent;
}

.opt-sol-card:hover::before {
  height: 100%;
}

.opt-sol-icon {
  width: 30px;
  height: 30px;
  border-radius: 16px;
  background: rgba(0, 110, 183, 0.06);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: bold;
  margin-bottom: 10px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.opt-sol-card:hover .opt-sol-icon {
  background-color: var(--secondary);
  color: #fff;
}

.opt-sol-card h3 {
  font-size: 1.2rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 2px;
}

.opt-sol-card p {
  font-size: 0.92rem;
  color: var(--dark-gray);
  line-height: 1.6;
}

@media (max-width:992px) {
  .opt-sol-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:640px) {
  .opt-sol-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   RESPONSIVE - INDUSTRIAS
====================================================== */

/* Laptop */
@media (max-width:1200px){

    .opt-contact-grid-custom{
        grid-template-columns:1fr !important;
        gap:50px;
    }

    .opt-contact-grid-custom > div:first-child{
        max-width:800px;
        margin:0 auto;
        text-align:center;
    }

    .opt-ind-gallery{
        width:100%;
        max-width:100%;
    }

}

/* Tablet */
@media (max-width:992px){

    .opt-solutions-section{
        padding:70px 0;
    }

    .opt-section-header{
        margin-bottom:45px;
    }

    .opt-section-title{
        font-size:2.2rem;
    }

    .opt-section-desc{
        font-size:1rem;
    }

    .opt-contact-grid-custom{
        grid-template-columns:1fr !important;
        gap:40px;
    }

    .opt-contact-grid-custom > div:first-child{
        text-align:center;
    }

    .opt-contact-grid-custom h3{
        font-size:2rem !important;
    }

    .opt-contact-grid-custom p{
        font-size:1rem !important;
    }

    .opt-contact-grid-custom .btn{
        width:auto;
    }

    .opt-ind-gallery{
        height:420px;
    }

}

/* Celulares */
@media (max-width:768px){

    .opt-solutions-section{
        padding:60px 0;
    }

    .opt-contact-grid-custom{
        grid-template-columns:1fr !important;
        gap:35px;
    }

    .opt-contact-grid-custom > div:first-child{
        text-align:center;
    }

    .opt-contact-grid-custom h3{
        font-size:1.7rem !important;
        margin-bottom:18px !important;
    }

    .opt-contact-grid-custom p{
        font-size:.95rem !important;
        line-height:1.8 !important;
    }

    .opt-contact-grid-custom .btn{
        width:100%;
        max-width:320px;
    }

    .opt-ind-gallery{
        height:330px;
    }

    .opt-ind-panel span{
        font-size:.9rem;
    }

}

/* Celulares pequeños */
@media (max-width:576px){

    .opt-section-title{
        font-size:1.8rem;
    }

    .opt-section-desc{
        font-size:.92rem;
    }

    .opt-contact-grid-custom{
        gap:28px;
    }

    .opt-contact-grid-custom h3{
        font-size:1.5rem !important;
    }

    .opt-contact-grid-custom p{
        font-size:.9rem !important;
    }

    .opt-contact-grid-custom .btn{
        width:100%;
        max-width:none;
    }

    .opt-ind-gallery{
        height:270px;
    }

    .opt-ind-panel{
        border-radius:14px;
    }

    .opt-ind-panel span{
        font-size:.8rem;
        padding:14px;
    }

}

@media (max-width:768px){

    .opt-contact-grid-custom{
        display:flex;
        flex-direction:column;
        gap:35px;
    }

    /* Galería primero */
    .opt-ind-gallery{
        order:1;
        width:100%;
        margin:0;
    }

    /* Texto después */
    .opt-contact-grid-custom > div:first-child{
        order:2;
        text-align:center;
    }

    .opt-contact-grid-custom .btn{
        width:100%;
        max-width:320px;
    }

}

/* ==========================================================
   WHY US SECTION - PREMIUM REDESIGN
========================================================== */

.opt-why-section-custom {
  position: relative;
  background: #fff;
  padding: clamp(60px, 7vw, 100px) 0;
  overflow: hidden;
}

/*==============================
HEADER
==============================*/

.opt-why-header {
  max-width: 760px;
  margin: 0 auto 60px;
  text-align: center;
}

.opt-why-header .opt-hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
}

.opt-why-header .opt-section-title {
  margin-bottom: 18px;
}

.opt-why-header .opt-section-desc {
  max-width: 700px;
  margin: auto;
}


/*==============================
MAIN GRID
==============================*/

.opt-why-grid-custom{
    display:grid;
    grid-template-columns:minmax(430px,520px) 1fr;
    gap:55px;
    align-items:stretch;
}


/*==============================
LEFT
==============================*/

.opt-why-left-content {

  position: relative;

}


.opt-why-image-card {

  position: relative;

  overflow: hidden;

  border-radius: 22px;

  box-shadow:
    0 25px 55px rgba(0, 0, 0, .08);

}


.opt-why-image-card img {

  display: block;

  width: 100%;

  height: 100%;

  object-fit: cover;

  transition: .7s;

}

.opt-why-image-card:hover img {

  transform: scale(1.05);

}

.opt-why-image-card::after {

  content: "";

  position: absolute;

  inset: 0;

  background:

    linear-gradient(to top,
      rgba(0, 0, 0, .30),
      rgba(0, 0, 0, .05)),

    rgba(0, 72, 153, .12);

}


.opt-why-image-card .badge {

  position: absolute;

  top: 22px;

  left: 22px;

  z-index: 5;

  background: var(--secondary);

  color: #fff;

  padding: 10px 18px;

  border-radius: 100px;

  font-size: .80rem;

  font-weight: 700;

  box-shadow:
    0 12px 24px rgba(0, 0, 0, .18);

}


.logo-overlay {

  position: absolute;

  inset: 0;

  display: flex;

  justify-content: center;

  align-items: center;

  z-index: 5;

}


.opt-why-logo-circle {

  width: 170px;

  height: 170px;

  border-radius: 50%;

  border: 4px solid rgba(255, 255, 255, .92);

  background: rgba(0, 72, 153, .82);

  backdrop-filter: blur(6px);

  display: flex;

  flex-direction: column;

  justify-content: center;

  align-items: center;

  color: #fff;

  font-size: 1.55rem;

  font-weight: 800;

  letter-spacing: .08em;

  box-shadow:
    0 18px 35px rgba(0, 0, 0, .25);

}

.opt-why-logo-circle small {

  margin-top: 6px;

  font-size: .58rem;

  letter-spacing: .35em;

}

/* Este lo mantienes tal cual lo tienes */
.logo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 5;
}

.opt-why-logo-img {
  /* La magia responsive: */
  width: 50% !important;        /* Ocupará el 35% del ancho de la foto padre, encogiéndose con ella */
  max-width: 170px !important;  /* Pero en escritorio, nunca será más grande que 170px */
  
  /* Mantiene la proporción perfecta automáticamente */
  height: auto !important;      
  object-fit: contain !important; 
  
  /* Sombras y bordes (opcionales) */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); 
  border-radius: 50%; 
}


/*==============================
RIGHT
==============================*/

.opt-why-benefits-list {

  display: grid;

  gap: 16px;

}


.opt-benefit-card {

  display: grid;

  grid-template-columns: 52px 1fr;

  gap: 18px;

  align-items: flex-start;

  background: #fff;

  border: 1px solid var(--line);

  border-radius: 18px;

  padding: 18px 22px;

  transition: .35s;

  box-shadow:
    0 8px 18px rgba(0, 0, 0, .025);

}


.opt-benefit-card:hover {

  transform: translateY(-4px);

  border-color: var(--secondary);

  box-shadow:

    0 20px 40px rgba(0, 72, 153, .08);

}


.icon-wrap {

  width: 52px;

  height: 52px;

  border-radius: 50%;

  display: flex;

  align-items: center;

  justify-content: center;

  background: var(--secondary);

  color: #fff;

  flex-shrink: 0;

  box-shadow:
    0 8px 18px rgba(0, 72, 153, .25);

}


.opt-benefit-card h3 {

  margin: 2px 0 5px;

  font-size: 1rem;

  font-weight: 700;

  color: var(--ink);

}


.opt-benefit-card p {

  margin: 0;

  font-size: .88rem;

  line-height: 1.45;

  color: var(--dark-gray);

}


/*==============================
BOTTOM ROW
==============================*/

.opt-why-extra-row {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 22px;

  margin-top: 45px;

}


.opt-why-extra-card {

  position: relative;

  padding: 24px;

  border-radius: 18px;

  background: #f8fafc;

  border: 1px solid var(--line);

  transition: .35s;

}


.opt-why-extra-card::before {

  content: "";

  position: absolute;

  width: 8px;

  height: 8px;

  border-radius: 50%;

  left: 22px;

  top: 24px;

  background: var(--secondary);

}


.opt-why-extra-card:hover {

  transform: translateY(-5px);

  background: #fff;

  border-color: var(--secondary);

  box-shadow:

    0 15px 35px rgba(0, 0, 0, .04);

}


.opt-why-extra-card h3 {

  padding-left: 18px;

  margin-bottom: 10px;

  font-size: 1rem;

  font-weight: 700;

}


.opt-why-extra-card p {

  margin: 0;

  font-size: .88rem;

  line-height: 1.55;

}


/*==========================================================
TABLET
==========================================================*/

@media (max-width:991px) {

  .opt-why-grid-custom {

    grid-template-columns: 1fr;

    gap: 40px;

  }

  .opt-why-left-content {

    order: 2;

  }

  .opt-why-benefits-list {

    order: 1;

  }

  .opt-why-image-card img {

    height: 460px;

  }

  .opt-why-extra-row {

    grid-template-columns: 1fr;

  }

}


/*==========================================================
MOBILE
==========================================================*/

@media (max-width:768px) {

  .opt-why-section-custom {

    padding: 60px 0;

  }

  .opt-why-header {

    margin-bottom: 40px;

    text-align: left;

  }

  .opt-why-grid-custom {

    gap: 30px;

  }

  .opt-why-image-card img {

    height: 320px;

  }

  .opt-benefit-card {

    grid-template-columns: 46px 1fr;

    padding: 16px;

    gap: 15px;

  }

  .icon-wrap {

    width: 46px;

    height: 46px;

  }

  .opt-benefit-card h3 {

    font-size: .95rem;

  }

  .opt-benefit-card p {

    font-size: .84rem;

  }

  .opt-why-logo-circle {

    width: 135px;

    height: 135px;

    font-size: 1.2rem;

  }

  .opt-why-extra-card {

    padding: 20px;

  }

}

/* --- Methodology Process Section --- */
.opt-process-section {
  background: var(--ink);
  color: #fff;
  padding: clamp(40px, 6vw, 70px) 0;
  position: relative;
  overflow: hidden;
}

.opt-process-section .opt-section-title {
  color: #ffffff;
}

.opt-process-section .opt-section-desc {
  color: rgba(255, 255, 255, 0.7);
}

.opt-process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 50px;
  position: relative;
}

.opt-process-step {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 30px 24px;
  transition: all 0.35s ease;
}

.opt-process-step:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--secondary);
  transform: translateY(-6px);
}

.opt-process-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 20px;
}

.opt-process-step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.opt-process-step p {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* Step connector lines */
.opt-process-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 45px;
  right: -13px;
  width: 26px;
  height: 2px;
  background: rgba(255, 255, 255, 0.15);
  z-index: 10;
}

@media (max-width: 1024px) {
  .opt-process-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .opt-process-step:not(:last-child)::after {
    display: none;
  }
}

/* --- CTA Band Conversion --- */
.opt-cta-band-section {
  padding: 50px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #053b75 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.opt-cta-band-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  position: relative;
  z-index: 5;
}

.opt-cta-band-content h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.opt-cta-band-content p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 760px;
}

.opt-cta-band-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.opt-cta-band-actions .btn {
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 800;
  transition: all 0.3s ease;
}

.opt-cta-band-actions .btn-whatsapp {
  background: #25D366;
  color: #fff;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.25);
  border: none;
}

.opt-cta-band-actions .btn-whatsapp:hover {
  background: #1ebd57;
  transform: translateY(-2px);
}

.opt-cta-band-actions .btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid #fff;
}

.opt-cta-band-actions .btn-secondary:hover {
  background: #fff;
  color: var(--primary);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  .opt-cta-band-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Corrección global del formulario (evita el botón tipo columna) */
.contact-form {
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* --- Rediseño de la sección --- */
.opt-contact-section-custom {
  background: #ffffff;
  padding: clamp(40px, 6vw, 70px) 0;
  position: relative;
}

/* Usamos grid-template-areas para ordenar visualmente */
.opt-contact-grid-custom {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  grid-template-areas:
    "header form"
    "list form";
  grid-template-rows: auto 1fr; /* <--- ¡ESTA ES LA LÍNEA MÁGICA! */
  gap: 30px 60px; /* 30px de separación vertical, 60px horizontal */
  align-items: start;
}

/* Asignamos cada bloque a su respectiva área */
.opt-contact-header {
  grid-area: header;
}

.opt-contact-list-custom {
  grid-area: list;
  display: grid;
  gap: 20px;
}

.opt-contact-form-card {
  grid-area: form;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.02);
}

.opt-contact-row-custom {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 16px;
  align-items: center;
}
.opt-contact-row-custom .icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(0, 110, 183, 0.06);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.opt-contact-row-custom strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
}
.opt-contact-row-custom span,
.opt-contact-row-custom a {
  font-size: 0.88rem;
  color: var(--dark-gray);
  transition: color 0.2s ease;
}
.opt-contact-row-custom a:hover {
  color: var(--secondary);
}

.opt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.opt-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.opt-form-field.full {
  grid-column: 1 / -1;
}
.opt-form-field label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink);
}
.opt-form-field input,
.opt-form-field select,
.opt-form-field textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: var(--ink);
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}
.opt-form-field input:focus,
.opt-form-field select:focus,
.opt-form-field textarea:focus {
  border-color: var(--secondary);
  box-shadow: 0 0 0 4px rgba(0, 110, 183, 0.1);
}
.opt-form-field textarea {
  min-height: 120px;
  resize: vertical;
}
.opt-form-note {
  font-size: 0.75rem;
  color: var(--dark-gray);
  margin: 12px 0 20px;
}
.opt-contact-form-card .btn-submit {
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #fff;
  border: none;
  padding: 16px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 72, 153, 0.2);
  transition: all 0.3s ease;
}
.opt-contact-form-card .btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0, 72, 153, 0.3);
}
.opt-phone-group{
    display:flex;
    gap:10px;
}
.opt-phone-group select{
    width:90px;
    flex-shrink:0;
}
.opt-phone-group input{
    flex:1;
}
.btn-submit{
    margin-top:24px;
    width:100%;
}

/* --- RESPONSIVE TABLET & PORTÁTILES --- */
@media (max-width:1100px){
    .opt-contact-grid-custom{
        /* Cambiamos el orden aquí: Primero Header, luego Formulario, y al final la Lista */
        grid-template-columns: 1fr;
        grid-template-areas:
          "header"
          "form"
          "list";
        gap: 50px;
    }
    .opt-contact-header {
        max-width: 700px;
        margin: auto;
        width: 100%;
        text-align: left !important; /* Mantiene textos alineados a la izquierda */
    }
    .opt-contact-list-custom {
        max-width: 700px;
        margin: auto;
        width: 100%;
    }
    .opt-contact-form-card{
        max-width:760px;
        width:100%;
        margin:auto;
        padding:35px;
    }
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width:768px){
    .opt-contact-section-custom{
        padding:70px 0;
    }
    .opt-contact-grid-custom{
        gap:45px;
    }
    .opt-contact-header {
        text-align: left !important; /* Fuerza que el título y descripción no se centren */
    }
    .opt-contact-form-card{
        padding:24px;
        border-radius:20px;
    }
    .opt-form-grid{
        grid-template-columns:1fr;
        gap:18px;
    }
    .opt-form-field.full{
        grid-column:auto;
    }
    .opt-phone-group{
        flex-direction:column;
    }
    .opt-phone-group select{
        width:100%;
    }
    .opt-contact-row-custom{
        grid-template-columns:46px 1fr;
        gap:14px;
        align-items:flex-start;
        text-align: left !important; /* Corrige los textos del icono a la izquierda */
    }
    .opt-contact-row-custom .icon-box{
        width:46px;
        height:46px;
    }
    .opt-section-title{
        font-size:2rem;
    }
    .btn-submit{
        padding:16px;
        font-size:1rem;
    }
}

@media (max-width:480px){
    .opt-contact-section-custom{
        padding:60px 0;
    }
    .opt-contact-form-card{
        padding:20px;
    }
    .opt-section-title{
        font-size:1.75rem;
        line-height:1.15;
    }
    .opt-section-desc{
        font-size:.96rem;
    }
    .opt-form-field input,
    .opt-form-field select,
    .opt-form-field textarea{
        padding:13px 14px;
        font-size:.95rem;
    }
    .opt-form-field label{
        font-size:.72rem;
    }
}

/* Testimonial slider inline redesign */
.opt-quote-landing {
  background: #f8fafc;
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.opt-quote-card-landing {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.opt-quote-avatar-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.opt-quote-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.opt-quote-text-landing {
  font-size: clamp(1.1rem, 1.5vw, 1.4rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 24px;
}

.opt-quote-name-landing {
  font-weight: 700;
  color: var(--primary);
  font-size: 1rem;
}

.opt-quote-role-landing {
  font-size: 0.8rem;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

/* General responsive support adjustments */
@media (max-width: 980px) {

  .opt-hero-grid,
  .opt-why-grid-custom,
  .opt-contact-grid-custom {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .opt-hero-image-wrapper img {
    height: 380px;
  }

  .opt-hero-badge {
    top: -15px;
    right: 10px;
    width: 110px;
    height: 110px;
  }

  .opt-hero-badge span {
    font-size: 1.8rem;
  }

  .opt-proof-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .opt-proof-card {
    border-left: none;
  }

  .opt-sol-grid {
    grid-template-columns: 1fr;
  }

  .opt-why-extra-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .opt-why-left-content {
    position: relative;
    top: 0;
  }
}

@media (max-width: 480px) {

  .opt-proof-grid,
  .opt-form-grid {
    grid-template-columns: 1fr;
  }
}