/* ============================================================
   HOME MODERNO — solo se carga en front-page (ver head.php)
   Paleta intacta: #ffec00 amarillo, #1d1d1b oscuro, blanco.
   ============================================================ */


/* ---------- HERO FULL-BLEED ---------- */

.contentVideo {
    top: 0;
    height: 100%;
    height: 100dvh;
}

/* Scrims cinematográficos: legibilidad arriba (logo/título) y abajo (subtítulo) */
.contentVideo::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 30%),
        linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 35%);
}

.bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.theoverlayHover {
    z-index: 2;
    background-color: rgba(0, 0, 0, 0.55);
}


/* ---------- HEADER FLOTANTE ---------- */

.headerHome {
    background-color: transparent;
    border: none;
    padding: 24px 32px;
}

.theLogo {
    width: 180px;
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 12px 18px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.theLogo:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.theLogo a {
    display: block;
}

/* El estilo circular base vive en theme.css; aquí solo la posición en home */
.toggleMenu {
    top: 24px;
    right: 24px;
}

.toggleMenu .hamburger {
    cursor: pointer;
}

.toggleMenu .hamburger:focus-visible {
    outline: 2px solid #ffec00;
    outline-offset: 3px;
    border-radius: 50%;
}


/* ---------- TÍTULO ---------- */

.maintitle-top.titlehomevideo {
    top: 20vh;
    z-index: 3;
    padding: 0 20px;
}

.titlehomevideo h1 {
    font-family: 'Helvetica Light';
    font-weight: normal;
    color: #fff;
    font-size: clamp(2rem, 6vw, 5rem);
    letter-spacing: clamp(0.35em, 1.2vw, 0.55em);
    text-indent: clamp(0.175em, 0.6vw, 0.275em); /* media unidad de letter-spacing: centra el bloque */
    margin: 0;
    padding-left: 0; /* anula el padding-left de .stylesMaintitle h1 (theme.css) que lo descentraba */
    line-height: 1.15;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
    animation: heroFadeUp 0.9s ease 0.15s both;
}

/* Línea de acento bajo el título — amarillo de la marca */
.titlehomevideo::after {
    content: "";
    display: block;
    width: 64px;
    height: 3px;
    margin: 28px auto 0;
    background-color: #ffec00;
    animation: heroGrow 0.7s ease 0.7s both;
    transform-origin: center;
}


/* ---------- BOTÓN PLAY ---------- */

.styles-playVideo {
    background-image: none;
    width: 92px;
    height: 92px;
    margin: -46px auto auto;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.35);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.85);
    z-index: 3;
    transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    animation: heroFadeUp 0.9s ease 0.45s both;
}

/* Triángulo de play */
.styles-playVideo::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-42%, -50%);
    border-style: solid;
    border-width: 14px 0 14px 24px;
    border-color: transparent transparent transparent #fff;
    transition: border-left-color 0.25s ease;
}

/* Anillo pulsante */
.styles-playVideo::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: playPulse 2.4s ease-out infinite;
    pointer-events: none;
}

.styles-playVideo:hover,
.styles-playVideo:focus-visible {
    transform: scale(1.08);
    background-color: rgba(0, 0, 0, 0.55);
    border-color: #ffec00;
}

.styles-playVideo:hover::before,
.styles-playVideo:focus-visible::before {
    border-left-color: #ffec00;
}

.styles-playVideo:focus-visible {
    outline: 2px solid #ffec00;
    outline-offset: 6px;
}


/* ---------- FRANJA INFERIOR / SUBTÍTULO ---------- */

