/* style.css */

/* ----------------------------
   Fuentes locales (ajuste rutas si aplica)
   ---------------------------- */
@font-face {
  font-family: "GothamBold";
  src: url("/assets/fonts/GothamBold.ttf") format("truetype"),
       url("/assets/fonts/Gotham-Bold.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "GothamLight";
  src: url("/assets/fonts/GothamLight.ttf") format("truetype"),
       url("/assets/fonts/Gotham-Light.otf") format("opentype");
  font-display: swap;
}

/* ----------------------------
   Variables / Base
   ---------------------------- */
:root{
  --primary:#00c4ff;
  --secondary:#051a2f;
  --bg:#051a30;
  --white:#ffffff;
  --accent:#06f3ff;

  --radius:16px;
  --radius-lg:22px;

  --shadow: 0 20px 60px rgba(0,0,0,.35);
  --shadow-soft: 0 12px 30px rgba(0,0,0,.22);

  --container: 1120px;

  --text: rgba(255,255,255,.88);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.58);

  --glass: rgba(5,26,47,.55);
  --glass2: rgba(5,26,47,.35);

  --border: rgba(6,243,255,.18);
  --border2: rgba(255,255,255,.10);

  --focus: 0 0 0 3px rgba(6,243,255,.25);
}

*{ box-sizing:border-box; }
html, body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--white);
  font-family: "GothamLight", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  overflow-x:hidden;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }

.container{
  width:min(var(--container), calc(100% - 40px));
  margin:0 auto;
}

/* ----------------------------
   Background (static + parallax suave + digital)
   ---------------------------- */
.bg{
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  overflow:hidden;
}
.bg__image{
  position:absolute;
  inset:-4%;
  background-image: url("/assets/fondo_movil.jpg");
  background-size: cover;
  background-position: center;
  filter:saturate(1.05) contrast(1.04);
  transform: translate3d(0,0,0) scale(1.02);
  will-change: transform;
}
@media (min-width: 860px){
  .bg__image{ background-image: url("/assets/fondo_escritorio.jpg"); }
}

/* Grid sutil (futurista, no invasivo) */
.bg__grid{
  position:absolute;
  inset:0;
  opacity:.08;
  background:
    linear-gradient(to right, rgba(6,243,255,.35) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(6,243,255,.35) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: translate3d(0,0,0);
}

/* Líneas animadas */
.bg__lines{
  position:absolute;
  inset:-20%;
  opacity:.22;
  background:
    repeating-linear-gradient(
      120deg,
      rgba(6,243,255,.0) 0px,
      rgba(6,243,255,.0) 36px,
      rgba(6,243,255,.25) 37px,
      rgba(6,243,255,.0) 40px
    );
  animation: drift 14s linear infinite;
  transform: translate3d(0,0,0);
}
@keyframes drift{
  from{ transform: translate3d(-2%, -2%, 0); }
  to{ transform: translate3d(2%, 2%, 0); }
}

/* Canvas matrix */
.bg__matrix{
  position:absolute;
  inset:0;
  opacity:.22;
}

/* Vignette para legibilidad */
.bg__vignette{
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(5,26,48,.10), rgba(5,26,48,.75)),
    radial-gradient(900px 600px at 90% 40%, rgba(0,196,255,.06), rgba(5,26,48,.78)),
    linear-gradient(to bottom, rgba(5,26,48,.20), rgba(5,26,48,.82));
}

/* ----------------------------
   Topbar / Navegación
   ---------------------------- */
.topbar{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(5,26,48,.40);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 14px 0;
}
.brand__logo{
  width: 150px;
  height:auto;
  opacity:.98;
}

