/* ==========================================================
   CENTRO PSICOLÓGICO CLARIDAD
   PÁGINA DE SERVICIOS

   Este archivo contiene únicamente estilos de servicios.php.

   Los estilos generales, botones, header, footer,
   contenedores y utilidades pertenecen a global.css.
   ========================================================== */


/* ==========================================================
   1. PRESENTACIÓN / HERO DE SERVICIOS
   ========================================================== */

.services-hero {
    padding: clamp(60px, 7vw, 90px) 0;

    background:
        radial-gradient(
            circle at 50% 0%,
            var(--accent-mint-light) 0%,
            transparent 65%
        );
}


.services-hero-content {
    max-width: 850px;

    text-align: center;
}


.services-hero h1 {
    margin-bottom: 22px;

    font-size: clamp(2.3rem, 4.5vw, 3.4rem);
    line-height: 1.15;

    color: var(--primary-dark);
}


.services-hero p {
    max-width: 720px;

    margin-left: auto;
    margin-right: auto;

    font-size: 1.05rem;
    line-height: 1.75;

    color: var(--text-muted);
}


/* ==========================================================
   2. CATÁLOGO GENERAL
   ========================================================== */

.services-catalog {
    padding: 80px 0;
}


/* ==========================================================
   3. CATEGORÍAS
   ========================================================== */

.service-category {
    padding: 55px 0;

    border-bottom: 1px solid rgba(15, 42, 58, 0.08);
}


/*
    La primera categoría no necesita espacio superior extra.
*/
.service-category:first-child {
    padding-top: 0;
}


/*
    La última categoría no necesita línea inferior.
*/
.service-category:last-child {
    padding-bottom: 0;

    border-bottom: none;
}


/* ==========================================================
   4. CABECERA DE CADA CATEGORÍA
   ========================================================== */

.category-heading {
    display: flex;
    align-items: center;

    gap: 18px;

    margin-bottom: 30px;
}


.category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    width: 56px;
    height: 56px;

    border-radius: 18px;

    font-size: 1.5rem;

    color: var(--accent-mint);

    background-color: var(--accent-mint-light);
}


.category-number {
    display: block;

    margin-bottom: 3px;

    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 1.5px;

    color: var(--accent-mint);
}


.category-heading h2 {
    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.2;

    color: var(--primary-dark);
}


/* ==========================================================
   5. GRID DE SERVICIOS
   ========================================================== */

.category-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}


/* ==========================================================
   6. TARJETAS
   ========================================================== */

.service-detail-card {
    position: relative;

    height: 100%;

    padding: 28px 26px;

    border: 1px solid rgba(15, 42, 58, 0.06);
    border-radius: 20px;

    background-color: var(--white);

    box-shadow:
        0 7px 25px rgba(15, 42, 58, 0.035);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}


/*
    Pequeño detalle visual superior.
*/
.service-detail-card::before {
    content: '';

    position: absolute;

    top: 0;
    left: 26px;

    width: 42px;
    height: 3px;

    border-radius: 0 0 4px 4px;

    background-color: var(--accent-mint);

    opacity: 0.65;
}


.service-detail-card:hover {
    transform: translateY(-4px);

    border-color: rgba(0, 168, 143, 0.18);

    box-shadow:
        0 13px 30px rgba(15, 42, 58, 0.075);
}


.service-detail-card h3 {
    margin-bottom: 13px;

    font-size: 1.08rem;
    line-height: 1.35;

    color: var(--primary-dark);
}


.service-detail-card p {
    font-size: 0.9rem;
    line-height: 1.65;

    color: var(--text-muted);
}


/* ==========================================================
   7. CTA FINAL
   ========================================================== */

.services-cta {
    width: min(
        1150px,
        calc(100% - 48px)
    );

    margin: 0 auto 70px;

    padding: 45px 50px;

    border-radius: 24px;

    color: var(--white);

    background-color: var(--primary-dark);
}


.services-cta-content {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 40px;

    /*
        services-cta ya controla su ancho.
        Evitamos que el padding estándar de .container
        reduzca demasiado el espacio interior.
    */
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}


.services-cta-content > div {
    flex: 1;

    min-width: 0;
}


.services-cta .section-tag {
    margin-bottom: 8px;
}


.services-cta h2 {
    margin-bottom: 8px;

    font-size: clamp(1.6rem, 3vw, 2rem);
    line-height: 1.3;

    color: var(--white);
}


.services-cta p {
    max-width: 650px;

    color: #b8c4ce;
}


.services-cta .btn {
    flex-shrink: 0;
}


/* ==========================================================
   8. RESPONSIVIDAD
   ========================================================== */


/* ----------------------------------------------------------
   TABLETS / LAPTOPS PEQUEÑAS
   ---------------------------------------------------------- */

@media (max-width: 992px) {

    .services-hero {
        padding: 65px 0;
    }


    .services-catalog {
        padding: 65px 0;
    }


    .service-category {
        padding: 45px 0;
    }


    .category-grid {
        gap: 16px;
    }


    .service-detail-card {
        padding: 25px 22px;
    }


    .service-detail-card::before {
        left: 22px;
    }


    .services-cta {
        padding: 40px;
    }

}


/* ----------------------------------------------------------
   CELULARES / TABLETS VERTICALES
   ---------------------------------------------------------- */

@media (max-width: 768px) {

    /* HERO */

    .services-hero {
        padding: 55px 0;
    }


    .services-hero h1 {
        font-size: 2.25rem;
    }


    .services-hero p {
        font-size: 1rem;
    }


    /* CATÁLOGO */

    .services-catalog {
        padding: 55px 0;
    }


    .service-category {
        padding: 40px 0;
    }


    /* CABECERA */

    .category-heading {
        align-items: flex-start;

        gap: 15px;

        margin-bottom: 24px;
    }


    .category-icon {
        width: 50px;
        height: 50px;

        border-radius: 15px;

        font-size: 1.35rem;
    }


    /* SERVICIOS */

    .category-grid {
        grid-template-columns: 1fr;

        gap: 16px;
    }


    .service-detail-card {
        padding: 26px 24px;
    }


    .service-detail-card::before {
        left: 24px;
    }


    /* CTA */

    .services-cta {
        width: calc(100% - 32px);

        margin-bottom: 50px;

        padding: 32px 24px;
    }


    .services-cta-content {
        flex-direction: column;

        align-items: stretch;

        gap: 24px;

        text-align: center;
    }


    .services-cta p {
        margin-left: auto;
        margin-right: auto;
    }


    .services-cta .btn {
        width: 100%;
    }

}


/* ----------------------------------------------------------
   CELULARES PEQUEÑOS
   ---------------------------------------------------------- */

@media (max-width: 480px) {

    .services-hero {
        padding: 45px 0;
    }


    .services-hero h1 {
        font-size: 2rem;
    }


    .services-catalog {
        padding: 45px 0;
    }


    .service-category {
        padding: 35px 0;
    }


    .category-heading {
        gap: 12px;
    }


    .category-icon {
        width: 46px;
        height: 46px;

        font-size: 1.25rem;
    }


    .category-heading h2 {
        font-size: 1.5rem;
    }


    .service-detail-card {
        padding: 24px 20px;
    }


    .service-detail-card::before {
        left: 20px;
    }


    .services-cta {
        padding: 28px 20px;
    }


    .services-cta h2 {
        font-size: 1.5rem;
    }

}