/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #f4f5f7;
    --surface: #ffffff;
    --cap-color: #0b8a6e;
    --cap-bg: #e8f8f3;
    --cap-glow: rgba(11, 138, 110, 0.15);
    --inst-color: #d4520a;
    --inst-bg: #fef0e8;
    --inst-glow: rgba(212, 82, 10, 0.15);
    --dl-color: #2563eb;
    --dl-bg: #eff4ff;
    --text-main: #1a1a2e;
    --text-dim: #6b7280;
    --border: #e2e4e9;
    --radius: 20px;
}

body {
    font-family: 'Outfit', sans-serif;
    background: var(--bg);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* ===== BACKGROUND GRID ===== */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(0,0,0,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,0,0,0.025) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* ===== INDEX PAGE ===== */
.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    animation: fadeUp 0.6s ease-out;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ===== LOGOS ===== */
.header {
    margin-bottom: 3rem;
}

.logos-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 1.8rem;
}

.header-logo {
    max-height: 120px;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    flex-shrink: 1;
}

.logo-placeholder {
    width: 220px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 2px dashed var(--border);
    border-radius: 14px;
    color: var(--text-dim);
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* ===== DOWNLOAD BUTTON ===== */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 2rem;
    background: var(--dl-bg);
    border: 2px solid rgba(37, 99, 235, 0.2);
    border-radius: 14px;
    color: var(--dl-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    background: var(--dl-color);
    color: #fff;
    border-color: var(--dl-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}

.dl-icon {
    width: 22px;
    height: 22px;
}

/* ===== BIG BUTTONS ROW ===== */
.buttons-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.big-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 280px;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.big-btn:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: transparent;
}

/* Capacitación */
.btn-cap:hover {
    background: var(--cap-bg);
    box-shadow: 0 20px 60px var(--cap-glow), 0 0 0 2px var(--cap-color);
}
.btn-cap:hover .btn-icon {
    transform: scale(1.15);
}
.btn-cap .btn-label {
    color: var(--cap-color);
}

/* Como Instalar */
.btn-inst:hover {
    background: var(--inst-bg);
    box-shadow: 0 20px 60px var(--inst-glow), 0 0 0 2px var(--inst-color);
}
.btn-inst:hover .btn-icon {
    transform: scale(1.15);
}
.btn-inst .btn-label {
    color: var(--inst-color);
}

.btn-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 0.35s ease;
    position: relative;
    z-index: 1;
}

.btn-label {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.2rem;
    letter-spacing: 3px;
    position: relative;
    z-index: 1;
}

.btn-hint {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 300;
    margin-top: 0.5rem;
    position: relative;
    z-index: 1;
}

/* ===== PLAYER PAGE ===== */
.player-body {
    align-items: flex-start;
    overflow: auto;
}

.player-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1100px;
    margin: 2rem auto;
    padding: 2rem;
    animation: fadeUp 0.5s ease-out;
}

.player-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.4rem;
    background: var(--surface);
    border: 2px solid var(--border);
    border-radius: 12px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.25s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

.back-btn:hover {
    background: var(--text-main);
    color: #fff;
    border-color: var(--text-main);
    transform: translateX(-4px);
}

.back-arrow {
    font-size: 1.3rem;
    line-height: 1;
}

.player-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    letter-spacing: 2px;
    color: var(--text-main);
}

/* ===== VIDEO ===== */
.video-wrapper {
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    border: 2px solid var(--border);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.video-player {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 720px) {
    .buttons-row {
        flex-direction: column;
        align-items: center;
    }

    .big-btn {
        width: 100%;
        max-width: 360px;
        height: 220px;
    }

    .btn-label {
        font-size: 1.8rem;
    }

    .logos-row {
        gap: 1.2rem;
    }

    .header-logo {
        max-height: 80px;
        max-width: 160px;
    }

    .logo-placeholder {
        width: 140px;
        height: 80px;
        font-size: 1.1rem;
    }

    .player-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }
}