body {
    font-family: sans-serif;
    background: #f9f9f9;
    margin: 0;
}

header {
    background: #0f2c53;
    color: white;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 50px;
}

header img.escudo {
    height: 200px;
}

header h1 {
    font-size: 3em;
    margin: 0;
}

.titulo-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  
}

nav.navbar {
    margin-top: 70px;
    width: 100%;
}

nav.navbar ul {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

nav.navbar ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background 0.3s;
}

nav.navbar ul li a:hover {
    background: #1c406f;
}

.frontal {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1rem auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.titulo-cursos {
    font-size: 3rem;
    color: black;
    text-align: left;
    margin: 2rem auto 1rem auto;
    font-weight: bold;
    max-width: 1200px;
}


ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 1.1em;
    padding: 10px 20px;
    border-radius: 6px;
    transition: all 0.10s ease;
}

ul li a:hover {
    color: #ffffff;
    box-shadow: 0 4px 12px white;
    transform: scale(1.04);
}

.cuadro-dinamico {
  max-width: 930px;
  margin: 60px auto;
  padding: 40px;
  background: linear-gradient(135deg, #0a1f33 0%, #3a6ea5 50%, #0a1f33 100%);
  border-radius: 25px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 20px 40px #0a1f33;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  color: #ffffff;
  padding-top: 15px;
  padding-bottom: 40px;
}

.cuadro-dinamico h1,
.cuadro-dinamico p {
  color: #ffffff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.cuadro-dinamico::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 80%);
  animation: moveGlow 10s linear infinite;
  z-index: 0;
}

@keyframes moveGlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.titulo-cursos {
  font-size: 2.4rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.subtitulo-cursos {
  font-size: 1.3rem;
  color: whitesmoke;
  text-align: center;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in.delay {
  animation-delay: 0.5s;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.scroll-anim {
  opacity: 0;
  transform: translateY(50px);
  transition: all 1s ease-out;
}

.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

.cuadro-vertical {
  width: 320px;
  height: 440px; /* ligeramente más alto para el nuevo texto */
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.cuadro-vertical img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cortina {
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(220, 220, 220, 0.88);
  color: #1a1a1a;
  transition: bottom 0.4s ease-in-out;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding-top: 20px;
}

.cuadro-vertical:hover .cortina {
  bottom: 0;
}

.contenido-cortina {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  margin-top: -30px;
  text-align: center;
}

.contenido-cortina h2 {
  font-size: 2.2rem;
  font-weight: 900;
  color: #111;
  margin-bottom: 20px;
  text-align: left;
  width: 90%;
}

.contenido-cortina p.descripcion {
  font-size: 1.05rem; /* antes era 1.2rem */
}


.contenido-cortina p.modalidad {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0b3d91;
  margin-bottom: 15px;
  width: 90%;
}

.contenido-cortina p.presencial {
  font-size: 1.2rem;
  font-weight: 700;
  color: #b23b3b;
  margin-bottom: 15px;
  width: 90%;
}

/* NUEVO CONTENEDOR FLEXIBLE PARA UBICAR LOS CUADROS LADO A LADO */
.contenedor-cuadros {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 90px;
}

/* FAD-IN */
.fade-in-on-scroll {
  opacity: 0;
  transition: opacity 5s ease-out;
}

.fade-in-on-scroll.visible {
  opacity: 1;
}

/* SLIDE-UP */
.slide-up-on-scroll {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.10s ease-out;
}

.slide-up-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
html {
  scroll-behavior: smooth;
}
.icono-palomita {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-right: 10px;
}
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-left {
  animation: slideInLeft 1s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 1s ease-out forwards;
}

.observar {
  opacity: 0;
}

.ubicacion-box {
  background: linear-gradient(145deg, #1a1a1a, #2e2e2e); /* Negro metálico suave */
  color: white;
  padding: 40px 60px;
  font-size: 2.3rem;
  border-radius: 20px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  position: relative;
  margin: 60px auto;
  width: fit-content;
  border: 1px solid #444; /* Borde metálico tenue */

  /* Animación de parpadeo */
  animation: glowPulse 2s ease-in-out infinite;
}

/* Animación del parpadeo */
@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 0 25px 8px rgba(0, 200, 255, 0.6),
      inset 0 0 10px rgba(255, 255, 255, 0.1),
      0 4px 10px rgba(0, 0, 0, 0.8);
  }

  50% {
    box-shadow:
      0 0 35px 12px rgba(0, 255, 255, 0.9),
      inset 0 0 12px rgba(255, 255, 255, 0.15),
      0 4px 14px rgba(0, 0, 0, 1);
  }
}

/* Centrado global */
a[href="#mapa"] {
  display: flex;
  justify-content: center; /* Centra horizontalmente */
}

/* Caja de ubicación */
.ubicacion-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 25px;
   margin-top: -80px;
}

/* Halo brillante */
.ubicacion-box::before {
  content: '';
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: radial-gradient(circle at center, rgba(0, 200, 255, 0.3), transparent 70%);
  border-radius: 25px;
  z-index: -1;
}

/* Icono */
.icono-ubicacion {
  font-size: 3rem;
  margin-right: 10px;
  vertical-align: middle;
}

/* 📱 Ajustes solo para móvil */
@media (max-width: 600px) {
  .ubicacion-box {
    max-width: calc(100vw - 32px);
    padding-inline: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ubicacion-box::before {
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 22px;
  }
}

.descripcion-box {
  /* Fondo metálico fijo */
  background: linear-gradient(145deg, #0f1f3a, #1c2a48, #0e223f, #1a2f4f);

  padding: 45px 60px;
  border-radius: 22px;
  margin: 30px auto;
  width: 85%;
  max-width: 950px;
  font-size: 1.5rem;
  line-height: 1.8;
  font-family: 'Segoe UI', sans-serif;
  font-weight: 700;
  text-align: center;
  color: #ffffff;

  /* Marco premium */
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.75),
    inset 0 1px 2px rgba(255, 255, 255, 0.08),
    inset 0 -1px 2px rgba(0, 0, 0, 0.25);

  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.25);
}

.frase-destacada {
  font-size: 2rem;
  font-weight: 600;
  background: yellow;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 1px 1px 3px rgba(255, 0, 0, 0.4);
  display: inline-block;
  margin-top: 15px;
}

.cortina.animacion-cortina {
    position: relative;
    overflow: hidden;
}

.cortina.animacion-cortina::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(15, 44, 83, 0.6); /* Azul oscuro translúcido */
    transition: left 0.5s ease;
    z-index: 1;
}

.cortina.animacion-cortina:hover::before {
    left: 0;
}

.contenido-cortina.independiente {
    position: relative;
    z-index: 2; /* Para estar sobre la cortina animada */
    padding: 20px;
    color: white;
}
.cuadro-parpadeante {
  width: 300px;
  height: 120px;
  margin: 40px auto;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1a1a1a, #2e2e2e); /* Negro metálico suave */
  font-size: 2.3rem;
  font-family: 'Segoe UI', sans-serif;
  color: white;
  text-align: center;
  position: relative;
  animation: resplandor 1.2s infinite alternate ease-in-out;
  border: 1px solid #555; /* Borde metálico más definido */
  box-shadow:
    0 0 30px 10px rgba(0, 200, 255, 0.7),
    inset 0 0 15px rgba(255, 255, 255, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.9);
}

@keyframes resplandor {
  0% {
    box-shadow:
      0 0 10px 3px rgba(0, 200, 255, 0.2),
      inset 0 0 5px rgba(255, 255, 255, 0.05),
      0 2px 5px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow:
      0 0 45px 15px rgba(0, 200, 255, 0.9),
      inset 0 0 18px rgba(255, 255, 255, 0.18),
      0 6px 16px rgba(0, 0, 0, 0.85);
  }
  100% {
    box-shadow:
      0 0 65px 20px rgba(0, 200, 255, 1),
      inset 0 0 25px rgba(255, 255, 255, 0.2),
      0 8px 20px rgba(0, 0, 0, 1);
  }
}
.footer {
  background: linear-gradient(to right, #0f2c53, #1a1a1a);
  color: #f0f0f0;
  padding: 30px 20px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.4);
}

.footer-contenido {
  max-width: 1000px;
  margin: auto;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #87cefa;
  margin: 0 15px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #ffffff;
}
/* Teléfonos */
@media (max-width: 600px) {
  .header nav {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .tarjetas-container {
    flex-direction: column;
    align-items: center;
  }

  .cuadro-parpadeante {
    width: 90%;
    height: auto;
    padding: 20px;
  }
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.tarjetas-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.titulo-principal {
  text-align: center;
  padding: 20px;
  background-color: #0f2c53;
  color: white;
  font-family: 'Segoe UI', sans-serif;
  border-radius: 10px;
  margin: 0 auto;
  width: 90%;
  max-width: 1000px;
}

.titulo-principal h1 {
  font-size: 2.5rem;
}

/* Estilo para pantallas medianas (tabletas) */
@media (max-width: 768px) {
  .titulo-principal h1 {
    font-size: 2rem;
  }
}

/* Estilo para pantallas pequeñas (celulares) */
@media (max-width: 480px) {
  .titulo-principal h1 {
    font-size: 1.6rem;
  }
}
/* Estilos para tabletas */
@media (max-width: 768px) {
  .titulo-nav {
    align-items: center;
    text-align: center;
  }

  .titulo-cursos {
    font-size: 2.3rem;
    text-align: center;
    padding: 0 20px;
  }

  nav.navbar ul {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  nav.navbar ul li a {
    font-size: 1em;
    padding: 10px 10px;
  }
}

/* Estilos para celulares */
@media (max-width: 480px) {
  .titulo-nav h1 {
    font-size: 1.5rem;
    padding: 0 10px;
  }

  .titulo-cursos {
    font-size: 1.8rem;
  }

  nav.navbar ul li a {
    font-size: 0.95em;
    padding: 8px 12px;
  }

  ul {
    flex-direction: column;
    gap: 10px;
  }
}
header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background-color: #0f2c53;
  padding: 10px 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .vision-wrapper, .mision-wrapper, .valores-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .imagen-flotante img, .imagen-flotante-izquierda img, .imagen-flotante-valores img {
    width: 100%;
    max-height: auto;
  }
}
/* Ajuste general para imágenes y textos en móviles */
@media (max-width: 600px) {
    main img.frontal {
        width: 100%;
        height: auto;
    }

    .contenedor-cuadros {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 0 10px;
    }

    .cuadro-vertical {
        width: 100% !important;
    }

    /* Ajustar texto en sección quienes somos */
    .quienes-somos-contenido {
        flex-direction: column;
    }

    .texto-quienes,
    .imagen-quienes {
        flex: 1 1 100%;
    }

    /* Ajustes visión, misión, valores */
    .vision-wrapper,
    .mision-wrapper,
    .valores-wrapper {
        flex-direction: column;
        padding: 10px;
    }

    .vision-container,
    .mision-container,
    .valores-container {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 20px;
    }

    .imagen-flotante img,
    .imagen-flotante-izquierda img,
    .imagen-flotante-valores img {
        width: 100% !important;
        max-height: none !important;
    }

    /* Ajuste listas dos columnas a una columna */
    .listas-dos-columnas {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
}


/* Ajuste para que contenedor de cuadros use flex */
.contenedor-cuadros {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}
@media (max-width: 768px) {

  header {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  header img.escudo {
    height: 120px;
  }

  .titulo-nav h1 {
    font-size: 20px;
  }

  .navbar ul {
    flex-direction: column;
    padding: 0;
  }

  .navbar li {
    margin: 10px 0;
  }
}
@media (max-width: 768px) {
  .contenedor-cuadros {
    flex-direction: column;
    align-items: center;
  }

  .cuadro-vertical {
    width: 90%;
    margin-bottom: 20px;
  }
}
@media (max-width: 768px) {
  .vision-wrapper,
  .mision-wrapper,
  .valores-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .imagen-flotante img,
  .imagen-flotante-izquierda img,
  .imagen-flotante-valores img {
    width: 100%;
    height: auto;
    margin-top: 20px;
  }

  .vision-container,
  .mision-container,
  .valores-container {
    width: 100%;
  }
}
.html {
  scroll-behavior: smooth;
}
/* Botón hamburguesa oculto por defecto */
.menu-toggle {
  font-size: 28px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
}

/* Estilos de menú horizontal (pantallas grandes) */
.menu ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

/* Estilos responsive */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1000;
    color: gold; /* <- este es el cambio */
  }

  .menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: #002B5B;
  }

  .menu.show {
    display: block;
  }

  .menu ul {
    flex-direction: column;
    padding: 0;
  }

  .menu li {
    border-top: 1px solid #004080;
    padding: 10px 20px;
  }

  .menu li a {
    color: white;
    text-decoration: none;
    display: block;
  }

  .contenedor-header {
    position: relative;
  }
}
* {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

@media (max-width: 768px) {
  .quienes-somos-container .texto-quienes {
    font-size: 0.95rem;   /* Texto un poco más compacto */
    line-height: 1.5;     /* Espaciado menor */
    padding: 5px;         /* Reduce padding interno */
  }

  .quienes-somos-container .texto-quienes h2 {
    font-size: 26px;      /* Título más compacto en móvil */
  }

  .quienes-somos-container .texto-quienes ul {
    margin-top: 10px;
    padding-left: 18px;   /* Mantiene sangría pero más ajustada */
  }
}
/* Hace que el header quede fijo arriba */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Encima de todo */
}

/* Ajusta el contenido para que no se esconda bajo el header */
main {
  margin-top: 250px; /* Ajusta este valor según la altura real de tu header */
}
.formulario-contacto {
  background: linear-gradient(135deg, #0f2c53, #1f3c88); /* Gradiente elegante */
  padding: 40px 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  margin: 60px auto;
  animation: fade-in 1s ease-out forwards;
  opacity: 0;

}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.formulario-contacto h2 {
  margin-top: 0;
  text-align: center;
  color: #ffd700;
  margin-bottom: 30px;
  font-size: 28px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.4);
}

.formulario .campo {
  margin-bottom: 20px;
  position: relative;
}

.formulario label {
  display: block;
  font-weight: bold;
  color: #ffd700; /* Dorado claro que resalta sobre fondo oscuro */
  margin-bottom: 8px;
  font-size: 17px;
}


.formulario input,
.formulario textarea {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: #ffffff;
  color: #0f2c53;
  font-size: 16px;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.formulario input::placeholder,
.formulario textarea::placeholder {
  color: #7a7a7a;
  font-style: italic;
}

.formulario input:focus,
.formulario textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px #ffd700aa;
  transform: scale(1.02);
}

.boton-contenedor {
  text-align: center;
  margin-top: 30px;
}

.formulario button {
  background: linear-gradient(to right, #ffd700, #f9e18c);
  color: #0f2c53;
  padding: 14px 36px;
  font-size: 17px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.formulario button:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
.formulario label::first-letter {
  font-size: 20px;
}

@media (max-width: 600px){
  .vision-wrapper,
  .mision-wrapper,
  .valores-wrapper{
    flex-direction: column;
    gap: 30px;
    text-align:center;
  }
  .contenedor-cuadros{
    flex-direction: column;
    align-items:center;
  }
}
@media (max-width: 768px) {
  header {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  header img.escudo {
    height: 100px;
  }

  .titulo-nav {
    width: 100%;
  }

  nav.menu ul {
    flex-direction: column;
    gap: 10px;
  }

  .contenedor-cuadros {
    flex-direction: column;
    align-items: center;
  }

  .cuadro-vertical {
    width: 90%;
    margin-bottom: 20px;
  }

  .quienes-somos-contenido {
    flex-direction: column;
    align-items: center;
  }

  .vision-wrapper,
  .mision-wrapper,
  .valores-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .vision-container,
  .mision-container,
  .valores-container {
    width: 90%;
    margin: 0 auto;
  }

  .imagen-flotante img,
  .imagen-flotante-izquierda img,
  .imagen-flotante-valores img {
    width: 90%;
    height: auto;
    margin-top: 20px;
  }

  iframe {
    width: 100% !important;
    height: auto !important;
  }

  .formulario-contacto {
    padding: 0 15px;
  }

  .formulario .campo {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .formulario .campo input,
  .formulario .campo textarea {
    width: 100%;
  }
}
.frontal {
  width: 100%;
  height: auto;
}

@media (max-width: 600px) {
  header {
    align-items: center;
    flex-direction: column;
    text-align: center;
  }

  header img.escudo {
    height: 150px;
    margin-bottom: 10px;
  }

  .titulo-nav {
    align-items: center;
  }
}
@media (max-width: 768px) {
  .frontal {
    margin-top: 40px !important;
  }
}
/* Estilos para el botón hamburguesa */
.menu-toggle {
  display: none; /* Oculto por defecto (en pantallas grandes) */
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-family: Arial, sans-serif;
  padding: 5px;
  margin-top: 10px;
}

.menu-text {
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 4px;
}

.menu-icon {
  font-size: 28px;
  line-height: 1;
  color: gold;
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
}
.ubicacion-box:hover {
  background-color: #f0f0f0;
  cursor: pointer;
  transition: 0.3s;
}
.cuadro-temas.mostrar-cortina .cortina-temas {
  bottom: 0;
}
.titulo-parpadeante {
  font-size: 36px;
  color: #ffffff;
  font-weight: 900;
  font-family: Arial, sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, text-shadow 0.3s ease;
  cursor: pointer; /* 🔥 Hacer que se vea como botón */
}

.titulo-parpadeante:hover {
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(255, 255, 255, 1);
}
.cuadro-parpadeante {
  display: inline-block;
  padding: 10px 30px;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
  
  /* 🔽 Centramos el cuadro horizontalmente */
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  text-align: center;
}
.flecha-scroll {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 40px;
  color: gold;
  animation: parpadeo 1.5s infinite;
  cursor: pointer;
  z-index: 9999;
  transition: opacity 0.4s ease;
}

@keyframes parpadeo {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(10px); }
}
.flecha-scroll {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 48px;
  color: gold;
  animation: saltar 1.2s infinite;
  cursor: pointer;
  z-index: 9999;
  transition: opacity 0.3s ease-in-out;
}

@keyframes saltar {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}
.flecha-scroll {
  position: fixed;
  bottom: 30px;
  left: 30px; /* Pegado al lado izquierdo */
  cursor: pointer;
  z-index: 9999;
  animation: flotar 1.5s infinite;
  opacity: 1;
  transition: opacity 0.3s ease-in-out;
}

.flecha-icono {
  width: 45px;
  height: 45px;
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.7));
}

@keyframes flotar {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(10px);
  }
}
@media (max-width: 600px) {
  .frontal {
    margin-top: 20px !important;
    width: 100%;
    height: auto;
  }
}
@media (max-width: 768px) {
  .frontal {
    margin-top: 50px !important;
  }
}

.footer {
  position: relative;
  background-color: #0b0c10; /* fondo oscuro tipo marino */
  color: white;
  padding: 20px;
  text-align: center;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.marca-agua-footer {
  user-select: none;             /* No se puede seleccionar */
  pointer-events: none;          /* No interactuable */
  position: absolute;
  bottom: 10px;
  right: 15px;
  font-size: 14px;
  font-style: italic; /* 🔹 Esto aplica cursiva */
  font-weight: 300;
  font-family: 'Arial', sans-serif;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}
@media (max-width: 768px) {
  .mision-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .imagen-flotante-izquierda img {
    width: 100%;
    height: auto;
  }

  .mision-container {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .valores-wrapper {
    flex-direction: column;
    gap: 40px;
  }

  .imagen-flotante-valores img {
    width: 100%;
    height: auto;
  }

  .valores-container {
    width: 100%;
  }
}
.dark-mode {
  background-color: #121212;
  color: #f0f0f0;
}

.dark-mode header,
.dark-mode footer {
  background-color: #1c1c1c;
  color: #fff;
}

.dark-mode .cuadro-vertical,
.dark-mode .mision-container,
.dark-mode .valores-container,
.dark-mode .vision-container {
  background: #222;
  color: #f0f0f0;
  box-shadow: 0 8px 16px rgba(255, 255, 255, 0.1);
}


.dark-mode .cortina-temas,
.dark-mode .cortina {
  background: rgba(255, 255, 255, 0.1);
  color: #f0f0f0;
}

.menu ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
}

.menu li button#toggle-theme {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background 0.3s;
  color: white;
}

.menu li button#toggle-theme:hover {
  background: rgba(255, 255, 255, 0.2);
}
/* === MODO OSCURO: Estilo para la sección de TEMAS === */
.dark-mode .cuadro-temas {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.dark-mode .cuadro-temas img {
  filter: brightness(0.8) contrast(1.05); /* menos oscuro y más natural */
}


.dark-mode .cortina-temas {
  background: rgba(30, 30, 30, 0.85); /* gris oscuro pero no negro puro */
  color: #f8f8f8;
}

.dark-mode .listas-dos-columnas ol {
  color: #f0f0f0;
}

/* === MODO OSCURO solo cambia el fondo de la cortina, no el color del texto === */
.dark-mode .cortina {
  background: rgba(30, 30, 30, 0.85); /* solo fondo más oscuro */
}

.dark-mode .contenido-cortina h2 {
  color: gold; /* dorado para títulos */
}

dark-mode .contenido-cortina p.descripcion {
  color: #f0f0f0; /* blanco suave para el párrafo principal */
}
.dark-mode .contenido-cortina p.modalidad {
  color: #3399FF; /* azul más cálido y más balanceado */
  font-weight: bold;
}
.dark-mode .contenido-cortina p.presencial {
  color: #FF3333; /* rojo fuerte */
  font-weight: normal;
}
/* === MODO OSCURO: Estilo del menú === */

.dark-mode .menu a {
  color: #f0f0f0; /* texto claro para buena legibilidad */
  text-decoration: none;
  transition: color 0.3s ease;
}
.dark-mode .titulo-nav h1 {
  color: #ffd700;
}

.cuadro-beneficios {
  background-color: #0f2c53;
  border-radius: 15px;
  padding: 25px 30px;
  margin-top: 30px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.lista-beneficios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  font-size: 16px;
  color: #fff;
}

.lista-beneficios li {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.icono-beneficio {
  font-size: 20px;
  color: #ffd700; /* dorado */
  flex-shrink: 0;
}
#toggle-theme .icon {
  font-size: 40px;          /* tamaño real del emoji */
  line-height: 1;
}
@media (max-width: 768px) {
  #toggle-theme .icon {
    font-size: 30px;   /* Emoji más pequeño en móviles */
    line-height: 0;
  }
}
/* Estilos del preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000; /* Puedes cambiar el fondo */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

#preloader img {
  width: 600px; /* Ajusta el tamaño como prefieras */
  height: auto;
  animation: desvanecer 2s ease-in-out infinite;
}

@keyframes desvanecer {
  0% { opacity: 1; }
  50% { opacity: 0.2; }
  100% { opacity: 1; }
}
.marca-agua-izquierda {
  user-select: none;             /* No se puede seleccionar */
  pointer-events: none;          /* No interactuable */
  position: absolute;
  bottom: 10px;
  left: 15px;                    /* ⬅️ Aquí el cambio para que esté a la izquierda */
  font-size: 14px;
  font-style: italic;            /* Cursiva */
  font-weight: 300;
  font-family: 'Arial', sans-serif;
  color: rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}
/* 📱 Mejora de “acople” en teléfonos sin alterar escritorio */
@media (max-width: 600px) {
  /* El contenedor ya es flex; solo acolchado lateral para que no toque bordes */
  .contenedor-cuadros {
    padding-inline: 12px;
    gap: 20px; /* consistente con el móvil que ya manejas */
  }

  /* Mantén proporciones ordenadas sin “estirar”: */
  .cuadro-vertical {
    width: 100%;              /* usa todo el ancho disponible */
    max-width: 420px;         /* no más ancho que esto para que luzca bien */
    aspect-ratio: 3 / 4;      /* alto automático proporcional */
    height: auto;             /* deja que lo controle aspect-ratio */
  }

  .cuadro-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;        /* recorte elegante */
    object-position: center;  /* centrado de la imagen */
  }

  /* Cortina: interacción amigable en pantallas táctiles (sin hover) */
  @media (hover: none) {
    /* desactiva el hover en táctiles */
    .cuadro-vertical:hover .cortina { bottom: -100%; }

    /* muéstrala al tocar (active) o si hay foco interno (botón/enlace) */
    .cuadro-vertical:active .cortina,
    .cuadro-vertical:focus-within .cortina {
      bottom: 0;
    }
  }
}



