.banner-principal {
    position: relative;
    width: 100%;
    height: 450px; /* Puedes cambiar esta altura según lo que necesites */
    display: flex;
    align-items: center; /* Centra el texto verticalmente */
    justify-content: center; /* Centra el texto horizontalmente */
    overflow: hidden;
}

/* La imagen se estira para cubrir el fondo y se manda atrás */
.banner-principal img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; /* Evita que la imagen se deforme, la recorta si es necesario */
    z-index: 1; /* Nivel de profundidad 1 (al fondo) */
    
    /* VITAL: Oscurece la imagen un 50% para que el texto blanco se pueda leer. 
       Si tu imagen es muy oscura de por sí, puedes quitar esto. */
    filter: brightness(0.5); 
}

/* El contenedor del texto se trae al frente */
.banner-contenido {
    position: relative;
    z-index: 2; /* Nivel de profundidad 2 (por encima de la imagen) */
    text-align: center;
    color: #ffffff; /* Texto blanco */
    padding: 0 20px; /* Margen de seguridad para móviles */
}

/* Estilos de la tipografía */
.banner-contenido h1 {
    font-size: 45px;
    margin-bottom: 10px;
    line-height: 1.1;
}

.banner-contenido p {
    font-size: 1.2rem;
    font-weight: 400;
}
/* =========================================
   BENTO GRID (La cuadrícula moderna)
   ========================================= */
.bento-section {
    padding: 100px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: #112a46;
    margin-bottom: 15px;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 24px;
}

.bento-item {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 135, 191, 0.2);
}

.bento-img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
    z-index: 1;
}

.bento-item:hover .bento-img {
    transform: scale(1.08);
}

.bento-overlay {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 70%;
    background: linear-gradient(to top, rgba(17, 42, 70, 0.95) 0%, rgba(17, 42, 70, 0) 100%);
    z-index: 2;
}

.bento-content {
    position: relative;
    z-index: 3;
    padding: 30px;
}

.bento-content h3 {
    color: #ffffff;
    font-size: 1.8rem;
    margin-bottom: 8px;
    font-family: 'Baloo 2', sans-serif;
}

.bento-content p {
    color: #cbd5e1;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.4s ease;
    height: 0;
    margin: 0;
}

.bento-item:hover .bento-content p {
    opacity: 1;
    transform: translateY(0);
    height: auto;
    margin-top: 10px;
}

/* TAMAÑOS DE LA CUADRÍCULA */
.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.item-wide {
    grid-column: span 2;
    grid-row: span 1;
}

.item-square {
    grid-column: span 1;
    grid-row: span 1;
}

/* -------------------------------*/
/* --- Sección Call to Action --- */
/* -------------------------------*/
.seccion-cta {
    background: var(--hero-text);
    padding: 80px 20px;
    text-align: center;
    font-family: system-ui, -apple-system, sans-serif;
    color: #ffffff;
}

.contenedor-cta {
    max-width: 800px;
    margin: 0 auto;
}

.titulo-cta {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    margin-top: 0;
    line-height: 1.2;
}

.texto-cta {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 300;
}

.boton-cta {
    display: inline-block;
    background-color: #ffffff;
    color: #0082ba;
    font-weight: 700;
    text-decoration: none;
    padding: 16px 40px;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.boton-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
    background-color: var(--primary);
    color: #ffffff;
}

/* Adaptación para móviles */
@media (max-width: 768px) {
    .titulo-cta {
        font-size: 2rem;
    }
    .seccion-cta {
        padding: 60px 20px;
    }
}
/* =========================================
   SECCIÓN MATERIALES Y ACABADOS
   ========================================= */
.materials-section {
    background-color: #ffffff;
    padding: 100px 5%;
}

.materials-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
}

.materials-text {
    flex: 1;
}

.materials-text h2 {
    font-size: 35px;
    color: #112a46;
    margin-bottom: 20px;
}

.materials-text p {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
}

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.feature-icon {
    background: #e0f2fe;
    color: var(--primary);
    width: 45px; height: 45px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.feature-text h4 {
    color: #112a46;
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: 'Baloo 2', sans-serif;
}

.feature-text p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

.materials-img {
    flex: 1;
    position: relative;
}

.img-main {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.15);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    .item-large, .item-wide {
        grid-column: span 2;
        grid-row: span 1;
        min-height: 350px;
    }
    .materials-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 600px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .item-large, .item-wide, .item-square {
        grid-column: span 1;
        min-height: 300px;
    }
    .materials-text h2 {
        font-size: 2.2rem;
    }
}