
/* =========================================================
   HERO PRINCIPAL
========================================================= */

.hero {
  position: relative;

  min-height: 100svh;
  height: auto;
  width: 100%;

  overflow: hidden;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  color: white;
}

.hero::before {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(90deg, rgba(7, 24, 35, 0.78) 0%, rgba(7, 24, 35, 0.48) 42%, rgba(7, 24, 35, 0.7) 100%),
    url('../imagenes/fondo-2.webp')
    center center/cover no-repeat;
  backdrop-filter: blur(2px);

  transform: scale(1.08);

  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 3;

  margin-top: 0;
  padding: clamp(5rem, 9vh, 7rem) 1rem 2rem;
  opacity: .96;
}

.hero-content {
  max-width: 1080px;
}

.hero-crest {
  display: block;
  width: clamp(7rem, 15vw, 11rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin: 0 auto clamp(1rem, 2.5vh, 1.5rem);
}

.hero .section-kicker {
  margin-bottom: 0.75rem;
}

.titulo-principal {
  max-width: 30ch;
  margin-inline: auto;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.12;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  color: #fff;
}

.hero-description {
  max-width: 42rem;
  margin-inline: auto;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1.6;
}

.hero .inscripcion-estado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  max-width: 100%;
  margin-top: 1.75rem;
  padding: 0.7rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--azul-institucional);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero .inscripcion-estado-indicador {
  width: 0.72rem;
  height: 0.72rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
}

.hero .inscripcion-estado--abierta {
  background: #e8f5eb;
  color: var(--verde-institucional-oscuro);
}

.hero .inscripcion-estado--cerrada,
.hero .inscripcion-estado--neutral {
  background: #eef1f4;
  color: var(--azul-institucional);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 2.25rem;
}

.btn-hero-primary {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.8rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-hero-primary {
  min-width: 180px;
}

/* =========================================================
   VIDEO PRESENTACION
========================================================= */

.video-container {
  position: relative;

  max-width: 900px;

  margin: auto;

  cursor: pointer;
}

.video-container video {
  width: 100%;
  border-radius: 10px;
}

.play-btn {
  position: absolute;

  top: 50%;
  left: 50%;

  transform: translate(-50%, -50%);

  background: rgba(0,0,0,0.6);

  color: white;

  font-size: 50px;

  padding: 20px 30px;

  border-radius: 50%;

  transition: 0.3s;
}

.video-container:hover .play-btn {
  background: rgba(0,0,0,0.8);

  transform:
    translate(-50%, -50%)
    scale(1.1);
}

/* =========================================================
   MAPA
========================================================= */

.bg-azul {
  background-color: #0B2C4D;
}

.item-ubicacion {
  border-bottom: 1px solid rgba(255,255,255,0.2);

  padding-bottom: 15px;
}

.item-ubicacion h5 {
  font-size: 1rem;
}

.item-ubicacion p {
  font-size: 0.9rem;
}

.ubicacion-descripcion {
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
}

.lista-urs {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.principal-ubicacion {
  margin-top: 1.5rem;
}

.ubicacion-escudo-panel {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0B2C4D, #17476B);
}

.ubicacion-escudo-panel::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  z-index: -1;
  background: url("../imagenes/escudo-escuela-hd.png") center / cover no-repeat;
  filter: blur(26px);
  opacity: 0.42;
  transform: scale(1.08);
}

.ubicacion-escudo-imagen {
  display: block;
  width: clamp(15rem, 34vw, 28rem);
  max-width: 76%;
  max-height: 76vh;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 1rem 2rem rgba(0, 0, 0, 0.3));
}

.mapa-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 400px;
  padding: 2rem;
  background: #f3f5f6;
  text-align: center;
}

.mapa-placeholder-contenido {
  max-width: 28rem;
}

.mapa-placeholder p {
  color: var(--azul-institucional);
  line-height: 1.6;
}

.hero-ubicacion .col-md-5::-webkit-scrollbar {
  width: 8px;
}

.hero-ubicacion .col-md-5::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

/* =========================================================
   PRESENTACION
========================================================= */

.presentacion {
  margin-top: 1.5pc;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--gris-fondo) 100%);
}

.presentacion h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.presentacion p {
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  line-height: 1.8;
  color: var(--texto-secundario);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (min-width: 768px) {

  .hero-ubicacion {
    height: 100vh;
    overflow: hidden;
  }

  .hero-ubicacion .col-md-5 {
    height: 100vh;
    overflow-y: auto;
  }

  .hero-ubicacion .col-md-7 {
    height: 100vh;
  }

  .ubicacion-escudo-panel {
    min-height: 100vh;
  }

}

@media (max-width: 767px) {
  .hero {
    min-height: 86svh;
    padding-top: 2rem;
  }

  .hero .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .hero-crest {
    width: clamp(7rem, 29vw, 9rem);
  }

  .titulo-principal {
    max-width: 28ch;
    font-size: clamp(1.8rem, 7vw, 2.4rem);
    line-height: 1.18;
  }

  .hero-actions {
    margin-top: 1.8rem;
  }

  .btn-hero-primary {
    width: 100%;
  }

  .hero-ubicacion {
    height: auto;
  }

  .hero-ubicacion .col-md-5,
  .hero-ubicacion .col-md-7 {
    height: auto;
  }

  .mapa-placeholder {
    height: auto;
  }

  .ubicacion-escudo-panel {
    min-height: clamp(18rem, 72vw, 26rem);
  }

  .ubicacion-escudo-imagen {
    width: clamp(13rem, 52vw, 20rem);
    max-height: none;
  }

  .bg-azul {
    padding: 2rem 1rem !important;
  }

  .presentacion {
    margin-top: 0;
  }

  .presentacion p {
    font-size: 1rem;
  }

  .video-institucional {
    max-height: 70vh;
  }

  .bloque {
    padding: 0.75rem;
  }

  .bloque img {
    height: 210px;
  }
}

@media (min-width: 1200px) {
  .hero {
    min-height: 92svh;
  }
}
