body {
    font-family: Arial, sans-serif;
    background-image: url(img/bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    color: #fff;
    margin: 0;
    padding: 0;
    text-align: center;
}
header {
    position: relative;
    background-image: url(img/banner.png);
    background-position: 35%;
    background-size: 120%;
    background-repeat: no-repeat;
    padding: 160px 20px 60px; /* espacio arriba para el logo */
    margin-bottom: 20px;
}

header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45); /* ← aquí controlas qué tan oscuro queda */
    z-index: 1;
}

.logo {
    position: absolute;
    top: 0px;        /* distancia desde la parte superior */
    transform: translateX(-50%);
    width: 434px;     /* cambia este número si quieres el logo más grande o más pequeño */
    height: auto;
    z-index: 10;
}
@media (max-width: 600px) {
    .logo { width: 50%; top: 0px; } /* más pequeño en celulares */
    header { padding-top: 100px; }
}
h1 {
    position: relative;
    z-index: 2;
    font-size: 3.5em;
    text-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    margin: 0;
    text-align: center;
}

.container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* Ajustado para cards más anchas */
    gap: 30px;
    margin-top: 30px;
    object-position: center;
}
.card {
    display: flex; /* Cambiado a flex para dividir izquierda/derecha */
    align-items: stretch;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 204, 255, 0.4);
    color: #fff;
    transition: transform 0.3s, box-shadow 0.3s;
    background: rgba(0, 0, 0, 0.6);
}
.card:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.6);
}
.card .left {
    flex: 1;
    overflow: hidden;
}
.card .left img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    max-height: 300px;
    display: block;
}

.video-card .left iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
    display: block;
    border-radius: 16px 0 0 16px;
    object-fit: contain;
}

.card.video-full {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 8px 25px rgba(0, 204, 255, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
}
.card.video-full:hover {
    transform: translateY(-12px);
    box-shadow: 0 15px 35px rgba(0, 255, 255, 0.6);
}

.video-full .video-top {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 perfecto */
    background: #000;
}
.video-full .video-top iframe {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px 16px 0 0;
}

.video-full .video-info {
    padding: 20px;
    text-align: left;
}
.video-full .video-info h3 {
    margin: 0 0 12px;
    font-size: 1.8em;
    text-shadow: 0 0 10px black;
}
.video-full .video-info p {
    margin: 6px 0;
    opacity: 0.9;
}
.video-full .video-info p.optional {
    margin-top: 12px;
    font-style: italic;
    line-height: 1.5;
}

.card .right {
    flex: 1;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.card h3 {
    margin: 0 0 10px;
    font-size: 1.6em;
    text-shadow: 0 0 10px black;
}
.card p {
    margin: 5px 0;
    opacity: 0.9;
    font-size: 0.95em;
}
.card p.optional {
    margin-top: 10px;
    font-style: italic;
}

footer {
    background-color: #5f0000;
    padding: 20px;
    text-align: center;
    margin-top: 80px;
}