/* =====================================================
   HOME – BLOQUE ¿POR QUÉ ELEGIRNOS?
   Estilo:
   - Oscuro elegante (no negro)
   - Profesional y moderno
   - Glassmorphism sutil
   - Parallax CSS puro (desktop)
   - CSS aislado y mantenible
===================================================== */


/* =====================================================
   SECCIÓN PRINCIPAL + PARALLAX
===================================================== */
.why-us-section {
    position: relative;
    width: 100%;
    background-color: #153c64;

    background-image:
        radial-gradient(circle at 20% 20%, rgba(104,187,227,0.15), transparent 40%),
        radial-gradient(circle at 80% 60%, rgba(255,255,255,0.05), transparent 45%);

    background-attachment: fixed;
}


/* =====================================================
   OVERLAY OSCURO (CINEMÁTICO)
===================================================== */
.why-us-overlay {
    background: linear-gradient(
        180deg,
        rgba(12, 34, 58, 0.92) 0%,
        rgba(21, 60, 100, 0.88) 60%,
        rgba(21, 60, 100, 0.92) 100%
    );
    padding: 72px 20px;
}


/* =====================================================
   CONTENEDOR GENERAL
===================================================== */
.why-us-container {
    max-width: 1250px;
    margin: 0 auto;
}


/* =====================================================
   CABECERA DEL BLOQUE
===================================================== */
.why-us-header {
    max-width: 760px;
    margin: 0 auto 42px auto;
    text-align: center;
}

.why-us-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: 0.3px;
}

.why-us-header p {
    font-size: 15.8px;
    line-height: 1.6;
    color: rgba(227, 238, 247, 0.92);
    max-width: 700px;
    margin: 0 auto;
}


/* =====================================================
   GRID DE CONTENIDO (4 BLOQUES)
===================================================== */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}


/* =====================================================
   TARJETAS – GLASS / CRISTAL
===================================================== */
.why-us-card {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-auto-rows: min-content; /* 🔑 CLAVE */
    column-gap: 14px;
    row-gap: 6px;

    background: linear-gradient(
        135deg,
        rgba(255,255,255,0.11),
        rgba(255,255,255,0.04)
    );

    border-radius: 16px;
    padding: 22px 22px 16px; /* 🔑 menos padding abajo */

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 1px solid rgba(255,255,255,0.16);

    box-shadow:
        0 12px 26px rgba(0,0,0,0.22),
        inset 0 1px 0 rgba(255,255,255,0.18);
}

/* =====================================================
   ICONOS SVG – WHY US
   (Icono a la izquierda, título a la derecha)
===================================================== */
.why-us-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,0.07);
    border-radius: 12px;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,0.22),
        0 4px 14px rgba(0,0,0,0.22);
}

.why-us-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #9fd6ff;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}
/* =====================================================
   HEADER DE CADA CARD
   Icono + título en línea
===================================================== */
.why-us-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}

.why-us-card-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
    color: #ffffff;

    min-height: 40px;      /* 👈 CLAVE */
    display: flex;
    align-items: center;  /* centra verticalmente el texto */
}

/* =====================================================
   TEXTO DE TARJETAS
===================================================== */
.why-us-card h3 {
    font-size: 17.5px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 6px;
}

.why-us-card p {
    grid-column: 1 / -1;
    grid-row: 2;

    width: 100%;
    max-width: 100%;

    margin-top: 4px;          /* 🔧 más compacto */
    min-height: 0px;         /* 🔑 clave para alinear visualmente */

    font-size: 14.2px;
    line-height: 1.55;

    color: rgba(227, 238, 247, 0.9);
}

/* =====================================================
   LAYOUT CON IMAGEN HUMANA
===================================================== */
.why-us-with-image {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: stretch;
    gap: 36px;
}


/* =====================================================
   IMAGEN HUMANA
===================================================== */
.why-us-person {
    position: absolute;
    right: -180px;
    bottom: -71px;
    z-index: 2;
    pointer-events: none;
}

.why-us-person img {
    width: auto;
    height: 500px;
    max-height: 90%;
    display: block;
    opacity: 0.92;
    filter: drop-shadow(0 40px 80px rgba(0,0,0,0.45));
}

/* =====================================================
   IMAGEN HUMANA – INTEGRACIÓN NATURAL AVANZADA
   Base: Opción 1 + Opción 2
   Ajustes finos para evitar efecto "foto pegada"
===================================================== */

.why-us-person img {

    /* Tamaño controlado */
    width: auto;
    height: 500px;
    max-height: 90%;
    display: block;

    /* 1️⃣ SUAVIZADO DE BORDES (difuminado NO simétrico) */
    mask-image: radial-gradient(
        ellipse at 65% 55%,
        rgba(0,0,0,1) 55%,
        rgba(0,0,0,0.8) 70%,
        rgba(0,0,0,0.4) 82%,
        rgba(0,0,0,0) 100%
    );

    /* 2️⃣ IGUALAR ATMÓSFERA CON EL FONDO */
    filter:
    drop-shadow(0 40px 80px rgba(0,0,0,0.45))
    brightness(1.06)
    contrast(1.02)
    saturate(1.02);

    /* Presencia natural */
    opacity: 0.98;

    /* Evita corte duro inferior */
    transform: translateY(4px);
}
/* =====================================================
   RESPONSIVE – MOBILE (FIX REAL DEL PROBLEMA)
===================================================== */
@media (max-width: 768px) {

    /* Fondo */
    .why-us-section {
        background-attachment: scroll;
    }

    /* Overlay */
    .why-us-overlay {
        padding: 56px 16px;
    }

    /* 🔑 CAMBIO CLAVE: layout en UNA sola columna */
    .why-us-with-image {
        display: block;
    }

    /* Contenedor ocupa todo el ancho */
    .why-us-container {
        max-width: 100%;
        padding: 0;
    }

    /* Header */
    .why-us-header {
        text-align: center;
        margin-bottom: 32px;
    }

    .why-us-header h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .why-us-header p {
        font-size: 15.5px;
        line-height: 1.6;
    }

    /* Grid en una columna */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }

    /* Cards normales, sin hacks */
    .why-us-card {
        width: 100%;
        padding: 22px 22px 18px;

        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    /* Icono */
    .why-us-icon {
        margin-bottom: 10px;
    }

    /* Título */
    .why-us-card h3 {
        font-size: 17px;
        line-height: 1.3;
        margin-bottom: 6px;
    }

    /* Texto */
    .why-us-card p {
        font-size: 14.5px;
        line-height: 1.6;
        margin: 0;
    }

    /* Imagen fuera en mobile */
    .why-us-person {
        display: none;
    }
}
