  
body {
  margin: 0;
  padding: 0;
}

/* ================== CORTINA ================== */


#cortina {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;

  background: linear-gradient(to left, #1a25fc, #4e54c8);  

  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  transition: transform 0.6s ease;
  overflow: hidden;
}

#cortina.oculto {
  transform: translateY(-100%);
}

.bienvenida {
  font-size: 2rem;
  text-align: center;
  opacity: 0;
  animation: fadeIn 1.5s ease-out 0.3s forwards;
  z-index: 1;

  font-family: 'Times New Roman', Times, serif;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Botón */
#toggleBtn {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background-color: white;
  color: #3f51b5;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.3s;
}
#toggleBtn:hover { background-color: #f1f1f1; transform: translateX(-50%) scale(1.02); }

.arrow { transition: transform 0.3s; }
.rotada { transform: rotate(180deg); }

/* ================== FONDO ANIMADO DENTRO DE LA CORTINA ================== */
.circles{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.circles li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(1, 2, 56, 0.61);
    animation: animate 25s linear infinite;
    bottom: -150px;
}
.circles li:nth-child(1){ left: 25%; width: 80px; height: 80px; animation-delay: 0s; }
.circles li:nth-child(2){ left: 10%; width: 20px; height: 20px; animation-delay: 2s; animation-duration: 12s; }
.circles li:nth-child(3){ left: 70%; width: 20px; height: 20px; animation-delay: 4s; }
.circles li:nth-child(4){ left: 40%; width: 60px; height: 60px; animation-delay: 0s; animation-duration: 18s; }
.circles li:nth-child(5){ left: 65%; width: 20px; height: 20px; animation-delay: 0s; }
.circles li:nth-child(6){ left: 75%; width: 110px; height: 110px; animation-delay: 3s; }
.circles li:nth-child(7){ left: 35%; width: 150px; height: 150px; animation-delay: 7s; }
.circles li:nth-child(8){ left: 50%; width: 25px; height: 25px; animation-delay: 15s; animation-duration: 45s; }
.circles li:nth-child(9){ left: 20%; width: 15px; height: 15px; animation-delay: 2s; animation-duration: 35s; }
.circles li:nth-child(10){ left: 85%; width: 150px; height: 150px; animation-delay: 0s; animation-duration: 11s; }

@keyframes animate {
    0%{ transform: translateY(0) rotate(0deg); opacity: 1; border-radius: 0; }
    100%{ transform: translateY(-1000px) rotate(720deg); opacity: 0; border-radius: 50%; }
}

/* Responsive */
@media (max-width: 600px) {
  .bienvenida { font-size: 1.5rem; padding: 0 20px; }
  #toggleBtn { padding: 12px 20px; font-size: 0.95rem; }
}
    


/* Header */
.encabezado {
  width: 100%;                     /* Ocupa todo el ancho */
  margin: 0;                       /* Sin márgenes externos */
  padding: 0 20px;                  /* Solo relleno lateral */
  background: #ffffff;

  display: flex;
  justify-content: space-between;   /* Logo a un lado y menú al otro */
  align-items: center;              /* Centrado vertical */
  flex-wrap: wrap;                  /* Ajuste en pantallas pequeñas */
  box-sizing: border-box;           /* Incluye padding en el ancho total */

  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo y texto */
.encabezado-logo {
  display: flex;
  align-items: center;
}

.logo {
  width: 120px;
  height: auto;
  margin-right: 10px;
  border-radius: 100%;
}

.encabezado-logo h1 {
  font-size: 24px;
  margin: 0;
  color: #000000;
}

/* Menú action*/

.menu-action {
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease;
  position: relative;
  z-index: 1; /* 🔽 más bajo que la cortina */
  opacity: 0;
  text-align: center;
  display: block;
  justify-content: center;
}

.menu-action.active {
  max-height: 500px;
  opacity: 1;
}

/* Estilos de los links */
.menu-action ul {
  list-style: none;
  display: flex;
  flex-direction: column; /* Vertical en móviles */
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0;
  padding: 20px 0;
}

.menu-action li a {
  font-size: 18px;
  color: #000000;
  text-decoration: none;
  transition: color 0.3s ease;
}

.menu-action li a:hover {
  color: #00185D;
  transition: 0.3s ease-in-out;
  font-size: 23px;
}

/* Botón hamburguesa */
.hamburger {
  font-size: 28px;
  background: none;
  border: none;
  color: #00184D;
  cursor: pointer;
  position: relative;
  z-index: 2; 
  margin-left: 100px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
}

@media (min-width: 769px) {
  .hamburger {
    display: none; /* Se oculta en escritorio */
  }

  .menu-action {
    background: transparent; /* sin fondo negro en desktop */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: static;
    max-height: none;
    opacity: 1;
    width: auto;
    z-index: 1; /* detrás siempre */
  }

  .menu-action ul {
    flex-direction: row;   /* Horizontal en escritorio */
    gap: 30px;
    padding: 0;
  }

  .menu-action li a {
    color: #000000; /* Podés cambiar según header */
  }
}


/* -------------------- */
/* MODAL FORM           */
/* -------------------- */

.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0,0,0,0.6); /* Fondo un poco más oscuro */
    transition: opacity 0.3s ease;
    z-index: 5000;
}

