/* ==========================================================================
   MásVida Hero — estilos del hero animado.
   Todos los selectores están prefijados con .mv-hero* / .mv-pill* / .mv-news*
   para evitar colisiones con el tema o con Elementor.
   ========================================================================== */

.mv-hero {
    --mv-bg:          #222222;
    --mv-bg-2:        #1a1a1a;
    --mv-ink:         #ffffff;
    --mv-ink-soft:    rgba(255,255,255,.78);
    --mv-ink-mute:    rgba(255,255,255,.55);
    --mv-line:        rgba(255,255,255,.18);
    --mv-accent:      #9c8a64;
    --mv-accent-soft: rgba(156,138,100,.18);
    --mv-accent-glow: rgba(156,138,100,.45);
    --mv-blue:        #43596e;

    --mv-font-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Poppins', system-ui, sans-serif;
    --mv-font-body:    -apple-system, BlinkMacSystemFont, 'SF Pro Text',    'Inter', 'Poppins', system-ui, sans-serif;

    --mv-ease-out:    cubic-bezier(.16,1,.3,1);
    --mv-ease-soft:   cubic-bezier(.22,.61,.36,1);
    --mv-ease-in-out: cubic-bezier(.65,0,.35,1);
    --mv-radius-md:   18px;
    --mv-radius-lg:   28px;
    --mv-radius-pill: 999px;
}

/* Reset acotado para no afectar al resto del sitio */
.mv-hero, .mv-hero *, .mv-hero *::before, .mv-hero *::after,
.mv-news-tab, .mv-news-tab *, .mv-news-tab *::before, .mv-news-tab *::after {
    box-sizing: border-box;
}

.mv-hero {
    position: relative;
    /* Full-bleed: aunque Elementor lo meta dentro de un contenedor angosto,
       el hero se extiende al ancho REAL del viewport. */
    width: 100vw;
    max-width: 100vw;
    margin-left:  calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    color: var(--mv-ink);
    background: var(--mv-bg);
    font-family: var(--mv-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.mv-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }

.mv-hero__media-frame {
    position: absolute;
    top: 50%; left: 50%;
    width:  max(100vw, calc(100vh * 16 / 9));
    height: max(100vh, calc(100vw * 9 / 16));
    /* Anula reglas globales del tema/Elementor que ponen iframe { max-width:100% } */
    max-width:  none !important;
    max-height: none !important;
    transform: translate(-50%, -50%) scale(1.05);
    pointer-events: none;
    border: 0;
    opacity: 0;
    animation:
        mv-kenburns 30s var(--mv-ease-in-out) infinite alternate,
        mv-mediaFadeIn 1.6s var(--mv-ease-soft) .1s forwards;
    will-change: transform;
}
@keyframes mv-kenburns {
    0%   { transform: translate(-50%, -50%) scale(1.05); }
    100% { transform: translate(-50%, -50%) scale(1.14) translateY(-1.5%); }
}
@keyframes mv-mediaFadeIn { to { opacity: 1; } }

.mv-hero__media::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(120% 80% at 18% 35%, rgba(0,0,0,.18) 0%, rgba(0,0,0,.55) 60%, rgba(0,0,0,.85) 100%),
        linear-gradient(180deg, rgba(34,34,34,.20) 0%, rgba(34,34,34,.10) 35%, rgba(34,34,34,.85) 100%);
    z-index: 2;
    pointer-events: none;
}
.mv-hero__media::after {
    content: "";
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.4 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/></svg>");
    opacity: .06;
    mix-blend-mode: overlay;
    z-index: 3;
    pointer-events: none;
}

.mv-hero__inner {
    position: relative;
    z-index: 5;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(120px, 14vh, 180px) clamp(24px, 5vw, 72px) clamp(48px, 7vh, 88px);
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    column-gap: clamp(32px, 5vw, 80px);
    align-items: center;
}

.mv-hero__content { max-width: 640px; }

