/* --- Variables Globales y Reseteo --- */
:root {
    --primary-color: #007aff; /* Un azul más vibrante */
    --primary-hover: #005ecb;
    --background-color: #f4f6f9;
    --card-background: #ffffff;
    --text-color: #333d4b;
    --subtle-text: #6b778d;
    --border-color: #e2e8f0;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

/* --- Encabezado y Pie de Página --- */
.site-header, .site-footer {
    text-align: center;
    width: 100%;
    max-width: 900px;
}

.site-header {
    margin-bottom: 50px;
}
.site-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
}
.site-header p {
    font-size: 1.1rem;
    color: var(--subtle-text);
}

.site-footer {
    margin-top: 50px;
    font-size: 0.9rem;
    color: var(--subtle-text);
}


/* --- Contenedor Principal --- */
.main-container {
    width: 100%;
    max-width: 1100px;
}

.videos-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- Tarjetas de Video --- */
.video-card {
    background-color: var(--card-background);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 4px solid var(--primary-color);
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.card-content {
    padding: 25px 30px;
}

.video-card h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 10px;
}

.video-card p {
    color: var(--subtle-text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Botón de Descarga --- */
.download-btn {
    background-color: var(--primary-color);
    color: white;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 0; /* Se integra con la base de la tarjeta */
    padding: 18px;
    cursor: pointer;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
    border-top: 1px solid var(--border-color);
}

.download-btn:hover {
    background-color: var(--primary-hover);
}

.download-btn:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

/* Icono de carga animado */
.download-btn .fa-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Responsividad para móviles --- */
@media (max-width: 768px) {
    body {
        padding: 20px 15px;
    }
    .site-header h1 {
        font-size: 2rem;
    }
    .videos-wrapper {
        gap: 20px;
    }
}2