.planes-corona-block {
    --svg-color-1: #FFC72C;
    --svg-color-2: white;
    --block-title-color: var(--color-dark-blue);
    padding-top: 32px;
    width: 91%;
    max-width: 1760px;
    margin-inline: auto;

    &:last-of-type {
        padding-block: 32px;
    }

    @media (max-width: 768px) {
        background-color: var(--color-dark-blue);
        --block-title-color: white;
        width: 100%;
    }
}

/* Ajustes hero planes */
.content-hero-section {
    margin-bottom: 0;
}

.title-hero-section {
    max-width: clamp(300px, 40vw, 550px) !important;
}

/* El segundo bloque (par) cambiará el color blanco al azul oscuro */
.planes-corona-block:nth-of-type(odd),
.wp-block-acf-planes-corona:nth-of-type(odd) .planes-corona-block {
    --svg-color-2: var(--color-dark-blue);

    @media (max-width: 768px) {
        background-color: var(--color-white);
        --block-title-color: var(--color-dark-blue);
    }
}

.planes-corona-block__header {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Ocultar en desktop como solicitó el usuario */
.planes-corona-block__header .experiences-header__title-image {
    display: none;
}

.planes-corona-block__header .experiences-header__title-image.flipped {
    transform: scaleX(-1);
}

.planes-corona-block__header path.svg-primary {
    fill: var(--svg-color-1);
    transition: fill 0.3s ease;
}

.planes-corona-block__header path.svg-secondary {
    fill: var(--svg-color-2);
    transition: fill 0.3s ease;
}

.planes-corona-block__title {
    font-family: var(--font-corona);
    font-size: clamp(27px, 4vw, 64px);
    font-weight: var(--weight-semibold);
    color: var(--block-title-color);
    margin-bottom: 32px;
}

.planes-corona-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); */
    gap: 20px;
}

@media (max-width: 768px) {
    .planes-corona-block__header {
        justify-content: center;
        padding-bottom: 35px;
    }
    .planes-corona-block__header .experiences-header__title-image {
        display: block;
        width: 18px;
        height: auto;
    }
    .planes-corona-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
        gap: 35px;
    }
    
    .planes-corona-block {
        padding: 40px 0;
        margin-top: 0;
    }
    
    .content-hero-section-mobile {
        margin-bottom: 40px;
    }    

    .planes-corona-block__title {
        margin-bottom: 0;
    }
}

/* Estilos de las tarjetas (consolidados) */
.promo-card-planes {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    aspect-ratio: auto;
    height: clamp(350px, 30vw, 495px);

    @media (max-width: 768px) {
        width: 100%;
        height: 400px;
    }
}

.promo-card-planes__link {
    display: block;
    height: 100%;
    border-radius: inherit;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    text-decoration: none;
    color: inherit;
}

.promo-card-planes__media {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: inherit;
}

.promo-card-planes__video,
.promo-card-planes__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.promo-card-planes__vimeo-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.promo-card-planes__vimeo-container iframe {
    width: 300%;
    height: 100%;
    margin-left: -100%;
}

.promo-card-planes__overlay {
    position: absolute;
    inset: 0;
    background-color: transparent;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.00) 0%, rgba(0, 0, 0, 0.60) 100%);
    transition: background-color 0.5s ease;
    border-radius: inherit;
}

@media (hover: hover) {
    .promo-card-planes:hover .promo-card-planes__overlay {
        background-color: rgba(12, 35, 64, 0.60);
    }
}

.promo-card-planes.is-visible .promo-card-planes__overlay {
    background-color: rgba(12, 35, 64, 0.60);
}

.promo-card-planes__info {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: clamp(13px, 1vw, 35px);
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 80%;
    height: 100%;
    box-sizing: border-box;
    padding: 35px 20px 35px 44px;
    color: var(--color-white);
    z-index: 2;

    @media (max-width: 768px) {
        padding: 40px 20px 30px;
        max-width: 100%;
    }
}

.promo-card-planes__title {
    font-family: var(--font-helvetica);
    font-size: clamp(28px, 3vw, 55px);
    /* font-size: clamp(20px, 2vw, 40px); */
    font-weight: 700;
}

.promo-card-planes__hover-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;

    @media (max-width: 768px) {
        justify-content: flex-end;
    }
}

@media (hover: hover) {
    .promo-card-planes:hover .promo-card-planes__hover-content {
        opacity: 1;
    }
}

.promo-card-planes.is-visible .promo-card-planes__hover-content {
    opacity: 1;
}

.promo-card-planes__dates {
    font-family: var(--font-corona);
    font-size: clamp(18px, 2vw, 27px);
    /* font-size: clamp(18px, 1.5vw, 24px); */
    font-weight: 600;
    color: var(--color-yellow);
    margin-bottom: 13px;


    @media (max-width: 768px) {
        font-size: 22px;
    }
}

.promo-card-planes__description {
    font-family: var(--font-helvetica);
    font-size: var(--text-description);
    /* font-size: clamp(15px, 1vw, 20px); */
    font-weight: 500;
    margin-bottom: 13px;
}

.promo-card-planes .cta-button {
    margin-top: auto;
    width: fit-content;

    @media (max-width: 768px) {
        margin-top: 20px;
    }
}

/* Entrance Animations */
@keyframes planesFadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.planes-corona-block .promo-card-planes {
    opacity: 0;
    transform: translateY(40px);
}

.planes-corona-block.is-animated .promo-card-planes {
    animation: planesFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered Delays */
.planes-corona-block.is-animated .promo-card-planes:nth-child(1) { animation-delay: 0.1s; }
.planes-corona-block.is-animated .promo-card-planes:nth-child(2) { animation-delay: 0.2s; }
.planes-corona-block.is-animated .promo-card-planes:nth-child(3) { animation-delay: 0.3s; }
.planes-corona-block.is-animated .promo-card-planes:nth-child(4) { animation-delay: 0.4s; }
.planes-corona-block.is-animated .promo-card-planes:nth-child(5) { animation-delay: 0.5s; }
.planes-corona-block.is-animated .promo-card-planes:nth-child(6) { animation-delay: 0.6s; }
.planes-corona-block.is-animated .promo-card-planes:nth-child(7) { animation-delay: 0.7s; }
.planes-corona-block.is-animated .promo-card-planes:nth-child(8) { animation-delay: 0.8s; }

/* Mobile: cada card se anima individualmente al entrar en el viewport */
@media (max-width: 768px) {
    .promo-card-planes.is-animated {
        animation: planesFadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        animation-delay: 0s;
    }
}

/* Borde amarillo al hacer hover en el CTA button de Planes Corona */
@media (hover: hover) {
    .planes-corona-block .promo-card-planes .cta-button:hover {
        border-color: var(--color-yellow);
        transition: border-color 0.3s ease 1s; /* Aparece al terminar el efecto de la ola */
    }
}


