/* ==========================================================================
   Variables y Sistema de Diseño (Jóvenes AA)
   ========================================================================== */
:root {
  /* Colores principales */
  --primary: #1d3b8a;
  --accent: #174ace;
  --green: #3ad88f;
  --white: #ffffff;
  --text: #1d1d1d;
  --bg-light: #f0f4f8;
  
  /* Fuentes */
  --font-main: 'Poppins', sans-serif;
  
  /* Espaciado y Dimensiones */
  --max-width: 1170px;
  --transition: all 0.3s ease;
  
  /* Sombras */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 12px rgba(29, 59, 138, 0.15);
  --shadow-lg: 0 10px 25px rgba(29, 59, 138, 0.2);
}

/* ==========================================================================
   1. Reset & Base
   ========================================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text);
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Accesibilidad: Estilos de foco */
*:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

/* ==========================================================================
   Utilidades y Layout (.container)
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.bg-light {
  background-color: var(--bg-light);
}

/* ==========================================================================
   2. Header & Navegación
   ========================================================================== */
.site-header {
  background-color: var(--primary);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
  padding: 10px 20px;
}

.header-logos {
  display: flex;
  align-items: center;
  gap: 30px;
}

.logo {
  height: 80px;
  width: 80px;
  object-fit: contain;
}

.nav-links ul {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--white);
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

/* Efecto de subrayado en hover */
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--white);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--white);
  border-radius: 3px;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Animación a X */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   3. Sección Hero (Inicio)
   ========================================================================== */
.hero {
  min-height: 65vh;
  background-color: #0d1b40;
  background-image: url('../assets/images/Logo 49 Aniversario.png');
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
}

.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}



.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  text-shadow: 2px 4px 10px rgba(0,0,0,0.3);
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  opacity: 0.9;
}

.btn-primary {
  display: inline-block;
  background-color: rgba(128, 128, 128, 0.7);
  color: var(--white);
  padding: 15px 45px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 1.1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: rgba(100, 100, 100, 0.85);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   4a. Layout de dos columnas (¿Quiénes Somos?)
   ========================================================================== */
.two-col-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.two-col-layout .content-text {
  padding-right: 10px;
}

.two-col-layout .content-image {
  position: relative;
}

.two-col-layout .content-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.two-col-layout .content-image .image-caption {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  font-size: 0.8rem;
  border-radius: 4px;
  color: var(--text);
  font-weight: 500;
}

/* ==========================================================================
   4b. Sección de Videos
   ========================================================================== */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.video-card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.video-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.video-card h3 {
  padding: 15px 20px;
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
}

.video-card .video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-card .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   4. Secciones de Contenido y Componentes
   ========================================================================== */
.section-title {
  text-align: center;
  color: var(--primary);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--green);
  border-radius: 2px;
}

.content-card {
  background-color: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.content-card:hover {
  box-shadow: var(--shadow-md);
}

.content-card h3 {
  color: var(--accent);
  margin-bottom: 15px;
  font-size: 1.4rem;
}

/* Listas con viñetas personalizadas */
.custom-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
}

.custom-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--green);
  font-size: 1.5rem;
  font-weight: bold;
}

/* ==========================================================================
   5. Acordeón (Preguntas Frecuentes)
   ========================================================================== */
.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.accordion-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.1rem;
  transition: background-color 0.3s ease;
}

.accordion-header:hover,
.accordion-header.active {
  background-color: var(--accent);
}

.accordion-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.accordion-header.active .accordion-icon {
  transform: rotate(45deg); /* Gira el '+' a 'x' */
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background-color: var(--white);
  transition: max-height 0.4s ease;
}

.accordion-content-inner {
  padding: 20px 24px;
  border-top: 1px solid var(--bg-light);
}

/* ==========================================================================
   6. Contacto
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-card {
  background-color: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.contact-card h3 {
  color: var(--primary);
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  margin-bottom: 20px;
}

.contact-info-item i {
  color: var(--green);
  font-size: 1.5rem;
  margin-top: 2px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  background-color: var(--white);
  color: var(--primary);
  border-radius: 50%;
  font-size: 2.5rem;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.social-links a:hover {
  transform: scale(1.1);
  background-color: var(--green);
  color: var(--white);
}

.map-container {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer {
  background-color: var(--primary);
  color: var(--white);
  padding-top: 40px;
}

/* Logos circulares en el footer */
.footer-logos {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
}

.footer-logos img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.3);
  object-fit: contain;
  background: var(--primary);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
  margin-bottom: 25px;
}

.footer-info div {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-info div i {
  color: var(--green);
  width: 20px;
  text-align: center;
}

.footer-info p {
  margin-top: 15px;
  font-size: 0.9rem;
  line-height: 1.6;
  opacity: 0.9;
}

.footer-social {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(62, 142, 247, 0.0);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background-color: var(--green);
  border-color: var(--green);
  color: var(--white);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ==========================================================================
   8. Utilidades y Animaciones (Fade in)
   ========================================================================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   9. Diseño Responsivo
   ========================================================================== */

/* Tablet (780px) */
@media (max-width: 780px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -5px 0 15px rgba(0,0,0,0.2);
  }

  .nav-links ul {
    flex-direction: column;
    align-items: center;
  }
  
  .nav-links.nav-active {
    right: 0;
  }
  
  .nav-links li {
    margin: 15px 0;
  }
  
  .nav-links a {
    font-size: 1.2rem;
  }
  
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .two-col-layout {
    grid-template-columns: 1fr;
  }

  .videos-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid,
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-info {
    text-align: center;
  }

  .footer-info div {
    justify-content: center;
  }
  
  .footer-social {
    justify-content: center;
  }
}

/* Mobile (480px) */
@media (max-width: 480px) {
  .header-container {
    height: 80px;
  }

  .logo {
    height: 50px;
    width: 50px;
  }

  .header-logos {
    gap: 15px;
  }

  .hero {
    min-height: 50vh;
    padding-top: 100px;
    padding-bottom: 50px;
  }

  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }

  .section {
    padding: 50px 0;
  }
  
  .contact-card {
    padding: 25px;
  }
  
  .social-links {
    flex-wrap: wrap;
  }
  
  .social-link-card img {
    width: 80px;
    height: 80px;
  }

  .footer-logos img {
    width: 70px;
    height: 70px;
  }
}

/* ==========================================================================
   Secciones generales
   ========================================================================== */
.section {
  padding: 70px 0;
}

.section-white {
  background-color: var(--white);
}

.section-light {
  background-color: var(--bg-light);
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 1rem;
  margin-top: -30px;
  margin-bottom: 30px;
}

.text-muted {
  color: #666;
  font-style: italic;
}

/* Estilos para listas con viñetas verdes */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.feature-list li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--green);
  font-size: 1.5rem;
  font-weight: bold;
}

.content-card p {
  margin-bottom: 15px;
  line-height: 1.7;
}

.content-card h3 {
  color: var(--primary);
  margin-top: 20px;
  margin-bottom: 15px;
}

/* Social link cards (contact page) */
.social-link-card {
  display: inline-block;
  transition: transform 0.3s ease;
}

.social-link-card:hover {
  transform: scale(1.1);
}

.social-link-card img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

/* Accordion body padding */
.accordion-body {
  padding: 20px 24px;
}

.accordion-header {
  width: 100%;
  border: none;
  text-align: left;
  font-family: var(--font-main);
}

.accordion-title {
  flex: 1;
}
