.hero-demo {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 90px 0 50px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 22, 38, 0.82) 0%, rgba(6, 22, 38, 0.64) 40%, rgba(6, 22, 38, 0.30) 100%),
    url('../img/banners/fondo_admision.jpg') center center / cover no-repeat;
}

/* Capa de profundidad */
.hero-demo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(11, 115, 201, 0.18), transparent 30%),
    radial-gradient(circle at 75% 75%, rgba(2, 81, 162, 0.14), transparent 25%),
    linear-gradient(to top, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.03));
  pointer-events: none;
}

/* Línea decorativa sutil */
.hero-demo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: linear-gradient(to right, rgba(0,0,0,1), rgba(0,0,0,0.18));
  opacity: 0.18;
  pointer-events: none;
}

.hero-demo .contenedor {
  position: relative;
  z-index: 2;
  width: min(100% - 32px, 1320px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 140px);
  text-align: center;
}

.hero-demo-contenido {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* Título principal */
.hero-demo h1 {
  margin: 0 auto 14px;
  width: 100%;
  max-width: 1200px;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: -2.5px;
  color: #ffffff;
  text-align: center;
  text-wrap: balance;
}

.hero-demo h1 span {
  display: block;
  margin-top: 10px;
  color: #7ed0ff;
  font-weight: 900;
  text-shadow:
    0 0 12px rgba(126, 208, 255, 0.16),
    0 0 24px rgba(126, 208, 255, 0.08);
}

/* Subtítulo */
.hero-demo-subtitulo {
  max-width: 760px;
  margin: 0 auto 24px;
  font-size: clamp(1rem, 1.25vw, 1.1rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.88);
  text-align: center;
}

/* Badges */
.hero-demo-destacado {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 24px;
}

.hero-demo-badge {
  min-width: 220px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid #35b7ff;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
  text-align: left;
}

.hero-demo-badge strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #ffffff;
}

.hero-demo-badge span {
  display: block;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
}

/* Botones */
.hero-demo-botones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-btn {
  min-height: 54px;
  padding: 0 28px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.hero-btn-principal {
  background: linear-gradient(135deg, #0251A2 0%, #0b73c9 100%);
  color: #fff;
  box-shadow: 0 16px 34px rgba(2, 81, 162, 0.30);
}

.hero-btn-principal:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 38px rgba(2, 81, 162, 0.40);
}

.hero-btn-secundario {
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(8px);
}

.hero-btn-secundario:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.30);
}

/* Tablet */
@media (max-width: 992px) {
  .hero-demo {
    min-height: 100vh;
    padding: 80px 0 45px;
    background-position: center center;
  }

  .hero-demo .contenedor {
    width: min(100% - 24px, 1100px);
    min-height: calc(100vh - 125px);
  }

  .hero-demo-contenido {
    max-width: 100%;
  }

  .hero-demo h1 {
    max-width: 100%;
    font-size: clamp(2.5rem, 7vw, 4.8rem);
    line-height: 0.95;
    letter-spacing: -1.6px;
  }

  .hero-demo-subtitulo {
    max-width: 100%;
    margin-bottom: 22px;
  }
}

/* Móvil */
@media (max-width: 576px) {
  .hero-demo {
    padding: 70px 0 35px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(6, 22, 38, 0.82) 0%, rgba(6, 22, 38, 0.70) 45%, rgba(6, 22, 38, 0.56) 100%),
      url('../img/banners/fondo_admision.jpg') center center / cover no-repeat;
  }

  .hero-demo .contenedor {
    width: min(100% - 18px, 100%);
    min-height: calc(100vh - 100px);
    justify-content: center;
  }

  .hero-demo-contenido {
    margin: 0 auto;
    max-width: 100%;
  }

  .hero-demo h1 {
    font-size: clamp(2.15rem, 8.8vw, 3.4rem);
    line-height: 0.95;
    letter-spacing: -1px;
    margin-bottom: 12px;
  }

  .hero-demo h1 span {
    margin-top: 8px;
  }

  .hero-demo-subtitulo {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .hero-demo-destacado,
  .hero-demo-botones {
    justify-content: center;
  }

  .hero-demo-badge {
    width: 100%;
    min-width: 100%;
    text-align: left;
  }

  .hero-btn {
    width: 100%;
  }
}

@media (max-width: 380px) {
  .hero-demo {
    padding: 60px 0 28px;
  }

  .hero-demo .contenedor {
    width: min(100% - 14px, 100%);
  }

  .hero-demo h1 {
    font-size: clamp(1.95rem, 9vw, 2.8rem);
  }

  .hero-demo-subtitulo {
    font-size: 0.93rem;
  }
}