/* ===== 1. Variables y Estilos Generales ===== */
:root {
    --color-primario: #2c3e50; 
    --color-secundario: #3498db; 
    --color-terciario: #e74c3c; 
    --color-texto: #333;
    --color-fondo: #f8f9fa;
    --color-blanco: #fff;
    --color-negro: #000000; 
    --sombra: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transicion: all 0.3s ease;
    --color-fondo-texto: rgba(110, 110, 110, 0.6); 
    --popup-background: #ffffff;
    --popup-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    --popup-border: 4px solid var(--color-secundario);
    --popup-accent: #ff009dff; 
    --azul-marino-oscuro: #24035cff; /* Color azul marino oscuro añadido */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--color-texto);
    background-color: var(--color-fondo);
    overflow-x: hidden;
    padding-top: 56px;
}

body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
    background-color: #fff !important;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.popup-overlay {
    display: none; 
    position: fixed;
    z-index: 99999; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(173, 172, 172, 0.9);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    backdrop-filter: blur(8px);
    animation: fadeIn 0.5s ease-out; 
    padding: 20px;
}

.popup-content {
    max-width: 95%; 
    width: 800px; 
    max-height: 95vh; 
    background: #4800ffff !important; 
    padding: 4rem; 
    border-radius: 25px;
    box-shadow: var(--popup-shadow), 0 0 40px var(--color-secundario); 
    position: relative;
    text-align: center;
    border: var(--popup-border); 
    animation: dropFromTop 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) both; 
    overflow: hidden;
}

.popup-content::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, var(--color-secundario), var(--popup-accent), var(--color-terciario), var(--color-secundario));
    background-size: 400% 400%;
    z-index: -1;
    border-radius: 28px;
    opacity: 0.8;
    animation: gradientShift 10s ease infinite;
    filter: blur(10px);
}

.popup-content h3 {
    font-family: 'Oswald', sans-serif;
    font-size: 3.5rem; 
    color: #ffffff !important;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    font-weight: 900;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3), 0 0 15px #0400ffff; 
}

.popup-content p.lead {
    font-size: 1.5rem;
    color: #ffffff !important;
    margin-bottom: 2.5rem;
    font-weight: 700 !important;
}

.popup-content p.lead strong {
    color: #ffeb3b !important;
    font-size: 1.8em;
    font-weight: 900;
    text-shadow: 0 0 8px rgba(231, 76, 60, 0.8);
}

.popup-content .btn-lg {
    padding: 1rem 3rem;
    font-size: 1.5rem;
    border-radius: 60px;
    background: linear-gradient(45deg, #ff0000, #ff6b00, #ff00aa) !important;
    border: 3px solid var(--color-blanco);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.6);
    transition: var(--transicion);
    text-transform: uppercase;
    font-weight: 700;
}

.popup-content .btn-lg:hover {
    background: linear-gradient(45deg, var(--color-primario), var(--color-secundario));
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 30px rgba(52, 152, 219, 0.8), 0 0 20px var(--color-terciario);
    border-color: var(--popup-accent);
}

.popup-content small {
    display: block;
    margin-top: 1.5rem !important;
    color: #ffffff !important;
    font-size: 1.3rem !important; 
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    font-weight: 600;
}

.popup-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--color-terciario);
    font-size: 45px;
    font-weight: 300; 
    cursor: pointer;
    opacity: 1;
    transition: opacity 0.3s, transform 0.3s;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 15px rgba(231, 76, 60, 0.5);
}

.popup-close:hover,
.popup-close:focus {
    color: var(--color-primario);
    opacity: 1;
    transform: rotate(360deg) scale(1.1);
    background-color: var(--popup-accent);
    box-shadow: 0 0 20px var(--popup-accent);
}

@media (max-width: 768px) {
    .popup-content {
        padding: 2rem 1.5rem;
        width: 90%;
    }
    .popup-content h3 {
        font-size: 2.2rem;
    }
    .popup-content p.lead {
        font-size: 1.1rem;
    }
    .popup-content .btn-lg {
        font-size: 1.2rem;
        padding: 0.7rem 2rem;
    }
    .popup-close {
        font-size: 35px;
        width: 45px;
        height: 45px;
        top: 10px;
        right: 15px;
    }
}

