/* ==========================================================
   CUBRITAS VIAJES - WIDGET ELEMENTOR
   Basado en el HTML original provisto.
   ========================================================== */

.cub-viajes{
    --cub-dark:#213f4b;
    --cub-dark-2:#18323c;
    --cub-blue:#199ccc;
    --cub-green:#bad51d;
    --cub-yellow:#f3bb22;
    --cub-bg:#f7fafb;
    --cub-border:#e3ecef;
    --cub-text:#556a71;

    width:100%;
    font-family:'Poppins',sans-serif;
    color:var(--cub-dark);
}

.cub-viajes *,
.cub-viajes *::before,
.cub-viajes *::after{box-sizing:border-box;}

.cub-viajes__wrap{
    max-width:1180px;
    margin:0 auto;
    padding:75px 24px;
}

/* CABECERA */
.cub-viajes__header{
    max-width:880px;
    margin-bottom:45px;
}
.cub-viajes__eyebrow,
.cub-viajes__offers-eyebrow{
    display:inline-flex;
    align-items:center;
    gap:10px;
    margin-bottom:16px;
    font-size:13px;
    font-weight:700;
    letter-spacing:.08em;
    text-transform:uppercase;
    color:var(--cub-blue);
}
.cub-viajes__eyebrow::before,
.cub-viajes__offers-eyebrow::before{
    content:"";
    width:28px;
    height:3px;
    border-radius:20px;
    background:var(--cub-green);
}
.cub-viajes__title{
    margin:0 0 18px;
    font-size:clamp(40px,5.3vw,64px);
    line-height:1.05;
    letter-spacing:-.04em;
    font-weight:700;
    color:var(--cub-dark);
}
.cub-viajes__title span{
    color:var(--cub-blue);
}
.cub-viajes__lead{
    max-width:780px;
    margin:0;
    font-size:18px;
    line-height:1.75;
    color:var(--cub-text);
}

