/* =============================================================================
   Formación en Constelaciones Familiares
   - Estilos de la página /formacion/ y del teaser de la home (#formacion)
   - Sólo tokens y patrones de css/styles.css: nada de colores sueltos nuevos
   ============================================================================= */

/* ----- Píldoras de datos (hero de /formacion y teaser de la home) ----- */
.formacion-pills {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1.9rem;
    padding: 0;
}

.formacion-pills li {
    margin: 0;
}

.formacion-pill {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: var(--accent-violet);
    color: var(--ink-strong);
}

.formacion-pill--soft {
    background: rgba(196, 182, 235, 0.2);
    border-color: rgba(196, 182, 235, 0.38);
    color: var(--text-emphasis-lilac);
}

.formacion-pill--rose {
    background: rgba(201, 157, 168, 0.18);
    border-color: rgba(240, 180, 200, 0.32);
    color: var(--text-emphasis-rose);
}

/* Borde inferior más alto cuando la polaroid lleva pie (el default sólo deja 22px) */
.polaroid--captioned {
    padding-bottom: 44px;
}

/* ----- Hero: polaroid vertical 4:5 (retrato de la formación) ----- */
.hero__visual .polaroid--hero.polaroid--formacion {
    max-width: min(100%, clamp(300px, 44vw, 480px));
}

.hero__visual .polaroid--hero.polaroid--formacion .polaroid__frame {
    aspect-ratio: 4 / 5;
}

.hero__visual .polaroid--hero.polaroid--formacion .polaroid__img {
    object-fit: cover;
    object-position: center;
}

/* ----- Polaroid con el video vertical (9:16) ----- */
.polaroid--video {
    max-width: min(100%, clamp(260px, 34vw, 340px));
}

.polaroid--video .polaroid__frame {
    aspect-ratio: 9 / 16;
}

.formacion-video__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: var(--black);
}

/* ----- Cita destacada (sin el logo de .hellinger-quote) ----- */
.formacion-quote {
    margin: 1.75rem 0 0;
    padding: 0.5rem 0 0.5rem 1.25rem;
    border-left: 4px solid rgba(196, 182, 235, 0.75);
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
    line-height: 1.45;
    color: var(--text-emphasis-lilac);
    text-shadow:
        0 0.06em 0.2em rgba(0, 0, 0, 0.45),
        0 0 32px rgba(146, 120, 255, 0.25);
}

.formacion-quote p {
    margin: 0;
}

/* ----- “¿Qué te permitirá esta formación?” — tarjetas de beneficios ----- */
.formacion-perks {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 0.85rem;
    margin: 0;
    padding: 0;
}

.formacion-perks__item {
    position: relative;
    margin: 0;
    padding: 1.15rem 1.25rem 1.15rem 3rem;
    background: linear-gradient(135deg, rgba(34, 42, 33, 0.98), var(--surface-elevated));
    border: 1px solid rgba(146, 120, 255, 0.22);
    border-radius: var(--radius-md);
    box-shadow:
        var(--shadow-card),
        0 0 48px -12px rgba(146, 120, 255, 0.16),
        0 0 56px -16px rgba(201, 157, 168, 0.1);
    text-shadow: 0 0.05em 0.14em rgba(0, 0, 0, 0.35);
}

.formacion-perks__item::before {
    content: "✦";
    position: absolute;
    left: 1.15rem;
    top: 1.1rem;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-emphasis-rose);
}

.formacion-perks__title {
    display: block;
    margin-bottom: 0.2rem;
    font-family: var(--font-title);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--ink-strong);
}

.formacion-perks__text {
    display: block;
    font-size: 0.96rem;
    color: var(--text-muted);
}

.formacion-outro {
    max-width: 62ch;
    margin: 2.25rem auto 0;
    text-align: center;
    color: var(--text-muted);
    text-wrap: pretty;
    text-shadow: 0 0.06em 0.2em rgba(0, 0, 0, 0.45);
}

.formacion-outro strong {
    color: var(--text-emphasis-rose);
    font-weight: 600;
}

/* ----- “Detalles de la formación” — tarjetas de datos ----- */
.formacion-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.1rem;
    margin-top: 2.25rem;
}

