/* ===========================
   RESET BÁSICO
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main {
  width: 100%;
  position: relative;
  overflow: hidden;
}

/* ===========================
   ANIMACIONES
=========================== */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes movimientoFondo {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(10px); }
  100% { transform: translateX(0); }
}

/* ===========================
   FONDO DEL HERO
=========================== */
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: 1;
  flex-wrap: nowrap;
  animation: fadeIn 1.2s ease-out forwards;
}
.bg-section {
  width: 33.33%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  filter: brightness(0.85) contrast(1.05);
  transition: filter 0.5s ease;
  animation: fadeIn 1s ease forwards, movimientoFondo 10s linear infinite;
}
.bg-section:hover {
  filter: brightness(1) contrast(1.2);
}
.bg-section:nth-of-type(1) { animation-delay: 0s, 0s; }
.bg-section:nth-of-type(2) { animation-delay: 0.4s, 0.4s; }
.bg-section:nth-of-type(3) { animation-delay: 0.8s, 0.8s; }

/* Overlay unificado: degradado suave de azul marino a negro */
.hero-background::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background:linear-gradient(to right, rgba(3, 13, 94, 0.9), rgb(252 231 19 / 40%));
  z-index: 2;
  animation: fadeIn 1s ease forwards;
}

/* ===========================
   SECCIÓN HERO
=========================== */
.hero-section {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 50px 8%;
  color: #fff;
}
/* Línea decorativa inferior */
.hero-section::after {
  content: "";
  display: block;
  width: 100%;
  height: 8px;
  background-color: #fce713;
  position: absolute;
  bottom: 0;
  left: 0;
}

/* ===========================
   CONTENIDO PRINCIPAL (IZQ)
=========================== */
.hero-content {
  width: 60%;
  animation: fadeIn 1s ease-in-out;
  z-index: 4;
  margin-top:5%;
  margin-bottom:5%;
}
.hero-content h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 4.5rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
}

/* Slogan “Orientación Cristiano-Valórico” */
.slogan-header {
  display: inline-block;
  margin-bottom: 25px;
  padding: 10px 25px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(4px);
  border-radius: 8px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}
.slogan-header .slogan-header-text {
  font-size: 1.6rem;
  font-weight: bold;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 1px;
  margin-right: 8px;
}
.slogan-header i {
  font-size: 1.6rem;
  color: #ffca28;
}

/* Texto descriptivo */
.hero-content p {
  font-size: 1.8rem;
  margin-bottom: 30px;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
  line-height: 1.4;
}

/* Botones */
.hero-buttons {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  margin-bottom: 30px;
  align-items: center;
}
.hero-buttons .group-hor {
  display: flex;
  gap: 15px;
  flex-wrap: nowrap;
}
.hero-buttons a {
  background: #fff;
  color: #004aad;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background 0.3s, color 0.3s, transform 0.3s;
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}
.hero-buttons a:hover {
  background: #004aad;
  color: #fff;
  transform: translateY(-3px);
}
.hero-buttons a.btn-contacto {
  background: #28a745;
  color: #fff;
}
.hero-buttons a.btn-contacto:hover {
  background: #218838;
}

/* ===========================
   CONTENEDOR DE SLOGANS/IMÁGENES
=========================== */

/* Se ocultan los títulos de los slogans en todas las vistas */
.slogan-container .slogan { 
  display: none !important;
}

/* Se elimina cualquier fondo y bordes llamativos */
.slogan-container {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
  animation: fadeIn 1s ease-in-out;
  /* Sin fondo ni padding extra */
  background: none;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.slogan-wrapper {
  display: inline-block;
  text-align: center;
  margin: 10px;
  border: none;
  background: transparent;
  transition: transform 0.3s;
  padding: 0;
}
.slogan-wrapper:hover {
  transform: scale(1.03);
  /* Sin sombras marcadas */
  box-shadow: none;
}
.slogan-wrapper.academic-wrapper {
  display: none; /* oculto en todas las vistas */
}

/* Medallas */
.slogan-medalla {
  position: relative;
  display: block;
  margin: 0 auto;
  width: 160px;
  height: 160px;
  border-radius: 0%;
  border: 0px solid #ffd700;
  transition: transform 0.4s ease;
  margin-top: 10px; 
}
.slogan-medalla:hover {
  transform: scale(1.06);
}
.slogan-medalla::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  border-radius: 50%;
  border: 2px solid rgba(255, 215, 0, 0.5);
  box-shadow: 0 0 15px 3px rgba(255, 215, 0, 0.5);
}

/* ===========================
   FORMULARIO DE CONTACTO (DERECHA)
=========================== */
.contact-form {
  position: relative;
  width: 32%;
  background: rgba(255,255,255,0.88);
  padding: 30px;
  border-radius: 8px;
  color: #333;
  border: 2px solid rgba(0, 74, 173, 0.3);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: fadeIn 1s ease-in-out;
  z-index: 4;
}
.contact-form h2 {
  margin-bottom: 25px;
  color: #004aad;
  font-weight: 700;
  font-family: 'Baloo 2', cursive;
  font-size: 2.1rem;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.contact-form .form-control {
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1.1rem;
  padding: 10px;
}
.contact-form .btn-primary {
  background-color: #004aad;
  border: none;
  border-radius: 5px;
  padding: 12px 25px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s, transform 0.3s;
}
.contact-form .btn-primary:hover {
  background-color: #00337a;
  transform: translateY(-2px);
}
.form-corner-image {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 150px;
  z-index: 5;
}

/* ===========================
   RESPONSIVIDAD
=========================== */
/* Tablets y pantallas medianas */
@media (max-width: 992px) {
  body { font-size: 16px; }
  .hero-content, .contact-form {
    width: 100% !important;
    margin-bottom: 20px;
  }
  .hero-content h1 {
    font-size: 3.5rem;
  }
  .hero-content p {
    font-size: 1.6rem;
  }
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
  .contact-form {
    display: none; /* Muestra el formulario en modal en pantallas chicas */
  }
}

/* Móviles (max-width: 768px) */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .slogan-header {
    margin: 10px 0;
  }
  .slogan-container {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    flex-wrap: nowrap;
    background: none;
    backdrop-filter: none;
    padding: 0;
    box-shadow: none;
  }
  .slogan-wrapper {
    flex: 0 0 48%;
    margin: 0;
    text-align: center;
  }
  .slogan-medalla {
    width: 130px;
    height: 130px;
  }
}

/* Pantallas muy pequeñas (max-width: 480px) */
@media (max-width: 480px) {
  body { font-size: 14px; }
  .hero-section {
    padding: 20px 5%;
    height: auto;
  }
  .hero-content h1 { 
    font-size: 3rem !important;
  }
  .hero-content p { 
    font-size: 1.3rem; 
    margin-top: 10px;
    margin-bottom: 20px;
  }
  .slogan-container {
    width: 100%;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    flex-wrap: nowrap;
    background: none;
    backdrop-filter: none;
    padding: 0;
  }
  .slogan-wrapper {
    flex: 0 0 48%;
    margin: 0;
    text-align: center;
  }
  .slogan-medalla {
    width: 100px;
    height: 100px;
  }
}

/* ===========================
   MODALES
=========================== */
.custom-modal {
  border-radius: 15px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  background: #fff;
  border: none;
  padding: 20px;
}
.custom-modal .modal-header {
  border-bottom: 1px solid #e9ecef;
}
.custom-modal .modal-body {
  font-size: 1.1rem;
  line-height: 1.6;
}
