/* ===============================
   RESPONSABILIDAD SOCIAL – estilos
   =============================== */

/* ===== HERO con imagen + degradado azul ===== */
.rs-hero {
    position: relative;
    color: #fff;
    padding: clamp(36px, 5vw, 64px) 0;
    /* antes 56px–96px */
    overflow: hidden;
    min-height: 45vh;
    /* antes 80vh */
    /* asegura visibilidad del fondo */
    isolation: isolate;

    /* usa ruta ABSOLUTA desde la raíz para evitar fallos de carpeta */
    background: url('../images/imagens_carrera/reponsabilidad.jpg') center/cover no-repeat;
}

/* Capa de la imagen */
.rs-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: center/cover no-repeat var(--rs-hero-bg);
    z-index: 0;
    filter: brightness(0.9);
}

/* Capa del degradado azul */
.rs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(800px 400px at -10% -20%, rgba(255, 255, 255, .10), transparent 60%),
        linear-gradient(135deg, var(--c-primary-900, #122a63), var(--c-primary-700, #1b4fd6));
    opacity: 0.85;
    z-index: 1;
}

/* Contenido por encima */
.rs-hero .container {
    position: relative;
    z-index: 2;
}

/* Título y texto */
.rs-hero__title {
    font-weight: 800;
    line-height: 1.05;
    font-size: clamp(32px, 4.8vw, 52px);
    margin-bottom: 1rem;
    text-shadow: 0 3px 8px rgba(0, 0, 0, .5);
}

.rs-hero__lead {
    color: #eaf2ff;
    max-width: 60ch;
    text-shadow: 0 2px 6px rgba(0, 0, 0, .4);
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Botones */
.rs-hero .btn {
    font-weight: 600;
    border-radius: 999px;
    padding: 0.55rem 1.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}

.rs-hero .btn-outline-light:hover {
    background: #fff;
    color: #1b4fd6;
}

.rs-hero .btn-primary {
    background: linear-gradient(135deg, #122a63, #1b4fd6);
    border: none;
}

.rs-hero .btn-primary:hover {
    filter: brightness(1.1);
}

/* ==== SECCIONES GENERALES ==== */
.rs-section {
    padding: clamp(34px, 5vw, 64px) 0;
    background: #fff;
}

.rs-section.bg-soft {
    background: #f7f8fb;
}

.rs-title {
    font-weight: 700;
    font-size: clamp(1.6rem, 3.6vw, 2.2rem);
    color: #1b4fd6;
    margin-bottom: .8rem;
}

.rs-text {
    color: #3f4961;
    line-height: 1.6;
}

/* ==== TARJETAS Y ELEMENTOS ==== */
.rs-card {
    background: #fff;
    border: 1px solid rgba(20, 20, 43, .06);
    border-radius: 16px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 16px 44px rgba(0, 0, 0, .06);
    height: 100%;
}

.rs-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin: 0 auto 8px;
    background: linear-gradient(135deg, #122a63, #1b4fd6);
    color: #fff;
}

/* ==== CTA FINAL ==== */
.rs-cta {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: clamp(40px, 6vw, 74px) 0;
}

.rs-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #122a63, #1b4fd6);
}

.rs-cta .container {
    position: relative;
    z-index: 1;
}

.rs-cta__lead {
    color: #f2f6ff;
}

/* ==== RESPONSIVO ==== */
@media (max-width: 768px) {
    .rs-hero {
        min-height: 70vh;
        text-align: center;
    }

    .rs-hero__lead {
        font-size: 1rem;
    }
}