
.servicios{
    width: 100%;
    background-color: var(--light-300);
}

.servicios-wrapper{
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding: 2.8rem var(--spacing-md) 2.5rem var(--spacing-md);
    max-width: 335px;
    
    @media (min-width:768px) {
        padding: 2.8rem 0 2.5rem 0;
        max-width: 690px;
    }

    @media (min-width:1024px) {
        /* border: 2px solid black; */
        max-width:1060px;
        padding: 3.8rem 1.2rem 4.5rem 1.2rem;
    }

    @media (min-width:1280px) {
        max-width: 1080px;
    }
}

.servicios__title-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 0.8rem;

    @media (min-width: 768px) {
        gap: 2rem;
    }
}

.servicios__line {
    flex: 1;
    max-width: 80px;
    height: 2px;
    background: linear-gradient(
        to right,
        transparent 0%,
        var(--primary) 30%,
        var(--secondary) 70%,
        transparent 100%
    );

    @media (min-width: 768px) {
        max-width: 150px;
    }

    @media (min-width: 1024px) {
        max-width: 150px;
    }
}

.servicios__pretitle {
    display: inline-block;
    color: var(--primary);
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    white-space: nowrap;

    @media (min-width: 768px) {
        font-size: 2.15rem;
    }
}

.servicios__subtitle {
    color: var(--dark-700);
    font-size: 0.95rem;
    margin-top: 0rem;
    font-weight: 300;
    width: 80%;
    margin: 0 auto;
    padding: 0.4rem 0rem;

    @media (min-width: 768px) {
        font-size: 1.05rem;
        width: 70%;
    }

    @media (min-width: 1024px) {
        width: 60%;
    }
}

.servicios__title .highlight{
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== GRID DE SERVICIOS ========== */
.servicios__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.6rem;
    margin-top: 1.8rem;

    @media (min-width: 768px) {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.4rem 3rem;
    }

    @media (min-width: 1024px) {
        grid-template-columns: repeat(3, 1fr);
        gap: 3.8rem;
        justify-self: center;
    }

    @media (min-width: 1280px) {
        gap: 4rem;
    }
}

/* ========== CARD BASE ========== */
.servicios__card {
    position: relative;
    height: 370px;
    text-align: center;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    

    @media (min-width: 768px) {
        height: 370px;
        max-width: 310px;
    }

    @media (min-width: 1024px) {
        height: 365px;
    }

    @media (min-width: 1280px) {
        max-width: 325px;
        height: 375px;
    }

    

}

/* ========== IMAGEN ========== */
.servicios__card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.servicios__card:hover .servicios__card-image {
    transform: scale(1.1);
}

.servicios__card:hover{
    box-shadow: 0 14px 28px rgba(114,120,220,0.25), 0 10px 10px rgba(114,120,220,0.22);
    border: 1px solid #6a78dc;
}

/* ========== OVERLAY INICIAL (siempre visible) ========== */
.servicios__card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(
        to top,
        rgba(15, 23, 42, 0.95) 0%,
        rgba(15, 23, 42, 0.7) 60%,
        transparent 100%
    );
    transition: opacity 0.4s ease;
}

.servicios__card:hover .servicios__card-overlay {
    opacity: 0;
    
}

.servicios__card-title {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-align: center;

    @media (min-width: 768px) {
        font-size: 1.6rem;
    }
}

/* ========== INFO HOVER (glassmorphism) ========== */
.servicios__card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.servicios__card:hover .servicios__card-info {
    transform: translateY(0);
}

.servicios__card-info-title {
    color: white;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;

    @media (min-width: 768px) {
        font-size: 1.8rem;
    }
}

.servicios__card-description {
    color: var(--light-200);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
    font-weight: 300;

    @media (min-width: 768px) {
        font-size: 1rem;
    }
}

