/* =========================================================
   FEATURE BAND
   Sección reusable con fondo de color, badge, texto, meta
   e imágenes laterales.
   ========================================================= */

.feature-band {
    --fb-bg: #43b02a;
    --fb-badge-bg: #ffffff;
    --fb-badge-color: #43b02a;
    --fb-text-color: #ffffff;
    --fb-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);

    overflow: hidden;
    background: var(--fb-bg);
    color: var(--fb-text-color);
}

.feature-band--green {
    --fb-bg: #43b02a;
    --fb-badge-bg: #ffffff;
    --fb-badge-color: #43b02a;
    --fb-text-color: #ffffff;
}

.feature-band__inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2.6rem 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(400px, 1.2fr);
    gap: 2rem;
    align-items: stretch;
    overflow-y: hidden;
}

/* -------------------------
   CONTENT
   ------------------------- */

.feature-band__content {
    padding: 0 clamp(1.25rem, 5vw, 4.75rem) 2.4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-band__badge {
    position: relative;
    width: min(100%, 760px);
    margin-bottom: 2rem;
    z-index: 1;
}

.feature-band__badge::before {
    content: "";
    position: absolute;
    inset: 0 0 0 -100vw;
    z-index: -1;
    border-radius: 0 34px 34px 0;
    background: var(--fb-badge-bg);
    box-shadow: var(--fb-shadow);
}

.feature-band__badge span {
    min-height: 76px;
    padding: 0 2rem 0 1.6rem;
    display: inline-flex;
    align-items: center;
    color: var(--fb-badge-color);
    font-family: var(--font-body);
    font-size: clamp(1.35rem, 1.8vw, 2rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

.feature-band__text {
    max-width: 760px;
}

.feature-band__text p {
    color: var(--fb-text-color);
    font-size: clamp(1.02rem, 1.2vw, 1.3rem);
    line-height: 1.38;
    letter-spacing: 0.01em;
}

.feature-band__meta {
    width: min(100%, 650px);
    margin-top: 1.8rem;
    padding: 1rem 1.4rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--fb-badge-color);
    box-shadow: var(--fb-shadow);
}

.feature-band__meta p {
    margin: 0;
    font-size: clamp(1rem, 1.15vw, 1.2rem);
    line-height: 1.25;
    font-weight: 600;
}

/* -------------------------
   MEDIA
   ------------------------- */

.feature-band__media {
    padding-right: clamp(1rem, 3vw, 3rem);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 1.2rem;
}

.feature-band__photo {
    margin: 0;
    overflow: hidden;
    box-shadow: var(--fb-shadow);
}

.feature-band__photo--small {
    width: clamp(240px, 20vw, 320px);
    aspect-ratio: 0.72 / 1;
    border-radius: 500px 500px 0 0;
    transform: translateY(15px);
}

.feature-band__photo--tall {
    width: clamp(280px, 25vw, 400px);
    aspect-ratio: 0.76 / 1;
    border-radius: 500px 500px 0 0;
}

.feature-band__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* =========================================================
   RANCHOS ESCUELA
   ========================================================= */

.field-day-ranches {
    padding: 4rem 0 4.5rem;
    background: rgba(255, 255, 255, 0.72);
}

.field-day-ranches__head {
    max-width: 920px;
    margin: 0 auto 2.2rem;
    text-align: center;
}

.field-day-ranches__head .section-badge {
    width: min(100%, 520px);
    margin: 0 auto 1rem;
    justify-content: center;
}

.field-day-ranches__intro {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(1.05rem, 1.25vw, 1.35rem);
    line-height: 1.4;
}

.field-day-ranches__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

/* =========================================================
   RANCHO CARD
   ========================================================= */

.field-day-ranch-card {
    overflow: hidden;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.field-day-ranch-card__content {
    padding: 1.7rem 1.7rem 1.45rem;
}

.field-day-ranch-card__kicker {
    margin: 0 0 0.45rem;
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.field-day-ranch-card__title {
    margin: 0;
    color: var(--color-primary);
    font-size: clamp(1.45rem, 1.8vw, 2.1rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

.field-day-ranch-card__text {
    margin: 0.85rem 0 0;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.38;
}

.field-day-ranch-card__meta {
    margin-top: 1rem;
    display: grid;
    gap: 0.25rem;
}

.field-day-ranch-card__meta p {
    margin: 0;
    color: var(--color-text);
    font-size: 0.95rem;
    line-height: 1.3;
}

.field-day-ranch-card__meta strong {
    color: var(--color-primary);
}

.field-day-ranch-card__btn {
    width: fit-content;
    margin-top: 1.15rem;
}

.field-day-ranch-card__map {
    width: 100%;
    height: clamp(240px, 24vw, 340px);
    background: #d9d9d9;
}

.field-day-ranch-card__map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* =========================================================
   RANCH MODAL
   ========================================================= */

.ranch-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 0.28s ease,
        visibility 0.28s ease;
}

.ranch-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ranch-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 32, 0.62);
    backdrop-filter: blur(4px);
}

.ranch-modal__dialog {
    position: relative;
    width: min(100%, 920px);
    max-height: min(86vh, 760px);
    overflow: hidden;
    border-radius: 34px;
    background: var(--color-white);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.28);
    transform: translateY(18px) scale(0.98);
    opacity: 0;
    transition:
        transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.34s ease;
}

.ranch-modal.is-open .ranch-modal__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ranch-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(67, 176, 42, 0.12);
    color: var(--color-primary);
    cursor: pointer;
    transition:
        background var(--transition-base),
        color var(--transition-base),
        transform var(--transition-base);
}

.ranch-modal__close:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-2px);
}

