/*
============================================================
SISTEMA VISUAL CAFÉ+ BASADO EN NEUROCIENCIA
============================================================

Marrón: activa confianza y calidez (sistema límbico)
Ámbar: activa atención y creatividad (corteza prefrontal)
Blanco: reduce carga cognitiva

*/

:root {
    --color-primary: #5A2E0C;
    --color-secondary: #D88C3A;
    --color-light: #F4E6D4;
    --color-dark: #1a1a1a;
}

body {
    font-family: 'Montserrat', sans-serif;
    scroll-behavior: smooth;
}

.navbar {
    background-color: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
}



/*
============================================================
HERO NEUROBACKGROUND SYSTEM
============================================================
*/

.hero {

    min-height: 100vh;
    position: relative;
    overflow: hidden;

}

.hero-bg {

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url("img/hero-cafe.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 1;

}

/*
Overlay oscuro mejora contraste → reduce carga cognitiva
*/

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.75) 0%,
        rgba(0,0,0,0.55) 40%,
        rgba(0,0,0,0.2) 70%,
        rgba(0,0,0,0.05) 100%
    );

    z-index: 2;
}

.hero .container {

    z-index: 3;
    position: relative;

}

/*
Neurointeraction
*/

.btn-neuro {

    background-color: #D88C3A;
    border: none;
    border-radius: 50px;
    padding: 14px 32px;
    font-weight: 600;

    transition: all 0.3s;

}

.btn-neuro:hover {

    background-color: #5A2E0C;
    transform: translateY(-2px);

}

        .section {
            padding: 100px 0;
        }

        .section-light {
            background-color: var(--color-light);
        }

        .section-dark {
            background-color: var(--color-primary);
            color: white;
        }

        .neuro-card {

            /*
            Neuro UI Principle:
            Bordes suaves reducen respuesta de amenaza cerebral
            */

            border-radius: 16px;
            transition: all 0.3s;
        }

        .neuro-card:hover {

            /*
            Micro-interacción que activa sistema dopaminérgico
            */

            transform: translateY(-5px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }

        .btn-neuro {
            background-color: var(--color-secondary);
            color: white;
            border-radius: 50px;
            padding: 12px 30px;
        }

        .btn-neuro:hover {
            background-color: var(--color-primary);
            color: white;
        }




/*
============================================================
ABOUT — NEUROVISUAL SYSTEM
============================================================
*/

.section-light {

    background-color: #F4E6D4;

}

.neuro-image {

    transition: transform 0.5s ease, box-shadow 0.5s ease;

}

.neuro-image:hover {

    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);

}

/*
Icono cognitivo
*/

.neuro-icon {

    width: 50px;
    height: 50px;

    background: linear-gradient(135deg, #D88C3A, #5A2E0C);

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 20px;

}

/*
Tarjeta misión efecto dopamina visual
*/

.neuro-card {

    border-radius: 16px;
    background: white;

    transition: all 0.3s ease;

}

.neuro-card:hover {

    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);

}




/*
============================================================
NEUROCARDS CON IMAGEN
============================================================
*/

.pilares-section {

    background: linear-gradient(
        180deg,
        #F4E6D4 0%,
        #ffffff 100%
    );

}

.pilares-card {

    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s ease;

}

.pilares-card:hover {

    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);

}

/*
Imagen cognitiva
*/

.pilares-img-container {

    overflow: hidden;

}

.pilares-img {

    height: 220px;
    object-fit: cover;

    transition: transform 0.6s ease;

}

.pilares-card:hover .pilares-img {

    transform: scale(1.08);

}





/*
============================================================
IA SECTION — NEUROTECH VISUAL SYSTEM
============================================================
*/

.ia-section {

    background: linear-gradient(
        135deg,
        #0f172a 0%,
        #1e293b 50%,
        #020617 100%
    );

    position: relative;

}

/*
Imagen con efecto tecnológico
*/

.ia-image {

    transition: all 0.5s ease;

}

.ia-image:hover {

    transform: scale(1.03);
    box-shadow: 0 40px 80px rgba(0,0,0,0.6);

}

/*
Indicadores cognitivos
*/

.ia-stat {

    padding: 10px;
    border-left: 3px solid #D88C3A;
}





/*
============================================================
COBERTURA — NEURAL NETWORK VISUAL SYSTEM
============================================================
*/

.cobertura-section {

    background: linear-gradient(
        135deg,
        #020617 0%,
        #0f172a 50%,
        #020617 100%
    );

}

/*
Imagen mapa cognitivo
*/

.cobertura-image {

    transition: all 0.5s ease;

}

.cobertura-image:hover {

    transform: scale(1.02);
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);

}

/*
Indicadores
*/

.cobertura-stat {

    border-left: 3px solid #D88C3A;
    padding-left: 12px;

}



/*
============================================================
EQUIPO — HUMAN NETWORK VISUAL SYSTEM
============================================================
*/