/* Contenido del modal */
.modal-content {
    background: #fff;
    margin: 8% auto;
    padding: 25px 20px;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-sizing: border-box;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    animation: fadeIn 0.3s ease;
    z-index: 6000;
}

/* Animación suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Botón de cerrar */
.close {
    position: absolute;
    right: 15px;
    top: 12px;
    font-size: 30px;
    font-weight: bold;
    color: #000000;
    cursor: pointer;
    transition: color 0.2s ease;
}
.close:hover {
    color: #00185d;
}

.open-modal-btn{
  padding: 15px;
  background-color: #003dcc;
  color: #eee;
  font-size: 1rem;
  border-radius: 10px;
}

.open-modal-btn:hover{
   background-color: #1658f1;
   font-size: 1.4rem;
   transition: 0.3s ease-in-out;
}

/* Formulario */
form label {
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: #333;
}
form input[type="text"],
form input[type="email"],
form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #141299;
    box-sizing: border-box;
    font-size: 14px;
    transition: border-color 0.2s ease;
}
form input:focus {
    border-color: #00185D;
    outline: none;
}
form button {
    width: 100%;
    padding: 14px;
    background: #00185D;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease;
}
form button:hover {
    background-color: #0f3bc0;
}
.error {
    color: #e53935;
    text-align: center;
    margin-bottom: 15px;
    font-weight: 500;
}

/* -------------------- */
/* Tabs                 */
/* -------------------- */
.tab {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.tab button {
    flex: 1 1 48%;
    padding: 10px;
    cursor: pointer;
    background: #f1f1f1;
    border: none;
    border-radius: 8px 8px 0 0;
    margin: 2px 0;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}
.tab button.active {
    background: #4CAF50;
    color: white;
}
.tab button:hover:not(.active) {
    background: #ddd;
}

/* Contenido de cada tab */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* -------------------- */
/* Media queries        */
/* -------------------- */
@media (max-width: 480px) {
    .modal-content {
        margin: 25% auto;
        padding: 20px;
        width: 95%;
    }
    form button {
        padding: 12px;
        font-size: 15px;
    }
    .tab button {
        flex: 1 1 100%;
        font-size: 14px;
    }
}



/* Contenedor principal */
.container {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

/* Sección hero a pantalla completa */
.hero {
  position: relative;
  width: 100%;
  height: 100vh; /* ocupa toda la altura visible */
  background-size: cover; /* 👈 adapta la imagen para cubrir toda la sección */
  background-position: center center; /* centra la imagen */
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column; /* asegura que el texto quede uno debajo del otro */
  align-items: center; /* centra horizontal */
  justify-content: center; /* centra vertical */
  margin: 0;
  padding: 0;
  text-align: center; /* centra el texto */
}

.hero h1, 
.hero p {
  color: #fff;
  margin: 10px 0;
}

.btn-container {
  margin-top: 20px;
}




.overlay {
  background: rgba(85, 110, 255, 0.55);
  padding: 2rem;
  text-align: center;
  color: #fff;

  width: 100%;
  height: 100vh;
  /* Centramos contenido */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}


.heading {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.btn {
  background: #00184D;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.btn:hover {
  background: #003dcc;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #ffffff;
  max-width: 600px;
  width: 90%;
  padding: 30px;
  border-radius: 10px;
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.3s ease;
}

.modal-content h2 {
  font-size: 26px;
  color: #3f51b5;
  margin-bottom: 15px;
}

.modal-content p {
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
}

.modal-list {
  padding-left: 20px;
  list-style-type: none;
  margin: 0;
}

.modal-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
  font-size: 16px;
  color: #333;
}

.modal-list li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #3f51b5;
  font-weight: bold;
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
}

.close-modal:hover {
  color: #000;
}

/* Animación modal */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .heading {
    font-size: 1.8rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .overlay {
    padding: 1rem;
  }
}



/* ==================== */
/* NOTICIAS */
* {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f5f7fb; /* tono claro azulado */
  color: #222;
  line-height: 1.6;
}

/* Noticia principal */
.noticia-principal {
  position: relative;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 6px 25px rgba(26, 75, 160, 0.3); /* sombra azul */
}

.noticia-principal .overlay {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(20,64,128,0.9), rgba(74,119,197,0.4), transparent);
  color: #fff;
}

