    /* Estilos generales */
    body {
      margin: 0;
      font-family: sans-serif;
      background: #f4f4f4;
      color: #006400;
      padding-top: 70px; /* espacio para la barra fija */
    }

    nav {
      background: #fff;
      border-bottom: 1px solid #ddd;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      z-index: 9999;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .navbar {
      max-width: 1100px;
      margin: auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem 1rem;
      flex-wrap: wrap;
    }

    .logo-container {
      display: flex;
      align-items: center;
      text-decoration: none;
    }

    .logo-container img {
      height: 50px;
      margin-right: 10px;
    }

    .logo-text {
      font-size: 1.2rem;
      font-weight: bold;
      color: #006400;
    }

    /* Menú principal */
    .menu {
      list-style: none;
      display: flex;
      margin: 0;
      padding: 0;
    }

    .menu > li {
      position: relative;
    }

    .menu a {
      display: block;
      padding: 1rem;
      color: #006400;
      text-decoration: none;
    }

    .menu a:hover {
      background: #f0f0f0;
    }

    .has-submenu > a::after {
      content: " ▼";
      font-size: 0.8rem;
    }

    .sub-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
      background: #fff;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      list-style: none;
      padding: 0;
      margin: 0;
      z-index: 1000;
    }

    .sub-menu li a {
      padding: 0.75rem 1rem;
      white-space: nowrap;
      color: #006400;
    }

    .has-submenu.open > .sub-menu {
      display: block;
    }

    .menu-toggle {
      display: none;
      flex-direction: column;
      cursor: pointer;
    }

    .menu-toggle span {
      background: #006400;
      height: 4px;
      width: 25px;
      margin: 4px 0;
      border-radius: 2px;
    }

    @media (max-width: 768px) {
      .menu {
        flex-direction: column;
        width: 100%;
        display: none;
      }
      .menu.show {
        display: flex;
      }
      .menu li {
        width: 100%;
      }
      .sub-menu {
        position: relative;
        box-shadow: none;
      }
      .menu-toggle {
        display: flex;
      }
      
      /* Responsive: en pantallas menores a 768px, se oculta escritorio y se muestra móvil */
          .solo-escritorio {
            display: none;
          }
          .solo-movil {
            display: block;
          }
        /******************************************************************/   
    }

    /****** Swiper *****/
    .swiper {
      width: 100%;
      /*height: 600px;500px;*/
      height: 430px; /* altura base */
    }
    .swiper-slide {
      background-size: cover;
      background-position: center;
    }
    .swiper-button-next, .swiper-button-prev {
      color: white;
    }
    .swiper-pagination {
      bottom: 10px !important;
    }
    /* Por defecto, solo-escritorio visible, solo-movil oculto */
    .solo-escritorio {
      display: block;
    }
    .solo-movil {
      display: none;
    }
    
   @media (min-width: 1441px) {
  .swiper {
    height: 600px; /* escritorio grande */
  }
}


    /******************/

    /* Botones servicios */
    .botones-servicios {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 25px;
      margin: 30px auto;
      max-width: 800px;
    }
    .boton-servicio {
      text-align: center;
      flex: 1 1 100px;
      max-width: 120px;
    }
.boton-servicio a {
  text-decoration: none;
 /* color: #006400;*/
}
    .boton-servicio img {
      width: 70px;
      height: 70px;
      border-radius: 30%;
      object-fit: cover;
      box-shadow: 0 3px 6px rgba(0,0,0,0.2);
      transition: transform 0.3s ease;
    }
    .boton-servicio img:hover {
      transform: scale(1.1);
    }
    .boton-servicio p {
      margin-top: 8px;
      font-weight: bold;
      font-size: 0.9rem;
      color: #006400;
    }

    /* Secciones */
    section {
      padding: 2rem;
      max-width: 1100px;
      margin: auto;
    }
   h1, h2, h3, h4, h5, h6, a {
      color: #006400;
    }


    /* Acordeón Servicios Académicos */
    #servicios-academicos h2 {
      cursor: pointer;
      display: flex;
      justify-content: space-between;
      align-items: center;
     /* color: #009640;*/
      font-size: 1.5rem;
      font-weight: bold;
      border-bottom: 1px solid #999;
      padding-bottom: 10px;
      user-select: none;
    }

    #lista-servicios {
      list-style: none;
      margin: 0;
      padding: 0;
      overflow: hidden;
      max-height: 0;
      transition: max-height 0.5s ease;
    }

    #lista-servicios li {
      margin: 10px 0;
    }

    #lista-servicios a {
      text-decoration: none;
      color: #333;
    }
    #lista-servicios a:hover {
      color: #009640;
    }

    /* Footer */
    footer {
      background: #006400;
      color: white;
      text-align: center;
      padding: 1rem;
      margin-top: 2rem;
    }
    footer a {
      color: #ccc;
      margin: 0 0.5rem;
      text-decoration: none;
    }
    footer a:hover {
      text-decoration: underline;
    }

 /*Seccion de noticias*/

.noticias-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 2rem auto;
}

.noticia-card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.noticia-card:hover {
  transform: translateY(-5px);
}

.noticia-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.noticia-card h3 {
  margin: 1rem;
  font-size: 1.2rem;
  color: #006400;
}

.noticia-card p {
  margin: 0 1rem 1rem;
  font-size: 0.9rem;
  color: #333;
}

.noticia-card .ver-mas {
  display: inline-block;
  margin: 0 1rem 1rem;
  color: #009640;
  font-weight: bold;
}
.noticia-card a {
  text-decoration: none;
  color: inherit; /* mantiene el color del título o del texto normal */
}
.btn-ver-todas {
  background: #006400;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn-ver-todas:hover {
  background: #004d00;
}

/**********************/

/**********Estilo de Pie de pagina************/
@media (max-width: 768px) {
    .footer-flex {
      flex-direction: column !important;
      align-items: center !important;
      text-align: center !important;
    }

    .footer-flex > div {
      text-align: center !important;
      margin-bottom: 20px;
    }
 .swiper {
    height: 250px; /* o lo que consideres adecuado */
  }
  }
/**********************/
/*** Estilo formulario PQRS optimizado para altura de 400px ***/
/*form {
  max-width: 500px;
  margin: 20px auto;
  background: white;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  height: 400px; /* Ajuste de altura total */
/*  overflow: hidden; /* Evita scroll si aún se pasa por poco */
/*  box-sizing: border-box;
}*/
/*
label {
  font-weight: bold;
  display: block;
  margin-top: 8px; /* antes era 15px */
/*  margin-bottom: 2px;
}

input, textarea, select {
  width: 100%;
  padding: 8px;
  margin: 2px 0 5px 0; /* margen vertical reducido */
 /* border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

button {
  margin-top: 10px;
  background-color: #28a745;
  color: white;
  padding: 8px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
}

.alerta {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  padding: 10px;
  border-radius: 5px;
  margin-top: 10px;
  display: none;
}

/***Estilo formulario PQRS****
form { max-width: 500px; margin: 50px auto; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
      }
 label { font-weight: bold; display: block; margin-top: 15px; }
 input, textarea, select { width: 100%; padding: 10px; margin-top: 5px; border:  1px solid #ccc; border-radius: 5px; }
 button { margin-top: 20px; background-color: #28a745; color: white; padding: 10px; border: none; border-radius: 5px; cursor: pointer; }
 .alerta { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; padding: 15px; border-radius: 5px; margin-top: 20px; display: none; }
    
/*****************************/
