:root {
    --primary: #6A1B2F; /* Guinda IPN */
    --primary-dark: #4a0b1d;
    --bg-dark: #121212;
    --card-bg: #1e1e1e;
    --text-main: #ffffff;
    --text-sec: #b0bec5;
    --accent: #E84560;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
}

/* HEADER */
.help-header {
    height: 250px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.help-header .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('../imagenes/escudo_blanco.png') no-repeat center center;
    background-size: 400px;
    opacity: 0.05;
}

.header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 1200px;
}

.btn-back {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: 0.3s;
    backdrop-filter: blur(5px);
}

.btn-back:hover {
    background: rgba(255,255,255,0.3);
}

.title-block h1 {
    font-size: 2.5rem;
    margin: 0;
    font-weight: 900;
    letter-spacing: 1px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.title-block p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-top: 10px;
}

/* GRID PRINCIPAL */
.main-container {
    max-width: 1200px;
    margin: -50px auto 50px auto; /* Efecto flotante sobre el header */
    padding: 0 20px;
    position: relative;
    z-index: 5;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* TARJETAS DE VIDEO */
.video-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.video-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect Ratio 16:9 */
    background: black;
}

.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Icono Play Decorativo (desaparece al dar play con JS) */
.play-overlay {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Deja pasar el click al video */
    transition: opacity 0.3s;
}

.play-overlay i {
    font-size: 60px;
    color: rgba(255,255,255,0.8);
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.video-wrapper.playing .play-overlay {
    opacity: 0;
}

.card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h3 {
    margin: 10px 0;
    font-size: 1.25rem;
    color: var(--text-main);
}

.card-body p {
    color: var(--text-sec);
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-purple { background: rgba(156, 39, 176, 0.2); color: #ce93d8; }
.badge-red { background: rgba(244, 67, 54, 0.2); color: #ef9a9a; }
.badge-blue { background: rgba(33, 150, 243, 0.2); color: #90caf9; }
.badge-green { background: rgba(76, 175, 80, 0.2); color: #a5d6a7; }

/* FOOTER */
.simple-footer {
    text-align: center;
    padding: 40px;
    color: #555;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .header-content { text-align: left; padding-top: 40px; }
    .btn-back { top: 20px; transform: none; }
    .title-block h1 { font-size: 2rem; }
}