/* =========================================
   SERVICIOS
========================================= */

.services {
    background-color: var(--color-white);
}


/* =========================================
   HEADER DE SERVICIOS
========================================= */

.services-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 38px;
}


.services-header > div:first-child {
    max-width: 600px;
}


/* =========================================
   LADO DERECHO DEL HEADER
========================================= */

.section-header-right {
    max-width: 390px;
}


.section-header-right p {
    margin-bottom: 14px;

    color: var(--color-text-light);

    font-size: 0.88rem;

    line-height: 1.65;
}


.section-header-right a {
    display: inline-flex;
    align-items: center;

    gap: 10px;

    color: var(--color-primary);

    font-size: 0.82rem;

    font-weight: 700;
}


.section-header-right a i {
    font-size: 0.72rem;

    transition: transform var(--transition-normal);
}


.section-header-right a:hover i {
    transform: translateX(5px);
}


/* =========================================
   GRID DE SERVICIOS
========================================= */

.services-grid {
    display: grid;

    grid-template-columns:
        repeat(6, 1fr);

    gap: 14px;
}


/* =========================================
   TARJETA
========================================= */

.service-card {
    min-width: 0;

    overflow: hidden;

    background-color: var(--color-white);

    border: 1px solid var(--color-light-gray);

    border-radius: var(--radius-small);

    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        border-color var(--transition-normal);
}


.service-card:hover {
    transform: translateY(-6px);

    border-color: transparent;

    box-shadow: var(--shadow-medium);
}


/* =========================================
   IMAGEN
========================================= */

.service-image {
    width: 100%;

    height: 200px;

    overflow: hidden;

    background-color: var(--color-light-gray);
}

.service-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}


.service-card:hover .service-image img {
    transform: scale(1.06);
}


/* =========================================
   TÍTULO
========================================= */

.service-card h3 {
    margin:

        15px 14px
        7px;

    color: var(--color-text);

    font-size: 0.95rem;

    font-weight: 700;

    line-height: 1.25;
}


/* =========================================
   DESCRIPCIÓN
========================================= */

.service-card p {
    min-height: 42px;

    margin:

        0 14px
        14px;

    color: var(--color-text-light);

    font-size: 0.72rem;

    line-height: 1.45;
}


/* =========================================
   ENLACE
========================================= */

.service-card a {
    display: inline-flex;
    align-items: center;

    gap: 7px;

    margin:

        0 14px
        16px;

    color: var(--color-primary);

    font-size: 0.72rem;

    font-weight: 700;
}


.service-card a i {
    font-size: 0.65rem;

    transition:
        transform var(--transition-normal);
}


.service-card a:hover i {
    transform: translateX(4px);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1100px) {

    .services-grid {
        grid-template-columns:
            repeat(3, 1fr);

        gap: 20px;
    }


    .service-image {
        height: 180px;
    }

}


/* =========================================
   MÓVIL
========================================= */

@media (max-width: 768px) {

    .services-header {
        flex-direction: column;
        align-items: flex-start;

        gap: 18px;
    }


    .section-header-right {
        max-width: 100%;
    }


    .services-grid {
        grid-template-columns:
            repeat(2, 1fr);

        gap: 14px;
    }


    .service-image {
        height: 150px;
    }


    .service-card h3 {
        font-size: 0.88rem;
    }


    .service-card p {
        font-size: 0.7rem;
    }

}


/* =========================================
   MÓVIL PEQUEÑO
========================================= */

@media (max-width: 480px) {

    .services-grid {
        grid-template-columns:
            1fr;
    }


    .service-image {
        height: 210px;
    }

}
/* =====================================================
   PANELES DE SERVICIOS
===================================================== */

.service-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 30px;
}

.service-modal.active {
    display: flex;
}


/* =====================================================
   FONDO OSCURO
===================================================== */

.service-modal-overlay {
    position: absolute;
    inset: 0;

    background: rgba(4, 15, 28, 0.84);

    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}


/* =====================================================
   PANEL PRINCIPAL
===================================================== */

.service-modal-content {
    position: relative;
    z-index: 2;

    width: min(1100px, 100%);
    height: min(650px, calc(100vh - 60px));

    display: grid;
    grid-template-columns: 1fr 1fr;

    background: var(--color-white);

    border-radius: 18px;
    overflow: hidden;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.40);

    animation: servicePanelIn 0.28s ease;
}