.mv-hero__title {
    font-family: var(--mv-font-display);
    font-weight: 500;
    font-size: clamp(40px, 6.4vw, 96px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: var(--mv-ink);
    max-width: 14ch;
    margin: 0 0 clamp(28px, 4vh, 44px);
    overflow: hidden;
    padding-bottom: 4px;
}
.mv-hero__title-line { display: block; overflow: hidden; }
.mv-hero__title-line > span {
    display: inline-block;
    transform: translateY(105%);
    opacity: 0;
    will-change: transform, opacity;
    animation: mv-titleRise 1.4s var(--mv-ease-soft) forwards;
}
.mv-hero__title .mv-hero__title-line:nth-child(1) > span { animation-delay: .25s; }
.mv-hero__title .mv-hero__title-line:nth-child(2) > span { animation-delay: .42s; }
@keyframes mv-titleRise {
    from { transform: translateY(105%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.mv-hero__title em {
    font-style: normal;
    color: var(--mv-accent);
    font-weight: 500;
}

.mv-hero__desc {
    font-family: var(--mv-font-body);
    font-size: clamp(15px, 1.05vw, 17px);
    font-weight: 400;
    line-height: 1.6;
    color: var(--mv-ink-soft);
    max-width: 50ch;
    margin-bottom: clamp(28px, 4vh, 40px);
    opacity: 0;
    transform: translateY(14px);
    animation: mv-gentleRise 1.2s var(--mv-ease-soft) .85s forwards;
}
.mv-hero__desc p + p { margin-top: 12px; }
.mv-hero__desc strong { color: var(--mv-ink); font-weight: 500; }

.mv-hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    opacity: 0;
    transform: translateY(14px);
    animation: mv-gentleRise 1.2s var(--mv-ease-soft) 1.05s forwards;
}

.mv-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 18px 32px;
    border-radius: var(--mv-radius-pill);
    font-family: var(--mv-font-body);
    font-weight: 500;
    font-size: 15px;
    letter-spacing: -0.005em;
    text-decoration: none;
    cursor: pointer;
    transition: transform .35s var(--mv-ease-out), background .35s ease, box-shadow .35s var(--mv-ease-out), border-color .35s ease;
    will-change: transform;
    border: 1px solid transparent;
    white-space: nowrap;
}
.mv-pill .mv-arrow {
    display: inline-block;
    transition: transform .35s var(--mv-ease-out);
    font-size: 16px;
}
.mv-pill:hover .mv-arrow { transform: translateX(4px); }
.mv-pill:hover { transform: translateY(-2px); }

.mv-pill--primary {
    background: var(--mv-accent);
    color: #1a1408;
    box-shadow: 0 14px 40px -16px rgba(156,138,100,.55);
}
.mv-pill--primary:hover {
    background: #b09d75;
    box-shadow: 0 20px 50px -14px rgba(156,138,100,.7);
}

.mv-pill--glass {
    color: var(--mv-ink);
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.22);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.25),
        inset 0 -1px 0 rgba(255,255,255,.05),
        0 14px 40px -16px rgba(0,0,0,.5);
}
.mv-pill--glass:hover {
    background: rgba(255,255,255,.16);
    border-color: rgba(255,255,255,.32);
}

.mv-pill--live {
    background: rgba(156,138,100,.14);
    color: var(--mv-accent);
    border: 1px solid rgba(156,138,100,.45);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    padding: 14px 22px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    display: none;
    align-items: center;
    gap: 10px;
}
.mv-pill--live.is-live { display: inline-flex; animation: mv-liveIn .6s var(--mv-ease-out) both; }
@keyframes mv-liveIn {
    from { opacity: 0; transform: translateY(8px) scale(.96); }
    to   { opacity: 1; transform: translateY(0)   scale(1);   }
}
.mv-pill--live::before {
    content: "";
    width: 8px; height: 8px;
    background: var(--mv-accent);
    border-radius: 50%;
    box-shadow: 0 0 0 0 var(--mv-accent-glow);
    animation: mv-pulse 1.8s ease-out infinite;
}
@keyframes mv-pulse {
    0%   { box-shadow: 0 0 0 0  rgba(156,138,100,.55); }
    70%  { box-shadow: 0 0 0 14px rgba(156,138,100,0); }
    100% { box-shadow: 0 0 0 0  rgba(156,138,100,0);   }
}

