  :root {
    --color-principal: #242f40;
    --color-secundario: #363636;
    --color-acento: #cab665;
    --font-sans: 'Titillium Web', sans-serif;
    --font-serif: 'Lora', serif;
  }

  body {
    font-family: var(--font-serif);
    margin: 0;
    padding: 0;
    background-color: #f7f7f7;
    color: var(--color-secundario);
  }

  header {
    background-color: var(--color-principal);
    padding: 20px;
    color: white;
    text-align: center;
    font-family: var(--font-sans);
  }

  nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 10px;
  }

  nav a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
  }

  nav a:hover {
    color: var(--color-acento);
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }

  .section-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 20px;
    border-left: 6px solid var(--color-acento);
    padding-left: 10px;
    font-family: var(--font-sans);
    color: var(--color-principal);
  }

  .news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
  }

  .news-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s;
	 text-align: center; /* Centra el contenido inline (como img) dentro del card */
  }

  .news-card:hover {
    transform: translateY(-4px);
  }

  .news-card {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.news-card img {
  display: block;
  width: 100%;
  height: 270px; /* Alto fijo */
  object-fit: cover; /* Recorta, no deforma */
  object-position: top; /* Muestra la parte superior */
}

  .news-card .content {
    padding: 15px;
  }

  .news-card .content h3 {
    font-size: 18px;
    margin: 0 0 10px;
    font-family: var(--font-sans);
    color: var(--color-secundario);
  }

  .news-card .content p {
    font-size: 14px;
    color: #555;
  }

  .events,
  .values {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  }

  .events ul,
  .values ul {
    padding-left: 20px;
    font-size: 15px;
  }

  .swiper {
    margin-top: 50px;
  }

  footer {
    background-color: var(--color-principal);
    color: white;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    font-size: 14px;
  }

  a.button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: var(--color-acento);
    color: var(--color-principal);
    text-decoration: none;
    border-radius: 4px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.3s;
  }

  a.button:hover {
    background-color: #b3a256;
  }

  .mainSwiper {
    width: 100%;
    max-height: 400px;
    overflow: hidden;
    margin-top: 0;
  }

  .mainSwiper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
    object-fit: cover;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
  }

  .logo {
    height: 60px;
  }

  .logo-link {
    text-decoration: none;
  }

  .menu-icon {
    display: none;
    font-size: 28px;
    cursor: pointer;
    color: white;
  }

  #menu-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
  }

  @media (max-width: 768px) {
    .nav-menu {
      display: none;
      flex-direction: column;
      width: 100%;
      background-color: var(--color-principal);
      position: absolute;
      top: 70px;
      left: 0;
      padding: 10px 0;
      z-index: 999;
    }

    #menu-toggle:checked + .menu-icon + .nav-menu {
      display: flex;
    }

    .menu-icon {
      display: block;
    }

    .nav-menu a {
      padding: 10px;
      text-align: center;
    }

    .quick-access {
      flex-direction: column;
      align-items: stretch;
      gap: 15px;
      padding: 0 15px;
    }

    .access-card {
      min-width: unset;
      width: 100%;
      justify-content: center;
    }

    .values-grid {
      grid-template-columns: 1fr;
      padding: 0 15px;
    }
  }

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr); /* 5 columnas iguales en pantallas grandes */
  gap: 20px;
  padding: 0 15px;
}

@media (max-width: 1024px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets/pantallas medianas */
  }
}

