/* =========================================================
   ZED ILO
   UBICACIÓN ESTRATÉGICA
   GALERÍA HORIZONTAL INTERACTIVA
   ========================================================= */

.strategic-location {

    position: relative;

    width: 100%;

    padding:
        110px 7% 120px;

    background:
        linear-gradient(
            180deg,
            #c4e0eb 0%,
            #9cc7d8 35%,
            #5c9bb8 100%
        );

    overflow: hidden;
}


/* =========================================================
   HEADER
   ========================================================= */

.strategic-header {

    max-width: 1200px;

    margin:
        0 auto 50px;

    display: grid;

    grid-template-columns:
        1.2fr .8fr;

    align-items: end;

    gap: 80px;
}


/* =========================================================
   LABEL
   ========================================================= */

.strategic-label {

    display: inline-block;

    margin-bottom: 10px;

    color:
        #0074b8;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 2px;
}


/* =========================================================
   TÍTULO
   ========================================================= */

.strategic-header h2 {

    color:
        #123d63;

    font-size: 48px;

    line-height: 1.08;

    font-weight: 800;
}

.strategic-header h2 span {

    display: block;

    color:
        #ffffff;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.strategic-header > p {

    max-width: 480px;

    margin-left: auto;

    color:
        #36586d;

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   GALERÍA
   ========================================================= */

.location-gallery {

    width: 100%;

    max-width: 1250px;

    height: 520px;

    margin: auto;

    display: flex;

    gap: 8px;

    overflow: hidden;
}


/* =========================================================
   CARD
   ========================================================= */

.location-card {

    position: relative;

    min-width: 0;

    flex: 1;

    height: 100%;

    overflow: hidden;

    cursor: pointer;

    background:
        #123d63;

    transition:
        flex .65s
        cubic-bezier(.22,.61,.36,1);

    box-shadow:
        0 12px 35px
        rgba(8,38,63,.15);
}


/* =========================================================
   EXPANSIÓN
   ========================================================= */

.location-card:hover {

    flex: 3;
}


/* =========================================================
   IMAGEN
   ========================================================= */

.location-card img {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 100%;

    object-fit: cover;

    transform:
        scale(1.05);

    transition:
        transform .8s
        cubic-bezier(.22,.61,.36,1);
}


/* =========================================================
   ZOOM AL ACTIVAR
   ========================================================= */

.location-card:hover img {

    transform:
        scale(1.08);
}


/* =========================================================
   OVERLAY
   ========================================================= */

.location-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(8,38,63,.98) 0%,
            rgba(8,38,63,.72) 35%,
            rgba(18,61,99,.18) 75%,
            rgba(18,61,99,.05) 100%
        );

    transition:
        background .5s ease;
}


/* =========================================================
   OVERLAY AL HACER HOVER
   ========================================================= */

.location-card:hover .location-overlay {

    background:
        linear-gradient(
            to top,
            rgba(8,38,63,.98) 0%,
            rgba(8,38,63,.62) 35%,
            rgba(18,61,99,.12) 75%,
            rgba(0,116,184,.02) 100%
        );
}


/* =========================================================
   NÚMERO
   ========================================================= */

.location-number {

    position: absolute;

    z-index: 3;

    top: 25px;

    left: 25px;

    padding-bottom: 7px;

    border-bottom:
        2px solid
        #d62828;

    color:
        #ffffff;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1px;

    opacity: .9;
}


/* =========================================================
   CONTENIDO
   ========================================================= */

.location-content {

    position: absolute;

    z-index: 5;

    left: 28px;

    right: 28px;

    bottom: 28px;

    color:
        #ffffff;

    transform:
        translateY(65px);

    transition:
        transform .6s
        cubic-bezier(.22,.61,.36,1);
}


/* =========================================================
   MOSTRAR CONTENIDO
   ========================================================= */

.location-card:hover .location-content {

    transform:
        translateY(0);
}


/* =========================================================
   CATEGORÍA
   ========================================================= */

