/* ===== Estilos del Banner ===== */
.banner {
  width: 100%;
  margin: -100px 0 0;
  padding: 0;
  max-height: 80vh;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16/6;
}

.bannerImg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Navegación sin JavaScript */
.no-js-header {
  background: #1a1a2e;
  padding: 1rem;
  text-align: center;
  display: none; /* Oculto por defecto, se muestra solo si hay error en JS */
}

.no-js-header h1 {
  color: white;
  font-size: 1.5rem;
  margin: 0 0 1rem 0;
}

.no-js-header nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.no-js-header a {
  color: #e0e0e0;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.no-js-header a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

/* ===== Contenedores y Layout ===== */
:root {
  --container-max-width: 1200px;
  --container-padding: 20px;
  --transition-base: 0.3s ease;
}

.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 40px var(--container-padding);
  position: relative;
}

main {
  min-height: 100vh;
  overflow: hidden;
}

/* ===== Componentes Reutilizables ===== */
.image-container {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin-bottom: 1.5rem;
  aspect-ratio: 4/3;
}

/* Contenedor de imágenes de misión */
.mission-image-container {
  max-width: 400px;
  margin: 0 auto;
}

/* Estilos para imágenes dentro de contenedores */
.image-container img,
.mission-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

.image-container:hover img,
.mission-image-container:hover img {
  transform: scale(1.05);
}

/* ===== Encabezados ===== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  color: #fff;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #6f00ff, #9d4edd);
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 4px;
  transition: all 0.3s ease;
}

.section-header h2:hover::after {
  width: 120px;
  background: linear-gradient(90deg, #9d4edd, #6f00ff);
}

/* ===== Tipografía ===== */
.container p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #f0f0f0;
  margin-bottom: 1.5rem;
  text-align: justify;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Secciones ===== */
.aboutSection,
.missionAndNews,
.news-section {
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.aboutSection {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.missionAndNews {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 100%);
}

.news-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

/* ===== Botones ===== */
:root {
  --btn-padding: 0.875rem 2.1875rem;
  --btn-radius: 30px;
  --btn-shadow: 0 4px 15px rgba(111, 0, 255, 0.3);
  --btn-hover-shadow: 0 8px 25px rgba(111, 0, 255, 0.4);
  --btn-gradient: linear-gradient(45deg, #6f00ff, #9d4edd);
  --btn-hover-gradient: linear-gradient(45deg, #7a1aff, #a94ee0);
}

.seeMore {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.25rem;
}

.seeMoreBtn {
  background: var(--btn-gradient);
  color: white;
  border: none;
  padding: var(--btn-padding);
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 1.1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  box-shadow: var(--btn-shadow);
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

.seeMoreBtn:hover {
  transform: translateY(-3px);
  box-shadow: var(--btn-hover-shadow);
  background: var(--btn-hover-gradient);
}

.seeMoreBtn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 10px rgba(111, 0, 255, 0.3);
}

.seeMoreBtn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(111, 0, 255, 0.3);
}

.seeMoreBtn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--btn-hover-gradient);
  transition: var(--transition-base);
  z-index: -1;
}

.seeMoreBtn:hover::before {
  left: 0;
}
  
/* Mission and News Section */
.missionAndNews {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  color: var(--text-light);
}

.missionAndNews::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #6f00ff, #9d4edd);
}

.missionAndNews .container {
  background-color: transparent;
  color: #fff;
  border-radius: 12px;
  padding: 50px 30px;
}

/* Accordion Styles */
.accordion-container {
  max-width: 1000px;
  margin: 50px auto 30px;
  padding: 0 20px;
  position: relative;
}

