/* ============================================
   SECCIONES ELEVADAS - Bloques Independientes Apilados
   ============================================ */

/* Estilos base para todas las secciones elevadas */
.section-elevated {
    position: relative;
    margin: 4rem auto;
    padding: 5rem 0;
    isolation: isolate;
    border-radius: 24px;
    overflow: hidden;
}

/* Márgenes laterales para desktop */
@media screen and (min-width: 1025px) {
    .section-elevated,
    .section {
        margin-left: 3rem;
        margin-right: 3rem;
        max-width: calc(100% - 6rem);
    }

    /* Hero COMPLETELY ISOLATED: force edge-to-edge with viewport units */
    .hero.section {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }

    .container {
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

/* Para pantallas muy grandes */
@media screen and (min-width: 1400px) {
    .section-elevated,
    .section {
        margin-left: 6rem;
        margin-right: 6rem;
        max-width: calc(100% - 12rem);
    }

    /* Hero COMPLETELY ISOLATED: force edge-to-edge with viewport units */
    .hero.section {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }

    .container {
        max-width: 1300px;
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

/* Para pantallas extra grandes */
@media screen and (min-width: 1800px) {
    .section-elevated,
    .section {
        margin-left: 10rem;
        margin-right: 10rem;
        max-width: calc(100% - 20rem);
    }

    /* Hero COMPLETELY ISOLATED: force edge-to-edge with viewport units */
    .hero.section {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(-50vw + 50%) !important;
        margin-right: calc(-50vw + 50%) !important;
    }

    .container {
        max-width: 1400px;
    }
}

/* Variación 1: Elevación superior izquierda */
.section-elevated-1 {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 24px;
    box-shadow:
        -8px -8px 30px rgba(21, 51, 98, 0.15),
        8px 8px 40px rgba(21, 51, 98, 0.25),
        0 20px 60px rgba(21, 51, 98, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateY(-10px);
}

.section-elevated-1::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--navy-dark) 0%,
        var(--gold-beige) 50%,
        var(--navy-dark) 100%);
    opacity: 0.4;
    border-radius: 24px 24px 0 0;
}

/* Variación 2: Elevación inferior derecha */
.section-elevated-2 {
    background: linear-gradient(135deg, #fafbfc 0%, #eef1f5 100%);
    border-radius: 24px;
    box-shadow:
        8px -8px 30px rgba(21, 51, 98, 0.12),
        -8px 8px 40px rgba(21, 51, 98, 0.28),
        0 25px 70px rgba(21, 51, 98, 0.22),
        0 10px 30px rgba(182, 138, 84, 0.15);
    transform: translateY(10px);
}

.section-elevated-2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg,
        var(--gold-beige) 0%,
        var(--navy-dark) 50%,
        var(--gold-beige) 100%);
    opacity: 0.4;
    border-radius: 0 0 24px 24px;
}

/* Variación 3: Elevación central profunda */
.section-elevated-3 {
    background: #ffffff;
    border-radius: 24px;
    box-shadow:
        0 -15px 40px rgba(21, 51, 98, 0.15),
        0 30px 80px rgba(21, 51, 98, 0.3),
        0 15px 40px rgba(21, 51, 98, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
    transform: translateY(-5px);
}

.section-elevated-3::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--gold-beige) 20%,
        var(--navy-dark) 50%,
        var(--gold-beige) 80%,
        transparent 100%);
    opacity: 0.5;
    filter: blur(1px);
}

/* Variación 4: Elevación diagonal con acento dorado */
.section-elevated-4 {
    background: linear-gradient(135deg,
        rgba(21, 51, 98, 0.03) 0%,
        rgba(182, 138, 84, 0.05) 100%);
    border-radius: 24px;
    box-shadow:
        -10px 10px 35px rgba(21, 51, 98, 0.18),
        10px -10px 35px rgba(182, 138, 84, 0.12),
        0 20px 60px rgba(21, 51, 98, 0.25),
        inset 0 2px 4px rgba(255, 255, 255, 0.6);
    border-left: 2px solid rgba(182, 138, 84, 0.2);
    border-top: 2px solid rgba(21, 51, 98, 0.1);
    transform: translateY(5px);
}

.section-elevated-4::after {
    content: '';
    position: absolute;
    top: 20%;
    bottom: 20%;
    right: 0;
    width: 2px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--navy-dark) 50%,
        transparent 100%);
    opacity: 0.2;
}

/* Variación 5: Elevación máxima con gradiente dorado */
.section-elevated-5 {
    background: linear-gradient(135deg,
        rgba(182, 138, 84, 0.05) 0%,
        rgba(255, 255, 255, 1) 40%,
        rgba(255, 255, 255, 1) 60%,
        rgba(21, 51, 98, 0.04) 100%);
    border-radius: 24px;
    box-shadow:
        0 -20px 50px rgba(182, 138, 84, 0.15),
        0 35px 90px rgba(21, 51, 98, 0.35),
        0 20px 50px rgba(182, 138, 84, 0.15),
        0 10px 30px rgba(21, 51, 98, 0.2);
    transform: translateY(-15px);
}

.section-elevated-5::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 0;
    bottom: 10%;
    width: 3px;
    background: linear-gradient(180deg,
        transparent 0%,
        var(--gold-beige) 30%,
        var(--navy-dark) 50%,
        var(--gold-beige) 70%,
        transparent 100%);
    opacity: 0.4;
    border-radius: 0 4px 4px 0;
}

/* Variación 6: Elevación ondulante */
.section-elevated-6 {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 24px;
    box-shadow:
        5px -5px 30px rgba(21, 51, 98, 0.14),
        -5px 5px 40px rgba(21, 51, 98, 0.26),
        0 22px 65px rgba(21, 51, 98, 0.24),
        0 8px 25px rgba(182, 138, 84, 0.12);
    transform: translateY(0);
}