/* Glass cards */
.mv-hero__cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 460px;
    width: 100%;
    justify-self: end;
    align-self: stretch;
    justify-content: center;
}
.mv-glass-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: clamp(20px, 2vw, 26px);
    border-radius: var(--mv-radius-lg);
    text-decoration: none;
    color: var(--mv-ink);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.16);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.20),
        inset 0 -1px 0 rgba(255,255,255,.04),
        0 22px 60px -22px rgba(0,0,0,.55);
    transition: transform .6s var(--mv-ease-soft), background .5s ease, border-color .5s ease, box-shadow .6s var(--mv-ease-soft);
    overflow: hidden;
    opacity: 0;
    transform: translateY(24px);
    animation: mv-cardIn 1.2s var(--mv-ease-soft) forwards;
}
.mv-glass-card:nth-child(1) { animation-delay: 1.25s; }
.mv-glass-card:nth-child(2) { animation-delay: 1.40s; }
.mv-glass-card:nth-child(3) { animation-delay: 1.55s; }
@keyframes mv-cardIn { to { opacity: 1; transform: translateY(0); } }

.mv-glass-card:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,.10);
    border-color: rgba(156,138,100,.40);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        inset 0 -1px 0 rgba(255,255,255,.04),
        0 28px 70px -22px rgba(0,0,0,.6),
        0 0 0 1px rgba(156,138,100,.10);
}

.mv-glass-card__icon {
    flex-shrink: 0;
    width: 52px; height: 52px;
    border-radius: 14px;
    display: grid; place-items: center;
    background: linear-gradient(145deg, rgba(156,138,100,.30), rgba(67,89,110,.28));
    border: 1px solid rgba(255,255,255,.16);
    color: var(--mv-ink);
    transition: background .5s ease, border-color .5s ease, transform .5s var(--mv-ease-soft);
}
.mv-glass-card:hover .mv-glass-card__icon {
    background: linear-gradient(145deg, rgba(156,138,100,.45), rgba(67,89,110,.35));
    border-color: rgba(156,138,100,.45);
    transform: scale(1.04);
}
.mv-glass-card__icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.6; }

.mv-glass-card__body { flex: 1; min-width: 0; }
.mv-glass-card__title {
    font-family: var(--mv-font-display);
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: -0.018em;
    margin-bottom: 4px;
    color: var(--mv-ink);
}
.mv-glass-card__sub {
    font-family: var(--mv-font-body);
    font-size: 13px;
    line-height: 1.5;
    color: var(--mv-ink-mute);
    font-weight: 400;
}
.mv-glass-card__cta {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--mv-accent);
    text-transform: uppercase;
}
.mv-glass-card__cta::after {
    content: "→";
    transition: transform .35s var(--mv-ease-out);
    font-weight: 400;
}
.mv-glass-card:hover .mv-glass-card__cta::after { transform: translateX(4px); }

/* Meta strip — solo scroll cue */
.mv-hero__meta {
    position: absolute;
    left: clamp(24px, 5vw, 72px);
    bottom: clamp(24px, 4vh, 36px);
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    animation: mv-gentleRise 1.2s var(--mv-ease-soft) 1.7s forwards;
}
.mv-hero__meta > * { pointer-events: auto; }

.mv-scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--mv-ink-mute);
    font-size: 11px;
    letter-spacing: .26em;
    text-transform: uppercase;
    font-weight: 500;
}
.mv-scroll-cue__line {
    position: relative;
    width: 1px; height: 56px;
    background: rgba(255,255,255,.18);
    overflow: hidden;
}
.mv-scroll-cue__line::after {
    content: "";
    position: absolute;
    top: -40%; left: 0;
    width: 100%; height: 40%;
    background: linear-gradient(to bottom, transparent, var(--mv-ink), transparent);
    animation: mv-scrollDot 2.6s var(--mv-ease-in-out) infinite;
}
@keyframes mv-scrollDot { 0% { top: -40%; } 100% { top: 110%; } }

