/* ==========================================
   VARIABLES Y ESTILOS GLOBALES
   ========================================== */
:root {
  --color-verde-claro: #17A899;
  --color-verde-medio: #058181;
  --color-amarillo: #ECA00B;
  --color-magenta: #C01A7A;
  --color-verde-oscuro: #026567;
  --color-titulo: #353535;
}

@font-face {
  font-family: 'Sink';
  src: url('../fonts/sink-webfont.woff2') format('woff2'),
       url('../fonts/sink-webfont.woff') format('woff');  
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  background-color: #ffffff;
  color: #333333;
  overflow-x: hidden;
}

.font-sink {
  font-family: 'Sink', 'DM Sans', sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

/* ==========================================
   1. HEADER Y NAVEGACIÓN
   ========================================== */
.site-header {
  width: 100%;
  background-color: #ffffff;
  padding: 20px 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.logo-container img {
  height: 28px;
  width: auto;
  display: block;
}

.nav-container {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > li {
  list-style: none;
}

.nav-menu .nav-link {
  text-decoration: none;
  color: var(--color-verde-oscuro) !important;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700 !important;
  font-size: 1rem;
}

.nav-menu .nav-link:hover {
  color: var(--color-verde-claro) !important;
}

.btn-inscribite {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--color-verde-oscuro);
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  display: inline-block;
  transition: background-color 0.2s ease;
}

.btn-inscribite:hover {
  background-color: var(--color-magenta);
}


/* ==========================================
   DESPLEGABLE EXPERIENCIAS (DESKTOP)
   ========================================== */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.arrow-icon {
  font-size: 0.75rem;
  transition: transform 0.25s ease;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #ffffff;
  min-width: 190px;
  border-radius: 16px;
  padding: 10px 0;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-in-out;
  z-index: 100;
}

.nav-dropdown-menu,
.nav-dropdown-menu li {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #353535;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover {
  background-color: #f6f6f6;
  color: var(--color-verde-oscuro);
}

@media (min-width: 769px) {
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-dropdown:hover .arrow-icon {
    transform: rotate(180deg);
  }
}

/* ==========================================
   ADAPTACIÓN MOBILE (MENÚ HAMBURGUESA)
   ========================================== */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.mobile-menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #353535;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  /* Header ligeramente más alto en mobile */
  .site-header {
    padding: 20px 24px; 
  }

  .logo-container img {
    height: 28px; /* Un toque más alto para acompañar */
  }

  .mobile-menu-toggle {
    display: flex;
  }

  /* Menú desplegable lateral corregido */
  .nav-container {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background-color: #ffffff;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    padding: 100px 28px 40px 28px; /* Más espacio arriba para dar aire */
    box-sizing: border-box;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    align-items: flex-start;
  }

  .nav-container.active {
    right: 0;
  }

  /* Espaciado entre items del menú más amplio */
  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px; /* Aumentamos el espacio vertical entre enlaces */
    width: 100%;
  }

  .nav-link {
    font-size: 1.1rem; /* Texto un poquito más legibles en pantallas chicas */
  }

  /* Botón Inscribite en mobile con más presencia */
  .btn-inscribite {
    width: 100%;
    text-align: center;
    padding: 14px 24px; 
    margin-top: 10px;
  }

  .nav-dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: #f8f8f8;
    border-radius: 12px;
    margin-top: 12px;
    width: 100%;
    display: none;
    padding: 10px 0;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav-dropdown.open .arrow-icon {
    transform: rotate(180deg);
  }

  .nav-dropdown-menu a {
    text-align: left;
    padding: 12px 18px;
    font-size: 0.95rem;
  }
}


/* ==========================================
   10. FOOTER
   ========================================== */
.site-footer {
  width: 100%;
  background-color: #026567;
  color: #ffffff;
}

.footer-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 35px 20px;
}

.footer-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-semana21 {
  font-family: 'Sink', 'DM Sans', sans-serif;
  font-size: 2.2rem;
  letter-spacing: -1px;
  color: #ffffff;
}

.logo-semana21 .color-21 {
  color: #ECA00B;
}

.logo-siglo21 {
  height: 38px;
  width: auto;
}

.logo-siglo21-text {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.footer-bottom {
  background-color: #014c4e;
  text-align: center;
  padding: 14px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-bottom p{
  color: #fff;
  margin: 0;
}