/* ============================================================
   ESTILOS MODERNOS PARA FEATURES (features.css)
   ============================================================ */

.feat-wrapper {
    --f-dark: #0B1726;
    --f-dark-light: #162438;
    --f-cyan: #31cadc;
    --f-cyan-hover: #2bb8c9;
    --f-gray-bg: #f4f6f8;
    --f-text: #333;
    --f-text-muted: #666;
    --radius: 12px;
}

/* 1. HERO */
.feat-hero {
    background-color: var(--f-dark);
    background-image: linear-gradient(135deg, rgba(11, 23, 38, 0.95) 0%, rgba(11, 23, 38, 0.8) 100%), 
                      url('https://images.unsplash.com/photo-1617396900799-f4ec2b43c7ae?q=80&w=1200&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: 50px 0 140px 0;
    text-align: center;
    position: relative;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

.feat-hero-content {
    max-width: 800px;
    margin: 0 auto;
}


.feat-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #fff;
}

.feat-subtitle {
    font-size: 1.2rem;
    color: #cfcfcf;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

/* 2. PILLARS (Tarjetas Flotantes) */
.feat-pillars-section {
    margin-top: -80px;
    padding-bottom: 60px;
    position: relative;
    z-index: 10;
}

.feat-pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    
    /* --- CAMBIOS PARA REDUCIR ANCHO --- */
    max-width: 960px; /* Reduce esto si las quieres aún más angostas (ej. 850px) */
    margin: 0 auto;   /* Importante: Centra la grilla en la pantalla */
}

/* Opcional: Ajustar padding interno para que se vean más compactas */
.pillar-card {
    background: #fff;
    padding: 30px 20px; /* Reduje un poco el padding vertical y horizontal */
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 4px solid transparent;
}

.pillar-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12);
    border-bottom-color: var(--f-cyan);
}

.pillar-icon {
    font-size: 2rem;
    color: var(--f-dark);
    margin-bottom: 20px;
    background: var(--f-gray-bg);
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon {
    background: var(--f-cyan);
    color: #fff;
}

.pillar-card h3 {
    font-size: 1.3rem;
    color: var(--f-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.pillar-card p {
    color: var(--f-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 3. DEEP DIVE (ZIG ZAG) */
.feat-deep-dive {
    padding: 0;
}

.section-title.center {
    text-align: center;
    font-size: 2.5rem;
    color: var(--f-dark);
    font-weight: 800;
    margin-bottom: 60px;
}

.deep-dive-row {
    padding: 80px 80px;
    border-bottom: 1px solid #eee;
}

.deep-dive-row.bg-light {
    background-color: #fafbfc;
}

.row-container {
    display: flex;
    align-items: stretch;
    gap: 60px;
    min-height: 400px;
}

.row-container.reverse {
    flex-direction: row-reverse;
}

.dd-text {
    flex: 1;
}

.dd-icon-small {
    font-size: 1.5rem;
    color: var(--f-cyan);
    margin-bottom: 15px;
}

.dd-text h2 {
    font-size: 2rem;
    color: var(--f-dark);
    margin-bottom: 15px;
    font-weight: 800;
    line-height: 1.2;
}

.dd-text p {
    font-size: 1.1rem;
    color: var(--f-text-muted);
    margin-bottom: 25px;
    line-height: 1.6;
}

/* Estilo de la lista técnica */
.dd-list {
    list-style: none;
    padding: 0;
}

.dd-list li {
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: #444;
    display: flex;
    align-items: flex-start; /* Alineación arriba por si el texto es largo */
    gap: 12px;
    line-height: 1.5;
}

.dd-list li i {
    color: var(--f-cyan);
    font-size: 1rem;
    margin-top: 4px; /* Ajuste fino para alinear con texto */
    flex-shrink: 0;
}

.dd-image {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dd-image img {
    width: 100%;
    /* height: 350px; <-- BORRA O COMENTA ESTA LÍNEA DE ALTURA FIJA */
    height: 100%; /* <-- AGREGA ESTA LÍNEA. Ocupará toda la altura del contenedor padre */
    border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    object-fit: cover; /* ESTO ES CLAVE: Mantiene la imagen cubriendo el área sin deformarse */
}

.dd-image img:hover {
    transform: scale(1.02);
}

/* 4. CTA FINAL */
.feat-cta-final {
    background-color: #162438;
    padding: 80px 0;
    text-align: center;
}

.feat-cta-final h2 {
    color: #fff;
    font-size: 2rem;
    margin-bottom: 40px;
    font-weight: 700;
}

.btn-primary-glow {
    background-color: var(--f-cyan);
    color: #fff;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(49, 202, 220, 0.4);
    display: inline-block;
}

.btn-primary-glow:hover {
    background-color: #26a0b0;
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(49, 202, 220, 0.6);
}

/* RESPONSIVE */
@media (max-width: 992px) {
    .feat-pillars-grid {
        grid-template-columns: 1fr;
    }
    
    .row-container, 
    .row-container.reverse {
        flex-direction: column;
        text-align: center;
    }

    .dd-list li {
        justify-content: center; /* Centrar bullets en móvil */
        text-align: left; /* Pero el texto alineado a la izquierda para leer bien */
    }

    .dd-image img {
        height: auto;
    }
}
/* ============================================================
   ESTILOS PARA EL VISOR DE IMÁGENES (LIGHTBOX)
   ============================================================ */

/* El cursor sobre las imágenes para indicar que se pueden abrir */
.dd-image img {
    cursor: zoom-in;
}

/* El fondo negro (Modal) */
.lightbox-modal {
    display: none; /* Oculto por defecto */
    position: fixed; 
    z-index: 9999; /* Para que quede encima de todo */
    padding-top: 10px; /* Espacio para que no pegue arriba */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgb(0,0,0); /* Color de respaldo */
    background-color: rgba(0,0,0,0.92); /* Fondo negro con ligera transparencia */
    
    /* Flexbox para centrar perfectamente la imagen */
    align-items: center;
    justify-content: center;
}

/* La imagen dentro del modal */
.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 90vh; /* Que no sea más alta que la pantalla */
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    animation-name: zoom;
    animation-duration: 0.3s;
}

/* Botón de cerrar (X) */
.lightbox-close {
    position: absolute;
    top: 25px;
    right: 45px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    z-index: 10000;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: var(--f-cyan); /* Usamos tu color cyan al pasar el mouse */
    text-decoration: none;
    cursor: pointer;
}

/* Animación de Zoom al abrir */
@keyframes zoom {
    from {transform:scale(0.8); opacity: 0} 
    to {transform:scale(1); opacity: 1}
}

/* Ajuste para móviles */
@media only screen and (max-width: 700px){
    .lightbox-content {
        width: 95%;
    }
    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 35px;
    }
}