.location-category {

    display: block;

    margin-bottom: 10px;

    color:
        #62c4eb;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 2px;

    opacity: 0;

    transform:
        translateY(10px);

    transition:
        opacity .4s ease .1s,
        transform .4s ease .1s;
}


.location-card:hover .location-category {

    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   TÍTULO CARD
   ========================================================= */

.location-content h3 {

    margin-bottom: 13px;

    color:
        #ffffff;

    font-size: 25px;

    line-height: 1.1;

    font-weight: 800;

    white-space: nowrap;
}


/* =========================================================
   DESCRIPCIÓN
   ========================================================= */

.location-content p {

    max-width: 480px;

    margin-bottom: 18px;

    color:
        #dceef6;

    font-size: 12px;

    line-height: 1.7;

    opacity: 0;

    transform:
        translateY(15px);

    transition:
        opacity .4s ease .15s,
        transform .4s ease .15s;
}


.location-card:hover .location-content p {

    opacity: 1;

    transform:
        translateY(0);
}


/* =========================================================
   LINK
   ========================================================= */

.location-content a {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    color:
        #ffffff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    opacity: 0;

    transform:
        translateY(15px);

    transition:
        opacity .4s ease .2s,
        transform .4s ease .2s,
        color .25s ease;
}


.location-card:hover .location-content a {

    opacity: 1;

    transform:
        translateY(0);
}


.location-content a:hover {

    color:
        #62c4eb;
}


/* =========================================================
   FLECHA
   ========================================================= */

.location-content a span {

    font-size: 18px;

    transition:
        transform .25s ease;
}


.location-content a:hover span {

    transform:
        translateX(5px);
}


/* =========================================================
   ESTADO INICIAL
   ========================================================= */

.location-card:first-child {

    flex: 1.4;
}


/* =========================================================
   EFECTO: AL PASAR POR TODA LA GALERÍA
   ========================================================= */

.location-gallery:hover
.location-card:first-child:not(:hover) {

    flex: .7;
}


/* =========================================================
   RESPONSIVE 1000px
   ========================================================= */

@media (max-width: 1000px) {

    .strategic-header {

        grid-template-columns:
            1fr;

        gap: 20px;

        align-items: start;
    }

    .strategic-header > p {

        margin-left: 0;

        max-width: 650px;
    }

    .location-gallery {

        height: 480px;
    }

}


/* =========================================================
   RESPONSIVE 700px
   ========================================================= */

@media (max-width: 700px) {

    .strategic-location {

        padding:
            80px 6% 90px;
    }

    .strategic-header {

        margin-bottom: 35px;
    }

    .strategic-header h2 {

        font-size: 36px;
    }

    .strategic-header > p {

        font-size: 13px;
    }

    .location-gallery {

        height: auto;

        display: grid;

        grid-template-columns: 1fr;

        gap: 8px;

        overflow: visible;
    }

    .location-card,
    .location-card:first-child {

        height: 390px;

        min-height: 390px;

        flex: none;
    }

    .location-card:hover,
    .location-gallery:hover
    .location-card:first-child:not(:hover) {

        flex: none;
    }

    .location-content {

        transform:
            translateY(0);
    }

    .location-category {

        opacity: 1;

        transform:
            translateY(0);
    }

    .location-content p {

        opacity: 1;

        transform:
            translateY(0);
    }

    .location-content a {

        opacity: 1;

        transform:
            translateY(0);
    }

}


/* =========================================================
   RESPONSIVE 500px
   ========================================================= */

@media (max-width: 500px) {

    .strategic-location {

        padding:
            65px 5% 75px;
    }

    .strategic-header h2 {

        font-size: 31px;
    }

    .location-card,
    .location-card:first-child {

        height: 350px;

        min-height: 350px;
    }

    .location-number {

        top: 20px;

        left: 20px;
    }

    .location-content {

        left: 20px;

        right: 20px;

        bottom: 22px;
    }

    .location-content h3 {

        font-size: 22px;

        white-space: normal;
    }

}
