﻿html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

main, form {
    flex: 1; /* Make content grow to fill remaining space */
}

footer {
    margin-top: auto;
}

@font-face {
    font-family: 'Gilroy-Bold ☞';
    font-style: normal;
    font-weight: normal;
    src: local('Gilroy-Bold ☞'), url('Gilroy-Bold.woff') format('woff');
}


@font-face {
    font-family: 'Gilroy-Heavy ☞';
    font-style: normal;
    font-weight: normal;
    src: local('Gilroy-Heavy ☞'), url('Gilroy-Heavy.woff') format('woff');
}


@font-face {
    font-family: 'Gilroy-Light ☞';
    font-style: normal;
    font-weight: normal;
    src: local('Gilroy-Light ☞'), url('Gilroy-Light.woff') format('woff');
}


@font-face {
    font-family: 'Gilroy-Medium ☞';
    font-style: normal;
    font-weight: normal;
    src: local('Gilroy-Medium ☞'), url('Gilroy-Medium.woff') format('woff');
}


@font-face {
    font-family: 'Gilroy-Regular ☞';
    font-style: normal;
    font-weight: normal;
    src: local('Gilroy-Regular ☞'), url('Gilroy-Regular.woff') format('woff');
}

.bar1, .bar2, .bar3 {
    width: 35px;
    height: 5px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
}

.change .bar1 {
    -webkit-transform: rotate(-45deg) translate(-9px, 6px);
    transform: rotate(-45deg) translate(-9px, 6px);
    background-color: white;
}

.change .bar2 {
    opacity: 0;
}

.change .bar3 {
    -webkit-transform: rotate(45deg) translate(-8px, -8px);
    transform: rotate(45deg) translate(-8px, -8px);
    background-color: white;
}

@keyframes PopUp {
    from {
        transform: scale(0.2);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.img-animate-pop {
    animation: PopUp 1s ease forwards;
}





@media (min-width:768px) {
    .Imagen-Fondo {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        min-height: 100vh;
        display: flex;
    }


        .Imagen-Fondo h2 {
            line-height: 57px;
            color: white;
            font-size: 50px;
            font-weight: 800;
            text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.65);
            font-family: 'gilroy-heavy', Sans-serif;
            text-align: center;
        }

        .Imagen-Fondo a {
            font-size: 20px;
            font-family: 'gilroy-heavy', Sans-serif;
            margin-top: 5vh;
        }
}

@media (max-width:767px) {
    .Imagen-Fondo {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        min-height: 40vh;
        display: flex;
    }

        .Imagen-Fondo .Imagen-Fondo {
            position: absolute!important;
          
            left: 0!important;
            width: 100%!important;
           min-height:40vh;
            margin-left:0%!important;

        }



        .Imagen-Fondo h2 {
            line-height: 45px;
            color: white;
            font-size: 30px;
            font-weight: 800;
            text-shadow: 0px 0px 20px rgba(0, 0, 0, 1);
            font-family: 'gilroy-heavy', Sans-serif;
            text-align: center;
        }

        .Imagen-Fondo a {
            font-size: 15px;
            font-family: 'gilroy-heavy', Sans-serif;
            margin-top: 2vh;
        }
}

.Imagen-Fondo-Carta {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
}

#Menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/Imagenes/Nav-Background.jpg');
    background-size: cover;
    background-position: center;
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
    transition: opacity 0.3s ease;
    opacity: 0;
}

    #Menu.show {
        display: flex;
        opacity: 1;
    }

    #Menu a {
        text-decoration: none;
        color: #000;
        font-size: 2rem;
        margin: 1rem;
    }



.ticker-container {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    width: 100%;
}

.ticker {
    overflow: hidden;
    white-space: nowrap;
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 2rem;
    background: #fff;
    color: #000;
    /*border-bottom: 1px solid #ddd;*/
    position: relative;
}

/* Inner wrapper — double the width to allow continuous scrolling */
.ticker-content {
    display: flex;
    width: max-content;
    animation: scroll-left 30s linear infinite;
}

    /* Each text block repeats */
    .ticker-content span {
        /*padding-right: 3rem;*/
        flex-shrink: 0;
    }

/* Left ticker animation */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Right ticker (reverse direction) */
.ticker.right .ticker-content {
    animation: scroll-right 30s linear infinite;
}

@keyframes scroll-right {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

.card-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .card-hover:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 20px rgba(0,0,0,0.25);
    }


.span-programa {
    opacity: 0;
    color: white;
    font-size: 1.2rem;
    position: absolute;
    bottom: 10px;
    text-align: center;
    justify-content: center;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Gilroy-Light ☞';
    font-weight: 600;
    /*text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.65);*/
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.65), 0 0 5px rgba(0, 0, 0, 1);
}
    .card-hover:hover .span-programa{
        opacity:1;
    }

.fixed-footer {
    position: fixed; /* Fixes the footer relative to the viewport */
    left: 0; /* Aligns the footer to the left edge */
    bottom: 0; /* Aligns the footer to the bottom edge */
    width: 100%; /* Makes the footer span the full width of the viewport */
    background-color: #333; /* Example background color */
    color: white; /* Example text color */
    text-align: center; /* Example text alignment */
    padding: 10px 0; /* Example padding */
}

.Card-Listado {
    min-height: 315px;
    justify-content: center;
    align-items: center
}

@media (min-width:768px) {
    .video-wrapper {
        position: relative;
        width: 800px;
        height: 450px;
        transition: width 0.3s ease, height 0.3s ease;
    }
}

@media (max-width:767px) {
    .video-wrapper {
        position: relative;
        width: 324px;
        height: 400px;
        transition: width 0.3s ease, height 0.3s ease;
    }
}

    .video-js {
        width: 100%;
        height: 100%;
    }

    /* --- Modo teatro --- */
    body.theater-mode {
        background: #000;
      
      
    }

        body.theater-mode .video-wrapper {
            width: 98vw;
            height: 80vh;
        }

    /* --- Botones personalizados --- */
    .vjs-control.custom-button {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 3em;
        height: 100%;
    }

        .vjs-control.custom-button .material-symbols-outlined {
            font-size: 1.6em;
            line-height: 1;
            position: relative;
            color: #fff;
            pointer-events: none;
            transition: opacity 0.2s, color 0.2s;
        }

        .vjs-control.custom-button:hover .material-symbols-outlined {
            opacity: 0.8;
        }

    body.theater-mode .vjs-theater-control .material-symbols-outlined {
        color: #00adef;
    }