/* === Inline styles from index.html (verbatim) === */
.quienes-somos-container {
  background: #1f4f90; /* Azul intermedio profesional */
  padding: 40px;
  border-radius: 20px;
  color: #fceabb;
  font-family: "Segoe UI", sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  max-width: 1200px;
  margin: 40px auto;
  border-image: linear-gradient(45deg, #f7d358, #ffd700, #f7d358) 1;
  border: 3px solid gold;
}

.quienes-somos-contenido {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.texto-quienes {
  flex: 1 1 60%;
  font-family: 'Segoe UI', sans-serif;
  color: #fffbd2;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  padding: 10px;
}

.texto-quienes h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: #ffd700;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.texto-quienes ul {
  margin-top: 20px;
  padding-left: 20px;
  list-style-type: disc;
}

.texto-quienes ul li {
  margin-bottom: 10px;
  text-align: left;
}


.imagen-quienes {
  flex: 1 1 35%;
  display: flex;
  justify-content: center;
}

.fondo-cristalino {
  background: rgba(135, 206, 250, 0.3); /* Azul cielo translúcido */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid white;
  text-align: center;
  width: 100%;
}

.imagen-quienes .imagen-pequena {
  max-width: 70%;
  border-radius: 12px;
  
  margin-top: 15px;
}

.aval-texto {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
  text-transform: uppercase;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}


/* === Inline styles from index.html (verbatim) === */
.vision-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px; /* espacio entre texto e imagen */
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.vision-container {
  background: linear-gradient(145deg, #004466, #0077a6);
  color: #ffffff;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 12px 24px black;
  font-family: "Segoe UI", sans-serif;
  width: 650px;
  flex-shrink: 0;
  margin-right: 80px; /* esto lo mueve ligeramente hacia la izquierda */
}


.texto-vision h2 {
  font-size: 32px;
  margin-bottom: 18px;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid #ffd700;
  display: inline-block;
}

.texto-vision p {
  font-size: 17px;
  line-height: 1.6;
  text-align: justify;
  font-weight: 500;
}

.imagen-flotante img {
 width: 420px; /* imagen más ancha */
  max-height: 500px; /* imagen más alta */
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}


/* === Inline styles from index.html (verbatim) === */
.mision-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 120px;
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 50px;
}

.mision-container {
  background: linear-gradient(145deg, #004466, #0077a6);
  color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 12px 24px black;
  font-family: "Segoe UI", sans-serif;
  width: 600px;
  flex-shrink: 0;
}

.texto-mision h2 {
  font-size: 30px;
  margin-bottom: 16px;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid #ffd700;
  display: inline-block;
}

.texto-mision p {
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
  font-weight: 500;
}

.imagen-flotante-izquierda img {
   width: 500px; /* imagen más ancha */
  max-height: 600px; /* imagen más alta */
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}


/* === Inline styles from index.html (verbatim) === */
.valores-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 100px;
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 20px;
}

.valores-container {
  background: linear-gradient(145deg, #004466, #0077a6);
  color: #ffffff;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 12px 24px black;
  font-family: "Segoe UI", sans-serif;
  width: 650px;
  flex-shrink: 0;
}

.texto-valores h2 {
  font-size: 32px;
  margin-bottom: 18px;
  color: #fff;
  font-weight: bold;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
  border-bottom: 2px solid #ffd700;
  display: inline-block;
}

.texto-valores p {
  font-size: 17px;
  line-height: 1.6;
  text-align: justify;
  font-weight: 500;
}

.imagen-flotante-valores img {
  width: 500px; /* imagen más ancha */
  max-height: 600px; /* imagen más alta */
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  transition: transform 0.4s ease;
}


/* === Inline styles from index.html (verbatim) === */
.titulo-parpadeante {
  font-size: 36px;
  color: #ffffff;
  font-weight: 900;
  font-family: Arial, sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.7);
}


/* === Inline styles from index.html (verbatim) === */
.temas-comunicaciones {
  padding: 50px 20px;
}

.contenedor-temas {
  max-width: 1200px;
  margin: auto;
}

.cuadro-temas {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 8px 24px black;
  height: 520px;
  width: 100%;
}

.cuadro-temas img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%; /* <- esto baja la imagen */
  border-radius: 20px;
}