.accordion {
  margin-bottom: 25px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: var(--transition-base);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.accordion:last-child {
  margin-bottom: 0;
}

.accordion-header {
  width: 100%;
  padding: 1.375rem 1.875rem;
  background: linear-gradient(135deg, #6f00ff 0%, #ff24e5 100%);
  border: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.accordion-header:hover {
  background: linear-gradient(135deg, #7a1aff 0%, #ff33eb 100%);
  transform: translateY(-1px);
}

.accordion-header:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(111, 0, 255, 0.3);
}

.accordion-header[aria-expanded="true"] {
  background: linear-gradient(135deg, #9d4edd 0%, #6f00ff 100%);
  transform: translateY(-1px);
}

.accordion-icon {
  font-size: 1.5rem;
  font-weight: 700;
  transition: var(--transition-base);
  color: #fff;
  margin-left: 0.9375rem;
  flex-shrink: 0;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  background: rgba(30, 30, 50, 0.8);
}

.accordion-body {
  padding: 1.5625rem 1.875rem;
  padding: 30px;
}

/* List Items */
.list-item {
  display: flex;
  align-items: flex-start;
  padding: 20px 25px;
  margin-bottom: 15px;
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid #6f00ff;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.list-item:last-child {
  margin-bottom: 0;
}

.list-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.05);
}

.item-badge {
  background: linear-gradient(135deg, #6f00ff 0%, #9d4edd 100%);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  margin-right: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  box-shadow: 0 2px 8px rgba(111, 0, 255, 0.3);
  transition: all 0.3s ease;
}

.list-item:hover .item-badge {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(111, 0, 255, 0.4);
}

/* Footer Styles */
.logoImgFooter {
  height: 150px;
  width: auto;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.logoImgFooter:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 8px rgba(157, 78, 221, 0.4));
}

.item-text {
  color: #f0f0f0;
  line-height: 1.7;
  flex: 1;
  font-size: 1.05rem;
  position: relative;
  padding-right: 15px;
}

.item-text strong {
  color: #fff;
  font-weight: 600;
  position: relative;
  transition: color 0.3s ease;
}

.item-text strong::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #9d4edd;
  transition: width 0.3s ease;
}

.list-item:hover .item-text strong::after {
  width: 100%;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .list-item {
    flex-direction: row;
    align-items: flex-start;
    padding: 18px 20px;
  }
  
  .item-badge {
    width: 28px;
    height: 28px;
    font-size: 0.9rem;
    margin-right: 15px;
  }
  
  .item-text {
    font-size: 1rem;
    line-height: 1.6;
  }
  
  .accordion-title {
    font-size: 1.2rem;
  }
  
  .accordion-header {
    padding: 18px 20px;
  }
}

/* Estilos para las imágenes de la sección Misión */
.missionImages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  justify-items: center;
}
  
  .mission-image-container {
    width: 100%;
    max-width: 400px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .mission-image-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  }
  
  .mission-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
  
  .mission-image-container:hover img {
    transform: scale(1.05);
  }

  /* ===== Sección de Noticias ===== */
  .news-section {
    --news-padding-y: 3.75rem; /* 60px */
    --news-padding-x: 0;
    --card-max-width: 75rem; /* 1200px */
    --card-padding: 1.875rem; /* 30px */
    --card-padding-lg: 4.375rem; /* 70px */
    --image-height: 28.125rem; /* 450px */
    --image-height-sm: 18.75rem; /* 300px */
    
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: var(--news-padding-y) var(--news-padding-x);
    position: relative;
    color: var(--text-light);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, #6f00ff, #9d4edd, #6f00ff);
    border-image-slice: 1;
  }
  
  .news-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-gradient);
  }

  /* Tarjeta de Noticias */
  .news-card {
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-border: 1px solid rgba(255, 255, 255, 0.1);
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --card-hover-shadow: 0 8px 30px rgba(111, 0, 255, 0.3);
    
    background: var(--card-bg);
    border-radius: 0.625rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-base);
    max-width: var(--card-max-width);
    width: 95%;
    margin: 1.875rem auto;
    position: relative;
    backdrop-filter: blur(10px);
    border: var(--card-border);
    will-change: transform, box-shadow;
  }

  .news-card:hover {
    transform: translateY(-0.3125rem);
    box-shadow: var(--card-hover-shadow);
    border-color: rgba(157, 78, 221, 0.3);
  }

  .news-image-container {
    position: relative;
    overflow: hidden;
    height: var(--image-height);
    aspect-ratio: 16/9;
  }
  
  .news-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
    will-change: transform;
  }

  /* Contenido de la tarjeta */
  .news-content {
    padding: var(--card-padding);
  }
  
  .news-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.625rem;
    line-height: 1.3;
    color: #fff;
  }

  .news-content p {
    margin-bottom: 0.625rem;
    font-size: 1.2rem;
    line-height: 1.5;
    color: #f0f0f0;
  }

  .news-date {
    --date-bg: rgba(255, 0, 255, 0.9);
    --date-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: var(--date-bg);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: var(--date-shadow);
    z-index: 1;
  }
  
  /* Media Queries */
  @media (max-width: 62rem) {
    .news-card {
      width: 90%;
    }
  }
  
  @media (max-width: 48rem) {
    .news-image-container {
      height: var(--image-height-sm);
    }
    
    .news-content {
      padding: 1.5rem;
    }
    
    .news-content h3 {
      font-size: 1.3rem;
    }
    
    .news-content p {
      font-size: 1.1rem;
    }
  }
  
  @media (min-width: 48rem) {
    .news-content {
      padding: var(--card-padding-lg);
    }
  }

  /* Estilos del botón Leer más */
  .read-more {
    display: inline-flex;
    align-items: center;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin-top: 10px;
    padding: 6px 16px;
    border: 2px solid #ff00f750;
    border-radius: 30px;
  }
  
  .read-more:hover {
    background: rgba(255, 0, 255, 0.1);
    padding: 8px 25px 8px 20px;
  }

  .read-more .arrow {
    margin-left: 8px;
    transition: transform 0.3s ease;
  }
  
  .read-more:hover .arrow {
    transform: translateX(5px);
  }

  /* Media Queries para Responsive */
  @media (min-width: 992px) {
    .news-card {
      flex-direction: row;
      max-height: 600px;
      margin: 40px auto;
    }
    .news-image-container {
      flex: 1;
      height: auto;
    }
    .news-content {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: 50px 60px;
    }
    .news-title {
      font-size: 3rem;
      margin-bottom: 30px;
    }
  }

  @media (max-width: 991px) {
    .news-image-container {
      height: 300px;
    }
    .news-title {
      font-size: 2.2rem;
      margin-bottom: 20px;
    }
    .news-content {
      padding: 25px 20px;
    }
  }

/* Responsive Design */
@media (max-width: 767px) {
  .banner {
    aspect-ratio: 16/9;
    margin-top: -80px;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .container {
    padding: 30px 15px;
  }
  
  .accordion-body {
    padding: 20px;
  }
  
  .missionAndNews .container {
    padding: 30px 15px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .main-nav li {
    margin: 5px 10px;
  }
  
  .container {
    padding: 0 20px;
  }
}

/* End of responsive styles */