.ranch-modal__body {
    max-height: min(86vh, 760px);
    display: flex;
    flex-direction: column;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.ranch-modal__kicker {
    margin: 0 0 0.5rem;
    color: var(--color-secondary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ranch-modal__title {
    margin: 0;
    color: var(--color-primary);
    font-size: clamp(2rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 0.95;
    text-transform: uppercase;
}

.ranch-modal__text {
    min-height: 0;
    margin-top: 1.3rem;
    padding-right: 0.75rem;
    overflow-y: auto;
}

.ranch-modal__text p {
    margin: 0 0 1rem;
    color: var(--color-text);
    font-size: 1rem;
    line-height: 1.5;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .feature-band__inner {
        grid-template-columns: 1fr;
        gap: 0;
        padding-top: 2rem;
    }

    .feature-band__media {
        display: none;
    }

    .feature-band__content {
        max-width: 820px;
        margin: 0 auto;
        padding: 0 1.4rem 2rem;
        align-items: center;
    }

    .feature-band__badge {
        width: auto;
        margin-bottom: 1.25rem;
    }

    .feature-band__badge::before {
        display: none;
    }

    .feature-band__badge span {
        min-height: 56px;
        padding: 0.9rem 1.35rem;
        border-radius: 999px;
        background: var(--fb-badge-bg);
        box-shadow: var(--fb-shadow);
        text-align: center;
        justify-content: center;
        font-size: clamp(1rem, 2.5vw, 1.35rem);
    }

    .feature-band__text {
        max-width: 760px;
    }

    .feature-band__text p {
        font-size: 1.05rem;
        line-height: 1.42;
    }

    .feature-band__meta {
        width: 100%;
        max-width: 760px;
        margin-top: 1.3rem;
        border-radius: 24px;
    }

    .field-day-ranches {
        padding: 3.5rem 0 4rem;
    }

    .field-day-ranches__grid {
        grid-template-columns: 1fr;
        max-width: 820px;
        margin: 0 auto;
    }

    .field-day-ranch-card {
        border-radius: 28px;
    }

    .field-day-ranch-card__map {
        height: 300px;
    }
}

@media (max-width: 700px) {
    .feature-band__content {
        padding: 0 1rem 1.6rem;
    }

    .feature-band__text p {
        font-size: 1rem;
        line-height: 1.4;
    }

    .feature-band__meta {
        padding: 0.95rem 1rem;
    }

    .feature-band__meta p {
        font-size: 0.98rem;
    }

    .field-day-ranches {
        padding: 3rem 0 3.5rem;
    }

    .field-day-ranches__head {
        margin-bottom: 1.5rem;
    }

    .field-day-ranches__head .section-badge {
        width: 100%;
    }

    .field-day-ranches__intro {
        font-size: 1rem;
        line-height: 1.4;
    }

    .field-day-ranch-card {
        border-radius: 24px;
    }

    .field-day-ranch-card__content {
        padding: 1.2rem 1rem 1.05rem;
    }

    .field-day-ranch-card__title {
        font-size: 1.25rem;
    }

    .field-day-ranch-card__text {
        font-size: 0.95rem;
        line-height: 1.35;
    }

    .field-day-ranch-card__meta p {
        font-size: 0.92rem;
    }

    .field-day-ranch-card__btn {
        width: 100%;
    }

    .field-day-ranch-card__map {
        height: 240px;
    }

    .ranch-modal__dialog {
        border-radius: 24px;
    }

    .ranch-modal__body {
        padding: 1.35rem 1rem;
    }

    .ranch-modal__title {
        padding-right: 2.5rem;
        font-size: clamp(1.7rem, 9vw, 2.4rem);
    }

    .ranch-modal__text p {
        font-size: 0.95rem;
        line-height: 1.45;
    }
}