@keyframes servicePanelIn {

    from {
        opacity: 0;
        transform: translateY(25px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =====================================================
   BOTÓN CERRAR
===================================================== */

.service-close {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 20;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.96);

    color: var(--color-dark);

    cursor: pointer;

    font-size: 1.1rem;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.15);

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.service-close:hover {
    background: var(--color-primary);
    color: var(--color-white);

    transform: rotate(90deg);
}


/* =====================================================
   IMAGEN DEL SERVICIO
===================================================== */

.service-modal-image {
    width: 100%;
    height: 100%;

    overflow: hidden;

    background: #0b1724;
}


.service-modal-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.5s ease;
}


.service-modal-content:hover
.service-modal-image img {
    transform: scale(1.025);
}


/* =====================================================
   INFORMACIÓN DEL SERVICIO
===================================================== */

.service-modal-info {
    min-width: 0;
    height: 100%;

    padding: 65px 55px 45px;

    overflow-y: auto;

    scrollbar-width: thin;
    scrollbar-color: rgba(10, 45, 75, 0.35) transparent;
}


.service-modal-info::-webkit-scrollbar {
    width: 6px;
}


.service-modal-info::-webkit-scrollbar-track {
    background: transparent;
}


.service-modal-info::-webkit-scrollbar-thumb {
    background: rgba(10, 45, 75, 0.35);
    border-radius: 10px;
}


/* EYEBROW */

.service-modal-info .section-eyebrow {
    margin: 0 0 12px;
}


/* TÍTULO */

.service-modal-info h2 {
    margin: 0 0 22px;

    color: var(--color-dark);

    font-size: clamp(2rem, 3vw, 3.15rem);

    line-height: 1.08;

    letter-spacing: -0.035em;
}


/* DESCRIPCIÓN */

.service-modal-description {
    margin: 0 0 32px;

    color: var(--color-text);

    font-size: 0.96rem;

    line-height: 1.75;
}


/* =====================================================
   LISTA "QUÉ INCLUYE"
===================================================== */

.service-modal-section {
    margin-top: 5px;
}


.service-modal-section h3 {
    margin: 0 0 17px;

    color: var(--color-dark);

    font-size: 1.05rem;

    font-weight: 700;
}


.service-modal-section ul {
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;

    gap: 12px;

    list-style: none;
}


.service-modal-section li {
    position: relative;

    padding-left: 27px;

    color: var(--color-text);

    font-size: 0.9rem;

    line-height: 1.5;
}


.service-modal-section li::before {
    content: "\f00c";

    position: absolute;

    left: 0;
    top: 1px;

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    color: var(--color-primary);

    font-size: 0.78rem;
}


/* =====================================================
   NOTA INFORMATIVA
===================================================== */

.service-modal-note {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 28px;
    padding: 14px 16px;

    background: rgba(10, 45, 75, 0.055);

    border-left: 3px solid var(--color-primary);

    border-radius: 5px;
}


.service-modal-note i {
    flex-shrink: 0;

    margin-top: 3px;

    color: var(--color-primary);

    font-size: 0.85rem;
}


.service-modal-note span {
    color: var(--color-text);

    font-size: 0.78rem;

    line-height: 1.55;
}


/* =====================================================
   BOTÓN WHATSAPP
===================================================== */

.service-modal-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-top: 30px;

    padding: 13px 20px;

    border-radius: 6px;

    background: var(--color-primary);
    color: var(--color-white);

    text-decoration: none;

    font-size: 0.84rem;
    font-weight: 600;

    transition:
        transform 0.25s ease,
        opacity 0.25s ease,
        box-shadow 0.25s ease;
}


.service-modal-button:hover {
    transform: translateY(-2px);

    opacity: 0.93;

    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.18);
}


.service-modal-button i:last-child {
    font-size: 0.75rem;

    transition: transform 0.25s ease;
}


.service-modal-button:hover i:last-child {
    transform: translateX(3px);
}


/* =====================================================
   BOTÓN "VER TODOS LOS SERVICIOS"
===================================================== */

.services-all-open {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 0;

    border: none;

    background: transparent;

    color: var(--color-primary);

    font-family: inherit;

    font-size: 0.82rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        color 0.25s ease,
        gap 0.25s ease;
}


.services-all-open:hover {
    color: var(--color-dark);

    gap: 12px;
}


.services-all-open i {
    font-size: 0.75rem;
}


/* =====================================================
   PANEL "TODOS LOS SERVICIOS"
===================================================== */

.all-services-content {
    position: relative;
    z-index: 2;

    width: min(950px, 100%);
    max-height: min(720px, calc(100vh - 60px));

    padding: 60px 55px 45px;

    background: var(--color-white);

    border-radius: 18px;

    overflow-y: auto;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.40);

    animation: servicePanelIn 0.28s ease;

    scrollbar-width: thin;
    scrollbar-color: rgba(10, 45, 75, 0.35) transparent;
}


.all-services-content::-webkit-scrollbar {
    width: 6px;
}


.all-services-content::-webkit-scrollbar-track {
    background: transparent;
}


.all-services-content::-webkit-scrollbar-thumb {
    background: rgba(10, 45, 75, 0.35);

    border-radius: 10px;
}


/* =====================================================
   ENCABEZADO TODOS LOS SERVICIOS
===================================================== */

