/* ========================================
   SERVICES SECTION - Sistemas de seguridad
   ======================================== */

.services-section {
    position: relative;
    background-color: #FFFFFF;
    height: 886px;
    padding: 80px 0 0 0;
    overflow: visible;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

/* Columna izquierda */
.services-left {
    display: flex;
    flex-direction: column;
}

.services-subtitle {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1E1E1E;
    line-height: 26px;
    margin: 0 0 15px 0;
}

.services-title {
    font-family: 'Sora', sans-serif;
    font-size: 40px;
    font-weight: 700;
    color: #010F20;
    line-height: 110%;
    margin: 0;
    max-width: 683px;
}

/* Columna derecha */
.services-right {
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

.services-description {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #767676;
    line-height: 26px;
    margin: 0 0 40px 0;
    max-width: 528px;
}

/* ========================================
   BUTTONS
   ======================================== */
.services-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.services-buttons .btn-primary {
    background-color: #010F20;
    color: #FFFFFF;
    border-color: #010F20;
}

.services-buttons .btn-primary:hover {
    background-color: #FFFFFF;
    color: #010F20;
}

.services-buttons .btn-secondary {
    background-color: #1E1E1E;
    color: #FFFFFF;
    border-color: #1E1E1E;
}

.services-buttons .btn-secondary:hover {
    background-color: #FFFFFF;
    color: #1E1E1E;
}

/* ========================================
   SERVICE CARDS - Posicionadas entre secciones
   ======================================== */
.services-cards {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    z-index: 10;
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    border-radius: 12px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.service-card {
    background: #FFFFFF;
    padding: 40px 30px;
    width: 355px;
    height: 495px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #E0E0E0;
    transition: all 0.3s ease;
}

.service-card:first-child {
    border-radius: 12px 0 0 12px;
}

.service-card:last-child {
    border-right: none;
    border-radius: 0 12px 12px 0;
}

.service-card:hover {
    background: #FAFAFA;
}

/* ========================================
   DESKTOP - ESQUINAS RECTAS
   ======================================== */
@media screen and (min-width: 1025px) {
    .services-cards {
        border-radius: 0;
    }

    .service-card:first-child {
        border-radius: 0;
    }

    .service-card:last-child {
        border-radius: 0;
    }
}

.service-icon {
    width: 120px;
    height: 120px;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-icon svg,
.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card-title {
    font-family: 'Sora', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #010F20;
    line-height: 130%;
    text-align: left;
    margin: 0 0 80px 0;
}

.service-card-description {
    font-family: 'Roboto', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #626262;
    line-height: 22px;
    text-align: left;
    margin: 0;
}

/* ========================================
   RESPONSIVE - TABLET (1024px y menos)
   ======================================== */
@media screen and (max-width: 1024px) {
    .services-section {
        height: auto;
        min-height: 700px;
        padding: 60px 0 0 0;
    }

    .services-container {
        padding: 0 60px;
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-right {
        padding-top: 0;
    }

    .services-title {
        font-size: 36px;
        max-width: 100%;
    }

    .services-description {
        max-width: 100%;
    }

    .services-cards {
        flex-wrap: wrap;
        width: calc(100% - 120px);
        margin: 0 60px;
        left: 0;
        transform: none;
        bottom: -350px;
    }

    .service-card {
        width: 50%;
        height: auto;
        min-height: 350px;
        border-right: none;
        border-bottom: 1px solid #E0E0E0;
    }

    .service-card:nth-child(odd) {
        border-right: 1px solid #E0E0E0;
    }

    .service-card:nth-child(3),
    .service-card:nth-child(4) {
        border-bottom: none;
    }

    .service-card:first-child {
        border-radius: 12px 0 0 0;
    }

    .service-card:nth-child(2) {
        border-radius: 0 12px 0 0;
    }

    .service-card:nth-child(3) {
        border-radius: 0 0 0 12px;
    }

    .service-card:last-child {
        border-radius: 0 0 12px 0;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL (768px y menos)
   ======================================== */
@media screen and (max-width: 768px) {
    .services-section {
        height: auto;
        min-height: 500px;
        padding: 30px 0 0 0;
    }

    .services-container {
        padding: 0 30px;
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .services-left,
    .services-right {
        text-align: left;
    }

    .services-title {
        font-size: 32px;
        max-width: 100%;
    }

    .services-subtitle,
    .services-description {
        text-align: left;
        font-size: 15px;
        max-width: 100%;
    }

    .services-description {
        margin-bottom: 30px;
    }

    .services-buttons {
        justify-content: flex-start;
        margin-bottom: 40px;
    }

    .services-cards {
        flex-direction: column;
        width: calc(100% - 60px);
        margin: 0 30px;
        left: 0;
        transform: none;
        top: 600px;
        bottom: auto;
    }

    .service-card {
        width: 100%;
        height: auto;
        min-height: auto;
        padding: 24px 20px;
        border-right: none !important;
        border-bottom: 1px solid #E0E0E0 !important;
    }

    .service-card:last-child {
        border-bottom: none !important;
    }

    .service-card:first-child {
        border-radius: 12px 12px 0 0;
    }

    .service-card:last-child {
        border-radius: 0 0 12px 12px;
    }

    .service-icon {
        width: 84px;
        height: 84px;
        margin: 0 0 16px 0;
    }

    .service-card-title {
        font-size: 18px;
        margin: 0 0 16px 0;
    }
}

/* ========================================
   RESPONSIVE - MÓVIL PEQUEÑO (480px y menos)
   ======================================== */
@media screen and (max-width: 480px) {
    .services-section {
        padding: 25px 0 0 0;
    }

    .services-container {
        padding: 0 20px;
    }

    .services-title {
        font-size: 28px;
    }

    .services-subtitle,
    .services-description {
        font-size: 14px;
        line-height: 22px;
    }

    .services-cards {
        width: calc(100% - 40px);
        margin: 0 20px;
        top: 600px;
        bottom: auto;
    }

    .service-card {
        padding: 25px 20px;
        border-right: none !important;
        border-bottom: 1px solid #E0E0E0 !important;
    }

    .service-icon {
        width: 76px;
        height: 76px;
        margin: 0 0 14px 0;
    }

    .service-card-title {
        margin: 0 0 14px 0;
        font-size: 17px;
    }

    .service-card-description {
        font-size: 13px;
        line-height: 20px;
    }
}