.cortina-temas {
  position: absolute;
  bottom: -110%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
font-weight: 600;

  padding: 30px;
  transition: bottom 0.6s ease-in-out;
  overflow-y: auto;
  border-radius: 0 0 20px 20px;
}

.cuadro-temas:hover .cortina-temas {
  bottom: 0;
}

.contenido-temas {
  max-height: 500%;
  overflow-y: auto;
  margin-top: 0px;
}

.contenido-temas h2 {
  font-size: 28px;
  text-align: center;
  margin-bottom: 20px;
}

/* Contenedor flex para dos columnas */
.listas-dos-columnas {
  display: flex;
  gap: 50px;
  justify-content: center;
}

/* Listas independientes */
.listas-dos-columnas ol {
  padding-left: 30px; /* para que la numeración quede bien */
  font-size: 20px;
  line-height: 1.4;
  flex: 1; /* ambas listas ocupan el mismo ancho */
}

@media (max-width: 768px) {
  .listas-dos-columnas {
    flex-direction: column;
  }
  .listas-dos-columnas ol {
    padding-left: 20px;
  }
  .cuadro-temas {
    height: auto;
  }
}


/* === Inline styles from index.html (verbatim) === */
:root{
  --brand1: #004466;
  --brand2: #0077a6;
  --gold: #ffd700;
  --txt: #f5f7fb;
  --muted: #c5cee0;
  --focus: #8ab4ff;
  --ring: rgba(0, 119, 166, .18);
  --card-bg: rgba(8, 12, 18, .85);
  --card-bg-2: rgba(12, 18, 26, .85);
  --ok: #86efac;
  --grad1: #fff3b0;
  --grad2: #ffffff;
}
@media (prefers-color-scheme: dark){
  :root{
    --card-bg: rgba(4, 6, 10, .85);
    --card-bg-2: rgba(6, 10, 16, .85);
    --grad1: #ffe36e;
    --grad2: #fffdee;
  }
}
.modal-plagio{
  position: fixed; inset: 0; display: none; z-index: 999999;
  background:
    radial-gradient(1200px 600px at 12% 16%, rgba(255,215,0,.08), transparent 60%),
    radial-gradient(900px 520px  at 85% 22%, rgba(0,119,166,.10), transparent 62%),
    radial-gradient(1100px 540px at 48% 86%, rgba(0,68,102,.12), transparent 68%),
    linear-gradient(180deg, rgba(6,10,16,.96), rgba(10,14,20,.96));
  justify-content: center; align-items: center; padding: 24px;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  overflow: hidden;
}
.modal-plagio.show{display:flex;}
.modal-plagio::after{
  content:"";position:absolute;inset:0;pointer-events:none;mix-blend-mode:soft-light;opacity:.06;
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="120" height="120" viewBox="0 0 120 120"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.5"/></svg>');
  background-size:240px 240px;animation:grainDrift 18s linear infinite;
}
@keyframes grainDrift{to{transform:translate3d(2%,1%,0);}}
.modal-plagio::before{
  content:"";position:absolute;inset:-10%;pointer-events:none;opacity:.9;
  background:
    radial-gradient(820px 420px at 15% 10%, rgba(255,215,0,.06), transparent 62%),
    radial-gradient(740px 360px at 80% 25%, rgba(255,255,255,.04), transparent 62%),
    radial-gradient(940px 500px at 50% 90%, rgba(0,119,166,.06), transparent 72%);
  animation:bgDrift 28s ease-in-out infinite alternate;
}
@keyframes bgDrift{50%{transform:translateY(-1.2%) scale(1.005);}}
.modal-contenido{
  width:min(92vw,560px);color:var(--txt);
  background:linear-gradient(180deg,var(--card-bg),var(--card-bg-2));
  border-radius:22px;padding:26px 24px 22px;position:relative;text-align:center;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  transform:translateY(8px) scale(.985);opacity:0;outline:none;
  border:1px solid rgba(255,255,255,.06);
  box-shadow:0 18px 50px rgba(0,0,0,.45),0 0 0 6px rgba(255,215,0,.08),0 0 60px var(--ring);
}
.modal-contenido::before{
  content:"";position:absolute;inset:-1px;border-radius:23px;padding:1px;pointer-events:none;
  background:conic-gradient(from 180deg, rgba(255,215,0,.30), rgba(255,255,255,.08), rgba(0,119,166,.28), rgba(255,215,0,.30));
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite:xor;mask-composite:exclude;animation:borderSweep 6s linear infinite;
}
@keyframes borderSweep{to{transform:rotate(1turn);}}
.topline{position:absolute;left:10%;right:10%;top:0;height:1px;overflow:hidden;opacity:.9;}
.topline::before{
  content:"";position:absolute;inset:0;background:linear-gradient(90deg, transparent, var(--gold), transparent);
  transform:translateX(-100%);animation:scan 2.8s ease-in-out infinite;
}
@keyframes scan{50%{transform:translateX(0);}100%{transform:translateX(100%);}}
.modal-plagio.show .modal-contenido{animation:popIn 380ms cubic-bezier(.22,.9,.26,1) forwards;}
@keyframes popIn{from{opacity:0;transform:translateY(10px) scale(.975);}to{opacity:1;transform:translateY(0) scale(1);}}
@keyframes fadeOutSmooth{from{opacity:1;}to{opacity:0;}}
.aura{position:absolute;inset:-20px;border-radius:28px;pointer-events:none;filter:blur(22px);opacity:.9;}
.icono{
  display:inline-grid;place-items:center;width:58px;height:58px;border-radius:16px;margin:6px auto 12px;
  font-size:28px;background:rgba(255,255,255,.04);
  box-shadow:inset 0 0 0 2px rgba(255,215,0,.65),0 0 28px rgba(255,215,0,.22);
  position:relative;
}
.icono::after{content:"";position:absolute;inset:-6px;border-radius:20px;pointer-events:none;
  box-shadow:0 0 0 6px rgba(255,215,0,.12);opacity:.9;}
