/* Estilo base */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #111;
    color: #fff;
}

/* Cabecera */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222;
    padding: 15px 30px;
}

.logo h1 {
    margin: 0;
    font-size: 1.8em;
}

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

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

nav ul li a:hover {
    color: #f39c12;
}

/* Main */
main {
    padding: 30px;
}

/* Catálogo */
#catalogo {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
}

/* Título */
#catalogo h2 {
    width: 100%;
    text-align: center;
    margin-bottom: 20px;
}

/* Reproductor */
.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0,0,0,0.6);
    flex-basis: 100%;
}

/* Fondo antes de reproducir */
#videoLoading {
    background-color: #1a1e21;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Botón play */
#start {
    width: 100px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#start:hover {
    transform: scale(1.1);
}

/* iframe */
.video-container iframe {
    width: 100%;
    height: 500px;
    border: none;
    display: block;
}

/* Tarjetas */
.card {
    width: 250px;
    background-color: #1a1a1a;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
}

.card:hover {
    transform: scale(1.05);
}

.card img {
    width: 100%;
    display: block;
}

.card h3 {
    margin: 15px 0 10px;
    font-size: 1.2em;
}

.card p {
    margin: 0 15px 20px;
    color: #ccc;
}

/* Pie */
footer {
    background-color: #222;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 40px;
}