/* GENERAL */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #302b63;
    color: black;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh; /* para que el footer quede abajo */
    display: flex;
    flex-direction: column;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(to right, #0f0c29, #302b6375, #24243e48);
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: #000000;
    border-bottom: 2px solid #00ffff;
    box-shadow: 0 0 10px #00ffff;
    font-weight: bold;
    font-size: 20px;
}

.navbar .nav-link i {
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
    transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
   
}

.navbar .nav-link:hover i {
    color: #ff33cc;
    text-shadow: 0 0 15px #ff33cc, 0 0 25px #00ffff;
    transform: scale(1.3) rotate(5deg);
}

.navbar-nav, .nav-link, .active {
    
    color:#ff33cc !important;
}

.navbar-toggler i {
    color: #00ffff;
    text-shadow: 0 0 8px #00ffff;
    transition: color 0.3s, text-shadow 0.3s, transform 0.3s;
}

.navbar-toggler:hover i {
    color: #ff33cc;
    text-shadow: 0 0 15px #ff33cc, 0 0 25px #00ffff;
    transform: scale(1.3) rotate(5deg);
}

/* SECTIONS */
.section {
    padding-top: 160px; /* un poco más de padding arriba */
}
.section:first-of-type {
    padding-top: 160px;
}

.section {
    background-color: rgba(15, 12, 41, 0.7);
    padding: 120px 40px 60px; /* padding horizontal aumentado */
    margin: 100px auto 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #00ffff, #ff33cc);
    max-width: 1200px;
    color: #fff;
    text-align: center;
    box-sizing: border-box; /* importante */
}
.section h2{
    color: #00ffff;
    margin-bottom: 30px;
    text-shadow: 0 0 8px #00ffff;
}

.section h2 i,
.section h3 i,
.section-title i {
    margin-right: 10px;
    animation: neonGlow 2s infinite alternate;
}

@keyframes neonGlow {
    0% {
        text-shadow: 0 0 5px #00ffff, 0 0 10px #00ffff, 0 0 15px #00ffff;
        color: #00ffff;
    }
    100% {
        text-shadow: 0 0 10px #ff33cc, 0 0 20px #ff33cc, 0 0 30px #ff33cc;
        color: #ff33cc;
    }
}

/* HERO */
.hero {
    text-align: center;
    padding: 120px 20px 60px;
    background: transparent;
    position: relative;
    z-index: 1;
}

.hero h1, .heroh2{
    font-size: 2.8rem;
    color: white;
    text-shadow: 0 0 8px #00ffff;
}

.hero p{
    font-size: 1.5rem;
    color: #ffffff;
    text-shadow: 0 0 5px #01ffd5;
}

/* BUTTONS */
.hero .btn,
.section .btn {
    font-size: 1.2rem;
    padding: 15px 30px;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #00ffff, #ff33cc);
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    border-radius: 10px;
    transition: box-shadow 0.4s, transform 0.4s;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    }
    50% {
        box-shadow: 0 0 20px #00ffff, 0 0 40px #ff33cc;
    }
    100% {
        box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    }
}

/* CARDS / PROJECTS / CURRICULO */
.section .col-md-3,
.section .col-md-6,
.section .col-md-12,
.project-card,
.curriculo-block {
    background-color: rgba(30, 20, 60, 0.8);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #00ffff, #ff33cc);
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    transition: transform 0.3s, box-shadow 0.3s;
}
.curriculo{
    margin-top: 15px;
}
.section .col-md-3:hover,
.section .col-md-6:hover,
.section .col-md-12:hover,
.project-card:hover,
.curriculo-block:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ffff, 0 0 40px #ff33cc;
}

.project-card img,
.curriculo-block img {
    max-width: 100%;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 3px solid #00ffff;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
}

