.rta__main{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    container-type: inline-size;
    container-name: rtaMain;
    background-color: #222;
}

.explore__sections{
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 15px 3px #0007;
    color: #fff;
    transition: transform 0.8s ease;
    transform: translateY(-20%);
}

.explore__sections:first-child{
    transform: translateY(0);
}

.explore__sections.visible{
    transform: translateY(0);
}

.explore__sections:last-child{
    box-shadow: none;
}

.z1{z-index: 4;}
.z2{z-index: 3;}
.z3{z-index: 2;}
.z4{z-index: 1;}

.explore__video{
    width: 100%;
    height: 100%;
    max-width: 1200px;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.explore__img{
    width: 100%;
    height: 100%;
    max-width: 1200px;
    object-fit: cover;
    position: absolute;
    z-index: 1;
}

.explore__text-container{
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    background-color: #0007;
    padding: 0 10px;
}

.explore__title{
    font-size: 2rem;
    text-align: center;
    text-wrap: balance;
    opacity: 0;
    transform: translateY(20%);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.explore__title.visible{
    opacity: 1;
    transform: translateY(0);
}

.explore__btn{
    background-color: #ffffffd0;
    color: #111;
    padding: 10px 20px;
    font-size: 1.25rem;
    font-weight: 500;
    border-radius: 30px;
    opacity: 0;
    text-decoration: none;
    transform: translateY(-10%);
    transition: background-color .3s ease, opacity 0.6s ease, transform 0.6s ease;
}

.explore__btn:hover{
    background-color: #ffffff;
    transform: scale(1.05) translateY(0) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.explore__btn.visible{
    opacity: 1;
    transform: translateY(0);
}

/* --------- explore queries ---------- */

@container rtaMain (min-width:768px){
    .explore__title{
        font-size: 2.2rem;
    }

    .explore__btn{
        font-size: 1.6rem;
        padding: 12px 30px;
    }
}

@container rtaMain (min-width:56.25rem){
    .explore__img, .explore__video{
        max-width: none;
    }
}

/* ----------- extras para modal de bienvenida a links afiliados y cta de registro -------------- */

.affiliate-welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
}

.affiliate-welcome-modal[aria-hidden="false"] {
    display: block;
}

.affiliate-welcome-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
    backdrop-filter: blur(6px);
}

.affiliate-welcome-content {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(135deg, #034228 0%, #022d1c 100%);
    padding: 35px 30px;
    border-radius: 20px;
    z-index: 9999;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid #045933;
    animation: welcomeSlideIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: white;
    text-align: center;
}

@keyframes welcomeSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.7) rotate(-2deg);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

.welcome-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.welcome-icon {
    font-size: 3.5rem;
    animation: gentleBounce 3s infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

@keyframes gentleBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-8px) scale(1.05);
    }
    60% {
        transform: translateY(-4px) scale(1.02);
    }
}

.welcome-header h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.affiliate-welcome-content p {
    margin: 0 0 30px 0;
    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
    opacity: 0.95;
}

.affiliate-welcome-content strong {
    color: #4c9;
    font-weight: 600;
}

.welcome-close-btn {
    background-color: rgb(32, 131, 88);
    color: #fff;
    border: none;
    padding: 14px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.5s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.welcome-close-btn:hover {
    background-color: rgb(33, 154, 101);
    transform: translateY(-3px) scale(1.02);
}

.affiliate-cta-fixed {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: linear-gradient(135deg, #034228 0%, #022d1c 100%);
    color: white;
    padding: 18px;
    border-radius: 16px;
    text-decoration: none;
    box-shadow: 0 12px 30px rgba(3, 66, 40, 0.5);
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid #045933;
    overflow: hidden;
}

.affiliate-cta-fixed::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s;
}

.affiliate-cta-fixed:hover::before {
    left: 100%;
}

.affiliate-cta-fixed:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 40px rgba(3, 66, 40, 0.7);
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.cta-icon {
    font-size: 1.8rem;
    animation: gentleGlow 3s infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

@keyframes gentleGlow {
    0%, 100% {
        transform: scale(1);
        text-shadow: 0 0 10px rgba(76, 153, 153, 0.5);
    }
    50% {
        transform: scale(1.1);
        text-shadow: 0 0 20px rgba(76, 153, 153, 0.8);
    }
}

.cta-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 4px;
}

.cta-title {
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
}

.cta-subtitle {
    font-size: 0.85rem;
    opacity: 0.9;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .affiliate-welcome-content {
        padding: 30px 25px;
        width: 92%;
        max-width: 380px;
    }
    
    .welcome-header h3 {
        font-size: 1.4rem;
    }
    
    .affiliate-welcome-content p {
        font-size: 1rem;
    }
    
    .welcome-close-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }
    
    .affiliate-cta-fixed {
        bottom: 20px;
        right: 20px;
        padding: 15px;
    }
    
    .cta-title {
        font-size: 0.9rem;
    }
    
    .cta-subtitle {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .affiliate-welcome-content {
        padding: 25px 5px 20px 5px
    }

    .affiliate-cta-fixed {
        bottom: 5px;
        right: 0px;
        padding: 0px;
        margin:0 10px 0 120px;
    }
    
    .welcome-header h3 {
        font-size: 1.1rem;
    }
    
    .cta-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 0px 10px 10px 10px;
    }
    
    .cta-text {
        text-align: center;
        gap: 10px;
    }

    .cta-icon{
        font-size: 1.3rem;
    }

    .cta-subtitle{
        display: none;
    }
    
    .cta-title, .cta-subtitle {
        white-space: normal;
    }
}