@media (max-width: 768px) {
  .values-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
    padding: 0 15px;
  }
}


  .value-card {
    background-color: #ffffff;
    border: 1px solid #e2e2e2;
    border-left: 5px solid var(--color-acento);
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s ease;
    flex: 1 1 0;
    text-align: center;
  }

  .value-card:hover {
    transform: translateY(-4px);
  }

  .value-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--color-acento);
  }

  .value-title {
    font-family: var(--font-sans);
    font-weight: 600;
    color: var(--color-principal);
    font-size: 16px;
    margin-bottom: 5px;
  }

  .value-data {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-secundario);
    font-family: var(--font-serif);
  }

  .update-info {
    margin-top: 25px;
    font-size: 14px;
    text-align: right;
    color: #777;
    font-style: italic;
  }

  .quick-access {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 30px 0;
  }

  .access-card {
    background-color: var(--color-acento);       /* DORADO por defecto */
	color: var(--color-principal);               /* TEXTO OSCURO por defecto */
    border: none;
    text-decoration: none;
    padding: 20px 25px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s, transform 0.2s;
    cursor: pointer;
    min-width: 230px;
    justify-content: center;
    text-align: center;
  }

	  .access-card:hover {
	  background-color: var(--color-principal);   /* AZUL al pasar el mouse */
	  color: white;                               /* TEXTO BLANCO al hover */
	}

  .access-card .icon {
    width: 24px;
    height: 24px;
  }

.access-card {
  display: flex;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
}

.access-card:link,
.access-card:visited {
  color: var(--color-principal);  /* asegura que links también respeten el color oscuro */
}

.access-card:hover:link,
.access-card:hover:visited {
  color: white;
}

	.access-card svg {
	  flex-shrink: 0;
	}

	.access-card:hover svg {
	  stroke: white; /* ícono también cambia a blanco al hacer hover */
	}

.access-card {
  appearance: none;
  -webkit-appearance: none;
}


  .modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
  }

  .modal-content.modal-iframe {
    background-color: #fff;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
  }

  .modal-content.image-modal {
    margin: 5% auto;
    padding: 10px;
    background: #fff;
    border-radius: 8px;
    max-width: 800px;
    width: 90%;
    text-align: center;
  }

  .modal-content img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    max-width: 700px;
    margin: 0 auto;
    display: block;
  }

  .modal-content h2 {
    margin-top: 0;
    font-family: var(--font-sans);
    color: var(--color-principal);
  }

  .modal iframe {
    border: none;
    width: 100%;
    height: 500px;
  }

.modal-content.modal-generic {
  background: #fff;
  margin: 2% auto;
  padding: 25px;
  border-radius: 8px;
  width: 90%;
  max-width: 720px;
  position: relative;
  font-family: var(--font-sans);
  color: var(--color-principal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.modal-content.modal-generic {
  overflow: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE 10+ */
}

.modal-content.modal-generic::-webkit-scrollbar {
  display: none; /* Chrome, Safari */
}


.modal-buttons {
  text-align: center;
  margin-top: 20px;
}

.enroll-button {
  display: inline-block;
  padding: 15px 35px !important;
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  background-color: #ff5722 !important;
  border-radius: 8px !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 6px 15px rgba(255, 87, 34, 0.4) !important;
  transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
  cursor: pointer !important;
  user-select: none !important;
}

.enroll-button:hover {
  background-color: #e64a19 !important;
  box-shadow: 0 8px 20px rgba(230, 74, 25, 0.6) !important;
}


.modal-content.modal-generic iframe {
  display: block;
  width: 100%;
  height: 82vh;
  border: none;
  overflow: hidden;
}


  .close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }

  .close:hover {
    color: var(--color-acento);
  }
  
  
  .secondary-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 8px 20px;
  border-bottom: 1px solid #ddd;
  font-family: var(--font-sans);
  font-size: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.icons-left a {
  margin-right: 15px;
  color: var(--color-principal);
  text-decoration: none;
  transition: color 0.3s;
}

.icons-left a:hover {
  color: var(--color-acento);
}

.icons-left .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}


