/* COLORES BASE */
:root {
    --azul-marino: #0b1c2d;
    --amarillo: #f5c400;
    --blanco: #ffffff;
}

/* NAVBAR */
.navbar-api {
    background-color: var(--azul-marino);
}

/* BANNER SUPERIOR HOME */
.home-banner {

    width: 100%;
    height: 500px; /* altura del banner */ 
    background-image: url("../images/banner_home1.webp"); /* cambia la imagen */
    background-size:contain;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* Oscurece ligeramente la imagen (opcional pero recomendado) */
.banner-overlay {
    width: 100%;
     height: 500px; /* altura del banner */ 
    background: linear-gradient(
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.05)
    );
}



/* HERO */
.hero-section {
    background-color: var(--azul-marino);
    color: var(--blanco);
    padding: 140px 20px 100px;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
}

.hero-title span {
    color: var(--amarillo);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-top: 15px;
}

/* SECCIONES */
.section-light {
    padding: 80px 20px;
    background-color: #f8f9fa;
}

.section-title {
    text-align: center;
    font-weight: 700;
    color: var(--azul-marino);
}

/* SECCIÓN INFO ACADÉMICA EN CUADRÍCULA */
.info-cursos {
    background-color: #102a43;
    color: var(--blanco);
    padding: 100px 20px;
}

.info-title span {
    color: var(--amarillo);
}

.info-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.metric-box {
    background-color: rgba(255,255,255,0.08);
    padding: 25px;
    border-radius: 14px;
}

.metric-box h3 {
    color: var(--amarillo);
    font-size: 2.3rem;
    margin-bottom: 5px;
}

.info-card {
    background-color: rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 30px;
    height: 100%;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.info-card i {
    font-size: 2.5rem;
    color: var(--amarillo);
    margin-bottom: 15px;
}

.info-card h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.info-card:hover {
    transform: translateY(-6px);
    background-color: rgba(255,255,255,0.1);
}

.cta-card {
    background-color: rgba(245,196,0,0.12);
}


/* ===== SECCIÓN REGISTRO HOME ===== */
.registro-home {
    background-color: #ffffff;
    padding: 80px 8%;
}

.registro-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 50px;
}

/* TEXTO */
.registro-texto h2 {
    font-size: 2.6rem;
    color: #000;
    margin-bottom: 20px;
}

.registro-texto p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 35px;
    line-height: 1.6;
}

/* BOTONES */
.registro-botones {
    display: flex;
    gap: 20px;
}

.btn-registro {
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-registro span {
    font-size: 0.9rem;
    font-weight: normal;
}

.btn-registro.estudiante {
    background-color: #8b2c1c; /* vino */
}

.btn-registro.docente {
    background-color:  #8b2c1c; /* vino */
}

.btn-registro:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

/* IMAGEN */
.registro-imagen img {
    width: 100%;
    border-radius: 10px;
    border: 5px solid #8b2c1c;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .registro-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .registro-botones {
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* ===== CURSOS DESTACADOS ===== */
.cursos-home {
    background-color: #f4f7fb;
    padding: 90px 8%;
}

.cursos-header {
    text-align: center;
    margin-bottom: 60px;
}

.cursos-header h2 {
    font-size: 2.6rem;
    color: #0b1c2d;
}

.cursos-header p {
    font-size: 1.1rem;
    color: #555;
}

/* SUBSECCIÓN */
.cursos-subseccion {
    margin-bottom: 70px;
}

.cursos-subseccion h3 {
    font-size: 2rem;
    color: #0b1c2d;
    margin-bottom: 30px;
    border-left: 6px solid #f5c400;
    padding-left: 15px;
}

/* GRID */
.cursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.cursos-grid.tres {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* CARD */
.curso-card {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    transition: transform 0.3s ease;
}

.curso-card:hover {
    transform: translateY(-6px);
}

.curso-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.curso-card h4 {
    font-size: 1.2rem;
    margin: 15px;
    color: #0b1c2d;
}

.curso-card p {
    font-size: 0.95rem;
    margin: 0 15px 15px;
    color: #444;
    line-height: 1.5;
}

/* BOTÓN INSCRIBIRSE */
.btn-inscribirse {
    display: block;
    margin: 0 15px 20px;
    padding: 12px 0;
    text-align: center;
    background-color: #0b1c2d;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: background-color 0.3s ease,
                transform 0.2s ease,
                box-shadow 0.3s ease;
}

.btn-inscribirse:hover {
    background-color: #f5c400;
    color: #0b1c2d;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}


/* ===== SECCIÓN SEDE ===== */
.sede-home {
    background-color: #ffffff; 
    padding: 80px 8%;
}

.sede-wrapper {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* FILAS */
.sede-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

/* INFO */
.sede-info h2 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: #0b1c2d;
}

.sede-info p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #333;
}

.sede-datos {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.sede-datos li {
    margin-bottom: 10px;
}

/* BOTÓN MAPS */
.btn-maps {
    display: inline-block;
    background-color: #f5c400;
    color: #0b1c2d;
    padding: 12px 25px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
}

/* MAPA */
.sede-mapa iframe {
    width: 100%;
    height: 320px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* FOTO */
.sede-foto img {
    width: 80%;
    height: 500px;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid #0b1c2d;
}

/* VIDEO */
.sede-video iframe {
    width: 80%;
    height: 500px;
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .sede-row {
        grid-template-columns: 1fr;
    }

    .sede-foto img,
    .sede-video iframe {
        height: 300px;
    }
}


/* FOOTER */
.footer-api {
    background-color: var(--azul-marino);
    color: var(--blanco);
    padding: 30px 0;
}

/* REDES SOCIALES */
.social-links a {
    color: var(--blanco);
    font-size: 1.6rem;
    margin: 0 10px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--amarillo);
    transform: scale(1.2);
}

/* LOGO NAVBAR */
.logo-api {
    height: 40px;
   /* width: auto;*/
}


.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;

    width: 60px;
    height: 60px;

    background-color: #25d366;
    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;
    border-radius: 50%;

    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 999;

    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: white;
}

html {
    scroll-behavior: smooth;
}

.aula-virtual-section {
    background-color: #f0f4f8;
    padding: 80px 0;
}

.aula-virtual-header h2 {
    font-size: 2.4rem;
    color: #0b1c2d;
    font-weight: 700;
}

.aula-card {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.aula-card:hover {
    transform: translateY(-5px);
}

.aula-card i {
    color: #f5c400;
}

.aula-card .badge {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .aula-virtual-header h2 {
        font-size: 1.8rem;
    }
}


/* ===== ESTADO DEL CURSO (Aula virtual / En progreso) ===== */
.curso-card { position: relative; }

.curso-estado {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.curso-estado.disponible { background-color: #f5c400; color: #0b1c2d; }
.curso-estado.progreso   { background-color: #6c757d; color: #ffffff; }

.curso-card.en-progreso img { filter: grayscale(40%); }

.btn-inscribirse.deshabilitado,
.btn-inscribirse.deshabilitado:hover {
    background-color: #e9ecef;
    color: #6c757d;
    cursor: default;
    transform: none;
    box-shadow: none;
}

/* Fila de solo dos cursos, centrada */
.cursos-grid.dos {
    grid-template-columns: repeat(auto-fit, minmax(280px, 380px));
    justify-content: center;
}

/* Al saltar a una sección (#cursos, #aula-virtual), que el menú fijo no tape el título */
section[id] {
    scroll-margin-top: 90px;
}