.modal-contenido h2{
  margin:8px 0 6px;font-weight:900;font-size:22px;letter-spacing:.35px;text-transform:uppercase;
  background:linear-gradient(90deg,var(--grad1),var(--grad2));
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
}
.modal-contenido p{margin:0;font-size:15px;line-height:1.55;color:var(--muted);}
.meta{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:14px;}
.chip{padding:6px 10px;border-radius:999px;font-size:12px;letter-spacing:.2px;
  background:rgba(255,215,0,.12);color:var(--gold);border:1px solid rgba(255,215,0,.35);}
.chip.muted{background:rgba(255,255,255,.04);color:#d6d9e3;border-color:rgba(255,255,255,.10);}
.dot{width:8px;height:8px;border-radius:50%;background:var(--gold);box-shadow:0 0 0 4px rgba(255,215,0,.18);}
.progress{position:relative;height:3px;border-radius:999px;background:rgba(255,255,255,.06);margin-top:16px;overflow:hidden;}
.progress .bar{position:absolute;left:0;top:0;bottom:0;width:100%;transform:translateX(0);
  background:linear-gradient(90deg,var(--gold),#fff1a8);
  animation:barDrain linear forwards;transform-origin:left;}
@keyframes barDrain{to{transform:translateX(100%);}}

/* Barra de tiempo del modal de plagio */
.modal-plagio .progress{
  position: relative;
  height: 4px;
  background: rgba(255,255,255,.25);
  border-radius: 9999px;
  overflow: hidden;
  margin-top: 12px;
}
.modal-plagio .progress .bar{
  position: absolute;
  left: 0; /* anclada a la izquierda */
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), #fff1a8);
  animation: barDrain 7s linear forwards;
}

/* Animación: reducir ancho desde la derecha */
@keyframes barDrain {
  from { width: 0%; }
  to   { width: 100%; }
}

/* === Inline styles from index.html (verbatim) === */
#toggle-theme {
  position: fixed;
  bottom: 679px;
  right: 40px;
  background: transparent;
  color: #000;
  padding: 16px 18px;
  border-radius: 50%;
  font-size: 26px;
  cursor: pointer;
  z-index: 10000;
  transition: all 0.3s ease;
  display: inline-block;
  border: none;
}

