:root {
    --yellow: #FFD700;
    --dark: #0f172a;
    --black: #000000;
    --gray: #f8fafc;
}

* { box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    line-height: 1.6;
    background: #00243d;
    color: var(--dark);
}


/* HERO RESPONSIVE */
.hero {
    height: 100vh;
        margin-top: 80px;  
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
    position: relative;
    width: 100%;
    /* Calculamos la altura: 100% de la pantalla menos los 80px del menú */
    height: calc(100vh - 80px); 
    overflow: hidden;
}

.hero h1 {
        font-family:'Times New Roman', Times, serif;
font-size: clamp(2rem, 8vw, 4rem); margin: 20px 0; }
.highlight { color: var(--yellow); }
.badge { background: var(--yellow); color: var(--black); padding: 5px 15px; font-weight: 800; font-size: 0.7rem; letter-spacing: 2px; }

/* CONTENEDOR PRINCIPAL */
.container { max-width: 1100px; margin: 0 auto; padding: 40px 20px; }

/* GRID DE INFO (Responsive) */
.grid-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr)); /* Se ajusta solo */
    gap: 30px;
    margin: 40px 0;
}

.info-box {
    background: var(--gray);
    padding: 30px;
    border-bottom: 5px solid var(--yellow);
    border-radius: 8px;
}

/* SECCIÓN DE VIDEOS */
.video-section { background: #00243d; padding: 60px 20px; color: white; border-radius: 20px; }

.video-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.video-card { 
    background: #1a1a1a; 
    border-radius: 12px; 
    overflow: hidden; 

}

.video-wrapper { 
    display: flex; 
    position: relative; 
    padding-bottom: 56.25%; 
    height: 0; 
    justify-content: center; 
}
.video-wrapper img { 
    position: absolute; 
    width:auto; 
    height:100%;
    object-fit: cover;
}

.video-info { padding: 15px; }

/* BOTÓN */
.btn-primary {
    background: var(--yellow);
    color: var(--black);
    padding: 15px 30px;
    text-decoration: none;
    font-weight: 800;
    border-radius: 5px;
    transition: 0.3s;
}

/* Títulos */
.section-title { text-align: center; color: white; }
.underline { width: 50px; height: 4px; background: var(--yellow); margin: 10px auto; }

/* MEDIA QUERIES PARA DETALLES PEQUEÑOS */
@media (max-width: 600px) {
    .hero { height: 80vh; }
    .grid-info { gap: 15px; }
    .info-box { padding: 20px; }
}

/* FORMULARIO CONTACTO */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
    background: #004e86c3;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group label {
    color: var(--yellow);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    padding: 12px;
    border: 1px solid #333;
    background: #1a1a1a;
    color: white;
    border-radius: 5px;
    font-family: inherit;
    font-size: 1rem;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    outline: none;
    border-color: var(--yellow);
}

.btn-submit {
    background: var(--yellow);
    color: var(--black);
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: #e6c200;
    transform: scale(1.02);
}

.footer {
    text-align: center;
    padding: 40px;
    background: var(--gray);
    margin-top: 60px;
    font-size: 0.9rem;
}
/* CARRUSEL */
.carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;/* Altura en pantalla */
    overflow: hidden;
    background: var(--dark);
    z-index: -1;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Ocultas por defecto */
    transition: opacity 1s ease-in-out; /* Duración del desvanecimiento */
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1; /* Solo la activa se ve */
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para que la imagen no se deforme */
    filter: brightness(0.4); /* Oscurece la imagen para que resalte el texto */
}

.carousel-caption {
    position: absolute;
    text-align: center;
    color: white;
    z-index: 2;
    padding: 20px;
}

.carousel-caption h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 10px;
}

.perfil {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: transparent;
    color: white;
}
.perfil-info span {
    font-family: 'Montserrat', sans-serif;
    color: var(--yellow);
    font-weight: 800;
    text-transform: uppercase;

}
.perfil img {
    width: auto;
    height: 85%;
    border-radius: 20%;
    object-fit: cover;
    filter: brightness(0.8); /* Oscurece la imagen para que resalte el texto */

}

/* NAVBAR BASE */
.navbar {
    background-color: #00243ddb; /* Negro con ligera transparencia */
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 2px solid var(--yellow);
    transition: 0.3s;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}
.nav-container img{
    height: 60px;
    width: auto;
}
.nav-logo {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    text-decoration: none;
}

.yellow-text { color: var(--yellow); }

.nav-links {
    display: flex;
    list-style: none;
    align-items: center;
}

.nav-links li { margin-left: 30px; }

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    transition: 0.3s;
}

.nav-links a:hover { color: var(--yellow); }

/* Botón especial dentro del menú */
.btn-nav-yellow {
    background: var(--yellow);
    color: black !important;
    padding: 10px 20px;
    border-radius: 5px;
}

/* MENÚ MÓVIL (Hamburguesa) */
.nav-toggle {
    display: none; /* Oculto en PC */
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
}


.bar {
    width: 25px;
    height: 3px;
    background-color: var(--yellow);
    margin: 4px 0;
    transition: 0.4s;
}
/* ICONOS SOCIALES */
/* Limpieza general para el Footer */
.main-footer ul {
    list-style: none; /* Quita los puntos negros */
    padding: 0;
}

.main-footer a {
    text-decoration: none; /* Quita la raya azul */
    color: inherit; /* Hereda el color del texto */
}
.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}
.footer-container {
    display: flex;
    flex-wrap: wrap; /* Para que en celular se acomode */
    justify-content: space-between; /* Espacia las columnas */
    max-width: 100%;

    margin: 0 auto;
    padding: 40px 20px;
    background-color: #0a0a0a; /* Fondo Negro */
    color: white; /* Letras blancas */
}

