/* ===========================
   PSICOPEDAGOGÍA – estilos
   (compatible con urusayhua.css)
   =========================== */

/* ===== HERO Psicopedagogía con overlay azul → naranja (estilo Quechua) ===== */
.ps-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(56px, 7vw, 96px) 0;
    /* usa ruta ABSOLUTA desde la raíz para evitar fallos de carpeta */
    background: url('../images/imagens_carrera/psicopedadogia.jpg') center/cover no-repeat;
    min-height: clamp(420px, 58vh, 720px);
    /* asegura altura para que se vea el fondo */
    isolation: isolate;

    /* Variables de color */
    --ps-blue: #0e2442;
    --ps-blue-2: #153a6b;
    --ps-accent: #112b88;
}

/* Suaviza el difuminado para no tapar la foto */
.ps-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(1200px 600px at 50% 110%, rgba(0, 0, 0, .12), transparent 60%);
    z-index: -1;
}

/* Tipos del hero */
.ps-hero__title {
    font-weight: 900;
    line-height: 1.05;
    font-size: clamp(32px, 4.8vw, 52px);
    margin: 0 0 .4rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}

.ps-hero__lead {
    color: #eaf2ff;
    max-width: 65ch;
    margin: 0;
}

/* Botón claro sobre el overlay */
.ps-hero .btn.btn-light {
    border: 1px solid rgba(255, 255, 255, .55);
    font-weight: 700;
    border-radius: 999px;
}

.ps-hero .btn.btn-light:hover {
    background: var(--ps-accent);
    border-color: var(--ps-accent);
    color: #fff;
}

.ps-hero .container {
    position: relative;
    z-index: 1;
}

/* ---- SECCIONES GENERALES ---- */
.ps-cuando,
.ps-objetivos,
.ps-canal {
    padding: clamp(34px, 5vw, 64px) 0;
}

.ps-cuando,
.ps-canal {
    background: var(--bg, #f7f8fb);
}

.ps-objetivos {
    text-align: center;
}

.ps-objetivos .heading {
    font-weight: 700;
    margin-bottom: .35rem;
}

.ps-objetivos p {
    max-width: 70ch;
    margin-inline: auto;
    color: #3f4961;
}

/* ---- LISTA “CUÁNDO ACUDIR” ---- */
.ps-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .5rem;
}

.ps-list li {
    color: #3f4961;
    display: flex;
    gap: .5rem;
    align-items: flex-start;
}

.ps-list i {
    color: var(--c-primary-700, #1b4fd6);
    margin-top: .2rem;
}

/* ---- CANAL DE ATENCIÓN ---- */
.ps-card {
    background: #fff;
    border: 1px solid rgba(20, 20, 43, .06);
    border-radius: 16px;
    padding: 18px;
    height: 100%;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .06);
}

.ps-card h5 {
    font-weight: 900;
    color: var(--c-primary-700, #1b4fd6);
    margin: 0 0 .25rem;
    font-size: 1.25rem;
}

.ps-card p {
    margin: 0;
    color: #47506a;
}

/* ---- CTA ---- */
.ps-cta {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(40px, 6vw, 74px) 0;
}

.ps-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--c-primary-900, #122a63), var(--c-primary-700, #1b4fd6));
}

.ps-cta .container {
    position: relative;
    z-index: 1;
}

.ps-title {
    font-weight: 700;
    margin: 0 0 .35rem;
}

.ps-cta__lead {
    color: #f2f6ff;
    margin: 0;
}

.ps-cta__img {
    max-width: 250px;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .25);
}

/* ---- Helpers de títulos locales ---- */
.section-title .heading {
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    font-weight: 700;
    margin: 0;
}

/* ---- Ajustes responsivos ---- */
@media (max-width: 991.98px) {
    .ps-hero__figure img {
        max-width: 380px;
    }
}

@media (max-width: 575.98px) {
    .ps-card {
        padding: 16px;
    }

    .ps-list {
        gap: .45rem;
    }
}

.ps-hero {
    display: flex;
    justify-content: center;
    /* centra horizontalmente */
}

.ps-hero__content {
    background: rgba(0, 0, 0, 0.45);
    padding: 2rem;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    color: #fff;
    text-align: center;
}

.ps-hero__content {
    /* Fondo con degradado azul institucional y transparencia */
    background: linear-gradient(135deg,
            rgba(18, 130, 241, 0.734),
            rgba(0, 179, 116, 0.78));
    backdrop-filter: blur(6px);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    max-width: 760px;
    width: 92%;
    color: #fff;
    margin: 0 auto;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* efecto de hover sutil */
.ps-hero__content:hover {
    transform: scale(1.02);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.3);
}

/* Texto dentro */
.ps-hero__title {
    font-weight: 900;
    font-size: clamp(36px, 4.8vw, 52px);
    margin-bottom: 1rem;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.5);
}

.ps-hero__lead {
    color: #f2f5ff;
    line-height: 1.55;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    font-size: 1.1rem;
    max-width: 65ch;
    margin: 0 auto;
}

/* Imagen más pequeña en la sección “¿Cuándo acudir?” */
.ps-cuando img {
    max-width: 80%;
    height: auto;
    border-radius: 12px;
}
.ps-finalidad img {
    border-radius: 12px;
}
