:root{
  --bg-0:#070A12;
  --bg-1:#0B1020;
  --panel:rgba(255,255,255,.04);
  --panel-2:rgba(255,255,255,.06);
  --border:rgba(255,255,255,.10);
  --text:#F2F5FF;
  --muted:rgba(242,245,255,.75);
  --muted-2:rgba(242,245,255,.58);
  --blue:#27A3FF;
  --blue-2:#0B5BFF;
  --red:#FF2E63;
  --red-2:#FF003D;
  --shadow: 0 20px 50px rgba(0,0,0,.55);
  --radius: 18px;
}

html{ scroll-behavior:smooth; }
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1000px 600px at 85% 10%, rgba(39,163,255,.22), transparent 60%),
    radial-gradient(900px 560px at 15% 15%, rgba(255,46,99,.18), transparent 55%),
    radial-gradient(900px 700px at 50% 120%, rgba(11,91,255,.16), transparent 60%),
    linear-gradient(180deg, var(--bg-0), var(--bg-1));
  min-height:100vh;
}

/* Bootstrap harmony */
.text-muted{ color:var(--muted) !important; }
.btn{ border-radius: 999px; }
.container{ max-width: 1140px; }

/* Navbar */
.navbar{
  background: rgba(7,10,18,.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 12px 0;
}
.navbar-brand{
  letter-spacing:.08em;
  font-weight:700;
  text-transform: uppercase;
  line-height: 1;
}
.logo-navbar{
  height: 68px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-logo{
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 16px;
  flex: 0 0 auto;
  filter: none;
  transform: none;
  opacity: 1;
  max-height: none;
}
.brand-logo-sm{
  width: 42px;
  height: 42px;
  border-radius: 14px;
}
.brand-mark{
  width:38px;height:38px;
  border-radius: 12px;
  background:
    radial-gradient(16px 16px at 30% 35%, rgba(255,46,99,.9), transparent 70%),
    radial-gradient(18px 18px at 70% 65%, rgba(39,163,255,.9), transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow:
    0 0 18px rgba(39,163,255,.22),
    0 0 18px rgba(255,46,99,.18);
  flex: 0 0 auto;
}
.nav-link{
  color: rgba(242,245,255,.80) !important;
  font-weight: 600;
  letter-spacing: .01em;
  position: relative;
  font-size: 1.05rem;
  padding-top: .6rem;
  padding-bottom: .6rem;
}
.nav-link:hover{ color: var(--text) !important; }
.nav-link.active{ color: var(--text) !important; }
.nav-link.active::after{
  content:"";
  position:absolute;
  left: .5rem;
  right: .5rem;
  bottom: .35rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(39,163,255,.9), rgba(255,46,99,.9));
  box-shadow: 0 0 16px rgba(39,163,255,.45);
}

/* Buttons */
.btn-primary{
  background: linear-gradient(135deg, rgba(39,163,255,1), rgba(11,91,255,1));
  border: 1px solid rgba(39,163,255,.4);
  box-shadow: 0 14px 40px rgba(39,163,255,.18);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 16px 55px rgba(39,163,255,.26); }
.btn-outline-light{
  border-color: rgba(242,245,255,.28);
  color: var(--text);
}
.btn-outline-light:hover{
  background: rgba(255,255,255,.08);
  border-color: rgba(242,245,255,.38);
  transform: translateY(-1px);
}
.btn-accent{
  background: linear-gradient(135deg, rgba(255,46,99,1), rgba(255,0,61,1));
  border: 1px solid rgba(255,46,99,.45);
  color: #fff;
  box-shadow: 0 14px 45px rgba(255,46,99,.18);
}
.btn-accent:hover{ color:#fff; transform: translateY(-1px); box-shadow: 0 18px 65px rgba(255,46,99,.26); }
.btn-glow{ position: relative; isolation: isolate; }
.btn-glow::before{
  content:"";
  position:absolute;
  inset:-2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(39,163,255,.85), rgba(255,46,99,.85));
  filter: blur(14px);
  opacity: .35;
  z-index:-1;
  transition: opacity .2s ease;
}
.btn-glow:hover::before{ opacity: .55; }

/* Sections */
.section{ padding: 92px 0; }
.section-sm{ padding: 70px 0; }
.page-hero{ padding: 120px 0 80px; }

/* Hero con video de fondo (solo index) — capas: video (1) → overlay (2) → contenido (3) */
.hero-video{
  position: relative;
  height: 100vh;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  overflow: hidden;
  background: var(--bg-0);
  isolation: isolate;
}
.video-bg{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
  display: block;
  visibility: visible;
  opacity: 1;
}
.hero-video .overlay{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  z-index: 2;
}
.hero-content{
  position: relative;
  z-index: 3;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}
@media (max-width: 991.98px){
  .hero-video{
    min-height: 100vh;
    height: auto;
  }
  .hero-content{
    min-height: 100vh;
    padding: 3rem 0;
  }
}
@media (prefers-reduced-motion: reduce){
  /* No ocultar el video: muchos equipos tienen esta opción activa y el hero quedaría “vacío” */
  .hero-video .overlay{
    background: rgba(0,0,0,0.72);
  }
}
.hero-title{
  font-size: clamp(2rem, 1.35rem + 2.4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.hero-subtitle{ color: var(--muted); font-size: 1.12rem; max-width: 56ch; }
.eyebrow{
  display:inline-flex;
  gap:.5rem;
  align-items:center;
  padding: .35rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  color: rgba(242,245,255,.86);
}
.eyebrow .dot{
  width:10px;height:10px;border-radius:999px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.9), rgba(39,163,255,.9));
  box-shadow: 0 0 14px rgba(39,163,255,.55);
}

.panel{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-soft{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
}
.glow-border{ position: relative; }
.glow-border::after{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: calc(var(--radius) + 1px);
  padding: 1px;
  background: linear-gradient(135deg, rgba(39,163,255,.55), rgba(255,46,99,.45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events:none;
  opacity: .75;
}

/* Cards */
.feature-card{
  height: 100%;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.10);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.feature-card:hover{
  transform: translateY(-4px);
  border-color: rgba(39,163,255,.35);
  box-shadow: 0 20px 55px rgba(0,0,0,.6);
}
/* Servicios — sección premium (página servicios) */
.section-services-premium{
  position: relative;
  padding-top: 72px;
  padding-bottom: 110px;
  overflow: hidden;
}
.section-services-premium::before{
  content:"";
  position:absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 420px at 12% 8%, rgba(39,163,255,.14), transparent 65%),
    radial-gradient(680px 400px at 92% 18%, rgba(255,46,99,.12), transparent 62%),
    radial-gradient(900px 500px at 50% 100%, rgba(11,91,255,.10), transparent 55%);
  z-index: 0;
}
.section-services-premium > .container{ position: relative; z-index: 1; }

.services-premium__header{
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 3.5rem;
}
@media (min-width: 992px){
  .services-premium__header{ margin-bottom: 4.25rem; }
}

.services-premium__badge{
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .95rem;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(242,245,255,.92);
  background: linear-gradient(135deg, rgba(39,163,255,.12), rgba(255,46,99,.10));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 0 0 1px rgba(39,163,255,.15) inset,
    0 12px 40px rgba(0,0,0,.25);
  margin-bottom: 1.35rem;
}
.services-premium__badge::before{
  content:"";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--red));
  box-shadow: 0 0 12px rgba(39,163,255,.6);
}

.services-premium__title{
  font-size: clamp(1.85rem, 1.1rem + 3.2vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin-bottom: 1.1rem;
  color: var(--text);
}
.services-premium__title .gradient-word{
  background: linear-gradient(90deg, var(--blue), rgba(255,46,99,.95));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.services-premium__subtitle{
  font-size: clamp(1.02rem, .95rem + .35vw, 1.2rem);
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 0;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* Servicios (id #servicios en servicios.html): tarjetas; ID gana especificidad frente a Bootstrap */
#servicios{
  --service-img-h: 150px;
}
@media (max-width: 991.98px){
  #servicios{
    --service-img-h: 140px;
  }
}
@media (max-width: 767.98px){
  #servicios{
    --service-img-h: 130px;
  }
}

#servicios .row{
  align-items: stretch;
}
/* min-width:0 evita que el ancho intrínseco de la imagen rompa el grid flex de Bootstrap */
#servicios .row > [class*="col-"]{
  display: flex;
  min-width: 0;
}

#servicios .service-card{
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* Solo página servicios (#servicios): fondo del recuadro — variante azul (más visible) */
  background:
    linear-gradient(165deg, rgba(39, 163, 255, 0.2) 0%, rgba(11, 91, 255, 0.12) 40%, transparent 62%),
    linear-gradient(180deg, #152a52 0%, #0f1c38 38%, #0a1020 72%, #070a12 100%);
  border: 1px solid rgba(39, 163, 255, 0.4);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 46, 99, 0.15) inset,
    0 0 20px rgba(39, 163, 255, 0.12) inset,
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 36px rgba(39, 163, 255, 0.14),
    0 0 24px rgba(255, 46, 99, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
#servicios .service-card:hover{
  transform: translateY(-6px);
  border-color: rgba(39, 163, 255, 0.65);
  box-shadow:
    0 0 0 1px rgba(255, 46, 99, 0.22) inset,
    0 0 28px rgba(39, 163, 255, 0.18) inset,
    0 20px 52px rgba(0, 0, 0, 0.5),
    0 0 48px rgba(39, 163, 255, 0.28),
    0 0 36px rgba(255, 46, 99, 0.18);
}

#servicios .service-card--accent{
  /* Solo página servicios: fondo del recuadro — variante rojo/magenta (más visible) */
  background:
    linear-gradient(195deg, rgba(255, 46, 99, 0.32) 0%, rgba(255, 0, 61, 0.12) 38%, transparent 58%),
    linear-gradient(180deg, #301820 0%, #1c1018 42%, #100a10 78%, #070a12 100%);
  border-color: rgba(255, 46, 99, 0.45);
  box-shadow:
    0 0 0 1px rgba(39, 163, 255, 0.18) inset,
    0 0 22px rgba(255, 46, 99, 0.14) inset,
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 38px rgba(255, 46, 99, 0.16),
    0 0 28px rgba(39, 163, 255, 0.1);
}
#servicios .service-card--accent:hover{
  border-color: rgba(255, 46, 99, 0.72);
  box-shadow:
    0 0 0 1px rgba(39, 163, 255, 0.22) inset,
    0 0 32px rgba(255, 46, 99, 0.2) inset,
    0 20px 52px rgba(0, 0, 0, 0.5),
    0 0 52px rgba(255, 46, 99, 0.28),
    0 0 36px rgba(39, 163, 255, 0.2);
}

#servicios .service-image-wrapper{
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--service-img-h);
  min-height: var(--service-img-h);
  max-height: var(--service-img-h);
  flex-shrink: 0;
  flex-grow: 0;
  overflow: hidden;
  border-bottom: 2px solid rgba(39, 163, 255, 0.35);
  box-shadow: 0 1px 0 rgba(255, 46, 99, 0.15);
  line-height: 0;
  box-sizing: border-box;
}
#servicios .service-card--accent .service-image-wrapper{
  border-bottom-color: rgba(255, 46, 99, 0.45);
  box-shadow: 0 1px 0 rgba(39, 163, 255, 0.2);
}
/* !important: gana a Bootstrap Reboot (img { max-width:100%; height:auto }) que dejaba la foto a tamaño natural */
#servicios .service-image{
  width: 100% !important;
  max-width: 100% !important;
  height: var(--service-img-h) !important;
  max-height: var(--service-img-h) !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center;
  display: block;
  box-sizing: border-box;
  transition: transform 0.35s ease;
}
#servicios .service-card:hover .service-image{
  transform: scale(1.03);
}

