/*Carga de página*/
.fade-in {
    opacity: 0;
    transform: scale(0.6);
    filter: blur(10px);
    transition: opacity 1.5s ease-in-out, filter 0.1s ease-in-out, transform 0.1s ease-in-out;
}

.fade-in.loaded {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}
/*FIN de carga de página*/

/* Reset básico para eliminar márgenes y padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Configuración para el cuerpo de la página */
html, body {
    font-family: 'Roboto', Arial, sans-serif !important;
    width: 100%;
    height: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Evita el desbordamiento horizontal */
}

/* Header top */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /*padding: 30px 150px;*/    
    width: 100%;
    background-color: #00589c;
    height: 10px;
    overflow: hidden;
    letter-spacing: 0.2em;
    box-sizing: border-box;
}

.header-top-left {
    display: flex;
    align-items: center;
    max-width: 65%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-top-right {
    display: flex;
    justify-content: flex-end; /* Alinea los iconos a la derecha */
    align-items: center;
    max-width: 35%; /* Limita el ancho máximo de la sección derecha */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.contact-info,
.styled-icons {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px; /* Espacio entre los elementos */
    color: white;
}

/* Estilo específico para enlaces en contact-info */
.contact-info li a {
    display: flex;
    align-items: center;
    gap: 8px; /* Espacio entre el icono y el texto */
    color: #FAFAFA; /* Color blanco para los enlaces de contacto */
    text-decoration: none;
    font-size: 19px;
    font-weight: bolder;
}

/* Estilo específico para iconos en styled-icons */
.styled-icons li a {
    background-color: white; /* Fondo blanco solo para los iconos de redes sociales */
    color: black;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    font-size: 19px;
    font-weight: bolder;
    transition: background-color 0.3s, color 0.3s;
}

.styled-icons li a:hover {
    background-color: #f1f1f1;
    color: #00589c;
}
/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .header-top {
        padding: 20px;
        flex-direction: column;
        height: auto; /* Ajusta automáticamente la altura en pantallas pequeñas */
    }

    .header-top-right {
        display: none;
    }

    .header-top-left {
        max-width: 100%;
        overflow: visible;
        white-space: normal;
        text-align: center;
    }

    .contact-info {
        flex-direction: column; /* Apila los elementos <li> verticalmente */
        align-items: center;
        gap: 10px;
    }
}
/*Fin de Header top*/

/* Header middle */
.header-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 150px;
    width: 100%;
    background-color: white;
    height: 100px;
    overflow: hidden;
    letter-spacing: 0.2em;
    box-sizing: border-box;
}

.header-mid-left {
    display: flex;
    align-items: center;
    max-width: 35%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-mid-right {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 25px;
    font-weight: lighter;
    color: #004179;
    letter-spacing: normal;
}

/* Media query para pantallas pequeñas */
@media (max-width: 768px) {
    .header-middle {
        flex-direction: column;
        align-items: center;
        padding: 20px;
        height: auto;
    }

    .header-mid-left, .header-mid-right {
        max-width: 100%;
        justify-content: center;
        text-align: center;
        margin-bottom: 5px;
    }

    .header-mid-right {
        font-size: 20px;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
        margin-bottom: 0;
    }
}
/*Fin de Header midle*/

/* Header navigation */
.menu-toggle {
    display: none; /* Oculto por defecto */
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    margin-left: auto;
}
.header-nav-wrapper {
    background-color: #004179;
    height: 70px;
    color: white;
    padding: 0 70px;
    z-index: 10;
}
.menuzord {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.menuzord-menu {
    display: flex;
    gap: 20px;
    list-style-type: none;
    padding: 0;
    margin: 0;
}
.menuzord-menu > li {
    position: relative;
    padding: 15px;
}
.menuzord-menu > li > a {
    text-decoration: none;
    color: white;
    font-size: 17px;
    padding: 10px 5px;
    display: block;
    transition: background-color 0.5s;
    letter-spacing: 0.1em;
    border-radius: 20px;
}
.menuzord-menu > li > a:hover {
    background-color: #ffc107;
    color: white;
    border-radius: 20px;
}

/* Dropdown styles */
.menuzord-menu .dropdown {
    display: none;
    position: absolute;
    background-color: #FAFAFA;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    padding: 10px;
    list-style-type: none;
    min-width: 160px;
    z-index: 20;
}
.menuzord-menu li:hover .dropdown {
    display: block;
}
.menuzord-menu .dropdown li {
    padding: 5px 0;
}
.menuzord-menu .dropdown li a {
    color: #003366;
    padding: 5px 10px;
    display: block;
    text-decoration: none;
}
.menuzord-menu .dropdown li a:hover {
    background-color: #F1F1F1;
    color: #ffc107;
    font-weight: bolder;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
    .menuzord {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Oculta el menú en pantallas pequeñas y muestra el botón */
    .menuzord-menu {
        display: none;
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 10px;
        background-color: #004179;
        z-index: 15;
    }

    /* Estilos para el botón del menú hamburguesa */
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 30px;
        cursor: pointer;
        margin-left: auto;
    }

    /* Muestra el menú cuando se activa el botón */
    .menuzord.active .menuzord-menu {
        display: flex;
    }

    .menuzord-menu > li {
        padding: 10px;
        width: 100%;
        text-align: left;
    }

    .menuzord-menu .dropdown {
        position: static;
        box-shadow: none;
        padding-left: 20px;
        z-index: 20;
    }
}
/* FIN de Header navigation */

/*Pestañas y tarjetas de curso*/
#tab-contents {
    width: 90%;
    margin: 0 auto;
}

.tabs {         
    justify-content: center; 
    background-color: #004179; 
    padding: 1px 0; 

    margin: 0.5em auto;
    width: 90%;
    display: flex; 
}   

.tab {
  position: relative;
  padding: 20px 20px;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.3s;
}

.tab::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: #FFD700;
  transition: width 0.3s ease, left 0.3s ease;
}