#inicio {
    position: relative;
    width: 100vw;
    height: calc(100vh - 56px); 
    min-height: 600px;
    background-color: var(--color-negro); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    margin: 0;
    padding: 0;
}
#inicio::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
    background: rgba(110, 109, 109, 0.4); /* Capa negra semitransparente */
}

.carousel {
    width: 100%;
    height: 100%; 
}
.carousel-inner {
    width: 100%;
    height: 100%; 
}
.carousel-item {
    width: 100%;
    height: 100%; 
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
}
.contenido-inicio {
    position: absolute; 
    z-index: 10;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    pointer-events: none; 
}

.subtitulo-inicio {
    background-color: var(--color-fondo-texto); 
    padding: 5px 15px; 
    border-radius: 8px;
    pointer-events: auto;
    margin-bottom: 2vh; 
}

.texto-bienvenida, .subtitulo-inicio, .texto-direccion {
    pointer-events: auto;
    margin-bottom: 2vh; 
}

.texto-bienvenida {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    animation: fadeInUp 1.2s ease-out;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1.1;
    margin-top: 10vh;
    color: #ffffff;
    -webkit-text-fill-color: initial;
    text-shadow: 2px 2px 4px rgba(9, 0, 55, 0.9); /* Contorno pequeño */
    -webkit-text-stroke: 1px rgba(14, 0, 87, 0.7); /* Borde sutil */
}
.texto-direccion {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    animation: fadeInUp 1.5s ease-out 0.3s both;
    color: white !important;
    font-size: clamp(1.2rem, 4vw, 3rem);
    max-width: 100%; 
    text-align: left; 
    margin-left: 0; 
    margin-right: 0; 
    padding: 0 20px; 
    margin-top: auto;
    margin-bottom: 10vh;
    line-height: 1.4;
    text-shadow: 
        1px 1px 0 #0a035c,
        -1px -1px 0 #0a035c,
        1px -1px 0 #0a035c,
        -1px 1px 0 #0a035c !important;
}
/* ESTILOS ACTUALIZADOS PARA subtitulo-inicio */
.subtitulo-inicio {
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    color: var(--color-blanco);
    font-size: clamp(2.5rem, 8vw, 6rem);
    text-shadow: 2px 2px 10px rgba(14, 0, 87, 0.9);
    margin-top: 2rem;
    animation: fadeInUp 1.5s ease-out 0.3s both;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* NUEVOS ESTILOS PARA LAS PARTES SEPARADAS */
.conver-peru {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(3rem, 10vw, 8rem);
    color: white;
    line-height: 1.1;
}

.mundo-virtual {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 6vw, 5rem); /* Más pequeño que CONVER PERÚ */
    color: white;
    margin-top: 10px; /* Espacio entre las líneas */
}

/* ===== 2. Estilos de Carrusel ===== */
.carousel-control-prev,
.carousel-control-next {
    top: 50% !important; 
    transform: translateY(-55%) !important; 
    width: 60px !important; 
    height: 60px !important;
    opacity: 1 !important;
    z-index: 100; 
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.95), rgba(0, 0, 0, 0.95)); 
    border: 2px solid rgba(12, 3, 73, 1); 
    border-radius: 50%;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.6), 0 0 10px rgba(255, 255, 255, 0.1) inset; 
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    transform: translateY(-55%) scale(1.15) !important; 
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.95), rgba(30, 30, 30, 0.95)); 
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.8), 0 0 20px var(--color-secundario); 
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: brightness(0) invert(1) drop-shadow(0 0 3px rgba(0,200,255,0.8)); 
    width: 25px; 
    height: 25px;
    transition: all 0.4s;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    transform: rotate(5deg);
}

.carousel-control-prev {
    left: 20px !important; 
}

.carousel-control-next {
    right: 20px !important; 
}

@media (max-width: 768px) {
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px !important; 
        height: 40px !important;
        left: 10px !important;
        right: 10px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); 
    }
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        transform: translateY(-55%) scale(1.1) !important; 
    }
}