/* HORARIOS */
.horarios {
    background: linear-gradient(to right, #0f0c29, #302b63, #24243e);
    color: #ffffff;
    padding: 40px 20px;
    margin-top: 40px;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #00ffff, #ff33cc);
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    border-radius: 12px;
}

.horarios h3 {
    color: #00ffff;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #00ffff;
}

.horarios p {
    font-size: 1.1rem;
    color: #dddddd;
}

/* FOOTER */
.footer {
    background-color: #000000;
    border-top: 2px solid #00ffff;
    box-shadow: 0 0 10px #00ffff;
    padding: 20px;
    text-align: center;
    color: #aaaaaa;
    margin-top: auto; /* para que el footer se quede abajo si hay poco contenido */
}

.footer i {
    font-size: 24px;
    margin: 0 10px;
    color: #00ffff;
    transition: transform 0.3s, color 0.3s;
}

.footer i:hover {
    transform: scale(1.2);
    color: #ff33cc;
}

/* WHATSAPP */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25D366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 0 10px #25D366, 0 0 20px #25D366;
    z-index: 100;
    animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float i {
    margin-top: 14px;
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 0 10px #25D366, 0 0 20px #25D366;
    }
    50% {
        box-shadow: 0 0 20px #25D366, 0 0 40px #25D366;
    }
    100% {
        box-shadow: 0 0 10px #25D366, 0 0 20px #25D366;
    }
}

/* LOADER */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f0c29;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 80px;
    height: 80px;
    border: 10px solid #00ffff;
    border-top: 10px solid #ff33cc;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* PARTICLES */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -2;
}


.contacto-form {
    padding: 120px 60px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%; /* para que sea flexible */
    max-width: 900px; /* en escritorio sí tiene límite */
    box-sizing: border-box;
    margin: 0 auto; /* para que esté centrado */
    margin-top: 120px;
}

#formulario-contacto {
    width: 100%; /* ocupa todo el ancho disponible */
    padding: 20px 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    box-sizing: border-box;
    
}

.form-label {
    display: block;
    width: 100%;
    text-align: left;
    margin-bottom: 5px;
    font-size: 1.1rem;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.form-control {
    width: 100%;
    background-color: rgba(15, 12, 41, 0.8);
    border: 2px solid #00ffff;
    border-radius: 8px;
    color: #ffffff;
    padding: 15px 18px;
    box-shadow: 0 0 5px #00ffff;
    transition: box-shadow 0.3s, border-color 0.3s;
    font-size: 1.2rem;
}

.form-control:focus {
    outline: none;
    border-color: #ff33cc;
    box-shadow: 0 0 10px #ff33cc;
    background-color: rgba(15, 12, 41, 0.9);
}

.form-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    flex-wrap: wrap; /* importante para que en móvil no se descuadre */
}

.form-btn {
    display: inline-block;
    font-size: 1.3rem;
    padding: 15px 35px;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #00ffff, #ff33cc);
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    border-radius: 10px;
    color: #00ffff;
    background-color: transparent;
    text-shadow: 0 0 5px #00ffff;
    transition: box-shadow 0.4s, transform 0.4s;
    animation: pulse 2s infinite;
    cursor: pointer;
    text-align: center;
}

.form-btn:hover {
    box-shadow: 0 0 20px #00ffff, 0 0 40px #ff33cc;
    transform: scale(1.08);
    animation: none;
}

/* Sección Contacto - Mapa */
.contacto-mapa {
    padding: 80px 40px;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 80%;
    box-sizing: border-box;
}

/* Mapa */
.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #00ffff, #ff33cc);
    max-width: 80%; /* ocupa casi toda la sección */
    width: 80%;
    margin: 20px auto;
    transition: transform 0.3s, box-shadow 0.3s;
}

.map-container:hover {
    transform: scale(1.02);
    box-shadow: 0 0 20px #00ffff, 0 0 40px #ff33cc;
}