/* News tab */
.mv-news-tab {
    position: fixed;
    right: 0;
    bottom: 110px;
    z-index: 999;
    display: flex;
    align-items: stretch;
    transform: translateX(calc(100% - 48px));
    transition: transform .55s var(--mv-ease-soft), opacity .8s ease;
    opacity: 0;
    text-decoration: none;
    color: var(--mv-ink);
    will-change: transform;
    font-family: var(--mv-font-body);
}
.mv-news-tab.is-mounted { opacity: 1; }
.mv-news-tab:hover,
.mv-news-tab:focus-visible,
.mv-news-tab.is-open {
    transform: translateX(0);
}
.mv-news-tab__handle {
    flex-shrink: 0;
    width: 48px;
    background: var(--mv-accent, #9c8a64);
    color: #1a1408;
    border-radius: 14px 0 0 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 18px 0;
    box-shadow: 0 18px 50px -14px rgba(0,0,0,.5);
    border: 1px solid rgba(255,255,255,.15);
    border-right: 0;
}
.mv-news-tab__handle-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    line-height: 1;
}
.mv-news-tab__handle-icon {
    width: 18px; height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.mv-news-tab__panel {
    width: min(320px, calc(100vw - 80px));
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(34,34,34,.72);
    border: 1px solid rgba(255,255,255,.16);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.18),
        0 22px 60px -22px rgba(0,0,0,.6);
    margin-right: -1px;
}
.mv-news-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: background .25s ease;
}
.mv-news-item:hover { background: rgba(255,255,255,.07); }
.mv-news-item__body { flex: 1; min-width: 0; }
.mv-news-item__label {
    font-size: 9px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--mv-accent, #9c8a64);
    margin-bottom: 3px;
    font-weight: 600;
}
.mv-news-item__title {
    font-weight: 500;
    font-size: 14px;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #fff;
}
.mv-news-item--secondary .mv-news-item__title {
    font-weight: 400;
    color: rgba(255,255,255,.78);
}
.mv-news-item__arrow {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(156,138,100,.18);
    color: var(--mv-accent, #9c8a64);
    display: grid; place-items: center;
    font-weight: 600;
    font-size: 13px;
    transition: transform .3s var(--mv-ease-out, ease), background .3s ease;
}
.mv-news-item:hover .mv-news-item__arrow {
    background: var(--mv-accent, #9c8a64);
    color: #1a1408;
    transform: translateX(2px);
}
.mv-news-tab__divider {
    height: 1px;
    background: rgba(255,255,255,.08);
    margin: 2px 8px;
}

@keyframes mv-gentleRise { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1024px) {
    .mv-hero__inner {
        grid-template-columns: 1fr;
        row-gap: 48px;
        align-items: start;
        padding-top: 110px;
        padding-bottom: 200px;
    }
    .mv-hero__cards { max-width: 100%; justify-self: stretch; }
}

@media (max-width: 768px) {
    .mv-hero__title { font-size: clamp(36px, 10vw, 56px); }

    /* Mobile: ocultamos el iframe del video y la pestaña de noticias */
    .mv-hero__media-frame { display: none; }
    .mv-news-tab { display: none; }

    /* Reemplazo el video con gradiente animado elegante (colores de marca) */
    .mv-hero__media {
        background:
            radial-gradient(60% 50% at 25% 20%, rgba(156,138,100,.32) 0%, transparent 60%),
            radial-gradient(70% 55% at 75% 75%, rgba(67,89,110,.40) 0%, transparent 60%),
            radial-gradient(80% 60% at 50% 50%, rgba(156,138,100,.10) 0%, transparent 70%),
            linear-gradient(135deg, #161616 0%, #1f1f1f 35%, #2a3340 70%, #181818 100%);
        background-size: 180% 180%, 180% 180%, 250% 250%, 200% 200%;
        animation: mv-gradientFlow 18s ease-in-out infinite alternate;
    }
    .mv-hero__media::before {
        background: radial-gradient(120% 80% at 50% 30%, rgba(0,0,0,0) 0%, rgba(0,0,0,.25) 70%, rgba(0,0,0,.65) 100%);
    }
}
@keyframes mv-gradientFlow {
    0%   { background-position: 0%   0%, 100% 100%, 50% 50%, 0%   50%; }
    50%  { background-position: 60%  40%,  40%  60%, 30% 70%, 50%  50%; }
    100% { background-position: 100% 100%,  0%   0%, 70% 30%, 100% 50%; }
}
@media (max-width: 480px) {
    .mv-pill { padding: 16px 26px; font-size: 14px; }
    .mv-hero__ctas { flex-direction: column; align-items: stretch; }
    .mv-pill { justify-content: center; }
    .mv-glass-card { padding: 18px; gap: 14px; }
    .mv-glass-card__icon { width: 44px; height: 44px; }
    .mv-glass-card__title { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .mv-hero *, .mv-hero *::before, .mv-hero *::after,
    .mv-news-tab *, .mv-news-tab *::before, .mv-news-tab *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .mv-hero__media-frame { animation: none; opacity: 1; }
    .mv-hero__media { animation: none !important; }
}