.secondary-link.destacado {
  background-color: #d59d7c  ;
  color: #242f40 ;
  padding: 6px 12px;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.secondary-link.destacado .icon {
  stroke: white;
}

.secondary-link.destacado:hover {
  background-color: #242f40 ;
  transform: scale(1.05);
}



.menu-right a {
  margin-left: 20px;
  color: var(--color-secundario);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.menu-right a:hover {
  color: var(--color-acento);
}


.featured-section {
  margin-top: 50px;
  padding: 20px 0;
}

.featured-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.featured-card {
  background-color: #fff;
  color: var(--color-principal);
  border: 1px solid #e5e5e5;
  border-left: 5px solid var(--color-acento);
  padding: 18px;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, background-color 0.3s;
}

.featured-card:hover {
  background-color: var(--color-principal);
  color: white;
  transform: translateY(-4px);
}

.featured-card svg {
  width: 26px;
  height: 26px;
  margin-bottom: 10px;
  stroke: currentColor;
}

  /* Opcional: estilos básicos */
  .swiper {
  height: auto;
}

.swiper-slide {
  width: 100%;
  position: relative;
}


  .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: contain; /* ✅ Mostrará la imagen completa sin recortar */
  display: block;
  margin: 0 auto;
}

  .slide-caption {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    background: rgba(0,0,0,0.4);
    padding: 8px 12px;
    border-radius: 5px;
    max-width: 90%;
  }
  

	@media (max-width: 768px) {
  .swiper {
    height: auto !important;
  }

  .swiper-wrapper,
  .swiper-slide {
    height: auto !important;
  }

  .swiper-slide img {
    height: auto !important;
    width: 100%;
    object-fit: cover;
  }

  .swiper-pagination {
    bottom: 10px !important;
    position: absolute !important;
    width: 100%;
    text-align: center;
    z-index: 10;
  }
}

/* ========== Ajustes Boton INSCRIBITE ========== */

.btn-inscribite:hover {
  background-color: #d04b4b; /* o un tono más oscuro de tu acento */
}

.btn-inscribite.always-visible {
  background-color: var(--color-acento);
  color: var(--color-principal);
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  margin-left: auto;
  transition: background-color 0.3s;
}

/* Pantallas grandes: botón a la izquierda del menú */
@media (min-width: 769px) {
  .header-container {
    justify-content: flex-start;
    gap: 20px;
  }

  .btn-inscribite {
    position: static;
    order: 1;
    margin-left: 20px;
  }

  .nav-menu {
    order: 2;
  }
}



/* Responsive: menú hamburguesa en móviles */
@media (max-width: 768px) {
  .menu-icon {
    display: block;
    position: absolute;
    right: 16px;
    top: 16px;
    z-index: 1000;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    background-color: #002b5c;
    padding: 10px 0;
    z-index: 900;
  }

  #menu-toggle:checked ~ .nav-menu {
    display: flex;
  }

  .btn-inscribite {
    position: absolute;
    top: 16px;
    right: 60px; /* justo al lado izquierdo del icono hamburguesa */
    z-index: 1001;
  }
}


/* ========== Ajustes para SubMenu ========== */ 
.submenu-container {
  position: relative;
}

.submenu-toggle {
  background: none;
  border: none;
  color: white;
  font: inherit;
  padding: 0 15px;
  cursor: pointer;
}

.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #002b5c;
  padding: 10px 0;
  min-width: 180px;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999;
}

.submenu li {
  list-style: none;
}

.submenu li a {
  display: block;
  padding: 10px 20px;
  color: white;
  text-decoration: none;
}

.submenu-open {
  display: block !important;
}

.submenu li a:hover {
  background-color: #004080;
}

/* Hover en pantallas grandes */
@media (min-width: 768px) {
  .submenu-container:hover .submenu {
    display: block;
  }
}

/* Estructura del modal con aside sticky */
.modal-layout {
  display: flex;
  gap: 2rem;
}

.modal-sticky {
  flex: 0 0 300px;
  position: sticky;
  top: 1rem;
  align-self: flex-start;
}

.modal-sticky img.noticia-imagen {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 1rem;
  object-fit: cover;
}

.modal-sticky h2 {
  font-family: 'Titillium Web', sans-serif;
  font-size: 1.4rem;
  color: #233C80;
  margin: 0;
}

.noticia-container {
  flex: 1;
  font-family: 'Lora', serif;
  color: #333;
  line-height: 1.7;
}

/* Responsive para pantallas chicas */
@media (max-width: 768px) {
  .modal-layout {
    flex-direction: column;
  }

  .modal-sticky {
    position: relative;
    top: unset;
    width: 100%;
  }
}