.dark-mode #toggle-theme {
  background: transparent;
  color: #fff;
}

/* ✅ AJUSTES PARA MODO TELÉFONO */
@media (max-width: 768px) {
  #toggle-theme {
    bottom: 670px;        /* Más abajo, debajo del menú */
    right: 15px;         /* Más pegado al borde derecho */
    padding: 6px 8px;   /* Botón más pequeño */
  }
}

/* === Inline styles from como-llegar.html (verbatim) === */
:root{
    --brand1:#081a2d; /* Azul marino profundo */
    --brand2:#0f3054; /* Azul marino elegante más claro */
    --gold:#ffd700;
    --txt:#f5f7fb;
    --muted:#c5cee0;
    --card:#0a0f18;
    --card2:#0e1520;
    --stroke:rgba(15,48,84,.4); /* Azul translúcido basado en brand2 */
}

.mapa-elegante{ 
    margin: 56px auto; 
    padding: 0 16px; 
}

.mapa-card{
    margin: 0 auto;
    width: min(100%, 980px);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--card), var(--card2));
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    border: 1px solid var(--stroke); /* Borde azul translúcido */
    overflow: clip;
}

/* HEADER azul marino oscuro elegante */
.mapa-header{ 
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    gap:12px; 
    padding: 14px 16px; 
    background: linear-gradient(135deg, var(--brand1), var(--brand2));
}