.formacion-detail {
    padding: 1.6rem;
    border-radius: var(--radius-md);
    background: linear-gradient(165deg, #252d25, var(--surface-elevated));
    border: 1px solid rgba(196, 182, 235, 0.32);
    box-shadow:
        var(--shadow-card),
        0 0 44px -10px rgba(146, 120, 255, 0.18);
}

.formacion-detail:nth-child(even) {
    border-color: rgba(240, 180, 200, 0.26);
    box-shadow:
        var(--shadow-card),
        0 0 44px -10px rgba(201, 157, 168, 0.16);
}

.formacion-detail__label {
    margin: 0 0 0.5rem;
    font-family: var(--font-title);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-emphasis-lilac);
}

.formacion-detail:nth-child(even) .formacion-detail__label {
    color: var(--text-emphasis-rose);
}

.formacion-detail__value {
    margin: 0;
    font-family: var(--font-title);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink-strong);
}

.formacion-detail__note {
    margin: 0.45rem 0 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-muted);
}

/* ----- Inscripción — dos tarjetas ----- */
.formacion-enroll {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 1.5rem;
    margin-top: 2.25rem;
    align-items: stretch;
}

.formacion-enroll__card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(168deg, rgba(28, 34, 30, 0.97) 0%, var(--surface-elevated) 100%);
    border: 1px solid rgba(196, 182, 235, 0.32);
    box-shadow:
        var(--shadow-card),
        0 0 48px -10px rgba(146, 120, 255, 0.18);
}

.formacion-enroll__card--highlight {
    background: linear-gradient(
        195deg,
        rgba(58, 48, 92, 0.3) 0%,
        rgba(32, 38, 34, 0.96) 42%,
        var(--surface-elevated) 100%
    );
    border-color: rgba(196, 182, 235, 0.45);
    box-shadow:
        var(--shadow-card),
        0 0 40px -16px rgba(146, 120, 255, 0.3),
        0 0 48px -18px rgba(201, 157, 168, 0.18);
}

.formacion-enroll__title {
    margin: 0;
    font-family: var(--font-title);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ink-strong);
}

.formacion-enroll__card--highlight .formacion-enroll__title {
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.formacion-enroll__lead {
    margin: 0;
    color: var(--text-muted);
    text-shadow: 0 0.06em 0.18em rgba(0, 0, 0, 0.4);
}

.formacion-enroll__cta {
    align-self: flex-start;
    margin-top: auto;
}

/* ----- Teaser en la home ----- */
.formacion-teaser {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 5vw, 3.5rem);
    align-items: center;
}

@media (max-width: 820px) {
    .formacion-teaser {
        grid-template-columns: 1fr;
    }

    .formacion-teaser__media {
        order: -1;
    }
}

.formacion-teaser__text {
    max-width: 42rem;
}

.formacion-teaser__text .eyebrow {
    margin: 0 0 0.75rem;
}

.formacion-teaser__title {
    margin: 0 0 0.75rem;
}

.formacion-teaser__title::after {
    content: "";
    display: block;
    width: min(110px, 38%);
    height: 3px;
    margin: 0.55rem 0 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--aurora-clr-1), var(--aurora-clr-2), var(--aurora-clr-3));
    box-shadow: 0 0 16px rgba(240, 160, 200, 0.35);
}

.formacion-teaser__lead {
    margin: 1.25rem 0 1.5rem;
    color: var(--text-muted);
    font-size: 1.02rem;
    line-height: 1.7;
    text-shadow: 0 0.06em 0.18em rgba(0, 0, 0, 0.42);
}

.formacion-teaser__lead strong {
    color: var(--text-emphasis-rose);
    font-weight: 600;
}

.formacion-teaser .formacion-pills {
    margin-bottom: 1.75rem;
}

.formacion-teaser__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.formacion-teaser__media {
    margin: 0;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.formacion-teaser__media .polaroid {
    width: 100%;
    max-width: min(100%, clamp(280px, 36vw, 400px));
}

/* Misma proporción que el hero de /formacion/ para no recortar el grupo */
.formacion-teaser__media .polaroid__frame {
    aspect-ratio: 4 / 5;
}

@media (min-width: 821px) {
    .formacion-teaser__media {
        justify-content: flex-end;
    }
}