/* BLOQUE PRINCIPAL */
.cub-viajes__grid{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:22px;
    align-items:stretch;
}
.cub-viajes__main{
    position:relative;
    overflow:hidden;
    min-height:420px;
    padding:46px;
    border-radius:26px;
    background:linear-gradient(135deg,var(--cub-dark) 0%,var(--cub-dark-2) 100%);
}
.cub-viajes__main::before{
    content:"";
    position:absolute;
    width:300px;
    height:300px;
    right:-100px;
    top:-130px;
    border:45px solid rgba(25,156,204,.14);
    border-radius:50%;
}
.cub-viajes__main::after{
    content:"";
    position:absolute;
    width:180px;
    height:180px;
    right:55px;
    bottom:-120px;
    border-radius:50%;
    background:rgba(186,213,29,.11);
}
.cub-viajes__main-content{
    position:relative;
    z-index:2;
    max-width:650px;
}
.cub-viajes__logo-box{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    max-width:340px;
    margin-bottom:26px;
    padding:12px 16px;
    border-radius:16px;
    background:#213f4b;
}
.cub-viajes__logo{
    display:block;
    width:100%;
    max-width:300px;
    height:auto;
}
.cub-viajes__main-title{
    margin:0 0 17px;
    font-size:30px;
    line-height:1.3;
    font-weight:600;
    color:#fff;
}
.cub-viajes__main-text{
    margin:0 0 30px;
    font-size:15px;
    line-height:1.8;
    color:rgba(255,255,255,.76);
}
.cub-viajes__features{
    display:flex;
    flex-direction:column;
    gap:13px;
}
.cub-viajes__feature{
    display:flex;
    align-items:flex-start;
    gap:13px;
}
.cub-viajes__check{
    flex:0 0 31px;
    width:31px;
    height:31px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:9px;
    background:rgba(255,255,255,.09);
    color:var(--cub-green);
}
.cub-viajes__check svg{
    width:16px;
    height:16px;
    fill:none;
    stroke:currentColor;
    stroke-width:2.2;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.cub-viajes__feature-text{
    padding-top:4px;
    font-size:14px;
    line-height:1.6;
    color:rgba(255,255,255,.9);
}

/* COLUMNA DERECHA */
.cub-viajes__side{
    display:flex;
    flex-direction:column;
    gap:22px;
}
.cub-viajes__info{
    flex:1;
    padding:32px;
    border:1px solid var(--cub-border);
    border-radius:24px;
    background:var(--cub-bg);
}
.cub-viajes__icon{
    width:56px;
    height:56px;
    display:flex;
    align-items:center;
    justify-content:center;
    margin-bottom:22px;
    border-radius:16px;
    background:#fff;
    box-shadow:0 8px 24px rgba(23,63,75,.07);
    color:var(--cub-blue);
}
.cub-viajes__icon svg{
    width:28px;
    height:28px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.cub-viajes__info-title{
    margin:0 0 10px;
    font-size:22px;
    line-height:1.3;
    font-weight:600;
    color:var(--cub-dark);
}
.cub-viajes__info-text{
    margin:0;
    font-size:14px;
    line-height:1.75;
    color:var(--cub-text);
}

/* CTA */
.cub-viajes__cta{
    position:relative;
    overflow:hidden;
    padding:30px;
    border-radius:24px;
    background:#fff;
    border:1px solid var(--cub-border);
}
.cub-viajes__cta-label{
    display:block;
    margin-bottom:7px;
    font-size:12px;
    font-weight:700;
    letter-spacing:.07em;
    text-transform:uppercase;
    color:var(--cub-blue);
}
.cub-viajes__cta-title{
    margin:0 0 16px;
    font-size:21px;
    line-height:1.35;
    font-weight:600;
    color:var(--cub-dark);
}
.cub-viajes__button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    min-height:52px;
    padding:0 24px;
    border-radius:12px;
    background:var(--cub-dark);
    color:#fff !important;
    text-decoration:none !important;
    font-size:14px;
    font-weight:600;
    box-shadow:0 10px 24px rgba(33,63,75,.18);
    transition:background .2s ease,transform .2s ease,box-shadow .2s ease;
}
.cub-viajes__button:hover{
    background:var(--cub-blue);
    transform:translateY(-2px);
    box-shadow:0 14px 28px rgba(25,156,204,.22);
}
.cub-viajes__button svg{
    width:17px;
    height:17px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* OFERTAS */
.cub-viajes__offers{
    position:relative;
    margin:0 0 62px;
}

.cub-viajes__offers-head{
    max-width:800px;
    margin-bottom:24px;
}

.cub-viajes__offers-title{
    margin:0 0 10px;
    font-size:34px;
    line-height:1.2;
    font-weight:650;
    letter-spacing:-.025em;
    color:var(--cub-dark);
}

.cub-viajes__offers-text{
    max-width:720px;
    margin:0;
    font-size:15px;
    line-height:1.7;
    color:var(--cub-text);
}

.cub-viajes__offers-carousel{
    position:relative;
    width:100%;
    overflow:hidden;
}

.cub-viajes__offers-track{
    display:flex;
    gap:20px;
    width:100%;
    overflow-x:auto;
    scroll-snap-type:x mandatory;
    scroll-behavior:smooth;
    scrollbar-width:none;
    padding:0;
}

.cub-viajes__offers-track::-webkit-scrollbar{
    display:none;
}

.cub-viajes__offer-card{
    position:relative;
    flex:0 0 calc((100% - 60px) / 4);
    min-width:0;
    aspect-ratio:335 / 475;
    overflow:hidden;
    border-radius:10px;
    background:#173f4b;
    color:#fff !important;
    text-decoration:none !important;
    scroll-snap-align:start;
    box-shadow:0 8px 24px rgba(23,63,75,.10);
    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.cub-viajes__offer-card:hover{
    transform:translateY(-4px);
    box-shadow:0 16px 34px rgba(23,63,75,.17);
}

.cub-viajes__offer-card-bg{
    position:absolute;
    inset:0;
    display:block;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    transition:transform .4s ease;
}

.cub-viajes__offer-card:hover .cub-viajes__offer-card-bg{
    transform:scale(1.025);
}

/* Gradiente solamente para legibilidad.
   La imagen cargada debe ser la foto limpia, sin textos. */
.cub-viajes__offer-shade{
    position:absolute;
    z-index:1;
    inset:0;
    background:
        linear-gradient(
            180deg,
            rgba(7,29,41,.44) 0%,
            rgba(7,29,41,.12) 34%,
            rgba(7,29,41,.02) 56%,
            rgba(5,22,30,.08) 68%,
            rgba(5,22,30,.50) 100%
        );
    pointer-events:none;
}

.cub-viajes__offer-info{
    position:absolute;
    z-index:2;
    top:20px;
    left:20px;
    right:20px;
    text-shadow:0 2px 5px rgba(0,0,0,.38);
}

.cub-viajes__offer-info h3{
    margin:0;
    color:#fff;
    font-size:clamp(19px,1.6vw,25px);
    line-height:1.08;
    font-weight:750;
    letter-spacing:-.02em;
}

.cub-viajes__offer-line{
    height:1px;
    margin:12px 0 10px;
    background:rgba(255,255,255,.88);
}

.cub-viajes__offer-details{
    display:flex;
    flex-wrap:wrap;
    gap:7px 10px;
    color:#fff;
    font-size:9px;
    line-height:1.25;
    font-weight:700;
    text-transform:uppercase;
}

.cub-viajes__offer-details span{
    white-space:nowrap;
}

.cub-viajes__offer-tag{
    display:inline-flex;
    max-width:100%;
    margin-top:11px;
    padding:7px 14px;
    border-radius:999px;
    background:#bad51d;
    color:#fff;
    font-size:10px;
    line-height:1.15;
    font-weight:600;
    text-shadow:none;
}

.cub-viajes__offer-price{
    position:absolute;
    z-index:2;
    right:18px;
    bottom:18px;
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    color:#fff;
    text-shadow:0 2px 6px rgba(0,0,0,.45);
}

.cub-viajes__offer-price small{
    margin-bottom:2px;
    font-size:10px;
    line-height:1;
    font-weight:700;
}

.cub-viajes__offer-price strong{
    font-size:clamp(27px,2.25vw,36px);
    line-height:1;
    font-weight:800;
    letter-spacing:-.03em;
}

.cub-viajes__offer-price span{
    margin-top:4px;
    font-size:10px;
    line-height:1;
    font-weight:700;
}

/* Flechas: quedan dentro de los extremos del slider,
   no flotando fuera del contenedor. */
.cub-viajes__offers-arrow{
    position:absolute;
    z-index:10;
    top:50%;
    transform:translateY(-50%);
    display:flex;
    align-items:center;
    justify-content:center;
    width:44px;
    height:44px;
    margin:0;
    padding:0 0 4px;
    border:1px solid rgba(227,236,239,.95);
    border-radius:50%;
    background:rgba(255,255,255,.96);
    color:#173f4b;
    font-family:Arial,sans-serif;
    font-size:30px;
    font-weight:400;
    line-height:1;
    box-shadow:0 8px 22px rgba(23,63,75,.15);
    cursor:pointer;
    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}

.cub-viajes__offers-arrow:hover{
    background:var(--cub-blue);
    color:#fff;
    transform:translateY(-50%) scale(1.05);
}

.cub-viajes__offers-arrow--prev{
    left:10px;
}

.cub-viajes__offers-arrow--next{
    right:10px;
}

@media(max-width:900px){
    .cub-viajes__offer-card{
        flex-basis:calc((100% - 20px) / 2);
    }
}

@media(max-width:650px){
    .cub-viajes__offers{
        margin-bottom:46px;
    }

    .cub-viajes__offers-title{
        font-size:27px;
    }

    .cub-viajes__offer-card{
        flex:0 0 84%;
        min-width:270px;
    }

    .cub-viajes__offers-arrow{
        display:none;
    }

    .cub-viajes__offer-info{
        top:18px;
        left:18px;
        right:18px;
    }

    .cub-viajes__offer-info h3{
        font-size:23px;
    }

    .cub-viajes__offer-price strong{
        font-size:32px;
    }
}


/* CIERRE */
.cub-viajes__bottom{
    position:relative;
    margin-top:62px;
    padding-top:36px;
    border-top:1px solid var(--cub-border);
}
.cub-viajes__bottom::before{
    content:"";
    position:absolute;
    left:0;
    top:-2px;
    width:80px;
    height:3px;
    border-radius:20px;
    background:linear-gradient(90deg,var(--cub-blue),var(--cub-green),var(--cub-yellow));
}
.cub-viajes__bottom-title{
    margin:0 0 9px;
    font-size:29px;
    line-height:1.25;
    font-weight:600;
    color:var(--cub-dark);
}
.cub-viajes__bottom-text{
    max-width:720px;
    margin:0;
    font-size:15px;
    line-height:1.7;
    color:var(--cub-text);
}

/* TABLET */
@media(max-width:900px){
    .cub-viajes__wrap{padding:58px 22px;}
    .cub-viajes__grid{grid-template-columns:1fr;}
    .cub-viajes__side{
        display:grid;
        grid-template-columns:1fr 1fr;
    }
    .cub-viajes__offers-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

/* MOBILE */
@media(max-width:650px){
    .cub-viajes__wrap{padding:43px 18px;}
    .cub-viajes__header{margin-bottom:32px;}
    .cub-viajes__title{font-size:39px;}
    .cub-viajes__lead{
        font-size:15px;
        line-height:1.7;
    }
    .cub-viajes__grid{gap:14px;}
    .cub-viajes__main{
        min-height:auto;
        padding:29px 23px;
        border-radius:20px;
    }
    .cub-viajes__logo-box{
        max-width:280px;
        margin-bottom:22px;
    }
    .cub-viajes__main-title{font-size:24px;}
    .cub-viajes__main-text{
        font-size:14px;
        line-height:1.7;
    }
    .cub-viajes__feature-text{font-size:13px;}
    .cub-viajes__side{
        display:flex;
        gap:14px;
    }
    .cub-viajes__info,
    .cub-viajes__cta{
        padding:24px 22px;
        border-radius:19px;
    }
    .cub-viajes__button{width:100%;}
    .cub-viajes__offers{
        margin-top:0;
        margin-bottom:46px;
    }
    .cub-viajes__offers-title{
        font-size:27px;
    }
    .cub-viajes__offers-grid{
        grid-template-columns:1fr;
        gap:14px;
    }
    .cub-viajes__bottom{
        margin-top:46px;
        padding-top:30px;
    }
    .cub-viajes__bottom-title{font-size:25px;}
}


/* v1.6 — La foto ocupa la tarjeta completa */
.cub-viajes__offer-card{
    isolation:isolate;
    background:#173f4b;
}

.cub-viajes__offer-card > .cub-viajes__offer-card-bg{
    position:absolute !important;
    z-index:0 !important;
    inset:0 !important;
    top:0 !important;
    right:0 !important;
    bottom:0 !important;
    left:0 !important;
    display:block !important;
    width:100% !important;
    max-width:none !important;
    height:100% !important;
    min-height:100% !important;
    max-height:none !important;
    margin:0 !important;
    padding:0 !important;
    border:0 !important;
    object-fit:cover !important;
    object-position:center center !important;
}

.cub-viajes__offer-shade{
    z-index:1 !important;
}

.cub-viajes__offer-info,
.cub-viajes__offer-price{
    z-index:2 !important;
}


/* v1.7 — tipografía, alineación y CTA hover */
.cub-viajes__offer-info{
    top:24px !important;
    left:24px !important;
    right:24px !important;
}

.cub-viajes__offer-info h3{
    max-width:100%;
    font-size:clamp(24px,1.75vw,30px) !important;
    line-height:1.05 !important;
    font-weight:800 !important;
    letter-spacing:-.025em !important;
}

.cub-viajes__offer-line{
    margin:14px 0 13px !important;
}

.cub-viajes__offer-details{
    gap:9px 14px !important;
    font-size:11px !important;
    line-height:1.25 !important;
    font-weight:700 !important;
    letter-spacing:.01em;
}

.cub-viajes__offer-tag{
    margin-top:14px !important;
    padding:8px 16px !important;
    font-size:12px !important;
    font-weight:650 !important;
}

.cub-viajes__offer-price{
    right:22px !important;
    bottom:22px !important;
}

.cub-viajes__offer-price small{
    font-size:12px !important;
}

.cub-viajes__offer-price strong{
    font-size:clamp(34px,2.6vw,42px) !important;
}

.cub-viajes__offer-price span{
    font-size:12px !important;
}

.cub-viajes__offer-cta{
    position:absolute;
    z-index:4;
    left:22px;
    right:22px;
    bottom:22px;
    min-height:52px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    padding:0 18px;
    border:1.5px solid rgba(255,255,255,.92);
    border-radius:13px;
    background:rgba(23,63,75,.90);
    color:#fff;
    font-size:14px;
    line-height:1;
    font-weight:700;
    opacity:0;
    transform:translateY(12px);
    pointer-events:none;
    transition:opacity .22s ease,transform .22s ease,background .22s ease;
}

.cub-viajes__offer-card:hover .cub-viajes__offer-cta,
.cub-viajes__offer-card:focus-visible .cub-viajes__offer-cta{
    opacity:1;
    transform:translateY(0);
}

.cub-viajes__offer-card:hover .cub-viajes__offer-price,
.cub-viajes__offer-card:focus-visible .cub-viajes__offer-price{
    opacity:0;
    transform:translateY(-8px);
}

.cub-viajes__offer-price{
    transition:opacity .2s ease,transform .2s ease;
}

@media(max-width:650px){
    .cub-viajes__offer-info{
        top:20px !important;
        left:20px !important;
        right:20px !important;
    }
    .cub-viajes__offer-info h3{
        font-size:26px !important;
    }
    .cub-viajes__offer-details{
        font-size:10px !important;
        gap:8px 11px !important;
    }
    .cub-viajes__offer-tag{
        font-size:11px !important;
    }
    /* En táctil no dependemos de hover: la tarjeta completa sigue siendo clickeable. */
    .cub-viajes__offer-cta{
        display:none;
    }
}


/* v1.8 — alineación uniforme y CTA claro */
.cub-viajes__offer-info{
    top:24px !important;
    left:24px !important;
    right:24px !important;
}

.cub-viajes__offer-info h3{
    min-height:64px;
    display:flex;
    align-items:flex-start;
    margin:0 !important;
    font-size:27px !important;
    line-height:1.08 !important;
}

.cub-viajes__offer-line{
    margin:12px 0 12px !important;
}

.cub-viajes__offer-details{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 12px !important;
    min-height:56px;
    align-content:start;
    font-size:10px !important;
}

.cub-viajes__offer-details span{
    display:flex;
    align-items:center;
    min-width:0;
    white-space:nowrap;
}

.cub-viajes__offer-tag{
    margin-top:13px !important;
    min-height:34px;
    align-items:center;
    justify-content:center;
}

.cub-viajes__offer-price{
    right:22px !important;
    bottom:22px !important;
}

.cub-viajes__offer-cta{
    left:22px !important;
    right:22px !important;
    bottom:22px !important;
    min-height:54px !important;
    border:1px solid rgba(255,255,255,.95) !important;
    background:rgba(255,255,255,.94) !important;
    color:#173f4b !important;
    box-shadow:0 10px 28px rgba(23,63,75,.16);
    backdrop-filter:blur(8px);
}

.cub-viajes__offer-card:hover .cub-viajes__offer-cta,
.cub-viajes__offer-card:focus-visible .cub-viajes__offer-cta{
    background:#fff !important;
    color:#199ccc !important;
}

@media(max-width:1100px){
    .cub-viajes__offer-info h3{
        font-size:24px !important;
        min-height:58px;
    }
    .cub-viajes__offer-details{
        font-size:9px !important;
        gap:7px 8px !important;
    }
}

@media(max-width:650px){
    .cub-viajes__offer-info h3{
        min-height:auto;
        font-size:26px !important;
    }
    .cub-viajes__offer-details{
        min-height:auto;
        font-size:10px !important;
    }
}