#servicios .service-card-body{
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-height: 0;
  /* Solo #servicios: fondo del bloque de texto — azul más marcado */
  background:
    linear-gradient(180deg, rgba(39, 163, 255, 0.1) 0%, transparent 35%),
    linear-gradient(180deg, rgba(18, 32, 58, 0.98) 0%, rgba(10, 16, 30, 0.98) 55%, rgba(7, 10, 18, 1) 100%);
}
#servicios .service-card--accent .service-card-body{
  /* Solo #servicios: fondo del bloque de texto — rojo más marcado */
  background:
    linear-gradient(180deg, rgba(255, 46, 99, 0.12) 0%, transparent 32%),
    linear-gradient(180deg, rgba(42, 18, 28, 0.98) 0%, rgba(22, 12, 18, 0.98) 55%, rgba(7, 10, 18, 1) 100%);
}

#servicios .service-title{
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--text);
}
@media (min-width: 992px){
  #servicios .service-title{
    font-size: 1.35rem;
  }
}

#servicios .service-text{
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.94rem;
  margin: 0 0 20px;
  flex-grow: 1;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

#servicios .btn-service{
  margin-top: auto;
  align-self: flex-start;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.15rem;
}
#servicios .btn-service.btn-outline-light{
  border-color: rgba(242, 245, 255, 0.22);
}
#servicios .btn-service.btn-outline-light:hover{
  border-color: rgba(255, 46, 99, 0.35);
  color: var(--text);
}