.fooHome {
    background-color: rgba(18, 18, 17, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 26px;
    animation: heroFadeUp 0.9s ease 0.6s both;
}

.fooHome h2 {
    font-family: 'Futura-Condensed-Medium';
    font-weight: normal;
    font-size: clamp(1rem, 1.6vw, 1.5rem);
    letter-spacing: 0.12em;
    line-height: 1.5;
    max-width: 72ch;
    margin: 0 auto 18px;
    padding: 0 24px;
    color: rgba(255, 255, 255, 0.95);
}

.fooHome .wrapper-footer {
    background-color: transparent;
    padding: 0 0 14px;
}

.fooHome .wrapper-footer ul {
    padding: 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fooHome .wrapper-footer ul li {
    margin: 6px 16px;
}

.fooHome .wrapper-footer ul li img {
    opacity: 0.65;
    transition: opacity 0.25s ease;
}

.fooHome .wrapper-footer ul li a {
    display: block;
}

.fooHome .wrapper-footer ul li a:hover img,
.fooHome .wrapper-footer ul li a:focus-visible img {
    opacity: 1;
}

.fooHome .wrapper-footer ul li a:focus-visible {
    outline: 2px solid #ffec00;
    outline-offset: 3px;
}

/* Los clones del marquee solo existen para el loop en móvil */
.fooHome .wrapper-footer ul li.marquee-clone {
    display: none;
}


/* ---------- ANIMACIONES ---------- */

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes heroGrow {
    from {
        opacity: 0;
        transform: scaleX(0);
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes playPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.45);
        opacity: 0;
    }
    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@keyframes logosMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .titlehomevideo h1,
    .titlehomevideo::after,
    .styles-playVideo,
    .fooHome {
        animation: none;
    }
    .styles-playVideo::after {
        animation: none;
        opacity: 0;
    }
    .styles-playVideo:hover,
    .styles-playVideo:focus-visible {
        transform: none;
    }
    .fooHome .wrapper-footer ul.has-marquee {
        animation: none;
    }
}


/* ---------- RESPONSIVE ---------- */

@media (max-width: 1600px) {
    .titlehomevideo h1 {
        margin-top: 0; /* anula el margin del main.css */
    }
}

@media (max-width: 1024px) {
    .titlehomevideo h1 {
        text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
    }
}

@media (max-width: 767px) {
    .headerHome {
        padding: 16px;
    }
    .theLogo {
        width: 140px;
        padding: 10px 14px;
    }
    .toggleMenu {
        top: 16px;
        right: 16px;
    }
    .maintitle-top.titlehomevideo {
        top: 16vh;
    }
    .titlehomevideo h1 {
        margin-top: 0;
    }
    .titlehomevideo::after {
        margin-top: 18px;
    }
    .styles-playVideo {
        width: 72px;
        height: 72px;
        margin: -36px auto auto;
    }
    .styles-playVideo::before {
        border-width: 11px 0 11px 19px;
    }
    .fooHome {
        padding-top: 16px;
    }
    .fooHome h2 {
        font-size: 0.95rem;
        letter-spacing: 0.06em;
        line-height: 1.45;
        margin-bottom: 14px;
        padding: 0 20px;
    }

    /* --- Logos como marquee de una sola fila --- */
    .fooHome .wrapper-footer {
        padding-bottom: 12px;
        overflow: hidden;
        position: relative;
    }
    /* Difuminado en los bordes para que entren/salgan suaves */
    .fooHome .wrapper-footer::before,
    .fooHome .wrapper-footer::after {
        content: "";
        position: absolute;
        top: 0;
        bottom: 0;
        width: 36px;
        z-index: 2;
        pointer-events: none;
    }
    .fooHome .wrapper-footer::before {
        left: 0;
        background: linear-gradient(to right, rgba(18,18,17,0.95), rgba(18,18,17,0));
    }
    .fooHome .wrapper-footer::after {
        right: 0;
        background: linear-gradient(to left, rgba(18,18,17,0.95), rgba(18,18,17,0));
    }

    .fooHome .wrapper-footer ul.has-marquee {
        display: flex;
        flex-wrap: nowrap;
        width: max-content;
        align-items: center;
        padding: 14px 0 0;
        animation: logosMarquee 22s linear infinite;
    }
    .fooHome .wrapper-footer ul.has-marquee li {
        flex: 0 0 auto;
        margin: 0 18px;
    }
    /* En móvil los clones SÍ se muestran (forman la segunda mitad del loop) */
    .fooHome .wrapper-footer ul.has-marquee li.marquee-clone {
        display: block;
    }
    .fooHome .wrapper-footer ul li img {
        max-height: 26px;
        width: auto;
    }
}