/* ===== 3. Estilos de Navegación y Elementos Flotantes (WhatsApp) ===== */
.navbar {
    background: linear-gradient(90deg, #00e1ffff, var(--azul-marino-oscuro), var(--color-primario));
    background-size: 200% 100%;
    animation: gradientShift 15s linear infinite;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    transition: background 0.5s ease;
    padding: 10px 20px;
}

.navbar-brand {
    font-weight: bold;
    font-size: 30px; 
    color: #fff !important;
    text-shadow: 0 0 10px rgba(0, 5, 104, 0.5);
    transition: all 0.4s ease;
}

.navbar-brand:hover {
    transform: scale(1.05) rotate(-2deg);
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
}

.navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 600;
    color: #f8f9fa !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    position: relative;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.navbar-nav .nav-link:hover {
    color: #ffffffff !important;
    transform: translateY(-5px);
    text-shadow: 0 0 15px rgba(0, 255, 247, 1);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #f9f9f9ff, #000f4fff);
    transition: width 0.3s ease-out;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.6) !important;
    transition: border-color 0.3s;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transition: background-image 0.3s;
}

.navbar .dropdown-menu {
    background: linear-gradient(135deg, var(--color-primario), #34495e);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.navbar .dropdown-item {
    color: white !important;
    padding: 10px 15px;
    transition: all 0.3s ease;
    border-radius: 5px;
    margin: 2px 5px;
}

.navbar .dropdown-item:hover {
    background: linear-gradient(90deg, var(--color-secundario), #2980b9);
    transform: translateX(5px);
}

.navbar .dropdown-header {
    color: #ecf0f1;
    font-size: 0.9rem;
    font-weight: 600;
}

.navbar .dropdown-divider {
    border-color: rgba(255,255,255,0.2);
}


.navbar .nav-link.dropdown-toggle:hover {
    color: #ffffffff !important;
    transform: translateY(-5px);
    text-shadow: 0 0 15px rgba(0, 255, 247, 1);
}

.whatsapp-float {
    position: fixed;
    bottom: 15px;
    right: 15px;
    z-index: 999;
    background-color: #03c349ff;
    padding: 6px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s;
    color: white;
    font-size: 30px;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 30px;
    height: 30px;
    filter: invert(1);
}

/* ===== 4. Estilos de Títulos y Botones ===== */
.titulo-certificados {
    text-align: center;
    margin-bottom: 30px;
    padding: 25px 15px;
    border-radius: 10px;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(270deg, var(--color-terciario), #ff0088ff, #00801eff, #00ddffffrgba(98, 0, 255, 1)f2);
    background-size: 1000% 100%;
    animation: brillaFondo 10s linear infinite;
}

.titulo-certificados h1 {
    color: white;
    font-size: 34px;
    font-weight: bold;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.frase-espectacular {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
    font-style: italic;
    letter-spacing: 1.2px;
    animation: brilloFrase 6s ease-in-out infinite;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.titulo-brillante {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(270deg, #ff2f00ff, #e1ff00ff, #009623ff, #00ddffff, #6200ffff);
    background-size: 1000% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: brillaTexto 8s linear infinite;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.seccion-botones {
    background-image: linear-gradient(to right, #000033, #000000);
    padding: 30px 0;
    border-radius: 12px;
    margin-top: 40px;
    margin-bottom: 40px;
    width: 95%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    transition: background 0.5s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.icono-boton {
    width: 280px;
    height: 90px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.icono-boton:hover {
    transform: scale(1.05);
}

.cuadro-img {
    width: 410px;
    height: 350px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.cuadro-img:hover {
    transform: scale(1.05);
}

/* ===== 5. Estilos de Secciones Adicionales (MODIFICADOS) ===== */
.seccion-quienes-somos {
    padding: 100px 0;
    background: linear-gradient(135deg, #0080ffff, #ffffffff, #7df2ffff);
    background-size: 200% 200%;
    animation: gradientAnimation 10s ease infinite;
    position: relative;
    overflow: hidden;
}

.seccion-quienes-somos::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('img/fondo-textura.png') center/cover no-repeat;
    opacity: 0.03;
    z-index: 0;
}

.seccion-quienes-somos .container {
    position: relative;
    z-index: 1;
}

.seccion-quienes-somos h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem; 
    color: var(--azul-marino-oscuro); /* Color azul marino oscuro */
    margin-bottom: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
}

.seccion-quienes-somos h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secundario), #ff009dff);
    border-radius: 2px;
}

.seccion-quienes-somos p {
    text-transform: uppercase; 
    font-weight: bold; 
    
    font-size: 1.2rem;
    line-height: 1.8;
    color: #000000ff;
    margin-bottom: 30px;
    position: relative;
    padding-left: 0; 
    border-left: none; 
    text-align: justify;
}

.seccion-quienes-somos strong {
    color: var(--color-terciario);
    font-weight: 600;
}

.mision-vision-box {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-top: 5px solid transparent;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 3px solid #001f3f; 
}

.mision-vision-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.1), rgba(46, 204, 113, 0.1));
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.mision-vision-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.mision-vision-box:hover::before {
    opacity: 1;
}

.mision-vision-box.mision {
    border-top-color: var(--azul-marino-oscuro); /* Color azul marino oscuro */
}

.mision-vision-box.vision {
    border-top-color: var(--azul-marino-oscuro); /* Color azul marino oscuro */
}

.mision-vision-box h1 {
    background: var(--azul-marino-oscuro) !important; /* Color azul marino oscuro */
    color: white !important;
    padding: 20px;
    font-size: 30px !important;
    font-weight: bold;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    text-align: center;
    margin: -40px -30px 25px -30px !important;
    width: calc(100% + 60px) !important;
}
.mision-vision-box p {
    background: white;
    color: #000000ff;
    margin-bottom: 0;
    padding: 20px;
    border-left: none;
    text-transform: uppercase; 
    font-weight: bold;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}

.seccion-redes-sociales {
    padding: 100px 0;
    background: linear-gradient(135deg, #a80077, #6610f2, #fdbb2d);
    position: relative;
    overflow: hidden;
    text-align: center;
    margin-bottom: 0 !important; 
}

.seccion-redes-sociales h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.seccion-redes-sociales h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255,255,255,0.9);
    margin-bottom: 50px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.social-icons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 40px;
}

.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    font-size: 40px;
    text-decoration: none !important;
}

.social-icon-link:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.social-icon-link.facebook {
    background: linear-gradient(45deg, #003980ff);
}
.social-icon-link.youtube {
    background: linear-gradient(45deg, #cc0101ff);
}
.social-icon-link.instagram {
    background: linear-gradient(45deg, #ff8400ff, #ff4400ff, var(--color-terciario), #ff0066ff, #ff00aeff);
}
.social-icon-link.tiktok {
    background: linear-gradient(45deg, #010101, var(--azul-marino-oscuro)); /* Color azul marino oscuro */
}
.social-icon-link.twitter {
    background: linear-gradient(45deg, #006fbeff);
}

.redes-llamada-accion {
    margin-top: 50px;
    font-family: 'Montserrat', sans-serif;
    color: white;
    font-size: 1.2rem;
    opacity: 0.9;
}

.seccion-ubicacion {
    background: linear-gradient(270deg, var(--azul-marino-oscuro), #2206d8ff, #118dbaff); /* Color azul marino oscuro */
    background-size: 200% 200%;
    animation: gradientAnimation 15s ease infinite alternate;
    padding: 60px 0;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    position: relative; 
}
.seccion-ubicacion h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4rem; 
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    display: inline-block;
    margin-bottom: 50px;
    text-align: center;
    color: #ffffff !important; 
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5); 
    background: none; 
    background-size: auto;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    animation: none; 
}

.seccion-ubicacion h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-secundario), #ff009dff);
    border-radius: 2px;
}

.seccion-ubicacion .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.seccion-ubicacion .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.3);
}

.seccion-ubicacion .card-header {
    background: linear-gradient(90deg, #009f7fff, #0073c0ff);
    color: white;
    padding: 20px;
    font-size: 30px;
    font-weight: bold;
    border-bottom: none;
    border-radius: 15px 15px 0 0;
}

.seccion-ubicacion .card-body {
    padding: 30px;
    color: white;
    font-size: 17px;
    line-height: 1.6;
    font-weight: 600; 
    text-align: left;
}

.seccion-ubicacion .card-text strong {
    color: #fff;
    font-weight: bold;
}

.seccion-ubicacion .mapa-container {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    border-radius: 10px;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.seccion-ubicacion .mapa-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== 6. Estilos de Modales y Galería ===== */
.modal-body .row img.zoomable {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.modal-body .row img.zoomable:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px var(--color-secundario);
}

#consulto,
#consulto1,
#consulto2 {
    max-width: 100%;
    height: auto;
    object-fit: contain;
}

#modalImagenAmpliada .modal-dialog {
    margin: 0;
    max-width: 100%;
    width: 100vw;
    height: 100vh;
}

#modalImagenAmpliada .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
    background-color: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalImagenAmpliada .modal-body {
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

#imagenAmpliada {
    max-height: 100vh;
    max-width: 100vw;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.btn-cerrar-flotante {
    position: absolute;
    top: 15px;
    right: 70px;
    z-index: 1060;
    background-color: #e0e0e0;
    border: none;
    color: var(--color-terciario);
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.2s ease-in-out, background-color 0.2s;
}

.btn-cerrar-flotante:hover {
    transform: scale(1.1);
    background-color: #c0c0c0;
    color: #c0392b;
}

.modal .modal-header .btn-close {
    display: none;
}

.modal-controls {
    position: absolute;
    top: 15px;
    right: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1060;
}

.modal-controls .btn {
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.modal-controls .btn:hover {
    background-color: #fff;
    transform: scale(1.1);
}

.modal-galeria-fullscreen .modal-dialog {
    max-width: 100vw;
    max-height: 100vh;
    margin: 0;
    width: 100vw;
    height: 100vh;
}

.modal-galeria-fullscreen .modal-content {
    height: 100vh;
    border-radius: 0;
    border: none;
}

.modal-title {
    font-size: 5vw !important;
    line-height: 1.2;
    font-family: 'Oswald', sans-serif;
}

.modal-content img,
.modal-body img {
    background-color: transparent !important;
    filter: none !important;
    box-shadow: none !important;
    z-index: 10;
}

.modal-content {
    background-color: #fff !important;
}

.modal-backdrop.show {
    background-color: #fff;
    opacity: 1 !important;
}

.fondo-certificados + .pt-5 .titulo-consulta.text-white {
    color: #333 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: unset !important;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.seccion-botones + .pt-5 .titulo-consulta {
    color: black !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.seccion-botones + .pt-5 .row {
    margin-top: 60px;
}

.footer-converperu {
    background: var(--azul-marino-oscuro); /* Color azul marino oscuro */
    color: var(--color-blanco); 
    background-size: 400% 400%;
    animation: gradientBackground 10s ease infinite; 
    padding: 40px 20px;
    text-align: center;
    font-family: 'Arial', sans-serif;
    border-top: 5px solid rgba(0, 208, 255, 0.3);
    margin-top: 0 !important; 
}

.footer-converperu h3 {
    font-size: 2.2em;
    margin-bottom: 15px;
    text-shadow: 2px 2px 8px rgba(0, 195, 255, 0.7);
    color: white; 
}

.footer-converperu p {
    font-size: 1.2em;
    margin-bottom: 25px;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.footer-info-box {
    flex: 1;
    min-width: 280px;
    text-align: left;
    padding: 15px;
    border-radius: 8px;
    background: hsla(240, 2%, 34%, 0.82); 
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.3);
}

.footer-info-box h4 {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: bold;
    color: #f8f9fa;
}

.footer-converperu .copyright {
    font-size: 0.9em;
    opacity: 0.8;
}

/* ===== 7. Estilos para la nueva sección de Aula Virtual ===== */
#aula-virtual {
    height: 100vh;
    background: linear-gradient(45deg, var(--azul-marino-oscuro), #008cffff, #1ce4ffff); /* Color azul marino oscuro */
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite alternate;
    color: var(--color-blanco);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    text-align: center;
    overflow: hidden;
    border-top: 8px solid rgba(0, 12, 82, 1);
    border-bottom: 8px solid rgba(255, 0, 0, 0.4);
}

#aula-virtual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="sparkle" x="0" y="0" width="10" height="10" patternUnits="userSpaceOnUse"><rect x="0" y="0" width="2" height="2" fill="%23ffffff" opacity="0.1"/><rect x="5" y="5" width="2" height="2" fill="%23ffffff" opacity="0.15"/></pattern></defs><rect x="0" y="0" width="100" height="100" fill="url(%23sparkle)"/></svg>');
    opacity: 0.2;
    z-index: 1;
    animation: sparkleFade 8s ease-in-out infinite alternate;
}

#aula-virtual .container {
    position: relative;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.5);
}

#aula-virtual .titulo-brillante {
    font-size: 4.8rem;
    font-weight: 900;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #000000ff, var(--azul-marino-oscuro)); /* Color azul marino oscuro */
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmeringText 8s ease infinite;
    text-shadow: none !important;
    letter-spacing: 2px;
}

#aula-virtual p {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    line-height: 1.6;
}

#aula-virtual .btn {
    background: linear-gradient(45deg, #0077ffff, #58c7ffff, #87cefdff);
    background-size: 200% auto;
    border: none;
    font-size: 1.6rem;
    font-weight: bold;
    padding: 18px 45px;
    border-radius: 60px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--azul-marino-oscuro); /* Color azul marino oscuro */
    transition: all 0.4s ease;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFF;
    text-shadow: none !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

#aula-virtual .btn:hover {
    background-position: right center;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.6), 0 0 30px #ffffffff;
    border: 2px solid #ffffffff;
    color: #FFF;
    text-shadow: none !important;
}

