/* =============================================================
   Services Section
   Tema Piedrangular
   ============================================================= */

/* =============================================================
   Section header band
   ============================================================= */
   .services-section {
    background: linear-gradient(
        to bottom,
        #1E3FAF 40%,
        #ffffff 40%
    );
}
.services-section__header { 
    padding: 2.5rem 0;
}

.services-section__header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.services-section__header-left {
    flex-shrink: 0;
}

.services-section__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.375rem;
}

.services-section__title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
    line-height: 1.1;
}

.services-section__description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    max-width: 540px;
}

/* =============================================================
   Cards grid
   ============================================================= */
.services-section__grid-wrap {
    padding-top: 2.5rem;
    padding-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

/* =============================================================
   Individual service card
   ============================================================= */
.service-item {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e8edf5;
    border-radius: 4px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.service-item:hover {
    box-shadow: 0 8px 32px rgba(30, 64, 200, 0.12);
    transform: translateY(-3px);
}

/* Image area */
.service-item__image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background-color: #e4ecf7;
}

.service-item__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-item:hover .service-item__image img {
    transform: scale(1.04);
}

.service-item__image--placeholder {
    background-color: #d1dff5;
}

/* Body */
.service-item__body {
    flex: 1;
    padding: 1.375rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.service-item__title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary-dark, #0b2c5f);
    line-height: 1.3;
    margin: 0;
}

.service-item__desc {
    font-size: 0.8125rem;
    line-height: 1.65;
    color: #666;
    margin: 0;
    flex: 1;
}

/* "Ver más" link */
.service-item__link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--color-primary, #1a4ddb);
    text-decoration: none;
    margin-top: auto;
    padding-top: 0.25rem;
    transition: gap 0.2s;
}

.service-item__link:hover {
    gap: 0.625rem;
}

.service-item__link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--color-primary, #1a4ddb);
    color: #fff;
    flex-shrink: 0;
    transition: background-color 0.2s;
}

.service-item__link:hover .service-item__link-icon {
    background-color: var(--color-primary-hover, #1540c0);
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .services-section__header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }

    .services-section__description {
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}
