/* -------------------------------------------------- */
/* RESET BÁSICO                                        */
/* -------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* -------------------------------------------------- */
/* ESTILOS GENERALES                                   */
/* -------------------------------------------------- */
body {
  font-family: Arial, sans-serif;
  background-color: #f9f9f9; /* Fondo gris clarito */
  color: #333;
  line-height: 1.6;
}

/* -------------------------------------------------- */
/* HEADER                                              */
/* -------------------------------------------------- */
header {
  position: fixed;
  top: 0; 
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, #f4aa0a 0%, #f7cf70 100%);
  z-index: 999;
  transition: height 0.3s ease, padding 0.3s ease;
  height: 100px;
}

.header-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  padding: 0 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-onu {
  height: 80px;
  transition: height 0.3s ease, transform 0.3s ease;
}
.logo-pacto {
  height: 60px;
  transition: height 0.3s ease, transform 0.3s ease;
}

/* Al hacer scroll, reducimos un poco la altura */
header.scrolled {
  height: 60px;
  padding: 0 2rem;
}
header.scrolled .logo-onu {
  height: 50px; 
}
header.scrolled .logo-pacto {
  height: 40px; 
}

/* -------------------------------------------------- */
/* MENÚ DE NAVEGACIÓN                                  */
/* -------------------------------------------------- */
.nav-menu {
  position: absolute;
  top: 50%;
  right: 2rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;   
  gap: 1.5rem;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-menu a {
  display: inline-block;
  padding: 0.6rem 1rem; 
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.nav-menu a:hover {
  background-color: #fff;
  color: #f4aa0a;
}

/* -------------------------------------------------- */
/* AJUSTE MÁRGENES PARA NO TAPAR CONTENIDO CON HEADER  */
/* -------------------------------------------------- */
.hero,
.description,
.expectativas,
.registro-section,
.image-section {
  margin-top: 100px; /* Evita que el header tape el contenido */
}

/* -------------------------------------------------- */
/* SECCIÓN HERO                                        */
/* -------------------------------------------------- */
.hero {
  text-align: center;
  background-color: #fff;
  padding: 3rem 0;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  color: #f9a825;
  margin-bottom: 0.5rem;
}

.hero h2 {
  font-size: 1.5rem;
  font-style: italic;
  color: #f9a825;
  margin-bottom: 2rem;
}

.hero-logo {
  width: 160px;
  height: auto;
  margin-bottom: 2rem;
}

.hero-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-left: 3rem;
}

.hero-divider {
  width: 6px;
  height: 60px;
  background-color: #f9a825;
}

.hero-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.hero-date {
  font-size: 1.5rem;
  font-weight: bold;
  color: #f9a825;
}
.hero-date span {
  display: block;
  font-size: 1rem;
  font-style: italic;
  margin-top: 0.2rem;
}

.hero-right {
  text-align: left;
}

.hero-time {
  font-size: 1.6rem;
  font-weight: bold;
  color: #f9a825;
  margin-bottom: 0.2rem;
}

.hero-location {
  font-size: 1rem;
  font-style: italic;
  color: #f9a825;
  margin: 0;
  line-height: 1.4;
}

/* -------------------------------------------------- */
/* BOTONES                                             */
/* -------------------------------------------------- */
.agenda-btn,
.registro-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #f4aa0a;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.agenda-btn:hover,
.registro-btn:hover {
  background-color: #dc9000;
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* -------------------------------------------------- */
/* SECCIÓN DESCRIPCIÓN                                 */
/* -------------------------------------------------- */
.description {
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

.description p {
  color: #555;
  margin-bottom: 1rem;
  font-size: 1rem;
  text-align: justify;
}

/* -------------------------------------------------- */
/* SECCIÓN EXPECTATIVAS (TARJETAS)                     */
/* -------------------------------------------------- */
.expectativas {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 1rem;
  text-align: center;
}

.expectativas h2 {
  margin-bottom: 2rem;
  color: #333;
}

/* Contenedor de tarjetas */
.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
}

/* Tarjetas con color, sombra y efectos */
.card {
  background-color: #fae75c;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Efecto hover */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}

/* Titulares en las tarjetas */
.card h3 {
  margin-bottom: 0.5rem;
  color: #f4aa0a;
}

.card p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* Efecto de aparición (más animado) para cada tarjeta */
.card.fade-in {
  opacity: 0;
  transform: translateY(60px) scale(0.8);
  transition: all 0.9s ease; /* Ajusta duración y easing a tu gusto */
}

.card.fade-in.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* -------------------------------------------------- */
/* SECCIÓN REGISTRO                                    */
/* -------------------------------------------------- */
.registro-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem;
  text-align: center;
}

/* -------------------------------------------------- */
/* SECCIÓN DE IMAGEN (SÓLO ESTA PARTE FONDO BLANCO)    */
/* -------------------------------------------------- */
.image-section {
  width: 100%;
  margin: 2rem auto 0 auto; /* Eliminamos margen inferior */
  padding: 1rem;
  text-align: center;
  background-color: #fff; /* Solo aquí el fondo es blanco */
  box-sizing: border-box;
}

/* Para que se pegue al footer sin espacio extra */
.image-section figure {
  margin: 0;
  padding: 0;
}

.responsive-image {
  width: 100%;
  height: auto;
  display: block;
  max-width: 1400px;
  margin: 0 auto;
}

/* -------------------------------------------------- */
/* FOOTER (SIN ESPACIO SUPERIOR)                       */
/* -------------------------------------------------- */
footer {
  background-color: #333;
  color: #fff;
  /* Para que se una directamente a la sección anterior */
  margin-top: 0;
  padding: 1.5rem 1rem;
  text-align: center;
}

footer p {
  margin: 0.5rem 0;
}

.social-links a {
  margin: 0 0.5rem;
  color: #f4aa0a;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.social-links a:hover {
  text-decoration: underline;
  color: #fff;
}

/* -------------------------------------------------- */
/* ANIMACIÓN DE APARICIÓN AL HACER SCROLL (GENÉRICA)   */
/* -------------------------------------------------- */
/* Para cualquier elemento con .fade-in */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------------- */
/* MEDIA QUERIES PARA DISPOSITIVOS PEQUEÑOS           */
/* -------------------------------------------------- */
@media (max-width: 768px) {
  .logo-onu {
    height: 60px;
  }
  .logo-pacto {
    height: 45px;
  }
  header.scrolled .logo-onu {
    height: 40px; 
  }
  header.scrolled .logo-pacto {
    height: 30px; 
  }

  .hero-info {
    gap: 2rem;
    padding-left: 0.5rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .hero h2 {
    font-size: 1.2rem;
  }

  /* Barra de navegación oculta en tablets o según prefieras */
  .nav-menu {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  .hero h2 {
    font-size: 1rem;
  }
  .hero-time {
    font-size: 1.3rem;
  }
  .hero-location {
    font-size: 0.9rem;
  }
  .hero-date {
    font-size: 1.3rem;
  }
  .hero-date span {
    font-size: 0.9rem;
  }
  .header-container {
    justify-content: center;
  }
}