.nav{
  position:relative;
}
.nav__toggle{
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(5,26,47,.35);
  display:grid;
  place-items:center;
  gap:5px;
  cursor:pointer;
}
.nav__toggle span{
  display:block;
  width:18px;
  height:2px;
  background: rgba(255,255,255,.86);
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__panel{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  min-width: 240px;
  background: rgba(5,26,47,.72);
  border: 1px solid rgba(6,243,255,.18);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 10px;
  display:none;
}
.nav__panel.is-open{ display:block; }
.nav__link{
  display:block;
  padding: 12px 12px;
  border-radius: 12px;
  color: rgba(255,255,255,.88);
  transition: background .2s ease, color .2s ease;
}
.nav__link:hover{
  background: rgba(6,243,255,.10);
  color: var(--white);
}
.nav__cta{
  display:block;
  margin-top: 8px;
  padding: 12px 12px;
  border-radius: 12px;
  text-align:center;
  font-family:"GothamBold", sans-serif;
  background: linear-gradient(90deg, rgba(0,196,255,.95), rgba(6,243,255,.95));
  color: rgba(5,26,48,.98);
}

@media (min-width: 980px){
  .nav__toggle{ display:none; }
  .nav__panel{
    position:static;
    display:flex !important;
    align-items:center;
    gap: 10px;
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
    min-width:auto;
  }
  .nav__link{
    padding:10px 12px;
  }
  .nav__cta{
    margin-top:0;
    padding: 10px 14px;
  }
}

/* ----------------------------
   Secciones / Tipografía
   ---------------------------- */
.section{
  padding: 64px 0;
}
.section__header{
  margin-bottom: 22px;
  max-width: 920px;
}
.section__title{
  margin:0 0 10px;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.section__subtitle{
  margin:0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Split Title (aplica colores y pesos vía spans generados en JS) */
.split-title .w1,
.split-title .w2,
.split-title .wRest{
  display:inline-block;
}
.split-title .w1{
  font-family:"GothamBold", sans-serif;
  color: var(--white);
}
.split-title .w2{
  font-family:"GothamLight", sans-serif;
  color: var(--accent);
}

/* Reglas para títulos con +2 palabras (JS aplica clase .split--multi) */
.split--multi .w1{
  color: var(--accent);
  font-family:"GothamBold", sans-serif;
}
.split--multi .w2{
  color: var(--white);
  font-family:"GothamLight", sans-serif;
}
.split--multi .wRest{
  color: rgba(255,255,255,.82);
}

/* ----------------------------
   Hero
   ---------------------------- */
.hero{
  padding-top: 38px;
}
.hero__grid{
  display:grid;
  gap: 18px;
}
.hero__kicker{
  margin:0 0 10px;
  color: rgba(6,243,255,.92);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero__title{
  font-size: 34px;
  margin: 0 0 10px;
}
.hero__lead{
  margin:0 0 16px;
  color: var(--text);
  line-height: 1.72;
  font-size: 15px;
  max-width: 62ch;
}
.hero__actions{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 18px;
}

.hero__stats{
  display:grid;
  gap: 10px;
  margin-top: 10px;
}
.stat{
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(5,26,47,.32);
  border: 1px solid rgba(255,255,255,.08);
}
.stat__value{
  display:block;
  font-family:"GothamBold", sans-serif;
  color: rgba(255,255,255,.92);
  margin-bottom: 4px;
}
.stat__label{
  display:block;
  color: var(--muted2);
  font-size: 13px;
  line-height: 1.5;
}

.hero__panel{
  margin-top: 8px;
}

@media (min-width: 980px){
  .hero__grid{
    grid-template-columns: 1.2fr .9fr;
    align-items:start;
    gap: 26px;
  }
  .hero__title{ font-size: 48px; }
  .section__title{ font-size: 36px; }
  .section{ padding: 84px 0; }
}

/* ----------------------------
   Componentes
   ---------------------------- */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(5,26,47,.25);
  color: rgba(255,255,255,.92);
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  cursor:pointer;
}
.btn:focus{ outline:none; box-shadow: var(--focus); }
.btn:hover{
  transform: translateY(-1px);
  border-color: rgba(6,243,255,.26);
  box-shadow: 0 16px 34px rgba(0,0,0,.22);
}
.btn--primary{
  border: 1px solid rgba(6,243,255,.35);
  background: linear-gradient(90deg, rgba(0,196,255,.95), rgba(6,243,255,.95));
  color: rgba(5,26,48,.98);
  font-family:"GothamBold", sans-serif;
}
.btn--ghost{
  background: rgba(5,26,47,.18);
  border-color: rgba(255,255,255,.14);
}
.btn--block{ width:100%; }

/* Glass panel */
.glass{
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(5,26,47,.60), rgba(5,26,47,.32));
  border: 1px solid rgba(6,243,255,.18);
  box-shadow: var(--shadow);
}
.glass__title{
  margin:0 0 8px;
  font-size: 18px;
}
.glass__text{
  margin:0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

/* Forms */
.form{ display:grid; gap: 12px; }
.form__row{ display:grid; gap: 12px; }
@media (min-width: 720px){
  .form__row{ grid-template-columns: 1fr 1fr; }
}
.field{
  display:grid;
  gap: 6px;
}
.field__label{
  font-size: 12px;
  color: rgba(255,255,255,.72);
  letter-spacing: .02em;
}
.field__input{
  width:100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(5,26,47,.25);
  color: rgba(255,255,255,.92);
  font-family: "GothamLight", sans-serif;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.field__input:focus{
  outline:none;
  border-color: rgba(6,243,255,.35);
  box-shadow: var(--focus);
  background: rgba(5,26,47,.35);
}
.field__input--area{ resize: vertical; min-height: 120px; }
.form__hint{
  margin:0;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,.60);
}

/* ----------------------------
   Servicios (cards)
   ---------------------------- */
.cards{
  display:grid;
  gap: 14px;
}
.card{
  position:relative;
  padding: 16px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(5,26,47,.55), rgba(5,26,47,.30));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 10px 22px rgba(0,0,0,.20);
  overflow:hidden;
  transform: translateZ(0);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(600px 220px at 20% 0%, rgba(6,243,255,.14), transparent 58%);
  opacity:.0;
  transition: opacity .18s ease;
}
.card:hover{
  transform: translateY(-3px);
  border-color: rgba(6,243,255,.22);
  box-shadow: 0 24px 60px rgba(0,0,0,.30);
}
.card:hover::before{ opacity:1; }

.card__icon{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(6,243,255,.10);
  border: 1px solid rgba(6,243,255,.18);
  margin-bottom: 10px;
}
.card__icon img{
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}
.card__title{
  margin:0 0 8px;
  font-family:"GothamBold", sans-serif;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.card__text{
  margin:0 0 10px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
.card__link{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color: rgba(6,243,255,.92);
  font-family:"GothamBold", sans-serif;
  font-size: 13px;
}
.card__link::after{
  content:"→";
  transform: translateY(-1px);
  transition: transform .18s ease;
}
.card:hover .card__link::after{ transform: translate(2px, -1px); }

@media (min-width: 820px){
  .cards{
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (min-width: 1100px){
  .cards{
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ----------------------------
   Marquee tecnologías
   ---------------------------- */
.marquee{
  position:relative;
  margin-top: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(6,243,255,.16);
  background: rgba(5,26,47,.35);
  overflow:hidden;
  padding: 14px 0;
}
.marquee__track{
  display:flex;
  width: max-content;
  animation: marquee 18s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__track{
  animation-play-state: paused;
}
.marquee__set{
  display:flex;
  gap: 10px;
  padding: 0 14px;
}
.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(5,26,47,.22);
  color: rgba(255,255,255,.90);
  font-size: 13px;
  letter-spacing: .01em;
  white-space: nowrap;
}
.pill:nth-child(3n){
  border-color: rgba(6,243,255,.18);
  background: rgba(6,243,255,.06);
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* fades laterales */
.marquee__fade{
  position:absolute;
  top:0; bottom:0;
  width: 60px;
  pointer-events:none;
}
.marquee__fade--left{
  left:0;
  background: linear-gradient(to right, rgba(5,26,47,.95), rgba(5,26,47,0));
}
.marquee__fade--right{
  right:0;
  background: linear-gradient(to left, rgba(5,26,47,.95), rgba(5,26,47,0));
}

/* ----------------------------
   Contacto
   ---------------------------- */
.contact{
  display:grid;
  gap: 14px;
}
.contact__panel{
  padding: 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(5,26,47,.60), rgba(5,26,47,.32));
  border: 1px solid rgba(6,243,255,.16);
  box-shadow: var(--shadow-soft);
}
.contact__title{
  margin:0 0 8px;
  font-size: 18px;
}
.contact__text{
  margin:0 0 12px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}
.contact__aside{
  display:grid;
  gap: 14px;
}
.infoCard{
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(5,26,47,.30);
  border: 1px solid rgba(255,255,255,.10);
}
.infoCard__title{
  margin:0 0 10px;
  font-family:"GothamBold", sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}
.infoCard__list{
  margin:0;
  padding-left: 16px;
  color: rgba(255,255,255,.74);
  line-height: 1.7;
  font-size: 13px;
}
@media (min-width: 980px){
  .contact{
    grid-template-columns: 1.2fr .8fr;
    gap: 18px;
  }
}

/* ----------------------------
   Footer
   ---------------------------- */
.footer{
  background: var(--accent);
  color: #051a30;
  padding: 14px 0;
}
.footer__inner{
  display:flex;
  justify-content:center;
  font-family:"GothamBold", sans-serif;
  font-size: 13px;
}

/* ----------------------------
   Animaciones por scroll (IntersectionObserver)
   ---------------------------- */
.reveal{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Variante para cards (entrada más “digital”) */
.card.reveal{
  transform: translateY(18px) scale(.99);
}
.card.reveal.is-visible{
  transform: translateY(0) scale(1);
}

/* Accesibilidad: reduce motion */
@media (prefers-reduced-motion: reduce){
  .bg__lines, .marquee__track{ animation: none !important; }
  .reveal{ transition:none !important; opacity:1; transform:none; }
}

.wa-modal {
  position: fixed;
  inset: 0;
  background: rgba(5, 26, 48, 0.82);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 100;
}

.wa-modal__content {
  max-width: 420px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(5,26,47,.75), rgba(5,26,47,.45));
  border: 1px solid rgba(6,243,255,.25);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  text-align: center;
}

.wa-modal__content h3 {
  margin: 0 0 10px;
  font-family: "GothamBold", sans-serif;
}

.wa-modal__content p {
  margin: 0 0 18px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  line-height: 1.6;
}

.wa-modal__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===============================
   CLIENTES
   =============================== */

.clients {
  display: grid;
  gap: 64px;
}

.client {
  padding: 32px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(5,26,47,.55), rgba(5,26,47,.30));
  border: 1px solid rgba(6,243,255,.18);
  box-shadow: 0 24px 60px rgba(0,0,0,.30);
}

.client__logo {
  max-width: 220px;
  margin-bottom: 20px;
}

.client__logo--large {
  max-width: 260px;
}

.client__title {
  font-family: "GothamBold", sans-serif;
  margin: 0 0 6px;
}

.client__subtitle {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 15px;
}

.client__text {
  max-width: 820px;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  margin-bottom: 24px;
}

.client__video {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255,255,255,.12);
}

.client__video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===============================
   CLIENTES GRID
   =============================== */

.clients-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 900px) {
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.client-card {
  cursor: pointer;
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(5,26,47,.55), rgba(5,26,47,.30));
  border: 1px solid rgba(6,243,255,.18);
  transition: transform .25s ease, box-shadow .25s ease;
}

.client-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(0,0,0,.35);
}

.client-card img {
  max-width: 200px;
  margin-bottom: 16px;
}

.client-card h3 {
  margin: 0 0 6px;
  font-family: "GothamBold", sans-serif;
}

.client-card p {
  margin: 0 0 14px;
  color: var(--accent);
}

.metrics {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.metrics span {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(6,243,255,.12);
  border: 1px solid rgba(6,243,255,.25);
}

/* ===============================
   MODAL CLIENTE
   =============================== */

.client-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 200;
}

.client-modal.active {
  display: block;
}

.client-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,26,48,.85);
  backdrop-filter: blur(6px);
}

.client-modal__content {
  position: relative;
  max-width: 960px;
  margin: 5vh auto;
  padding: 32px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(5,26,47,.75), rgba(5,26,47,.45));
  border: 1px solid rgba(6,243,255,.25);
  box-shadow: 0 40px 100px rgba(0,0,0,.45);
}

.client-modal__close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 32px;
  color: #fff;
  cursor: pointer;
}