/* Efecto de sombra flotante adicional para profundidad */
.section-elevated-1::after,
.section-elevated-3::after,
.section-elevated-5::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: 30px;
    background: radial-gradient(ellipse at center,
        rgba(21, 51, 98, 0.25) 0%,
        rgba(21, 51, 98, 0.1) 40%,
        transparent 70%);
    filter: blur(15px);
    z-index: -1;
    border-radius: 50%;
}

/* Bordes sutiles para mayor definición */
.section-elevated-1,
.section-elevated-3,
.section-elevated-5 {
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.section-elevated-2,
.section-elevated-4,
.section-elevated-6 {
    border: 1px solid rgba(21, 51, 98, 0.08);
}

/* Efecto hover sutil para interactividad */
.section-elevated:hover {
    transform: translateY(-5px) scale(1.002);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-elevated-1:hover {
    box-shadow:
        -10px -10px 40px rgba(21, 51, 98, 0.18),
        10px 10px 50px rgba(21, 51, 98, 0.3),
        0 25px 75px rgba(21, 51, 98, 0.25);
    transform: translateY(-15px);
}

.section-elevated-2:hover {
    box-shadow:
        10px -10px 40px rgba(21, 51, 98, 0.15),
        -10px 10px 50px rgba(21, 51, 98, 0.32),
        0 30px 85px rgba(21, 51, 98, 0.28);
    transform: translateY(5px);
}

.section-elevated-3:hover {
    box-shadow:
        0 -20px 50px rgba(21, 51, 98, 0.18),
        0 35px 95px rgba(21, 51, 98, 0.35),
        0 18px 50px rgba(21, 51, 98, 0.25);
    transform: translateY(-10px);
}

.section-elevated-4:hover {
    box-shadow:
        -12px 12px 45px rgba(21, 51, 98, 0.22),
        12px -12px 45px rgba(182, 138, 84, 0.16),
        0 25px 75px rgba(21, 51, 98, 0.3);
    transform: translateY(0);
}

.section-elevated-5:hover {
    box-shadow:
        0 -25px 60px rgba(182, 138, 84, 0.18),
        0 40px 100px rgba(21, 51, 98, 0.4),
        0 25px 60px rgba(182, 138, 84, 0.18);
    transform: translateY(-20px);
}

.section-elevated-6:hover {
    box-shadow:
        7px -7px 40px rgba(21, 51, 98, 0.17),
        -7px 7px 50px rgba(21, 51, 98, 0.3),
        0 27px 75px rgba(21, 51, 98, 0.28);
    transform: translateY(-5px);
}

/* Ajustes responsive */
@media screen and (max-width: 768px) {
    .section-elevated {
        margin: 2.5rem 0;
        padding: 3.5rem 0;
        border-radius: 20px;
    }

    /* Reducir transformaciones en móvil */
    .section-elevated-1,
    .section-elevated-3,
    .section-elevated-5 {
        transform: translateY(-5px);
    }

    .section-elevated-2,
    .section-elevated-4 {
        transform: translateY(5px);
    }

    .section-elevated-6 {
        transform: translateY(0);
    }

    /* Reducir sombras en móvil para mejor rendimiento */
    .section-elevated-1 {
        box-shadow:
            -5px -5px 20px rgba(21, 51, 98, 0.12),
            5px 5px 30px rgba(21, 51, 98, 0.2),
            0 15px 45px rgba(21, 51, 98, 0.18);
    }

    .section-elevated-2 {
        box-shadow:
            5px -5px 20px rgba(21, 51, 98, 0.1),
            -5px 5px 30px rgba(21, 51, 98, 0.22),
            0 18px 50px rgba(21, 51, 98, 0.2);
    }

    .section-elevated-3 {
        box-shadow:
            0 -10px 30px rgba(21, 51, 98, 0.12),
            0 20px 60px rgba(21, 51, 98, 0.25),
            0 10px 30px rgba(21, 51, 98, 0.18);
    }

    .section-elevated-4 {
        box-shadow:
            -6px 6px 25px rgba(21, 51, 98, 0.15),
            6px -6px 25px rgba(182, 138, 84, 0.1),
            0 15px 45px rgba(21, 51, 98, 0.2);
    }

    .section-elevated-5 {
        box-shadow:
            0 -15px 40px rgba(182, 138, 84, 0.12),
            0 25px 70px rgba(21, 51, 98, 0.28),
            0 15px 40px rgba(182, 138, 84, 0.12);
    }

    .section-elevated-6 {
        box-shadow:
            4px -4px 20px rgba(21, 51, 98, 0.12),
            -4px 4px 30px rgba(21, 51, 98, 0.22),
            0 18px 50px rgba(21, 51, 98, 0.2);
    }

    /* Simplificar hover en móvil */
    .section-elevated:hover {
        transform: translateY(-3px);
    }
}

@media screen and (max-width: 480px) {
    .section-elevated {
        margin: 2rem 0;
        padding: 3rem 0;
        border-radius: 16px;
    }

    .section-elevated-1,
    .section-elevated-3,
    .section-elevated-5 {
        transform: translateY(-3px);
    }

    .section-elevated-2,
    .section-elevated-4 {
        transform: translateY(3px);
    }

    /* Reducir aún más las sombras en pantallas pequeñas */
    .section-elevated-1,
    .section-elevated-2,
    .section-elevated-3,
    .section-elevated-4,
    .section-elevated-5,
    .section-elevated-6 {
        box-shadow:
            0 10px 35px rgba(21, 51, 98, 0.2),
            0 5px 15px rgba(21, 51, 98, 0.15);
    }
}