.footer-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-width: 250px; /* Evita que se compriman mucho */
    margin-bottom: 30px;
}
.social-icons-wrapper {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}

.icon-box {
    width: 45px;
    height: 45px;
    background-color: #1a1a1a;
    border-radius: 50%; /* Los hace redondos */
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFD700; /* Amarillo */
    font-size: 1.2rem;
    border: 1px solid #333;
    transition: 0.3s;
}

.icon-box:hover {
    background-color: #FFD700;
    color: black;
}
.footer-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: white !important; /* Fuerza el color blanco */
    text-decoration: none !important;
    font-family: 'Montserrat', sans-serif;
}

.yellow-text {
    color: #FFD700;
}

.footer-col h4 {
    color: #FFD700; /* Títulos de columnas en amarillo */
    margin-bottom: 20px;
    padding: 10px 30px;
    text-transform: uppercase;
    font-size: 1rem;
}
.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: #222; /* Fondo oscuro circular */
    color: var(--yellow);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--yellow);
    color: black;
    transform: translateY(-3px); /* Pequeño salto al pasar el mouse */
}

/* CRÉDITOS INFERIORES */
.footer-bottom {
    background-color: #050505;
    padding: 20px 0;
    margin-top: 50px;
    border-top: 1px solid #222;
}

.bottom-container {
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    flex-wrap: wrap; /* Para que en celular se apile */
}

.footer-bottom p {
    color: #666;
    font-size: 0.8rem;
    margin: 5px 0;
}

.highlight-dev {
    color: #999;
    font-weight: 600;
}

.dev-info {
    font-style: italic;
}

.certificados-section {
    background-color: #00243d; /* Fondo oscuro para resaltar el amarillo */
    padding: 0px 0;
    color: white;
}

.certificados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.cert-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.4s ease;
}

.cert-card:hover {
    border-color: var(--yellow);
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5);
}

.cert-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: white; /* Para que el certificado resalte */
    padding: 10px;
}

.cert-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Para que el diploma se vea completo sin cortes */
    transition: 0.5s;
}

.cert-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 215, 0, 0.2); /* Velo amarillo transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
    cursor: pointer;
}

.cert-card:hover .cert-overlay {
    opacity: 1;
}

.cert-overlay i {
    font-size: 2rem;
    color: white;
}

.cert-info {
    padding: 25px;
}

.cert-tag {
    background: var(--yellow);
    color: black;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 3px;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

.cert-info h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.cert-info p {
    color: #999;
    font-size: 0.9rem;
    line-height: 1.4;
}

.underline-center {
    width: 60px;
    height: 4px;
    background: var(--yellow);
    margin: 20px auto;
}
/* Estilos del Botón de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366; /* Verde oficial, o usa var(--main-yellow) si prefieres */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Tooltip (El mensajito que sale al lado) */
.tooltip-chat {
    position: absolute;
    right: 75px;
    background-color: #1a1a1a;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    border: 1px solid var(--main-yellow);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128c7e; /* Un verde más oscuro al pasar el mouse */
}

/* Mostrar el mensaje al pasar el mouse */
.whatsapp-btn:hover .tooltip-chat {
    opacity: 1;
    visibility: visible;
}

/* Efecto de pulso para llamar la atención */
.whatsapp-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #25d366;
    opacity: 0.5;
    animation: pulse-whatsapp 2s infinite;
    z-index: -1;
}

@keyframes pulse-whatsapp {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* Ajuste para móviles */
@media (max-width: 1000px) {
    .whatsapp-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 30px;
    }
    .tooltip-chat { display: none; } /* Ocultar tooltip en móvil para no tapar pantalla */
}
.formacion-adicional {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    border-top: 1px solid #333;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.formacion-adicional p {
    color: #888;
    font-size: 0.9rem;
    margin: 10px 0;
    font-style: italic;
}

.formacion-adicional i {
    color: var(--main-yellow);
    margin-right: 10px;
}
/* Ajuste móvil */
@media (max-width: 600px) {
    .bottom-container {
        flex-direction: column;
        text-align: center;
    }
    .nav-container a{
        font-size: 0.8rem;
    }
    .nav-toggle { display: flex; }

    .nav-links {
        position: absolute;
        top: 80px;
        left: -100%; /* Escondido a la izquierda */
        flex-direction: column;
        background-color: var(--dark);
        width: 100%;
        height: 40vh;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 10px rgba(0,0,0,0.2);
    }

    .nav-links.active { left: 0; } /* Se desliza al centro */

    .nav-links li { margin: 20px 0; }

    .contact-wrapper {
        padding: 25px;
    }
    .hero{
        height: 55vh;
        width: auto;
    }
    .carousel-container {
        height: 55vh;
    }
    .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para que la imagen no se deforme */
    filter: brightness(0.4); /* Oscurece la imagen para que resalte el texto */
}
    .perfil {
        height: 55vh;
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .perfil-info h1{
        font-size: clamp(1.5rem, 6vw, 3rem);
    }
    .perfil img {
    width: auto;
    height: 40%;
    border-radius: 20%;
    object-fit: cover;
    filter: brightness(0.8);
    }
    .grid-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Se ajusta solo */
    gap: 30px;
    margin: 40px 0;
    }
    .video-grid {
    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
    }
    .nav-container img{
    height: 30px;
    width: auto;
}
}