.equipo-section {

    background: linear-gradient(
        135deg,
        #020617 0%,
        #0f172a 50%,
        #020617 100%
    );

}

.equipo-card {

    background: transparent;
    transition: all 0.4s ease;

}

.equipo-card:hover {

    transform: translateY(-10px);

}

/*
Imagen equipo
*/

.equipo-img-container {

    overflow: hidden;
    border-radius: 16px;

}

.equipo-img {

    width: 100%;
    height: 320px;
    object-fit: cover;

    transition: transform 0.6s ease;

}

.equipo-card:hover .equipo-img {

    transform: scale(1.08);
}


.equipo-card .btn-outline-warning {
    border-color: #D88C3A;
    color: #D88C3A;
    border-radius: 50px;
    padding: 6px 18px;
    font-size: 13px;
    transition: all 0.25s ease;
}

.equipo-card .btn-outline-warning:hover {
    background-color: #D88C3A;
    color: #020617;
    box-shadow: 0 0 20px rgba(216,140,58,0.5);
}






/*
============================================================
PROYECTOS — COGNITIVE ECOSYSTEM VISUAL SYSTEM
============================================================
*/

.proyectos-section {

    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #F4E6D4 100%
    );

}

.proyectos-image {

    transition: all 0.5s ease;

}

.proyectos-image:hover {

    transform: scale(1.02);
    box-shadow: 0 40px 80px rgba(0,0,0,0.2);

}

/*
Cards cognitivas
*/

.proyectos-card {

    border-radius: 16px;
    background: white;

    transition: all 0.4s ease;

}

.proyectos-card:hover {

    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);

}

/*
Iconos cognitivos
*/

.proyectos-icon {

    width: 60px;
    height: 60px;

    margin: auto;

    background: linear-gradient(
        135deg,
        #D88C3A,
        #5A2E0C
    );

    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;
    font-size: 24px;

}




/*
============================================================
NAVBAR LOGO — NEUROBRANDING OPTIMIZATION
============================================================
*/

.navbar-logo {

    height: 40px;
    width: auto;

    transition: transform 0.3s ease;

}

.navbar-brand:hover .navbar-logo {

    transform: scale(1.05);

}

.brand-text {

    font-size: 1.2rem;
    color: #5A2E0C;

}

/* Mobile optimization */

@media (max-width: 768px) {

    .navbar-logo {

        height: 32px;

    }

}


/*
============================================================
NAVBAR ACTIVE STATE — NEUROVISUAL FEEDBACK
============================================================
*/

.navbar .nav-link {

    position: relative;
    font-weight: 500;
    color: #333;
    transition: all 0.3s ease;

}

.navbar .nav-link:hover {

    color: #D88C3A;

}

/*
Estado activo (cuando se hace scroll o click)
*/

.navbar .nav-link.active {

    color: #D88C3A !important;
    font-weight: 600;

}

/*
Subrayado cognitivo animado
*/

.navbar .nav-link.active::after {

    content: "";

    position: absolute;
    left: 0;
    bottom: -5px;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        #D88C3A,
        #5A2E0C
    );

    border-radius: 2px;

}

/* Video reusable container */
.ratio-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.ratio-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Podcast text width control */
.podcast-description {
    max-width: 700px;
    margin: auto;
}



/* MODAL  */

/* Overlay */
.modal-backdrop.show {
    background-color: #020617;
    opacity: 0.85;
}

/* Container */
.modal-content {
    background: linear-gradient(135deg, #020617 0%, #0f172a 50%, #020617 100%);
    border: 1px solid rgba(216,140,58,0.25);
    border-radius: 16px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.7);
    color: #e5e7eb;
}

/* Header */
.modal-header {
    border-bottom: 1px solid rgba(216,140,58,0.2);
    padding: 20px 24px;
}

.modal-title {
    color: #D88C3A;
    font-weight: 600;
}

/* Body */
.modal-body {
    padding: 24px;
    font-size: 15.5px;
    line-height: 1.7;
    color: #cbd5e1;
}

/* Close button */
.btn-close {
    filter: invert(1);
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* Profile image inside modal */
.modal-profile-img {
    width: 350px;
    height: 500px;
    object-fit: cover;
    border-radius: 4%;
    border: 2px solid #D88C3A;
    box-shadow: 0 0 25px rgba(216,140,58,0.4);
    margin-bottom: 16px;
}

/* Role text */
.modal-role {
    color: #D88C3A;
    font-weight: 500;
    margin-bottom: 16px;
}

/* Animation */
.modal.fade .modal-dialog {
    transform: scale(0.92);
    transition: transform 0.25s ease-out;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

.modal-contact {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.modal-contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #D88C3A;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 14px;
    border: 1px solid rgba(216,140,58,0.3);
    border-radius: 50px;
    transition: all 0.25s ease;
}

.modal-contact-link:hover {
    background-color: #D88C3A;
    color: #020617;
    box-shadow: 0 0 20px rgba(216,140,58,0.5);
}

.modal-contact-link i {
    font-size: 16px;
}