#aula-virtual .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    transform: skewX(-30deg);
    transition: all 0.7s ease;
    z-index: -1;
}

#aula-virtual .btn:hover::before {
    left: 100%;
}

/* ===== 8. Media Queries (Responsividad) ===== */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: rgba(31, 40, 51, 0.95);
        border-radius: 0 0 10px 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 768px) {
    #inicio {
        height: calc(100vh - 56px); 
        min-height: 500px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px !important; 
        height: 40px !important;
        left: 10px !important;
        right: 10px !important;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6); 
    }
    
    .carousel-control-prev:hover,
    .carousel-control-next:hover {
        transform: translateY(-55%) scale(1.1) !important; 
    }
    
    .contenido-inicio {
        max-width: 95%;
        padding: 0 10px;
    }

    .seccion-quienes-somos h2,
    .seccion-ubicacion h1 {
        font-size: 3rem; 
    }

    .seccion-quienes-somos p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .mision-vision-box h1 {
        font-size: 1.5rem !important;
        margin: -30px -20px 20px -20px !important;
        padding: 12px 15px !important;
    }

    .mision-vision-box p {
        font-size: 0.9rem;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    #inicio {
        height: calc(100vh - 56px);
        min-height: 400px;
    }
    
    .texto-bienvenida {
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
    
    .texto-direccion {
        font-size: clamp(0.9rem, 2.5vw, 1.2rem);
    }
    
    .contenido-inicio {
        max-width: 95%;
        padding: 0 10px;
    }
}

