/* ==========================================================================
   1. VARIABLES DE COLOR Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
    --azul-edsa: #002D5A;
    --rojo-edsa: #E30613;
    --glass-bg: rgba(0, 56, 120, 0); 
}

/* ==========================================================================
   2. ESTILOS ESPECÍFICOS DE PROYECTOS
   ========================================================================== */

/* ==========================================================================
   5. MODIFICADORES MODO OSCURO (DATA-THEME DARK)
   ========================================================================== */
/* NAVBAR FIN------------------------------------------------------------------------------------- */

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}


.proyectos-section-container {
    font-family: 'Montserrat', sans-serif;
   background: linear-gradient( #006680,#001744,#001339) !important;
    transition: all 0.4s ease;
}

/* TÍTULO PRINCIPAL (Como tu imagen) */
.main-title-edsa {
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Se adapta al tamaño de pantalla */
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff; /* Blanco para todo el título */
    letter-spacing: -2px;
}

.main-title-edsa-white {
    color: #ffffff !important;
}

/* Título rojo para la palabra SOLUCIONES */
.main-title-edsa .text-red-glow,
.text-red-glow {
    color: #ff0000;
    text-shadow: none;
}

/* EL TEXTO ROJO CON BRILLO */
.text-red-glow {
    color: #ff0000;
    text-shadow: 0 0 15px rgba(255, 0, 0, 0.4);
}

.sub-text-edsa {
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 500;
}

/* BOTÓN ROJO SÓLIDO */
.btn-edsa-solid {
    background-color: #ff0000;
    color: white;
    padding: 12px 35px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    transition: 0.3s;
    display: inline-block;
}

.btn-edsa-solid:hover {
    background-color: #cc0000;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255, 0, 0, 0.3);
}

/* CONTENEDOR 3D */
.container-3d-proyectos {
    height: 500px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}





/* ==========================================================================
   SECCIÓN VIDEO FULL WIDTH (SIN INTERACCIÓN)
   ========================================================================== */
.video-hero-container {
    position: relative;
    width: 100%;
    height: 400px; /* Puedes ajustar la altura (ej: 70vh o 100vh) */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* El video se estira para cubrir todo sin deformarse */
.video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none; /* Bloquea clics del usuario */
    object-fit: cover;
}

/* Capa de oscuridad sobre el video */
.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Oscurece el video un 50% */
    z-index: 2;
}

/* El área del texto encima de todo */
.video-content-area {
    position: relative;
    z-index: 3;
}

.video-full-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    font-size: clamp(2rem, 5vw, 4rem);
    color: #ffffff !important; /* Siempre blanco */
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.video-full-sub {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important; /* Siempre blanco sutil */
    font-size: 1.2rem;
}




/* TARJETAS DE PORTAFOLIO */
.portfolio-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    height: 350px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-10px);
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

/* Capa oscura que sale al hacer hover */
.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(1, 10, 26, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/*




