/* ==========================================================================
   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 SERVICIOS
   ========================================================================== */

/* ==========================================================================
   1. AJUSTES DE ESTRUCTURA Y FONDO DETRÁS DEL NAV
   ========================================================================== */
body {
     background: linear-gradient( #006680, #001339,#001339); /* Degradado moderno */
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    transition: background-color 0.3s ease; /* Para que el cambio de color sea suave */
    
}


html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}
/* Este contenedor va justo detrás del Nav para dar el color inicial al blur */
.nav-background-filler {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 78.9px; /* Altura aproximada de tu nav */
    background: linear-gradient(to bottom, #001744, #002d5a);
    z-index: 9998; /* Justo debajo del nav que tiene 9999 */
}

/* ==========================================================================
   2. HERO SECTION - CONTENEDOR LARGO DE EMPRESA
   ========================================================================== */
.services-hero {
    position: relative;
    width: 100%;
    height: 90vh; /* Altura del contenedor largo */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 0px; /* Pegado arriba */
}

/* Imagen de fondo de la empresa */
.services-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/5113.webp'); /* REEMPLAZA CON TU IMAGEN */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Efecto Parallax elegante */
    z-index: 1;
}

/* Capa oscura para que el texto resalte */
.services-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 45, 90, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 2;
}

.services-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.services-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 10px;
    /* Animación de entrada similar a la que usamos antes */
    animation: fadeInUp 1s ease forwards;
}

.services-hero-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    letter-spacing: 2px;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}




/* DISEÑO BENTO GRID */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 20px;
}

.bento-item {
    position: relative;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s ease;
}

/* Jerarquía de tamaños */
.item-large { grid-column: span 2; grid-row: span 2; }
.item-medium { grid-column: span 2; grid-row: span 1; }
.item-small { grid-column: span 1; grid-row: span 1; }
.item-wide { grid-column: span 2; grid-row: span 1; }

.bento-item:hover {
    border-color: var(--rojo-edsa);
    background: rgba(255, 255, 255, 0.08);
}

.bento-content { position: relative; z-index: 5; }
.bento-content h3 { font-weight: 700; color: #fff; margin-bottom: 10px; }
.bento-content p { font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); margin: 0; }

.badge-edsa {
    background: var(--rojo-edsa);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

/* Fondos sutiles */
.bento-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.2;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: 0.6s ease;
}

.bento-item:hover .bento-bg { opacity: 0.4; filter: grayscale(0%); }

/* Responsividad para móviles */
@media (max-width: 991px) {
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px) {
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .item-large, .item-medium, .item-small, .item-wide { grid-column: span 1; min-height: 200px; }
}


/* Asegurar que el cursor cambie al pasar por los items */
.bento-item {
    cursor: pointer;
}

/* Estilo Premium para los Modales */
.modal-content {
    background: linear-gradient(145deg, #001339, #00050a) !important;
    color: white !important;
    border: 1px solid rgba(227, 6, 19, 0.3);
    border-radius: 20px;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header .modal-title {
    font-weight: 700;
    color: white;
}

.modal-body {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Forzar blanco en el texto del Bento */
.bento-content h3, .bento-content p {
    color: #ffffff !important;
}



/* ==========================================================================
   SECCIÓN: POR QUÉ ELEGIRNOS (CON IMÁGENES CIRCULARES)
   ========================================================================== */
.feature-card {
    background: rgba(0, 45, 90, 0.2); /* Color base del Figma con transparencia */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px 20px;
    height: 100%;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    background: rgba(0, 45, 90, 0.4);
    transform: translateY(-5px);
    border-color: rgba(227, 6, 19, 0.5); /* Borde rojo sutil */
}

/* El contenedor circular de la imagen */
.feature-img-wrapper {
    width: 120px; /* Tamaño del círculo de la imagen */
    height: 120px;
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
    transition: all 0.4s ease;
}

.feature-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Para que la imagen se adapte al círculo sin deformarse */
    border: 4px solid rgba(255, 255, 255, 0.1); /* Borde inicial sutil */
    transition: border-color 0.4s ease, transform 0.4s ease;
}

/* Efecto al pasar el mouse sobre la tarjeta */
.feature-card:hover .feature-img-wrapper img {
    border-color: var(--rojo-edsa); /* El borde se vuelve rojo */
    transform: scale(1.05); /* Un ligero zoom */
}

.feature-card h4 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
}

.text-light-gray {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}