@media (max-width: 767.98px){
  #servicios .service-card-body{
    padding: 20px;
  }
  #servicios .service-title{
    font-size: 1.2rem;
  }
}

/* Scroll hint */
.scroll-hint{
  color: rgba(242,245,255,.62);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
  display: inline-flex;
  gap: .55rem;
  align-items:center;
}
.scroll-hint .mouse{
  width: 18px; height: 28px;
  border-radius: 12px;
  border: 1px solid rgba(242,245,255,.35);
  position: relative;
}
.scroll-hint .mouse::after{
  content:"";
  position:absolute;
  top:6px; left:50%;
  width: 3px; height: 6px;
  border-radius: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(39,163,255,1), rgba(255,46,99,1));
  animation: wheel 1.2s ease-in-out infinite;
}
@keyframes wheel{
  0%{ opacity:.2; transform: translate(-50%, 0); }
  50%{ opacity:1; transform: translate(-50%, 6px); }
  100%{ opacity:.2; transform: translate(-50%, 0); }
}

/* Forms */
.form-control{
  background: rgba(7,10,18,.55);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--text);
  border-radius: 14px;
}
.form-control::placeholder{ color: rgba(242,245,255,.45); }
.form-control:focus{
  background: rgba(7,10,18,.75);
  color: var(--text);
  border-color: rgba(39,163,255,.55);
  box-shadow: 0 0 0 .18rem rgba(39,163,255,.18);
}

/* Footer */
footer{
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(7,10,18,.55);
}
.footer-link{
  color: rgba(242,245,255,.72);
  text-decoration: none;
}
.footer-link:hover{ color: rgba(242,245,255,.92); text-decoration: underline; }

/* Motion safety */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Tiny responsive helpers */
@media (min-width: 992px){
  .w-lg-auto{ width: auto !important; }
}