.mapa-title{ 
    display:flex; 
    align-items:center; 
    gap:10px; 
    color:var(--txt); 
}

.mapa-title .pin{ 
    font-size:20px; 
}

.mapa-title h3{ 
    margin:0; 
    font: 800 18px/1.2 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; 
    letter-spacing:.2px;
    background: linear-gradient(90deg, #fff3b0, #ffffff);
    -webkit-background-clip:text; 
    background-clip:text; 
    -webkit-text-fill-color:transparent; 
}

.mapa-action{ 
    appearance:none; 
    text-decoration:none; 
    font:700 13px/1 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif; 
    letter-spacing:.2px;
    color:#0b111a; 
    background: linear-gradient(135deg, #fff4b0, #ffffff);
    padding:10px 14px; 
    border-radius:10px; 
    border:1px solid rgba(255,255,255,.65);
    box-shadow: 0 6px 16px rgba(0,0,0,.25); 
    white-space:nowrap; 
}

.mapa-action:focus-visible{ 
    outline:3px solid #8ab4ff; 
    outline-offset:3px; 
}

.mapa-stage{ 
    position:relative; 
    background:#0f1624; 
    border-top: 1px solid var(--stroke); /* Línea azul arriba del mapa */
    border-bottom: 1px solid var(--stroke); /* Línea azul abajo del mapa */
}

.mapa-stage iframe{ 
    display:block; 
    width:100%; 
    aspect-ratio: 16 / 9; 
    border:0; 
}

@supports not (aspect-ratio: 1 / 1){
    .mapa-stage::before{ 
        content:""; 
        display:block; 
        padding-top:56.25%; 
    }
    .mapa-stage iframe{ 
        position:absolute; 
        inset:0; 
        height:100%; 
    }
}

/* FOOTER azul marino oscuro elegante */
.mapa-footer {
    display:flex; 
    align-items:center; 
    justify-content:space-between; 
    gap:12px; 
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--brand1), var(--brand2));
}

  @media (max-width: 1024px){
    .mapa-card{ width: min(100%, 840px); }
    .mapa-stage iframe{ aspect-ratio: 16 / 10; }
  }
  @media (max-width: 768px){
    .mapa-card{ width: min(100%, 680px); }
    .mapa-title h3{ font-weight: 800; font-size: 17px; }
    .mapa-action{ padding:8px 12px; font-size:12px; }
    .mapa-stage iframe{ aspect-ratio: 4 / 3; }
  }
  @media (max-width: 480px){
    .mapa-card{ width: 100%; border-radius: 14px; }
    .mapa-header{ padding: 12px 12px; flex-direction:column; gap:8px; align-items:flex-start; }
    .mapa-stage iframe{ aspect-ratio: 1 / 1; }
    .mapa-footer{ padding: 8px 12px 12px; }
  }