/* Video */
.client-modal iframe {
  width: 100%;
  height: 420px;
  border-radius: 18px;
  border: none;
}
/* ===============================
   MÉTRICAS DE CLIENTE
   =============================== */

.client__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}

.metric {
  padding: 14px;
  border-radius: 14px;
  background: rgba(5,26,47,.35);
  border: 1px solid rgba(255,255,255,.10);
  text-align: center;
}

.metric__value {
  display: block;
  font-family: "GothamBold", sans-serif;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 4px;
}

.metric__label {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}
.client__logo--white-bg {
  background: #ffffff;
  padding: 16px;
  border-radius: 14px;
  display: inline-block;
}
.client__logo--shadow {
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.45));
}
.client__video::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3%;
  background: #051a30;
  z-index: 2;
  pointer-events: none;
}
/* ===============================
   FIX VIDEOS EN MÓVIL
   =============================== */

@media (max-width: 768px) {
  .client__video {
    min-height: 200px;
  }

  .client__video iframe {
    min-height: 200px;
  }
}
/* ===============================
   TARJETAS DE MÓDULOS CORE
   =============================== */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.service-card {
  padding: 26px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(5,26,47,.6), rgba(5,26,47,.35));
  border: 1px solid rgba(6,243,255,.18);
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
  transition: transform .35s ease, box-shadow .35s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 70px rgba(0,0,0,.45);
}