.noticia-principal h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #fff;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.noticia-principal button {
  padding: 12px 25px;
  background: linear-gradient(135deg, #1A4BA0, #144080);
  color: #fff;
  font-weight: bold;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.noticia-principal button:hover {
  background: linear-gradient(135deg, #144080, #0f2b5d);
}

/* Lista de noticias */
.lista {
  background: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(26,75,160,0.15);
  max-height: 600px;
  overflow-y: auto;
  border-left: 5px solid #1A4BA0;
}

.lista h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
  color: #144080;
}

.lista ul {
  list-style: none;
}

.lista li {
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #e1e7f5;
}

.lista a {
  text-decoration: none;
  color: #1A4BA0;
  font-weight: 500;
  transition: color 0.3s, padding-left 0.2s;
}

.lista a:hover {
  color: #144080;
  padding-left: 5px;
}

/* Slider */
.noticia-slider {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: 15px;
}

.noticia-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.noticia-slide.active {
  opacity: 1;
  z-index: 1;
}

.noticia-slider .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(20,64,128,0.9), rgba(74,119,197,0.4), transparent);
  color: #fff;
}

.noticia-slider button.prev,
.noticia-slider button.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 75, 160, 0.9);
  border: none;
  color: #fff;
  font-size: 2rem;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.noticia-slider button.prev:hover,
.noticia-slider button.next:hover {
  background: rgba(20, 64, 128, 1);
}

.noticia-slider button.prev { left: 15px; }
.noticia-slider button.next { right: 15px; }

/* Vista Desktop */
.desktop-view {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Vista Mobile (Slider) */
.mobile-slider {
  display: none;
  position: relative;
  overflow: hidden;
  max-width: 100%;
  margin: 20px auto;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(26,75,160,0.2);
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 400px;
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  position: relative;
}

.slide .overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to top, rgba(20,64,128,0.9), rgba(74,119,197,0.4), transparent);
  color: #fff;
}

.mobile-slider .prev,
.mobile-slider .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(26, 75, 160, 0.9);
  color: #fff;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
  transition: background 0.3s ease;
}

.mobile-slider .prev:hover,
.mobile-slider .next:hover {
  background: rgba(20, 64, 128, 1);
}

.mobile-slider .prev { left: 10px; }
.mobile-slider .next { right: 10px; }

/* Botón cargar más móvil */
#btnCargarMasMobile {
  display: none;
  margin: 15px auto 40px;
  padding: 12px 25px;
  background: linear-gradient(135deg, #1A4BA0, #144080);
  border: none;
  border-radius: 10px;
  font-weight: bold;
  color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
  max-width: 220px;
  text-align: center;
}

#btnCargarMasMobile:hover {
  background: linear-gradient(135deg, #144080, #0f2b5d);
}

/* Responsive */
@media (max-width: 768px) {
  /*.container {
    display: block;
  }*/
  .lista {
    display: none;
  }
  .desktop-view {
    display: none;
  }
  .mobile-slider {
    display: block;
  }
  #btnCargarMasMobile {
    display: block;
  }
}




