  :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;
    }

    .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%;
  }
}

/* ========== 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;
}

/* Ajuste para escritorio */
@media (min-width: 768px) {
  .btn-inscribite.always-visible {
    margin-left: 1rem;
  }
}

/* Ajuste para móviles */
@media (max-width: 767px) {
  .btn-inscribite.always-visible {
    position: absolute;
    right: 50px;
    top: 16px;
    z-index: 1000;
    font-size: 0.9rem;
  }
}