/* Fondo negro de carga */
  #preloader {
    position: fixed;
    inset: 0;
    background: black;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
  }

  /* Imagen del preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
  display: flex;
  justify-content: center; /* centra horizontal */
  align-items: center;     /* centra vertical */
  z-index: 99999;
}

#preloader img {
  max-width: 80%;   /* se adapta al ancho de pantalla */
  max-height: 80%;  /* se adapta al alto de pantalla */
  height: auto;
}


  /* Animación de pulso suave */
  @keyframes fadePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.20); }
  }
  /* === ARREGLO DEL ENLACE A #mapa (solo ocupa el tamaño del cuadro) === */
a[href="#mapa"] {
  display: block;         /* bloque para poder centrar con margin */
  width: max-content;     /* se encoge al tamaño del contenido */
  margin: 0 auto;         /* centrado horizontal */
  text-decoration: none;  /* por si acaso */
  color: inherit;
}

/* === Unifica .ubicacion-box (sin expandir el área clickeable) === */
.ubicacion-box {
  display: inline-flex;                   /* mide lo que ocupa su contenido */
  align-items: center;
  gap: 8px;
  padding: 40px 60px;
  background: linear-gradient(145deg, #1a1a1a, #2e2e2e);
  color: #fff;
  font-size: 2.3rem;
  border-radius: 20px;
  font-family: 'Segoe UI', sans-serif;
  text-align: center;
  border: 1px solid #444;
  box-shadow:
    0 0 30px 10px rgba(0, 200, 255, 0.7),
    inset 0 0 15px rgba(255, 255, 255, 0.15),
    0 5px 15px rgba(0, 0, 0, 0.9);
  position: relative;
  margin: 60px auto;                      /* separación vertical */
  width: auto;                            /* evita “estirarse” */
}

/* Halo opcional (no aumenta el hitbox) */
.ubicacion-box::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at center, rgba(0, 200, 255, 0.3), transparent 70%);
  border-radius: 25px;
  z-index: -1;
}

/* Icono */
.icono-ubicacion {
  font-size: 3rem;
  margin-right: 10px;
  vertical-align: middle;
}

/* Móvil */
@media (max-width: 600px) {
  .ubicacion-box {
    padding: 18px 22px;
    font-size: 1.6rem;
  }
}
.toast-notify{
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  min-width: 260px;
  max-width: 90vw;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(10,35,28,.96);
  color: #ffd700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  opacity: 0;
  pointer-events: none;
  transition: transform .35s ease, opacity .35s ease;
  z-index: 99999;
  font-weight: 700;
  text-align: center;
}
.toast-notify.show{
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
