:root {
    --bg: #000000;
    --bg2: #111111;
    --accent1: #7c000c;
    --accent2: #c50010;
    --text: #f2f2f2;
    --muted: #b5b5b5;
}

html,
body {
    height: 100%;
    font-size: 18px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--bg);
    color: var(--text);
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1 0 auto;
}

/* ---------------- NAV ---------------- */

nav {
    position: sticky;
    top: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    padding: 14px 22px;
    display: flex;
    justify-content: center;
    gap: 26px;
    z-index: 10;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.6);
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    transition: 0.2s;
}

nav a:hover {
    background: var(--accent1);
}

/* ---------------- HEADER ---------------- */

header {
    padding: 10px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(142, 15, 28, 0.35), rgba(178, 38, 50, 0.28));
}

header img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 4px solid var(--accent2);
    box-shadow: 0 0 25px rgba(178, 38, 50, 0.4);
}

header h1 {
    margin-top: 18px;
    font-size: 2.6rem;
    color: #ffffff;
}

header p {
    color: var(--muted);
}

/* ---------------- SECCIONES ---------------- */

.resources,
.about,
.about-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    text-align: center;
}

.about-box {
    max-width: 760px;
    margin: 18px auto 0 auto;
    padding: 18px;
    text-align: left;
}

.about-box h2 {
    margin: 0 0 8px 0;
    color: var(--text);
    font-size: 1.6rem;
}

.about-box p {
    color: var(--muted);
    line-height: 1.6;
    margin: 8px 0;
}

/* ---------------- VIDEO ---------------- */

.video-section .video-wrap {
    max-width: 600px;
    margin: 0 auto;
    aspect-ratio: 16/9;
}

.video-section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;

    color: #726a6a;
}

.video-section .buttons {
    margin-top: 28px;
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
    gap: 18px;
}

.video-wrap iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}


.btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 20px;
    font-weight: 700;
    color: #fff;
    border-radius: 10px;
    background: var(--accent1);
    text-decoration: none;
    transition: transform 0.2s, background 0.2s;
}

.btn:hover {
    background: var(--accent2);
    transform: translateY(-3px);
}

/* ---------------- BOTÓN DE DESCARGA ---------------- */

.download-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 10px;
    background: var(--accent1);

    transition: all 0.3s ease-in-out;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    width: fit-content;
    font-size: 1rem;
}

.download-btn:hover {
    border-color: #ffffff;
    background: var(--accent2);
    transform: translateY(-3px);
}

.download-btn svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
    transition: 0.3s;
}

.download-btn:hover svg {
    fill: #ffffff;
}

/* ---------------- TARJETAS ---------------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.card {
    background: #111;
    padding: 18px;
    border-radius: 12px;
    border: 1px solid #222;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.card h3 {
    margin: 0 0 14px;
    color: #ffffff;

}

/* ----------- SPAN Y FILAS - Recursos ----------- */

.card .resource-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-top: 1px solid #ffffff2e;


}

.card .resource-item span {
    font-size: 1rem;
    /* más grande */
    font-weight: 600;
    /* más fuerte */
    color: #ffffff;
    /* más blanco */
    letter-spacing: 0.3px;
}

/* ---------------- FOOTER ---------------- */

footer {
    margin-top: auto !important;
    text-align: center;
    padding: 25px;
    color: var(--muted);
    background: var(--bg2);
    flex-shrink: 0;
}