.tab:hover::after,
.tab.active::after {
  width: 100%;
  left: 0;
}

.tab:hover{
    background-color: #00589c;
    color: whitesmoke;
}

.tab.active {
    background-color: #B18904;
    color: whitesmoke;
}

.tab-content {
    display: none;
    padding: 0px;
    
}

.tab-content.active {
    display: block;
}
.course-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    padding: 20px 0;
}

.course-card:hover {
    border: 1px inset #B18904;
    background-color: #FAFAFA;
    animation: shake 0.5s ease-in-out;
}
.course-card {
  border: 1px solid #ddd;
  padding: 15px;
  background-color: #fff;
  transition: background-color 0.3s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 250px; /* Ancho fijo */
  max-width: 250px; /* Máximo ancho para asegurar que no se expanda */
  /*align-items: center;*/
}

.course-title {
  font-size: 18px;
  font-weight: bold;
  color: #003366;

  min-height: 60px;
}

.course-details {
  font-size: 14px;
  padding: 5px;
}

.course-price {
  color: #28a745;
  font-weight: bold;
  padding: 5px;
}

.ver-temario {
  color: #cc9900; /* Amarillo mostaza */
  font-size: 110%;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 0.5rem;
}

.ver-temario:hover {
  color: #004179;
  text-decoration: underline;
  cursor: pointer;
}


.btn-inscripcion {
  margin-top: auto; /* Empuja el botón hacia el fondo de la tarjeta */
  margin-left: auto;  /* Centra el botón horizontalmente */
  margin-right: auto;
  padding: 10px 20px;
  background-color: #28a745;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-inscripcion:hover {
  background-color: #218838;
  transform: scale(1.05); /* Efecto de escala */
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); /* Sombra */
}

.btn-inscripcion:active {
  transform: scale(0.98); /* Efecto de "presionar" */
  background-color: #1e7e34;
}


/* Animación de sacudida */
@keyframes shake {
    0% { transform: translate(0.5px, 0.5px) rotate(0deg); }
    10% { transform: translate(-0.5px, -1px) rotate(-0.5deg); }
    20% { transform: translate(-1.5px, 0px) rotate(0.5deg); }
    30% { transform: translate(1.5px, 1px) rotate(0deg); }
    40% { transform: translate(0.5px, -0.5px) rotate(0.5deg); }
    50% { transform: translate(-0.5px, 1px) rotate(-0.5deg); }
    60% { transform: translate(-1.5px, 0.5px) rotate(0deg); }
    70% { transform: translate(1.5px, 0.5px) rotate(-0.5deg); }
    80% { transform: translate(-0.5px, -0.5px) rotate(0.5deg); }
    90% { transform: translate(0.5px, 1px) rotate(0deg); }
    100% { transform: translate(0.5px, -1px) rotate(-0.5deg); }
}
/*FIN de Pestañas y tarjetas de curso*/