.map-container iframe {
    width: 100%;
    height: 600px; /* altura bonita para que se vea bien el mapa */
    border: 0;
}
@media (max-width: 768px) {

    /* Contacto Formulario */
    .contacto-form {
        padding: 15px 15px 40px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    #formulario-contacto {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        box-sizing: border-box;
    }

    #formulario-contacto .form-control {
        width: 100%;
        box-sizing: border-box;
        font-size: 1rem;
    }

    .form-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .form-buttons .form-btn {
        width: 100%;
        font-size: 1.1rem;
    }

    /* Contacto Mapa */
    .contacto-mapa {
        padding: 60px 15px;
    }

    .map-container {
        width: 100%;
    }

    .map-container iframe {
        height: 400px;
    }

    /* Hero */
    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    /* Botones generales */
    .form-btn,
    .hero .btn,
    .section .btn {
        padding: 12px 25px;
        font-size: 1.1rem;
    }
}
.datos-contacto a {
    color: #00ffff;
    text-decoration: none;
    font-size: 1.1rem;
    text-shadow: 0 0 5px #00ffff;
    transition: color 0.3s, text-shadow 0.3s;
}

.datos-contacto a:hover {
    color: #ff33cc;
    text-shadow: 0 0 15px #ff33cc, 0 0 25px #00ffff;
}
/* Estilo específico para la video-section */


/* Carrusel Bootstrap personalizado */
.carousel-inner{
    border-radius: 12px;
    border: 3px solid #00ffff;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    object-fit:contain;
    height: 500px; /* puedes ajustar */
}

.carousel-caption {
    background-color: rgba(15, 12, 41, 0.7);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #00ffff, #ff33cc);
}

.carousel-caption h4 {
    color: #00ffff;
    text-shadow: 0 0 5px #00ffff;
}

.carousel-caption p {
    color: #cccccc;
    font-size: 1.5rem;
    font-weight: bold;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0 0 5px #00ffff) drop-shadow(0 0 10px #ff33cc);
}

.carousel-indicators button {
    background-color: #00ffff;
}

.carousel-indicators .active {
    background-color: #ff33cc;
}

/* Estilo específico para la video-section */
.video-section .video-container {
    max-width: 1200px; /* ahora te dejo el máximo real que cabe en .section */
    padding-bottom: 56.25%; /* sigue 16:9 */
    margin: 40px auto;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #00ffff, #ff33cc);
}

.video-section .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 0;
}
.video-hover-glow {
    transition: box-shadow 0.4s, transform 0.4s;
}

.video-hover-glow:hover {
    box-shadow: 0 0 20px #00ffff, 0 0 40px #ff33cc, 0 0 60px #00ffff;
    transform: scale(1.02);
}
.video-controls {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.video-btn {
    font-size: 2rem;
    padding: 15px;
    border: 2px solid;
    border-image-slice: 1;
    border-width: 2px;
    border-image-source: linear-gradient(45deg, #00ffff, #ff33cc);
    border-radius: 50%;
    color: #00ffff;
    background-color: transparent;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    cursor: pointer;
    transition: box-shadow 0.4s, transform 0.4s;
    animation: pulse 2s infinite;
}

.video-btn:hover {
    box-shadow: 0 0 20px #00ffff, 0 0 40px #ff33cc;
    transform: scale(1.1);
    animation: none;
}
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(15, 12, 41, 0.95);
    color: #fff;
    text-align: center;
    padding: 15px 20px;
    border-top: 2px solid #00ffff;
    box-shadow: 0 0 10px #00ffff, 0 0 20px #ff33cc;
    z-index: 9999;
    font-size: 1rem;
    display: none; /* oculta inicialmente */
}

.cookie-banner p {
    margin: 0 0 10px;
    font-size: 1rem;
}

.cookie-banner .btn {
    font-size: 1rem;
    padding: 10px 25px;
    border: 2px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(45deg, #00ffff, #ff33cc);
    background: transparent;
    color: #00ffff;
    cursor: pointer;
    border-radius: 8px;
    text-shadow: 0 0 5px #00ffff;
    transition: box-shadow 0.4s, transform 0.4s;
}

.cookie-banner .btn:hover {
    box-shadow: 0 0 20px #00ffff, 0 0 40px #ff33cc;
    transform: scale(1.05);
}
