/*
======================================================
NEXA SERVICES
Version 1.0.0
======================================================
*/

/* ============================================
   SECCIÓN PRINCIPAL
============================================= */

.nexa-services {
    padding: 120px 30px;
    background: #F8FAFC;
}

.nexa-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* ============================================
   HEADER
============================================= */

.nexa-services-header {
    text-align: center;
    margin-bottom: 70px;
}

.nexa-services-header span {
    display: inline-block;
    color: #06B6D4;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.nexa-services-header h2 {
    font-size: 48px;
    color: #0F172A;
    margin-bottom: 20px;
    font-weight: 700;
}

.nexa-services-header p {
    max-width: 760px;
    margin: 0 auto;
    color: #64748B;
    font-size: 18px;
    line-height: 1.8;
}

/* ============================================
   GRID
============================================= */

.nexa-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* ============================================
   TARJETA
============================================= */

.nexa-service-card {
    background: #FFFFFF;
    border-radius: 22px;
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08);
    transition: all 0.35s ease;
    min-height: 430px;
    overflow: hidden;
}

.nexa-service-card:hover {
    background: #0F172A;
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.20);
}

.nexa-service-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 25px;
}

.nexa-service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.nexa-service-card:hover .nexa-service-image img {
    transform: scale(1.08);
}

.nexa-service-icon {
    font-size: 46px;
    text-align: center;
    margin: 35px 0 20px;
    color: #06B6D4;
}

.nexa-service-subtitle {
    color: #06B6D4;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.nexa-service-card h3 {
    color: #0F172A;
    font-size: 28px;
    line-height: 1.3;
    margin: 0 0 18px;
    transition: 0.3s;
}

.nexa-service-card:hover h3 {
    color: #FFFFFF;
}

.nexa-service-card p {
    color: #64748B;
    line-height: 1.8;
    font-size: 15px;
    margin-bottom: 30px;
    flex: 1;
}

.nexa-service-card:hover p {
    color: #CBD5E1;
}

/* ============================================
   BOTÓN "Learn More" EN TARJETAS
   CONTROLADO COMPLETAMENTE
============================================= */

.nexa-service-button {
    display: inline-block !important;
    padding: 14px 30px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: none !important;
    cursor: pointer !important;
    background: #06B6D4 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: 1.4 !important;
    font-family: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Hover */
.nexa-service-button:hover,
.nexa-service-button:focus,
.nexa-service-button:active {
    background: #0891B2 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3) !important;
    border: none !important;
    outline: none !important;
}

/* Estado cuando la tarjeta está en hover (fondo oscuro) */
.nexa-service-card:hover .nexa-service-button {
    background: #06B6D4 !important;
    color: #ffffff !important;
}

.nexa-service-card:hover .nexa-service-button:hover {
    background: #0891B2 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4) !important;
}

/* ============================================
   MODAL
============================================= */

.nexa-modal-overlay {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.75) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    z-index: 999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    animation: nexa-modal-fade-in 0.3s ease !important;
}

.nexa-modal-overlay.active {
    display: flex !important;
}

@keyframes nexa-modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.nexa-modal-container {
    max-width: 700px !important;
    width: 100% !important;
    max-height: 90vh !important;
    background: #ffffff !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    position: relative !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35) !important;
    animation: nexa-modal-slide-up 0.4s ease !important;
}

@keyframes nexa-modal-slide-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Botón cerrar */
.nexa-modal-close {
    position: absolute !important;
    top: 16px !important;
    right: 20px !important;
    background: rgba(0, 0, 0, 0.06) !important;
    border: none !important;
    color: #0F172A !important;
    font-size: 24px !important;
    cursor: pointer !important;
    z-index: 10 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow: none !important;
    outline: none !important;
}

.nexa-modal-close:hover,
.nexa-modal-close:focus,
.nexa-modal-close:active {
    background: rgba(0, 0, 0, 0.12) !important;
    transform: rotate(90deg) !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Contenido del modal */
.nexa-modal-content {
    padding: 40px 40px 45px !important;
    overflow-y: auto !important;
    max-height: 90vh !important;
}

/* Imagen del modal */
.nexa-modal-image {
    width: 100% !important;
    height: 280px !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    margin-bottom: 25px !important;
}

.nexa-modal-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Icono del modal */
.nexa-modal-icon {
    font-size: 48px !important;
    margin-bottom: 15px !important;
    display: inline-block !important;
}

/* Título del modal */
.nexa-modal-title {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #0F172A !important;
    margin: 0 0 8px !important;
    line-height: 1.2 !important;
}

.nexa-modal-subtitle {
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: #06B6D4 !important;
    margin-bottom: 15px !important;
}

/* Descripción del modal */
.nexa-modal-description {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: #475569 !important;
    margin: 0 0 30px !important;
}

/* ============================================
   BOTÓN "Contact Us" EN MODAL
   CONTROLADO COMPLETAMENTE
============================================= */

.nexa-modal-btn.nexa-modal-contact-btn {
    display: inline-block !important;
    padding: 14px 32px !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    border: none !important;
    cursor: pointer !important;
    background: #06B6D4 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    line-height: 1.4 !important;
    min-width: 160px !important;
    font-family: inherit !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Hover, Focus, Active - TODOS CONTROLADOS */
.nexa-modal-btn.nexa-modal-contact-btn:hover,
.nexa-modal-btn.nexa-modal-contact-btn:focus,
.nexa-modal-btn.nexa-modal-contact-btn:active {
    background: #0891B2 !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3) !important;
    border: none !important;
    outline: none !important;
}

/* ============================================
   BOTONES EN GENERAL - RESET COMPLETO
   (Por si algún tema intenta sobrescribir)
============================================= */

button.nexa-modal-btn,
button.nexa-service-button,
a.nexa-modal-btn,
a.nexa-service-button {
    font-family: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-shadow: none !important;
    background-image: none !important;
    -webkit-font-smoothing: antialiased !important;
}

/* ============================================
   RESPONSIVE MODAL
============================================= */

@media (max-width: 768px) {
    .nexa-modal-container {
        max-height: 95vh !important;
        border-radius: 16px !important;
    }

    .nexa-modal-content {
        padding: 25px 20px 30px !important;
    }

    .nexa-modal-image {
        height: 200px !important;
    }

    .nexa-modal-title {
        font-size: 24px !important;
    }

    .nexa-modal-description {
        font-size: 15px !important;
    }

    .nexa-modal-btn.nexa-modal-contact-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        min-width: unset !important;
    }

    .nexa-modal-close {
        top: 12px !important;
        right: 14px !important;
        width: 38px !important;
        height: 38px !important;
        font-size: 20px !important;
    }
}

@media (max-width: 480px) {
    .nexa-modal-image {
        height: 160px !important;
    }

    .nexa-modal-title {
        font-size: 20px !important;
    }

    .nexa-modal-description {
        font-size: 14px !important;
    }

    .nexa-modal-btn.nexa-modal-contact-btn {
        padding: 12px 16px !important;
        font-size: 14px !important;
    }
}

/* ============================================
   RESPONSIVE SERVICES
============================================= */

@media (max-width: 1200px) {
    .nexa-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nexa-services-grid {
        grid-template-columns: 1fr;
    }

    .nexa-services-header h2 {
        font-size: 32px;
    }

    .nexa-services-header p {
        font-size: 16px;
    }

    .nexa-service-card {
        min-height: 380px;
        padding: 25px 20px;
    }

    .nexa-service-button {
        padding: 12px 24px !important;
        font-size: 14px !important;
    }
}