/* ============================================================
   PROPUESTA EDUCATIVA - SECCIÓN DE PROPUESTAS
   Secciones limpias e integradas en armonía con la paleta institucional.
   ============================================================ */

.seccion-propuestas {
    background: var(--bg-gradiente-claro);
    color: var(--text-primary);
}

.oculto-visual {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Propuesta limpia ---------- */

.tarjeta-propuesta {
    position: relative;
    padding: 4.5rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    scroll-margin-top: 80px;
    border-bottom: 1px solid rgba(0, 21, 85, 0.06);
}

.tarjeta-propuesta:nth-child(even) {
    background: rgba(255, 255, 255, 0.7);
}

.tarjeta-propuesta:nth-child(odd) {
    background: transparent;
}

.propuesta-interna {
    position: relative;
    z-index: 2;
    width: min(1200px, 100%);
    margin: 0 auto;
    padding: 2rem 1.5rem;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 4rem;
}

/* Alternar orientación: impares con imagen a la izquierda,
   pares (--invertida) con imagen a la derecha */
.tarjeta-propuesta .imagen-propuesta {
    order: 1;
}

.tarjeta-propuesta .contenido-propuesta {
    order: 2;
}

.tarjeta-propuesta--invertida .imagen-propuesta {
    order: 2;
}

.tarjeta-propuesta--invertida .contenido-propuesta {
    order: 1;
}

/* ---------- Contenido ---------- */

.contenido-propuesta {
    max-width: 34rem;
}

.etiqueta-propuesta {
    display: inline-block;
    padding: 0.35rem 1rem;
    border-radius: var(--radius-pill);
    background: rgba(251, 186, 0, 0.16);
    color: var(--color-primario);
    font-size: 0.78rem;
    font-weight: var(--fw-800);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(251, 186, 0, 0.35);
}

.titulo-propuesta {
    font-family: var(--font-serif);
    color: var(--color-primario);
    font-size: clamp(2.1rem, 3.8vw, 3rem);
    font-weight: var(--fw-800);
    line-height: 1.12;
    margin-bottom: 1.1rem;
}

.descripcion-propuesta {
    color: rgba(50, 50, 50, 0.85);
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.acciones-propuesta {
    display: flex;
    align-items: center;
}

/* Número gigante decorativo sobrio */

.numero-propuesta {
    position: absolute;
    z-index: 1;
    top: 3.5rem;
    right: 3vw;
    font-family: var(--font-serif);
    font-size: clamp(7rem, 18vw, 15rem);
    font-weight: var(--fw-900);
    line-height: 1;
    color: rgba(0, 21, 85, 0.04);
    pointer-events: none;
    user-select: none;
}

.tarjeta-propuesta--invertida .numero-propuesta {
    right: auto;
    left: 3vw;
}

/* Silueta artística sobria */

.arte-propuesta {
    position: absolute;
    z-index: 1;
    bottom: 2.5rem;
    right: 4vw;
    width: min(30%, 360px);
    color: var(--color-primario);
    opacity: 0.06;
    pointer-events: none;
}

.arte-propuesta svg {
    display: block;
    width: 100%;
    height: auto;
}

.tarjeta-propuesta--invertida .arte-propuesta {
    right: auto;
    left: 4vw;
}

/* ---------- Imagen ---------- */

.imagen-propuesta {
    position: relative;
}

.imagen-propuesta::before {
    content: "";
    position: absolute;
    inset: 8% -4% -6% 10%;
    border-radius: 24px;
    background: rgba(251, 186, 0, 0.22);
    transform: rotate(3deg);
}

.tarjeta-propuesta--invertida .imagen-propuesta::before {
    inset: 8% 10% -6% -4%;
    transform: rotate(-3deg);
}

.imagen-propuesta img {
    position: relative;
    display: block;
    width: 100%;
    height: clamp(300px, 50vh, 460px);
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 21, 85, 0.12);
    transition: transform 0.3s var(--easing-card), box-shadow 0.3s;
}

@media (hover: hover) and (pointer: fine) {
    .imagen-propuesta img:hover {
        transform: translateY(-8px) scale(1.015);
        box-shadow: 0 36px 80px rgba(0, 21, 85, 0.18);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 900px) {
    .tarjeta-propuesta {
        padding: 3rem 0;
    }

    .propuesta-interna {
        grid-template-columns: 1fr;
        gap: 2.25rem;
        padding: 2.5rem 1.25rem;
    }

    .tarjeta-propuesta .imagen-propuesta {
        order: 1;
    }

    .tarjeta-propuesta .contenido-propuesta {
        order: 2;
    }

    .contenido-propuesta {
        max-width: 100%;
    }

    .numero-propuesta {
        top: 2rem;
        right: 1rem;
        font-size: clamp(5rem, 20vw, 8rem);
    }

    .tarjeta-propuesta--invertida .numero-propuesta {
        left: auto;
        right: 1rem;
    }

    .arte-propuesta {
        display: none;
    }

    .imagen-propuesta img {
        height: clamp(240px, 38vh, 340px);
    }
}