/* ===== 9. Animaciones y Keyframes ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes brillaTexto {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes brillaFondo {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes brilloFrase {
    0%, 100% { text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 10px #28a745; }
    50% { text-shadow: 2px 2px 10px rgba(0,0,0,0.9), 0 0 20px #17a2b8; }
}

@keyframes gradientBackground {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes cambiarColorFlotante {
    0% { color: #FF0000; }
    25% { color: #0000FF; }
    50% { color: #FFFF00; }
    75% { color: #008000; }
    100% { color: #800080; }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmeringText {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes sparkleFade {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

@keyframes gradientAnimation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes textShine {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1.05); }
    to { transform: scale(1); }
}

@keyframes dropFromTop {
    0% {
        opacity: 0;
        transform: translateY(-100px) scale(0.8);
    }
    50% {
        opacity: 1;
        transform: translateY(20px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.titulo-consulta {
    font-family: 'Clarendon Blk BT', serif !important; 
    font-size: 68px !important;
    color: white;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
    font-weight: bold;
    margin-bottom: 25px;
}

.fondo-certificados + .pt-5 .titulo-consulta.text-white {
    color: #333 !important;
    text-shadow: none !important;
    -webkit-text-fill-color: unset !important;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.seccion-botones + .pt-5 .titulo-consulta {
    color: black !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    -webkit-text-fill-color: transparent;
    background-clip: text;
    -webkit-background-clip: text;
}

.seccion-botones + .pt-5 .row {
    margin-top: 60px;
}

/* ===== 10. Preloader ===== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.spinner {
    border: 8px solid #af0909ff, #e0008eff, #92006bff, #fc46e9ff;
    border-top: 8px solid var(--color-secundario);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
    margin-bottom: 20px;
}

.loading-text {
    font-family: 'Arial', sans-serif;
    font-size: 1.5em;
    color: #333;
    font-weight: bold;
}
.logo-link {
    display: block;
    margin-bottom: 15px; /* Espacio entre el logo y el H3 */
}

.footer-logo {
    max-width: 100px; /* Tamaño del logo */
    height: auto;
    display: block;
    margin: 0 auto; /* Centrado horizontal */
}