/* Fuentes personalizadas */
@font-face {
  font-family: 'Saturday Sweat';
  src: url('../fonts/Saturday Sweat.otf') format('opentype');
}

@font-face {
  font-family: 'Berlin Sans FB';
  src: url('../fonts/berlin-sans-fb-regular.ttf') format('truetype');
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #ffffff;
}

/* Encabezado */
header {
  background-color: #2f3a58;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-left: 2.5%;
  padding-right: 0;
  height: 180px;
  overflow: hidden;
  flex-wrap: nowrap;
}

header .logo {
  height: 110px;
  flex-shrink: 0;
}

header .texto-banner {
  flex-grow: 1;
  text-align: center;
  color: #fce05e;
  padding: 0 1rem;
}

header .texto-banner h1,
header .texto-banner h2 {
  margin: 0;
  font-family: 'Saturday Sweat', cursive;
  font-weight: normal;
  line-height: 1.2;
}

header .texto-banner h1 {
  font-size: 2.2rem;
}

header .texto-banner h2 {
  font-size: 1.8rem;
}

header .decoracion-derecha {
  height: 180px;
  flex-shrink: 0;
}

/* NAVBAR */
.navbar {
  background-color: #1e2b43;
  padding: 1rem 1rem;
}

.navbar .container-fluid {
  max-width: 1400px;
  margin: 0 auto;
}

.navbar-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 1rem;
}

.navbar-nav .nav-link {
  color: white !important;
  font-family: 'Berlin Sans FB', Arial, sans-serif;
  font-size: 1rem;
  font-weight: normal;
  padding: 0.5rem 1rem;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #f2e572 !important;
}

.navbar-nav .nav-link.active {
  color: #f9d63e !important;
}

/* Submenús */
.dropdown-menu {
  background-color: #1e2b43;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  min-width: 220px;
}

.dropdown-menu .dropdown-item {
  color: white;
  font-size: 0.95rem;
  padding: 0.4rem 0.75rem;
  font-weight: normal;
  transition: background-color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
  background-color: #32415f;
}

.dropdown-header {
  color: #f9d63e;
  font-size: 0.85rem;
  padding-left: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 0.25rem;
}

/* Botón hamburguesa personalizado */
.navbar-toggler {
  border: none;
  background-color: transparent;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='white' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand {
  color: white !important;
  font-family: 'Berlin Sans FB', sans-serif;
  font-size: 1rem;
}

/* Main */
main {
  margin: 2rem auto;
  padding: 1.5rem 2rem;
  width: 94%;
  line-height: 1.6;
  font-size: 1.05rem;
  color: #222;
  background-color: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

main h2 {
  color: #1e2b43;
  font-size: 1.6rem;
  margin: 1rem 0;
}

/* RESPONSIVE */
@media (min-width: 768px) and (max-width: 991px) {
  .navbar-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar-nav .nav-item {
    flex: 0 0 45%;
    text-align: center;
  }
}

@media (max-width: 767px) {
  .navbar-nav .nav-link {
    font-size: 1.05rem;
    padding: 0.6rem 1.2rem;
    text-align: center;
  }

  .dropdown-menu {
    text-align: center;
  }
}

@media (min-width: 1200px) {
  header .texto-banner h1 {
    font-size: 3rem;
  }

  header .texto-banner h2 {
    font-size: 2.4rem;
  }

  main {
    font-size: 1.2rem;
    line-height: 1.8;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  main {
    font-size: 1.15rem;
    line-height: 1.7;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (max-width: 700px) {
  header {
    height: 130px;
  }

  header .logo {
    height: 80px;
  }

  header .decoracion-derecha {
    height: 130px;
  }

  header .texto-banner h1 {
    font-size: 1.6rem;
  }

  header .texto-banner h2 {
    font-size: 1.3rem;
  }
}

@media (max-width: 480px) {
  header {
    height: 110px;
  }

  header .logo {
    height: 65px;
  }

  header .decoracion-derecha {
    height: 110px;
  }

  header .texto-banner h1 {
    font-size: 1.4rem;
  }

  header .texto-banner h2 {
    font-size: 1.1rem;
  }
}

@media (max-width: 400px) {
  header .texto-banner h1 {
    font-size: 1.2rem;
  }

  header .texto-banner h2 {
    font-size: 1rem;
  }
}
