/* ============ RESET & TOKENS ============ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
:root{
  --bg: #070B12;
  --surface: #0E1624;
  --surface-2: #121B2B;
  --text: #E6ECF5;
  --muted: #9FB1C7;
  --primary: #53D6FF; /* cian */
  --accent: #8C5BFF;  /* violeta */
  --danger: #FF4D6D;
  --glass: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.08);
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  --container: 1200px;
  --gap: 24px;
  --grid-gap: clamp(16px, 2vw, 28px);
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
}

body{
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(140,91,255,0.2), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(83,214,255,0.18), transparent 60%),
    var(--bg);
  line-height: 1.55;
  letter-spacing: 0.2px;
}

.container{
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* ============ ACCESSIBILITY ============ */
.sr-only{ position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); border:0; }

/* ============ HEADER ============ */
.site-header{
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(to bottom, rgba(7,11,18,.7), rgba(7,11,18,.2));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.is-scrolled{
  border-color: var(--border);
  background: rgba(7,11,18,.8);
}

.header__inner{
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}

.brand{
  display: inline-flex; gap: 10px; align-items: center; color: var(--text); text-decoration: none;
}
.brand__logo{ width: 28px; height: 28px; fill: var(--primary); }
.brand__text{ font-weight: 700; letter-spacing: .3px; }

/* Nav */
.nav__toggle{
  display: none; background: transparent; border: 0; cursor: pointer;
}
.toggle__bar{ width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

.nav__list{
  list-style: none; display: flex; gap: 22px; margin: 0; padding: 0;
}
.nav__list a{
  color: var(--text); text-decoration: none; opacity: .9;
}
.nav__list a:hover{ opacity: 1; }

/* ============ HERO ============ */
.hero{
  padding: clamp(70px, 8vw, 70px) 0 70px;
  background:
    radial-gradient(600px 400px at 80% 0%, rgba(140,91,255,0.25), transparent 60%),
    linear-gradient(180deg, rgba(14,22,36,0.6) 0%, rgba(14,22,36,0) 40%),
    var(--bg);
}
.hero__grid{
  display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--grid-gap); align-items: center;
}
.hero__title{
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.1; margin: 0 0 12px;
}
.text-gradient{
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__subtitle{
  color: var(--muted);
  font-size: clamp(16px, 1.4vw, 18px);
  margin: 10px 0 24px;
  max-width: 60ch;
}
.hero__cta{ display: flex; gap: 12px; margin-bottom: 18px; }
.hero__bullets{ margin: 14px 0 0; padding-left: 18px; color: #c9d7ea; }

.hero__visual{ position: relative; min-height: 320px; }
.grid-scan{
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(83,214,255,.25) 2px, transparent 2px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(140,91,255,.12) 2px, transparent 2px) 0 0 / 28px 100%;
  border-radius: calc(var(--radius) * 1.25);
  animation: scan 6s linear infinite;
  box-shadow: inset 0 0 0 1px var(--border);
}
@keyframes scan{
  0% { transform: translateY(0) }
  100% { transform: translateY(-28px) }
}

.card-glass{
  position: absolute; right: 10%; bottom: -10%;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  width: min(360px, 90%);
  backdrop-filter: blur(8px);
}
.metrics{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.metrics__item{ text-align: center; }
.metrics__item strong{ font-size: 20px; display: block; }
.metrics__item span{ font-size: 12px; color: var(--muted); }

/* ============ SECTIONS ============ */
.section{ padding: 80px 0; }
.section--alt{
  background:
    radial-gradient(700px 500px at 10% 20%, rgba(83,214,255,0.12), transparent 60%),
    var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section__head{ text-align: center; margin-bottom: 36px; }
.section__head h2{ font-size: clamp(22px, 3vw, 36px); margin: 0 0 6px; }
.section__head p{ color: var(--muted); margin: 0; }

/* Cards servicios */
.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap);
}
.card{
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover{ transform: translateY(-4px); border-color: rgba(83,214,255,.5); box-shadow: 0 8px 30px rgba(83,214,255,.12); }
.card__icon{ font-size: 24px; margin-bottom: 8px; }
.card__title{ margin: 6px 0 6px; font-size: 18px; }
.card__text{ color: var(--muted); margin: 0 0 10px; }
.card__list{ margin: 0; padding-left: 18px; color: #c9d7ea; }

/* Nosotros */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
}

.about__copy h2 {
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1rem;
}

.about__copy p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about__bullets {
  list-style: disc;
  padding-left: 1.5rem;
  color: #a3bffa;
}

.about__image {
  width: 100%;
  max-width: 480px;
  display: block;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(0, 153, 255, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about__image:hover {
  transform: scale(1.03);
  box-shadow: 0 0 40px rgba(0, 153, 255, 0.4);
}

/* Versión móvil */
@media (max-width: 980px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about__copy {
    order: 2;
  }

  .about__image {
    order: 1;
    max-width: 320px;
    margin: 0 auto 1.5rem;
  }
}


/* Badges */
/* ==== Certificaciones & Partners ==== */
/* ==== Certificaciones & Partners ==== */
.badges {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  justify-items: center;
  align-items: stretch;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.badge {
  width: 100%;
  text-align: center;
  padding: 18px 0;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px dashed var(--border);
  color: #dbe8ff;
  font-weight: 500;
  letter-spacing: 0.3px;
  font-size: 15px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.badge:hover {
  transform: translateY(-3px);
  border-color: rgba(83,214,255,.4);
  box-shadow: 0 6px 18px rgba(83,214,255,.12);
}



/* Contacto */
.contact .form{
  max-width: 820px; margin-inline: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 22px;
}
.form__row{ display: grid; grid-template-columns: 1fr 1fr; gap: var(--grid-gap); }
.form__field{ display: grid; gap: 8px; }
.form__field span{ font-size: 14px; color: var(--muted); }
input, textarea{
  width: 100%; padding: 12px 14px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  outline: none; transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, textarea:focus{ border-color: rgba(83,214,255,.5); box-shadow: 0 0 0 4px rgba(83,214,255,.12); }
.form__actions{ display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.form__note{ color: var(--muted); font-size: 12px; }

/* Buttons */
.btn{
  --btn-bg: var(--primary); --btn-color: #001018;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 12px 16px;
  border-radius: 12px; border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-color);
  text-decoration: none; font-weight: 600; letter-spacing: .2px;
  box-shadow: 0 6px 20px rgba(83,214,255,.24);
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}
.btn:hover{ transform: translateY(-2px); filter: brightness(1.03); box-shadow: 0 10px 26px rgba(83,214,255,.34); }
.btn--ghost{
  --btn-bg: transparent; --btn-color: var(--text);
  border-color: var(--border); box-shadow: none;
}
.btn--sm{ padding: 8px 12px; font-size: 14px; }

/* Footer */
.site-footer{
  border-top: 1px solid var(--border); background: #0a0f18; padding: 30px 0;
}
.footer__grid{
  display: grid; gap: var(--grid-gap); grid-template-columns: 1fr auto auto;
  align-items: start;
}
.brand--footer .brand__logo{ width: 24px; height: 24px; }
.footer__text{ color: var(--muted); margin: 10px 0 0; }
.footer__nav{ display: grid; gap: 8px; }
.footer__nav a{ color: var(--text); text-decoration: none; opacity: .9; }
.footer__nav a:hover{ opacity: 1; text-decoration: underline; }
.footer__legal{ display: grid; gap: 8px; justify-items: end; }
.footer__link{ color: var(--muted); text-decoration: none; }
.footer__link:hover{ text-decoration: underline; }
.brand__logo {
  width: 9.5em;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.brand--footer .brand__logo {
  width: 5.5em;
}
/* ============ REVEAL ON SCROLL ============ */
[data-reveal]{ opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-visible{ opacity: 1; transform: none; }

/* ============ RESPONSIVE ============
@media (max-width: 980px){
  .hero__grid, .about { grid-template-columns: 1fr; }
  .hero__visual{ order: -1; margin-bottom: 20px; }
  .badges{ grid-template-columns: repeat(3, 1fr); }
} */

@media (max-width: 820px){
  .cards{ grid-template-columns: 1fr 1fr; }
  .form__row{ grid-template-columns: 1fr; }
  .nav__toggle{ display: inline-block; }
  .nav__list{
    position: absolute; top: 60px; right: 16px; padding: 14px;
    display: grid; gap: 10px; min-width: 220px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    transform-origin: top right; transform: scale(.98); opacity: 0; pointer-events: none;
    transition: transform .2s ease, opacity .2s ease;
  }
  .nav__list.is-open{ opacity: 1; pointer-events: auto; transform: scale(1); }
}

@media (max-width: 540px){
  .cards{ grid-template-columns: 1fr; }
  .footer__grid{ grid-template-columns: 1fr; justify-items: start; }
}

/* ==== Ajuste del iframe Kaspersky en el hero ==== */
.hero__visual iframe {
  width: 100%;
  height: 100%;
  min-height: 480px; /* fuerza proporción vertical */
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(83,214,255,0.1);
  object-fit: cover;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 500px; /* asegura balance con el texto */
}
/* ==== Orden de columnas en versión móvil ==== */
@media (max-width: 980px) {
  /* Estructura general del hero */
  .hero__grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center; /* mejora la lectura en móvil */
  }

  .hero__copy {
    order: 1;
    padding: 0 8px;
  }

  .hero__visual {
    order: 2;
    width: 100%;
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .hero__visual iframe {
    width: 100%;
    height: 320px; /* altura optimizada para pantallas pequeñas */
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 0 18px rgba(83, 214, 255, 0.1);
  }
}
@media (max-width: 600px) {
  .badges {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .badge {
    font-size: 14px;
    padding: 14px 0;
  }
}
/* ==== Contacto (centrado total y balanceado) ==== */
.contact__grid {
  display: flex;
  justify-content: center;
  align-items: center; /* centra ambos bloques verticalmente */
  gap: 80px;
  flex-wrap: wrap;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.contact__info {
  flex: 1;
  min-width: 280px;
  max-width: 360px;
  height: 100%; /* ocupa toda la altura de su contenedor */
  display: flex;
  flex-direction: column;
  align-items: center; /* centra horizontalmente */
  justify-content: center; /* centra verticalmente */
  gap: 18px;
  text-align: center;
  font-size: 1rem;
  color: #dbe8ff;
  line-height: 1.6;
}

.contact__info p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
}

.contact__info i {
  color: var(--accent, #53d6ff);
  font-size: 1.2rem;
}

.form {
  flex: 1.3;
  min-width: 340px;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center; /* centra verticalmente el formulario también */
}

/* Responsividad */
@media (max-width: 900px) {
  .contact__grid {
    flex-direction: column;