/* ---- Modal ---- */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(0,0,0,0.7);
  padding: 20px;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  margin: auto;
  padding: 30px;
  border-radius: 16px;
  width: 30%;
  max-width: 800px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: slideDown 0.4s ease;
  display: flex;
  flex-direction: column;
  max-height: 85vh;
}

@keyframes slideDown {
  from { transform: translateY(-50px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cerrar {
  align-self: flex-end;
  font-size: 32px;
  font-weight: bold;
  color: #666;
  cursor: pointer;
  transition: color 0.3s;
}

.cerrar:hover {
  color: #e60000;
}

.modal h2 {
  font-size: 1.8rem;
  margin: 10px 0 10px 0;
  text-align: center;
  color: #333;
}

#modal-fecha {
  text-align: center;
  display: block;
  font-size: 0.9rem;
  color: #888;
  margin-bottom: 20px;
}

.modal p {
  flex: 1;
  overflow-y: auto;
  padding-right: 10px;
  font-size: 1.05rem;
  color: #333;
  line-height: 1.9;
  text-align: justify;
  word-wrap: break-word;
  max-width: 95%;
  margin: auto;
  white-space: pre-line;
}

.modal p + p {
  margin-top: 15px;
}

.modal p::first-letter {
  font-size: 1.4rem;
  font-weight: bold;
  color: #6a1b9a;
  margin-right: 4px;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  /*.container {
    grid-template-columns: 1fr;
  }*/
  .noticia-principal {
    height: 300px;
  }
}




/*seccion bienvenida*/
.publico {
  display: flex;
  gap: 2rem;
  align-items: stretch; /* 🔑 hace que ambas columnas tengan la misma altura */
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem;
  box-sizing: border-box;
}

.col {
  flex: 1;
}



/* Columna de texto */
.izquierda {
  max-height: 70vh; /* control de alto */
  overflow-y: auto; /* scroll si es muy largo */
  padding-right: 1rem;
}

/* Columna de imagen */
.derecha {
  display: flex;
  align-items: center;
  justify-content: center;
}

.derecha img {
  width: 100%;
  height: 100%;      /* 🔑 ocupa todo el alto del contenedor */
  object-fit: cover; /* recorta para mantener proporción */
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Botón "Leer más" */
.btn-leer {
  margin-top: 1rem;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  background: #0077cc;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}
.btn-leer:hover {
  background: #005fa3;
}

/* Responsive: stack en móviles */
@media (max-width: 768px) {
  .publico {
    flex-direction: column;
  }

  .izquierda {
    max-height: none;
    overflow-y: visible;
  }

  .derecha {
    margin-top: 1.5rem;
  }

  .derecha img {
    height: auto; /* en móvil no forzamos el alto */
  }
}



/*FQ*/
.cta-banner {
  width: 100%;
  padding: 60px 20px;
  background-color: #00184D;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}


.cta-banner h2 {
  font-size: clamp(2rem, 5vw, 2.6rem);
  font-weight: 800;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1;
  color: white;
}

.cta-banner h2 i {
  font-size: 2.2rem;
  color: #ffffff;
}

.cta-banner p {
  max-width: 600px;
  font-size: 1.1rem;
  margin: 0 auto;
  color: #ffffff;
  line-height: 1.6;
  z-index: 1;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 1rem 1.8rem;
  border-radius: 12px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  margin-top: 20px;
  transition: transform .2s ease, box-shadow .2s ease;
  z-index: 1;
}

.cta-btn i {
  font-size: 1.3rem;
}

.cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}


/*==== fq ====*/
/* Sección de FAQ general */
.faq-section {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #f4f6f9; /* Fondo más suave tipo guardapolvo */
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

/* Título principal */
.tfq {
  text-align: center;
  font-size: 2.2rem;
  color: #1976d2; /* Azul principal */
  margin-bottom: 30px;
  font-weight: 700;
}

/* Cada item de pregunta */
.faq-item {
  padding: 20px 15px;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s;
}

.faq-item:last-child {
  border-bottom: none;
}

/* Pregunta */
.faq-question {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0d47a1; /* Azul oscuro */
  cursor: pointer;
  margin-bottom: 10px;
  position: relative;
  padding-right: 25px;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: #1565c0; /* Azul intermedio al pasar el mouse */
}

.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.5rem;
  color: #0d47a1;
  transition: transform 0.3s, color 0.3s;
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
  color: #1976d2;
}

/* Respuesta oculta por defecto (acordeón) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  font-size: 1rem;
  color: #333;
  padding-left: 10px;
}

.faq-item.active .faq-answer {
  max-height: 800px; /* ajustable según necesidad */
}

/* Fecha de publicación */
.faq-fecha {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  padding-left: 10px;
  margin-top: 5px;
}

/* Responsive design */
@media (max-width: 768px) {
  .faq-section {
    padding: 15px;
  }

  .tfq {
    font-size: 1.8rem;
  }

  .faq-question {
    font-size: 1.05rem;
  }

  .faq-answer {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .tfq {
    font-size: 1.6rem;
  }

  .faq-question::after {
    font-size: 1.2rem;
  }

  .faq-answer {
    font-size: 0.9rem;
  }
}









/* === Responsive === */

/* Tablets medianas y celulares grandes */
@media (max-width: 992px) {
  .cta-banner {
    padding: 50px 15px;
  }

  .cta-banner h2 {
    font-size: 2rem;
    flex-direction: column; /* Título e ícono uno abajo del otro */
    gap: 8px;
  }

  .cta-banner h2 i {
    font-size: 2rem;
  }

  .cta-banner p {
    font-size: 1rem;
    max-width: 500px;
  }

  .cta-btn {
    padding: 0.9rem 1.6rem;
    font-size: 0.95rem;
  }
}

/* Celulares chicos */
@media (max-width: 576px) {
  .cta-banner {
    padding: 40px 12px;
    gap: 15px;
  }

  .cta-banner h2 {
    font-size: 1.6rem;
  }

  .cta-banner h2 i {
    font-size: 1.6rem;
  }

  .cta-banner p {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 100%;
    padding: 0 10px;
  }

  .cta-btn {
    width: 100%;              /* botón ocupa todo el ancho */
    justify-content: center;
    font-size: 1rem;
    padding: 0.8rem 1.4rem;
  }
}

/* Pantallas grandes (monitores anchos) */
@media (min-width: 1400px) {
  .cta-banner {
    padding: 80px 20px;
  }

  .cta-banner h2 {
    font-size: 3rem;
  }

  .cta-banner p {
    font-size: 1.2rem;
    max-width: 800px;
  }

  .cta-btn {
    padding: 1.2rem 2.2rem;
    font-size: 1.1rem;
  }
}


    /*cards*/
    h1, h2 {
    text-align: center;
  }
  
  .cards-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 10px #ccc;
    padding: 15px;
    width: 250px;
    text-align: center;
  }
  
  .card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 5px;
  }
  
  .inline-form, .edit-form, .create-form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  
  textarea {
    resize: vertical;
    min-height: 60px;
  }
  
  button {
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
  }
  
  .btn-delete {
    background-color: #e74c3c;
    color: white;
  }
  
  .btn-edit {
    background-color: #3498db;
    color: white;
  }
  
  .btn-create {
    background-color: #2ecc71;
    color: white;
  }
  
  .limit-msg {
    text-align: center;
    color: #e67e22;
    font-weight: bold;
  }
  

  /*cards carreras*/
  .cards-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }
  
  .card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    width: 500px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
  }
  
  .card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
  }
  
  .card h2 {
    margin: 10px 0 5px;
  }
  
  .card p {
    color: #444;
  }
  








