/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

header {
    background: #121212;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
}

header img {
    height: 40px;
}

nav {
    position: relative;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 12px;
    transition: background 0.3s, color 0.3s;
}

nav ul li a:hover,
nav ul li a:focus {
    background: #ffffff;
    color: #121212;
    border-radius: 5px;
}

nav ul li a:active {
    background: #ffcc00;
    color: #121212;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

/* Ajustes para móviles */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        left: -100%;
        width: 250px;
        height: 100vh;
        background: rgba(0, 0, 0, 0.9);
        padding-top: 50px;
        transition: left 0.3s ease-in-out;
    }

    nav ul.active {
        left: 0;
    }

    nav ul li {
        padding: 12px;
        width: 100%;
    }

    nav ul li a {
        display: block;
        width: 100%;
        text-align: left;
        border-radius: 0;
    }
}

/* Footer */
footer {
    background: #1a1a1a;
    color: #ffffff;
    text-align: center;
    padding: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: auto;
    font-size: 14px;
}

footer a {
    color: #ffcc00;
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: #ffffff;
}

/* Contenedor principal del canal */
.canal-container {
    max-width: 800px;
    margin: 20px auto;
    padding: 15px;
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Título */
.canal-container h1 {
    font-size: 24px;
    color: #ffcc00;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

/* Párrafo descriptivo */
.canal-container p {
    font-size: 16px;
    color: #ccc;
    margin-bottom: 15px;
}

/* Wrapper para iframe responsive */
.iframe-wrapper {
    width: 100%;
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background: black; /* Fondo para evitar espacios vacíos */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    display: block;
}

/* Opciones de canales (botones) */
.opciones {
    margin-top: 15px;
    text-align: center;
}

.opciones p {
    font-size: 18px;
    font-weight: bold;
    color: white;
    margin-bottom: 10px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    background: #152D69;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #ffcc00;
    color: black;
}

/* Clase titulo-estilo que pediste */
.titulo-estilo {
    font-size: 24px;
    font-weight: bold;
    color: #ffcc00;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    margin-bottom: 5px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .canal-container {
        width: 95%;
        padding: 10px;
    }

    .iframe-wrapper {
        padding-top: 75%; /* Relación de aspecto más cuadrada en móviles */
    }

    .btn {
        display: block;
        width: 100%;
        text-align: center;
    }
}
