/* ----------------------------- */
/* RESET Y BASE */
/* ----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fdfdfd;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ----------------------------- */
/* HEADER HERO */
/* ----------------------------- */
header.hero {
  position: relative;
  text-align: center;
  color: white;
  background-color: #003865;
}

.hero-img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
  filter: brightness(0.6);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  text-align: center;
  padding: 1rem;
}

.logo {
  width: 150px;
  margin: 0 auto 1rem auto;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

/* ----------------------------- */
/* BOTONES Y ENLACES */
/* ----------------------------- */
.cta-btn {
  background-color: #D9B230;
  color: #000;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.cta-btn:hover,
.cta-btn:focus {
  background-color: #b08e1c;
  transform: scale(1.03);
}

.link-interno {
  color: #D9B230;
  font-weight: 600;
  text-decoration: underline;
}

.cta-btn {
  display: inline-block;
  margin: 1rem auto;
  text-align: center;
}

p a.cta-btn, div a.cta-btn {
  display: inline-block;
  margin: 1rem auto;
  text-align: center;
}

p:has(a.cta-btn), div:has(a.cta-btn) {
  text-align: center;
}


/* ----------------------------- */
/* IDIOMAS */
/* ----------------------------- */
.idiomas {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
  z-index: 20;
  justify-content: flex-end;
  align-items: center;
}

.idiomas a img {
  width: 28px;
  border-radius: 3px;
  transition: transform 0.2s ease;
}

/* ----------------------------- */
/* CONTENIDO GENERAL */
/* ----------------------------- */
main {
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.seccion {
  margin-bottom: 3rem;
  animation: fadeIn 1s ease-in;
}

.seccion h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #003865;
}

.seccion h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #003865;
}

.seccion p,
.seccion ul,
.seccion dl {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1rem;
}

ul li,
dd {
  margin-left: 1.5rem;
}

/* ----------------------------- */
/* CARRUSEL DE SALAS */
/* ----------------------------- */
.carrusel {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.carrusel figure {
  min-width: 300px;
  scroll-snap-align: start;
  text-align: center;
}

.carrusel figcaption {
  margin-top: 0.5rem;
  font-weight: 500;
  color: #003865;
}

/* ----------------------------- */
/* MAPA */
/* ----------------------------- */
.mapa iframe {
  border: none;
  border-radius: 0.5rem;
  width: 100%;
  height: 450px;
}

/* ----------------------------- */
/* FOOTER */
/* ----------------------------- */
footer.footer {
  background-color: #003865;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.footer .enlaces {
  margin-bottom: 1rem;
}

.footer .enlaces a {
  color: #D9B230;
  margin: 0 0.8rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.footer .enlaces a:hover {
  color: #ffffff;
}

.footer .redes-sociales {
  margin-bottom: 1rem;
}

.footer .redes-sociales a {
  color: #D9B230;
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer .redes-sociales a:hover {
  color: #ffffff;
  transform: scale(1.1);
}

.footer .creditos {
  font-size: 0.9rem;
  color: #ddd;
}

.footer .creditos a {
  color: #D9B230;
  text-decoration: underline;
}

.footer .creditos a:hover {
  color: #fff;
}



/* ----------------------------- */
/* ANIMACIONES */
/* ----------------------------- */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----------------------------- */
/* RESPONSIVE DESIGN */
/* ----------------------------- */
@media (min-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .hero p {
    font-size: 1.25rem;
  }
  .carrusel {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-text {
    top: 60%;
  }

  .cta-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .idiomas {
    /*
    top: -2.25rem;
    right: -4.25rem;
    */
    }
}