/* footer */
.footer {
  background-color: #1f212b;
  color: #ddd;
  padding: 50px 20px 30px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  user-select: none;
  margin-top: 100px;
}

/* Container flex */
.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: space-between;
}

/* Column styles */
.footer-contact,
.footer-map,
.footer-social {
  flex: 1;
  min-width: 260px;
}

/* Titles */
.footer h3 {
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  border-left: 4px solid #5a9df9;
  padding-left: 10px;
}

/* Contact items */
.footer-contact p {
  margin: 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ccc;
  font-size: 1.5rem;
}

.footer-contact i {
  color: #ffffff;
  background-color: #00184D;
  border-radius: 15px;
  padding: 10px;
  font-size: 2rem;
}

/* Map iframe */
.footer-map iframe {
  width: 100%;
  height: 200px;
  border: none;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(90, 157, 249, 0.4);
}

/* Social links */
.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  text-decoration: none;
  font-weight: 600;
  color: #ddd;
  transition: color 0.3s ease;
  font-size: 1.1rem;
}

.footer-social i {
  font-size: 24px;
  transition: transform 0.3s ease;
}

/* Hover effect */
.footer-social a:hover {
  color: #5a9df9;
}

.footer-social a:hover i {
  transform: scale(1.2);
  color: #5a9df9;
}