.service-card h3 {
  font-family: "GothamBold", sans-serif;
  margin-bottom: 8px;
}

.service-card p {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,.8);
}
/* ===============================
   COTIZADOR / QUOTE BOX
   =============================== */

.quote-box {
  max-width: 520px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(5,26,47,.7), rgba(5,26,47,.4));
  border: 1px solid rgba(6,243,255,.22);
  box-shadow: 0 28px 80px rgba(0,0,0,.45);
}
/* ===============================
   FORM CONTROLS PROFESIONAL
   =============================== */

.wizard select,
.wizard input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  margin: 14px 0 22px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(5,26,47,.55);
  color: #ffffff;
  font-family: "GothamLight", sans-serif;
  font-size: 14px;
  outline: none;
  transition: border-color .3s ease, box-shadow .3s ease;
}

.wizard select:focus,
.wizard input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(6,243,255,.15);
}

.wizard select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #06f3ff 50%),
    linear-gradient(135deg, #06f3ff 50%, transparent 50%);
  background-position:
    calc(100% - 20px) 50%,
    calc(100% - 14px) 50%;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}
.wpage {
  display: none;
  text-align: center;
}

.wpage.active {
  display: block;
}

.wpage h3 {
  margin-bottom: 10px;
}
/* ===============================
   CLIENTES - INDEX
   =============================== */

