:root {
    --bg: #0b0f1a;
    --primary: #f39c12;
    --accent: #ff3b3b;
    --text: #ffffff;
    --card: #111827;
    --muted: #9aa4b2;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
}

/* HEADER */
header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

header img {
    height: 45px;
    margin-right: 10px;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 20px;
}

/* HERO */
.hero {
    height: 25vh;
    background: url('banner.jpg') center/cover no-repeat;
}

/* MAIN LAYOUT */
.main-content {
    display: flex;
    gap: 30px;
    padding: 20px;
    justify-content: center;
    align-items: center; /* 🔥 CLAVE: centrado vertical */
}

/* VIDEO BLOQUE */
.video-wrapper {
    flex: 1;
    max-width: 500px;
}

.video-wrapper h2 {
    margin-bottom: 10px;
    font-size: 16px;
    color: var(--muted);
}

.video-container {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #222;

    aspect-ratio: 16 / 9;
    background: black;
}

video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* CONTROLES */
.controls {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
}

.controls button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

.controls input[type="range"] {
    cursor: pointer;
}

#volume {
    width: 70px;
}

#progress {
    flex: 1;
}

/* CARDS */
.cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
}

.card {
    background: var(--card);
    padding: 20px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    transition: 0.3s;
    border: 1px solid #1f2937;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--primary);
    box-shadow: 0 0 12px rgba(243,156,18,0.3);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 5px;
}

.card p {
    font-size: 13px;
    color: var(--muted);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: var(--muted);
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .main-content {
        flex-direction: column;
        align-items: center;
    }

    .cards {
        width: 100%;
        max-width: 500px;
    }

    .video-wrapper {
        width: 100%;
    }
}

.apps-section {
    flex: 1;
    max-width: 400px;

    display: flex;
    flex-direction: column;
    justify-content: center; /* 🔥 centra internamente */
}

/* TÍTULO */
.apps-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary);
    border-left: 1px solid var(--primary);
    padding-left: 10px;
    margin-bottom: 20px;
}