.all-services-header {
    max-width: 650px;

    margin-bottom: 35px;
}


.all-services-header .section-eyebrow {
    margin: 0 0 12px;
}


.all-services-header h2 {
    margin: 0 0 15px;

    color: var(--color-dark);

    font-size: clamp(2.1rem, 4vw, 3.4rem);

    line-height: 1.08;

    letter-spacing: -0.035em;
}


.all-services-header p:last-child {
    margin: 0;

    color: var(--color-text);

    font-size: 0.95rem;

    line-height: 1.7;
}


/* =====================================================
   GRID TODOS LOS SERVICIOS
===================================================== */

.all-services-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 14px;
}


/* ITEM */

.all-service-item {
    position: relative;

    display: grid;

    grid-template-columns: 45px 1fr auto;

    grid-template-rows: auto auto;

    column-gap: 15px;

    align-items: center;

    padding: 20px;

    border: 1px solid rgba(10, 45, 75, 0.10);

    border-radius: 10px;

    background: var(--color-white);

    text-align: left;

    cursor: pointer;

    font-family: inherit;

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        background-color 0.25s ease,
        box-shadow 0.25s ease;
}


.all-service-item:hover {
    transform: translateY(-3px);

    border-color: rgba(10, 45, 75, 0.22);

    background: rgba(10, 45, 75, 0.025);

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.07);
}


/* ICONO */

.all-service-item > i {
    grid-row: 1 / 3;

    width: 45px;
    height: 45px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    background: rgba(10, 45, 75, 0.07);

    color: var(--color-primary);

    font-size: 1.05rem;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}


.all-service-item:hover > i {
    background: var(--color-primary);

    color: var(--color-white);
}


/* NOMBRE */

.all-service-item span {
    align-self: end;

    color: var(--color-dark);

    font-size: 0.92rem;

    font-weight: 700;

    line-height: 1.3;
}


/* DESCRIPCIÓN CORTA */

.all-service-item small {
    align-self: start;

    margin-top: 4px;

    color: var(--color-text);

    font-size: 0.75rem;

    line-height: 1.4;
}


/* FLECHA */

.all-service-item::after {
    content: "\f061";

    grid-column: 3;

    grid-row: 1 / 3;

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    color: var(--color-primary);

    font-size: 0.75rem;

    transition: transform 0.25s ease;
}


.all-service-item:hover::after {
    transform: translateX(4px);
}


/* =====================================================
   FOOTER DEL PANEL GENERAL
===================================================== */

.all-services-footer {
    display: flex;

    justify-content: flex-start;

    margin-top: 30px;

    padding-top: 25px;

    border-top: 1px solid rgba(10, 45, 75, 0.10);
}


/* =====================================================
   BLOQUEAR SCROLL DE LA PÁGINA
===================================================== */

body.service-modal-open {
    overflow: hidden;
}


/* =====================================================
                       TABLET
===================================================== */

@media (max-width: 850px) {

    .service-modal {
        padding: 20px;
    }


    .service-modal-content {
        width: min(700px, 100%);

        height: calc(100vh - 40px);

        grid-template-columns: 1fr;

        grid-template-rows: 280px minmax(0, 1fr);
    }


    .service-modal-image {
        height: 280px;
    }


    .service-modal-info {
        padding: 40px 35px;
    }


    .all-services-content {
        max-height: calc(100vh - 40px);

        padding: 50px 35px 35px;
    }

}


/* =====================================================
                       MÓVIL
===================================================== */

@media (max-width: 600px) {

    .service-modal {
        padding: 10px;
    }


    .service-modal-content {
        width: 100%;

        height: calc(100vh - 20px);

        border-radius: 14px;

        grid-template-rows: 210px minmax(0, 1fr);
    }


    .service-modal-image {
        height: 210px;
    }


    .service-modal-info {
        padding: 35px 25px 30px;
    }


    .service-modal-info h2 {
        font-size: 2rem;

        margin-bottom: 18px;
    }


    .service-modal-description {
        font-size: 0.9rem;

        line-height: 1.65;
    }


    .service-close {
        top: 12px;
        right: 12px;

        width: 38px;
        height: 38px;
    }


    .service-modal-note {
        padding: 12px 13px;
    }


    .service-modal-button {
        width: 100%;

        justify-content: center;
    }


    /* TODOS LOS SERVICIOS */

    .all-services-content {
        width: 100%;

        max-height: calc(100vh - 20px);

        padding: 45px 20px 25px;

        border-radius: 14px;
    }


    .all-services-header {
        margin-bottom: 25px;
    }


    .all-services-header h2 {
        font-size: 2rem;
    }


    .all-services-grid {
        grid-template-columns: 1fr;

        gap: 10px;
    }


    .all-service-item {
        padding: 16px;
    }


    .all-services-footer {
        margin-top: 22px;

        padding-top: 20px;
    }

}