.clients-summary {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.clients-summary p {
  margin-bottom: 20px;
  color: rgba(255,255,255,.85);
}

.clients-carousel {
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clientsLoop 30s linear infinite;
}

.clients-set {
  display: flex;
  align-items: center;
  gap: 60px;
  padding-right: 60px;
}

.clients-set img {
  max-height: 64px;
  opacity: .9;
  filter: grayscale(100%);
  transition: opacity .3s ease, filter .3s ease;
}

.clients-set img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

@keyframes clientsLoop {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===============================
   CORE - INDEX
   =============================== */

.core-highlight {
  max-width: 900px;
  margin: 0 auto;
  padding: 36px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(5,26,47,.7), rgba(5,26,47,.45));
  border: 1px solid rgba(6,243,255,.22);
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
}

.core-text h3 {
  font-family: "GothamBold", sans-serif;
  margin-bottom: 10px;
}

.core-text p {
  max-width: 720px;
  margin-bottom: 26px;
  color: rgba(255,255,255,.85);
  line-height: 1.7;
}

.core-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
/* ===============================
   LOGOS CLIENTES - CARRUSEL
   =============================== */

.client-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
}

.client-logo img {
  max-height: 64px;
  width: auto;
  display: block;
}

/* Fondo blanco (Clínica Ávila, Ekkoer) */
.client-logo--white {
  background: #ffffff;
}

/* Sombra elegante (Global Aviation) */
.client-logo--shadow {
  filter: drop-shadow(0 8px 20px rgba(0,0,0,.45));
}

.bg,
.bg * {
  pointer-events: none !important;
}

/* ===============================
   SPLASH SCREEN
   =============================== */

body.splash-active {
  overflow: hidden;
}