/* Bottom copyright */
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  text-align: center;
  color: #666;
  font-size: 14px;
  border-top: 1px solid #444466;
  padding-top: 20px;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 30px;
  }
  .footer-contact,
  .footer-map,
  .footer-social {
    min-width: auto;
  }
}







/* ===================== */
/* Estilos Responsivos */
/* ===================== */

/* Pantallas pequeñas - Móviles */
@media (max-width: 768px) {

  /* Header */
  .encabezado {
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px 10px;
  }
  .encabezado-logo h1 {
    font-size: 20px;
    text-align: center;
    margin: 0;
  }
  .menu-action ul {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  .menu-action li a {
    font-size: 16px;
  }

  /* Texto e Imagen */
  .text-section,
  .image-section {
    flex: 1 1 100%;
    height: auto;
  }
  .text-section {
    padding: 25px 15px;
  }
  .heading {
    font-size: 28px;
  }
  .subtitle {
    font-size: 15px;
  }
  .image-section img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* FAQ */
  .faq-section {
    padding: 10px;
  }
  .faq-question {
    font-size: 1.05em;
  }
  .faq-answer {
    font-size: 0.9em;
  }

  /* Noticias / Carousel */
  .carousel-container {
    max-width: 100%;
    padding: 0 10px;
  }
  .noticia {
    width: 100%;
    margin: 10px 0;
  }
  .noticia img {
    width: 100%;
    max-height: 200px;
    object-fit: cover;
  }
  .carousel-btn.prev {
    left: 5px;
  }
  .carousel-btn.next {
    right: 5px;
  }

  /* Público / Bienvenida */
  .publico {
    margin: 30px 10px;
    padding: 20px;
  }
  .publico h1 {
    font-size: 1.6rem;
  }
  .texto-preview {
    font-size: 1rem;
  }

  /* Cards generales */
  .cards-container {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
  .card {
    width: 90%;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }
  .footer-contact,
  .footer-map,
  .footer-social {
    width: 100%;
  }
  .footer-map iframe {
    height: 180px;
    width: 100%;
  }
}

/* Pantallas medianas - Tablets */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Header */
  .encabezado {
    flex-wrap: wrap;
    padding: 20px 15px;
    justify-content: space-between;
  }
  .encabezado-logo h1 {
    font-size: 22px;
  }
  .menu-action li a {
    font-size: 17px;
  }

  /* Texto e Imagen */
  .text-section,
  .image-section {
    flex: 1 1 48%;
  }
  .text-section {
    padding: 35px;
  }
  .heading {
    font-size: 34px;
  }
  .subtitle {
    font-size: 17px;
  }

  /* Noticias / Carousel */
  .carousel-container {
    max-width: 90%;
    margin: auto;
  }
  .noticia img {
    max-height: 250px;
    object-fit: cover;
  }

  /* Cards generales */
  .cards-container {
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
  }
  .card {
    width: 45%;
  }

  /* Footer */
  .footer-map iframe {
    height: 200px;
  }
}

/* Pantallas grandes - Escritorio */
@media (min-width: 1025px) {

  .text-section,
  .image-section {
    flex: 1 1 45%;
  }
  .heading {
    font-size: 42px;
  }
  .subtitle {
    font-size: 20px;
  }

  .cards-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
  }
  .card {
    width: 300px;
  }

  .footer-map iframe {
    height: 220px;
  }
}
