  :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: 30px;
    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;
  }

  .news-card:hover {
    transform: translateY(-4px);
  }

  .news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
  }

  .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;
    }
	
	#menu-toggle {
  display: none;
}

    .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-principal);
    color: white;
    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-acento);
    color: var(--color-principal);
  }

  .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: white;
}

.access-card svg {
  flex-shrink: 0;
}

.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;
  }

  .close {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
  }

  .close:hover {
    color: var(--color-acento);
  }
  
  .form-access {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px 15px;
}

.form-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  padding: 20px;
  width: 100%;
  max-width: 320px;
  box-sizing: border-box;
  text-align: center;
  flex: 1 1 300px;
}

.form-card h3 {
  margin-top: 0;
  color: var(--color-principal);
  font-family: var(--font-sans);
}

.form-card ul {
  list-style-type: disc;
  padding-left: 20px;
  text-align: center;
  font-size: 14px;
  color: #1c1c1c !important; /* 馃敼 m谩s oscuro y legible */
}


.form-card .button {
  display: inline-block;
  margin: 10px 5px 0 5px;
}


@media (max-width: 768px) {
  .form-access {
    flex-direction: column;
    align-items: center;
  }

  .form-card {
    max-width: 100%;
  }
}



/* ========== Estilo del modal ========== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  overflow: auto;
}

/* Contenedor del contenido del modal */
.modal-content {
  background-color: #fff;
  margin: 5vh auto;
  padding: 1rem;
  border-radius: 8px;
  width: 95%;
  max-width: 960px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

/* Bot贸n cerrar */
.close-modal {
  align-self: flex-end;
  font-size: 28px;
  font-weight: bold;
  color: #555;
  cursor: pointer;
}

.close-modal:hover {
  color: #000;
}

/* iFrame responsivo */
#pdfFrame {
  width: 100%;
  height: 70vh;
  border: none;
}

/* Adaptaci贸n extra para pantallas chicas */
@media (max-width: 600px) {
  .modal-content {
    padding: 0.5rem;
    margin: 2vh auto;
    width: 98%;
  }

  #pdfFrame {
    height: 60vh;
  }

  .close-modal {
    font-size: 24px;
    margin: 0.5rem;
  }
}



/* ========== ESTILO GENERAL DE LA SECCI脫N ========== */
.container {
  padding: 30px;
  background-color: #f9f9f9;
}

.section-title {
  font-family: Arial, sans-serif;
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-bottom: 30px;
}

/* ========== GRILLA DE CARDS ========== */
.form-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

/* ========== ESTILO DE CADA CARD ========== */
.category-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-left: 6px solid var(--color-acento);
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* ========== ICONO Y T脥TULO ========== */
.category-header {
  display: flex;
  align-items: center;
  gap: 15px;
}

.category-icon {
  font-size: 32px;
  color: var(--color-principal);
}

.category-icon svg {
  width: 40px;
  height: 40px;
  fill: var(--color-principal);
  transition: fill 0.3s ease;
}

.category-card:hover .category-icon svg {
  fill: var(--color-acento);
}

.category-title {
  font-family: 'Titillium Web', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--color-principal);
  margin: 0;
}

/* ========== LISTAS Y ENLACES ========== */
.category-card ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 15px 0 0;
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
}

.category-card li {
  margin-bottom: 8px;
}

.category-card a {
  font-family: 'Epilogue', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-secundario);
  text-decoration: none;
  transition: color 0.3s;
}

.category-card a:hover {
  color: #d59d7c;
}

.category-description {
  margin: 1rem 0;
  font-size: 14px;
  color: #444;
  font-style: italic;
  font-family: 'Epilogue', sans-serif;
}

/* Acorde贸n dentro de category-card */
.accordion-toggle {
  background-color: var(--color-acento); /* fondo del encabezado */
  color: var(--color-principal);         /* texto del encabezado */
  padding: 10px 15px;
  margin-top: 12px;
  cursor: pointer;
  font-family: 'Epilogue', sans-serif;
  font-size: 16px;
  border-radius: 4px;
  transition: background-color 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-toggle:hover {
  background-color: var(--color-acento); /* mismo color pero pod茅s aclarar si quer茅s un hover distinto */
  opacity: 0.9;
}

.accordion-toggle::after {
  content: "";
  font-size: 12px;
  transition: transform 0.3s;
}

.accordion-toggle.active::after {
  transform: rotate(180deg);
}

.accordion-content {
  display: none;
  padding: 10px 15px;
  background-color: #fff;
  border-left: 3px solid var(--color-acento);
  margin-top: 5px;
  font-family: 'Lora', serif;
  color: #333;
}

.accordion-content ul {
  padding-left: 20px;
  margin: 0;
}

.accordion-content li {
  margin-bottom: 6px;
  line-height: 1.4;
}




/* ========== TABLA DE FORMULARIOS ========== */
.form-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.form-table th,
.form-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eaeaea;
  font-family: var(--font-sans);
}

.form-table th {
  background-color: var(--color-principal);
  color: white;
  font-weight: 600;
}

.form-table a.button {
  padding: 6px 12px;
  font-size: 12px;
}

/* ========== 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;
  }
}


