/* ==========================================================================
   Ambar - Tarjetas de promociones
   Brand colors: #9b1831 (rojo ambar), #d4b26f (gold), #333333 (grey), #fff
   ========================================================================== */

/* ---------- Hero ---------- */

.hero-promo {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    .et_pb_column {
        width: fit-content !important;
        h1 {
            color: white;
        }
    }
}

.hero-promo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

.hero-promo h1 {
    position: relative;
    z-index: 2;
    font-family: 'Austin-Roman', serif;
    font-size: 3.75rem;
    line-height: 4.3125rem;
    text-transform: capitalize;
    color: black;
}

@media (min-width: 360px) and (max-width: 1600px) {
    .hero-promo h1 {
        font-size: clamp(3.75rem, 3.75rem, 8.125rem);
        line-height: clamp(4.3125rem, 4.3125rem, 9.34375rem);
    }
}

@media (min-width: 768px) {
    .hero-promo h1 {
        font-size: 8rem;
        line-height: 7rem;
    }
}

@media (min-width: 1240px) {
    .hero-promo h1 {
        font-size: 3.75rem;
        line-height: 9rem;
        text-transform: capitalize;
        color: black;
    }
}

@media (min-width: 1240px) and (min-width: 360px) and (max-width: 1600px) {
    .hero-promo h1 {
        font-size: clamp(3.75rem, 3.75rem, 8.125rem);
        line-height: clamp(4.3125rem, 4.3125rem, 9.34375rem);
    }
}

@media (min-width: 1240px) and (min-width: 1600px) {
    .hero-promo h1 {
        font-size: 8.125rem;
        line-height: 9.34375rem;
    }
}

@media (min-width: 1600px) {
    .hero-promo h1 {
        font-size: 8.125rem;
        line-height: 9.34375rem;
    }
}

.ambar-promo-cards {
    width: 100%;
    margin: 0;
    padding: 0 30px 60px;
    box-sizing: border-box;
}

@media all and (min-width: 1025px) {
    .ambar-promo-cards {
        max-width: 1600px;
        margin: 0 auto;
    }
}

.ambar-promo-cards__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: flex-start;
    align-items: stretch;
}

/* ---------- Card ---------- */

.ambar-promo-card {
    width: calc(25% - 23px);
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #9b1831;
    border-radius: 16px;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ambar-promo-card:hover {
    box-shadow: 0 6px 24px rgba(155, 24, 49, 0.18);
    transform: translateY(-3px);
}

/* ---------- Image ---------- */

.ambar-promo-card__image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #333333;
}

.ambar-promo-card__image a {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.3s ease;
}

.ambar-promo-card__image-bg {
    display: block;
    width: 100%;
    height: 100%;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.ambar-promo-card:hover .ambar-promo-card__image a {
    transform: scale(1.05);
}

/* ---------- Finished overlay ---------- */

.ambar-promo-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(51, 51, 51, 0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.ambar-promo-card__overlay-text {
    padding: 10px 24px;
    background: #9b1831;
    color: #ffffff;
    font-family: 'Gotham-Black', 'Gotham-Bold', Arial, sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    text-align: center;
}

/* ---------- Body ---------- */

.ambar-promo-card__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
}

/* ---------- Subtitle ---------- */

.ambar-promo-card__subtitle {
    margin: 0 0 8px 0;
    font-family: 'Gotham-Medium', Arial, sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #d4b26f;
}

/* ---------- Title ---------- */

.ambar-promo-card__title {
    margin: 0 0 12px 0;
    font-family: 'Gotham-Black', 'Gotham-Bold', Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.3;
    text-transform: uppercase;
    color: #333333;
}

.ambar-promo-card__title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease;
}

.ambar-promo-card__title a:hover {
    color: #9b1831;
}

/* ---------- Dates ---------- */

.ambar-promo-card__dates {
    margin: 0 0 14px 0;
    font-family: 'Gotham-Medium', Arial, sans-serif;
    font-size: 0.8125rem;
    color: #9b1831;
}

/* ---------- Excerpt ---------- */

.ambar-promo-card__excerpt {
    margin: 0 0 20px 0;
    font-family: 'Gotham-Medium', Arial, sans-serif;
    font-size: 0.875rem;
    line-height: 1.6;
    color: #333333;
    flex: 1;
}

/* ---------- Actions / Buttons ---------- */

.ambar-promo-card__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.ambar-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    font-family: 'Gotham-Black', 'Gotham-Bold', Arial, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    letter-spacing: 0.03em;
    cursor: pointer;
    border-radius: 8px;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.ambar-btn--primary {
    background-color: #9b1831;
    color: #ffffff;
    border: 1px solid #9b1831;
}

.ambar-btn--primary:hover {
    background-color: #79242f;
    border-color: #79242f;
}

.ambar-btn--secondary {
    background-color: transparent;
    color: #9b1831;
    border: 1px solid #9b1831;
}

.ambar-btn--secondary:hover {
    background-color: #9b1831;
    color: #ffffff;
}

/* ---------- Finished card ---------- */

.ambar-promo-card--finished .ambar-promo-card__image a,
.ambar-promo-card--finished .ambar-promo-card__image-bg {
    filter: grayscale(60%);
}

/* ---------- Empty state ---------- */

.ambar-promo-cards__empty {
    text-align: center;
    padding: 40px 20px;
    font-family: 'Gotham-Medium', Arial, sans-serif;
    font-size: 1rem;
    color: #333333;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media all and (max-width: 1024px) {
    .ambar-promo-card {
        width: calc(50% - 15px);
    }
}

@media all and (max-width: 640px) {
    .ambar-promo-cards {
        padding: 0 20px 40px;
    }
    .promo-content{
        width: 90%;
    }

    .ambar-promo-cards__grid {
        gap: 20px;
    }

    .ambar-promo-card {
        width: 100%;
    }
}
