/* Estilos para el reproductor de TV */
.tv-player-container {
    padding: 30px;
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.tv-player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}


.tv-player-wrapper {
    width: 100%;
    max-width: 1100px;
    position: relative;
    margin: 0 auto;
    z-index: 2;
}

/* Contenedor del video con relación de aspecto 16:9 */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 (height/width = 9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
}

.video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

.title-tv {
    background-color: #ff5722;
    color: white;
    padding: 15px;
    font-size: 1.5em;
    font-weight: bold;
    text-align: center;
}
.tv-player-info {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 0 0 10px 10px;
}

.tv-player-info h2 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.8em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.phone-number {
    background-color: #ff5722;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.description-marquee {
    background-color: #ff5722;
    color: white;
    padding: 10px 0;
    border-radius: 5px;
    overflow: hidden;
    font-size: 1.1em;
    font-weight: 500;
}

.description-marquee marquee {
    padding: 0 10px;
}

/* Estilos para el número de canal */
.title-tv {
    position: relative;
    padding-left: 40px; /* Espacio para el número */
}

.channel-number {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff5722;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

/* Estilos generales para eliminar el scroll */
html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    width: 100%;
    height: 100%;
    position: fixed;
    -webkit-overflow-scrolling: touch;
}

/* Asegurar que el contenido principal no cause scroll */
.main-content {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

/* Estilos para el contenedor principal del reproductor de TV */
.tv-player-container {
    width: 100%;
    min-height: 100vh;
    background: #000 url('../img/fondo.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.tv-player-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.tv-player-wrapper {
    width: 100%;
    max-width: 1100px;
    position: relative;
    margin: 0 auto;
    z-index: 2;
}

/* Contenedor del video con relación de aspecto 16:9 */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Relación de aspecto 16:9 (height/width = 9/16 = 0.5625) */
    height: 0;
    overflow: hidden;
}

/* Asegurarse de que el video ocupe todo el espacio del contenedor */
#tv-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Estilos para el título del reproductor */
.title-tv {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin: 0 0 1.5rem 0;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    background: linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0.5) 100%);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Estilos para la sección de información */
.tv-player-info {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tv-player-info h2 {
    color: #ffd700;
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tv-player-info p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
    text-align: center;
    color: #e0e0e0;
}

/* Efecto hover para la sección de información */
.tv-player-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}
/* Media queries para ajustes responsivos */
@media (max-width: 1280px) {
    .tv-player-wrapper {
        max-width: 90%;
    }
}


@media (max-width: 1000px) {
    .tv-player-container {
        padding: 10px;
        height: auto;
        min-height: -webkit-fill-available; /* Para Safari en iOS */
    }

}


.video-js .vjs-tech{
    border: solid #ffffff 4px;
}


@media (max-width: 768px) {
    .tv-player-wrapper {
        max-width: 95%;
        height: auto;
        display: block;
        padding: 1rem 0;
    }
    
    .title-tv {
        font-size: 1.8rem;
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .tv-player-info {
        padding: 1rem;
        margin-top: 1.2rem;
    }
    
    .tv-player-info h2 {
        font-size: 1.5rem;
    }
    
    .tv-player-info p {
        font-size: 0.9rem;
    }
    
    .tv-player-container {
        padding: 10px;
        height: auto;
        min-height: -webkit-fill-available; /* Para Safari en iOS */
    }
    
    .video-container {
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
    }
    
    /* Asegurar que el video no se salga de la pantalla en móviles */
    @supports (-webkit-touch-callout: none) {
        .tv-player-container {
            min-height: -webkit-fill-available;
        }
    }
}

@media (max-width: 480px) {
    .tv-player-wrapper {
        max-width: 100%;
        padding: 0.5rem;
    }
    
    .title-tv {
        font-size: 1.5rem;
        padding: 0.6rem;
        margin: 0.5rem 0 1rem 0;
    }
    
    .tv-player-info {
        padding: 0.8rem;
        margin-top: 1rem;
    }
    
    .tv-player-info h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    .tv-player-info p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
}


/*** TV Blog ***/


.modern-tv-page {
    background: #f8f9fa;
    overflow-x: hidden;
    overflow-y: auto;
    height: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #ff6600 0%, #ffa66b 100%);
    color: white;
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 2;
    min-height: 500px;
}

.hero-info {
    text-align: center;
    width: 100%;
    max-width: 1000px;
}

.hero-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    width: 100%;
}

.hero-info-left {
    text-align: left;
}

.hero-info-right {
    /* Estilos para la columna derecha */
}

/* Estilos para la información de contacto */
.contact-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.contact-item i {
    font-size: 1.5rem;
    color: #96bf0b;
    min-width: 24px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.contact-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.contact-value {
    font-size: 1rem;
    color: white;
    font-weight: 600;
    text-decoration: none;
}

.contact-value:hover {
    color: #96bf0b;
    text-decoration: none;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.tv-description {
    margin: 30px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tv-description h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #96bf0b;
}

.tv-description p {
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.9;
}

.hero-social {
    margin-top: 40px;
}

/* Hero TV */
.hero-tv {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1100px;
}

.tv-player-container-small {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 100%;
}

.tv-title-small {
    background-color: #ff5722;
    color: white;
    padding: 10px 15px;
    font-size: 1.1em;
    font-weight: bold;
    text-align: center;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
}

.tv-player-wrapper-small {
    background: #000;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
}

/* Estilos para el contenedor de video pequeño */
.tv-player-wrapper-small .video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.tv-player-wrapper-small .video-js {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tv-player-wrapper-small .youtube-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
    overflow: hidden;
}

.tv-player-wrapper-small .youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.social-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
    text-align: left;
}

.hero-info-left .social-title {
    text-align: left;
}

.hero-info-left .social-links {
    justify-content: flex-start;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    color: white !important;
    text-decoration: none !important;
    font-size: 1.5rem !important;
    transition: all 0.3s ease !important;
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(255, 255, 255, 0.2) !important;
    min-width: 50px !important;
    max-width: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.social-link.facebook {
    background: rgba(24, 119, 242, 0.8);
}

.social-link.facebook:hover {
    background: rgba(24, 119, 242, 1);
}

.social-link.youtube {
    background: rgba(255, 0, 0, 0.8);
}

.social-link.youtube:hover {
    background: rgba(255, 0, 0, 1);
}

.social-link.tiktok {
    background: rgba(0, 0, 0, 0.8);
}

.social-link.tiktok:hover {
    background: rgba(0, 0, 0, 1);
}

.social-link.instagram {
    background: linear-gradient(45deg, rgba(225, 48, 108, 0.8), rgba(255, 220, 128, 0.8));
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, rgba(225, 48, 108, 1), rgba(255, 220, 128, 1));
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        gap: 30px;
    }
    
    .hero-info {
        padding-right: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-social {
        text-align: center;
    }
    
    .social-title {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .hero-section {
        padding: 40px 0;
        min-height: auto;
    }
    
    .hero-info-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .hero-tv {
        max-width: 100%;
    }
    
    .tv-player-container-small {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .contact-item {
        padding: 20px 15px;
    }
    
    .social-link {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

/* Compatibilidad con el sidebar existente */
@media (min-width: 861px) {
    .main-content {
        margin-left: 0;
        width: auto;
    }
}

/* Forzar estilos circulares para iconos sociales */
.hero-info-left .social-links .social-link,
.social-links .social-link,
a.social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    min-width: 50px !important;
    max-width: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}