.splash {
  position: fixed;
  inset: 0;
  background: radial-gradient(
    circle at center,
    #051a30 0%,
    #051a2f 60%,
    #030f1d 100%
  );
  display: grid;
  place-items: center;
  z-index: 9999;
  transition: opacity .8s ease, visibility .8s ease;
}

.splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash__content {
  position: relative;
  text-align: center;
}

.splash__logo {
  width: 220px;
  animation: splash-logo 2.4s ease forwards;
  z-index: 2;
}

.splash__pulse {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  border: 2px solid #06f3ff;
  opacity: 0;
  animation: splash-pulse 2.4s ease forwards;
}

@keyframes splash-logo {
  0% {
    opacity: 0;
    transform: scale(.85);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(0);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes splash-pulse {
  0% {
    opacity: 0;
    transform: scale(.6);
  }
  40% {
    opacity: .8;
  }
  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

/* ===============================
   SPLASH MOBILE FIX
   =============================== */

html.splash-active,
body.splash-active {
  overflow: hidden !important;
  height: 100%;
  touch-action: none;
}

.splash.hidden {
  pointer-events: none;
}

/* ===============================
   SPLASH CONTENT VISIBILITY FIX
   =============================== */

/* Oculta el sitio mientras el splash está activo */
html.splash-active body > *:not(#splash) {
  opacity: 0;
  pointer-events: none;
}

/* Muestra el sitio cuando el splash termina */
html:not(.splash-active) body > *:not(#splash) {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .6s ease;
}


/* ===============================
   CHATBOT WIDGET
   =============================== */

.chatbot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  font-family: "GothamLight", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.chatbot__fab {
  border: 1px solid rgba(6,243,255,.25);
  background: rgba(5,26,47,.75);
  color: rgba(255,255,255,.92);
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  box-shadow: 0 18px 46px rgba(0,0,0,.35);
  transition: transform .2s ease, border-color .2s ease;
}

.chatbot__fab:hover { transform: translateY(-2px); border-color: rgba(6,243,255,.45); }
.chatbot__fab.is-hidden { display: none; }
.chatbot__fab.nudge { animation: chatNudge .35s ease-in-out 0s 3; }
@keyframes chatNudge { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-4px)} }

.chatbot__panel {
  width: min(360px, calc(100vw - 24px));
  height: min(520px, calc(100vh - 24px));
  background: linear-gradient(180deg, rgba(5,26,47,.95), rgba(5,26,47,.95));
  border: 1px solid rgba(6,243,255,.22);
  border-radius: 22px;
  box-shadow: 0 30px 90px rgba(0,0,0,.45);
  overflow: hidden;
  display: none;
}

.chatbot__panel.is-open { display: grid; grid-template-rows: auto 1fr auto auto; }

.chatbot__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.chatbot__status {
  font-size: 12px;
  color: rgba(255,255,255,.70);
  margin-top: 2px;
}

.chatbot__close {
  background: none;
  border: none;
  color: rgba(255,255,255,.9);
  font-size: 24px;
  cursor: pointer;
}

.chatbot__messages {
  padding: 14px;
  overflow: auto;
  display: grid;
  gap: 10px;
}

.chatbot__msg {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.45;
  font-size: 13px;
}

.chatbot__msg.bot {
  background: rgba(6,243,255,.10);
  border: 1px solid rgba(6,243,255,.18);
  color: rgba(255,255,255,.92);
  justify-self: start;
}

.chatbot__msg.user {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.92);
  justify-self: end;
}

.chatbot__quick {
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.chatbot__chip {
  border-radius: 999px;
  border: 1px solid rgba(6,243,255,.22);
  background: rgba(6,243,255,.08);
  color: rgba(255,255,255,.92);
  padding: 8px 10px;
  font-size: 12px;
  cursor: pointer;
}

.chatbot__input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.chatbot__input input {
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(5,26,47,.35);
  color: rgba(255,255,255,.92);
  padding: 10px 12px;
  outline: none;
}

.chatbot__input button {
  border-radius: 14px;
  border: 1px solid rgba(6,243,255,.25);
  background: linear-gradient(90deg, rgba(0,196,255,.95), rgba(6,243,255,.95));
  color: rgba(5,26,48,.98);
  padding: 10px 12px;
  cursor: pointer;
  font-family: "GothamBold", sans-serif;
}