/*Titulo y Aulavirtual*/
.centered-container {
    width: 90%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-aula-virtual {
    display: inline-block;
    padding: 15px 25px;
    background-color: #b18904;
    color: white;
    font-size: 1.5em;
    font-weight: lighter;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.3s, box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);

    width: 250px;
    margin-left: auto; 
}

.btn-aula-virtual:hover {
    background-color: #004179;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.animated-title {           
    overflow: hidden;

    color: #00589c;
    font-size: 4em;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-align: left;

    width: 70%;
    display: inline-block;
}

.animated-title span {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.3s forwards;
    animation-timing-function: ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Aparece desde abajo */
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-title span:nth-child(1) { animation-delay: 2s; }
.animated-title span:nth-child(2) { animation-delay: 2.1s; }
.animated-title span:nth-child(3) { animation-delay: 2.2s; }
.animated-title span:nth-child(4) { animation-delay: 2.3s; }
.animated-title span:nth-child(5) { animation-delay: 2.4s; }
.animated-title span:nth-child(6) { animation-delay: 2.5s; }
.animated-title span:nth-child(7) { animation-delay: 2.6s; }
.animated-title span:nth-child(8) { animation-delay: 2.7s; }
.animated-title span:nth-child(9) { animation-delay: 2.8s; }
.animated-title span:nth-child(10) { animation-delay: 2.9s; }
.animated-title span:nth-child(11) { animation-delay: 3s; }
.animated-title span:nth-child(12) { animation-delay: 3.1s; }
.animated-title span:nth-child(13) { animation-delay: 3.4s; }
.animated-title span:nth-child(14) { animation-delay: 3.5s; }
.animated-title span:nth-child(15) { animation-delay: 3.6s; }


@media (max-width: 768px) {
    .centered-container {
        flex-direction: column; /* Apila el título y el botón verticalmente */
        align-items: center; /* Centra los elementos horizontalmente */
        padding: 10px; /* Opcional: Reduce el padding del contenedor si lo deseas */
    }

    .animated-title {
        font-size: min(6vw, 2.5em);
        text-align: center;
        margin-bottom: 0px;
    }

    .btn-aula-virtual {
        margin-left: 0;
        margin-top: 10px;
        padding: 8px 16px;
        font-size: calc(1em + 0.5vw);
    }
}
/*Fin de Titulo y Aulavirtual*/

/*Estilos de texto*/
.instructions {
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;

    border-style: solid;
    border-width: 1px;
    border-color: #b18904;

    background-color: #FAFAFA;
    padding: 1em;

    width: 90%;
    margin: 1em auto;
    display: block;
}

.instruction-text {
    margin-bottom: 20px;
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.button-col {
    flex: 1;
    display: flex;
    justify-content: center;
}

.custom-btn {
    background-color: #19579C;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 1em;
    text-decoration: none;
    transition: background-color 0.3s;
}

.custom-btn:hover {
    background-color: #154a7b;
    text-decoration: none;
}
/*Fin de estilos de texto*/

.instruction-list {
  list-style-type: decimal;
  padding-left: 1.2em;
  margin-left: 0;
  color: #333;
  font-size: 1.1em;
  line-height: 1.6;
}

.instruction-item {
  margin-bottom: 1em;
}

.instruction-item.rojo {
  color: red;
  font-weight: bold;
}

.importante {
  color: #0056b3;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

.azul-link {
  color: #0056b3;
  font-weight: bold;
  text-decoration: none;
}

.azul-link:hover {
  text-decoration: underline;
}

.registro-descripcion {
  width: 90%;
  margin: 1em auto;
  display: flex;
  justify-content: center;
  text-align: left;
  line-height: 1.5;
}

.registro-contenedor {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  width: 90%;
  margin: 0 auto;
}

.registro-instrucciones,
.registro-formulario {
  background-color: #FCFCFC;
  padding: 1.5em;
  border: none; /*1px solid #b18904;*/
  box-sizing: border-box;
  width: 49%;
  min-width: 300px;
  border-radius: 6px;
}

.registro-instrucciones {
  color: #333;
}

.instruction-list {
  list-style-position: inside;
  padding-left: 1em;
}

.instruction-item {
  margin-bottom: 1em;
}

.instruction-item.rojo {
  color: red;
  font-weight: bold;
}

.importante {
  color: #0056b3;
  font-weight: bold;
  font-size: 1.1em;
  margin-bottom: 0.5em;
}

.azul-link {
  color: #0056b3;
  font-weight: bold;
  text-decoration: none;
}

.azul-link:hover {
  text-decoration: underline;
}

.form-title {
  font-size: 1.6em;
  color: #0056b3;
  font-weight: bold;
  margin-bottom: 0.3em;
}

.form-subtitle {
  font-size: 0.95em;
  color: #0056b3;
  font-weight: bold;
  margin-bottom: 1em;
}

/* Responsive: apila las secciones en pantallas pequeñas */
@media (max-width: 768px) {
  .registro-contenedor {
    flex-direction: column;
    align-items: center;
  }

  .registro-instrucciones,
  .registro-formulario {
    width: 95%;
  }

  .registro-descripcion {
    flex-direction: column;
  }
}


.form-registro{

    font-size: 120%;
    font-weight: 600;

    padding: 0.5rem;

    width: 95%;
    margin: 15px auto;
    display: block;
}

.registro-btn-enviar {
    background-color: #004179;
    border-radius: 25px;

    color: white;
    font-size: 130%;
    font-weight: bolder;

    padding: 1rem;
    margin: 1rem auto;

    width: 80%;
    display: block;    
}

body.swal2-shown {
  position: fixed !important;
  width: 100%;
  overflow: hidden !important;
  top: 0;
  left: 0;
}

.swal2-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.4) !important; /* forzar overlay visible */
  z-index: 100000 !important;
}

.swal2-confirm-btn {
  background-color: #28a745 !important; /* Verde */
  color: white !important;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  margin: 0.5em;
}

.swal2-cancel-btn {
  background-color: #FF4000 !important;
  color: white !important;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 1rem;
  margin: 0.5em;
}

.btn-confirmar-login {
  background-color: #28a745; /* verde */
  color: white;
  font-weight: bold;
  padding: 8px 18px;
  border-radius: 5px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.swal2-popup {
  background-color: #f1f4f9 !important; /* gris azulado suave */
  border-radius: 14px !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2) !important;
  padding-top: 30px !important;
}

/* Ícono */
.swal2-icon.swal2-info {
  border-color: #0d6efd !important;
  color: #0d6efd !important;
}

/* Título */
.swal2-title {
  font-size: 27px;
  font-weight: 700;
  margin-bottom: 5px;
}

.swal2-html-container {
  margin-bottom: 0 !important;
}

/* Inputs */
.swal2-input {
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 10px !important;
  font-size: 16px;
  font-weight: bolder;
  text-align: center;
  letter-spacing: 0.3rem;
  background-color: white;
  transition: border-color 0.3s ease;

  width: 80%;  
}

.swal2-input:focus {
  border-color: #0d6efd;
  outline: none;
}

/* Botón confirmar */
.btn-confirmar-login {
  background-color: #198754;
  color: white;
  font-weight: bold;
  padding: 10px 24px;
  font-size: 19px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  margin-top: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-confirmar-login:hover {
  background-color: #157347;
}

/* Footer */
.swal2-footer {
  border-top: none !important;
  margin-top: 20px;
  font-size: 14px;
}

.swal2-footer a {
  color: #0d6efd;
  font-weight: 500;
  text-decoration: none;
}

.swal2-footer a:hover {
  text-decoration: underline;
}
.btn-error-acceso {
  background-color: #c62828 !important;
  color: #ffffff !important;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  width: 173px;
  padding: 13px;
}

.btn-error-acceso:hover {
  background-color: #b71c1c !important;
}

.btn-success-acceso {
  background-color: #04B404 !important;
  color: #ffffff !important;
  font-weight: bold;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  width: 173px;
  padding: 13px;
}

.btn-success-acceso:hover {
  background-color: #298A08 !important;
}

#modal-temario {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 2vh 0; /* margen vertical */
}

#modal-temario iframe {
  width: 90vw;
  height: 85vh;
  border: none;
  background: white;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

#modal-temario .cerrar {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.recuperarExito {
  background-color: #2ecc71 !important;
  color: whitesmoke !important;
  font-weight: bold;
}


