* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, 'Noto Sans', sans-serif;
    background: #0b0b0b;
    color: #eaeaea;
}

header,
footer {
    background: #000;
    color: #fff;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 20px;
}

.site-logo {
    max-height: 50px;
    width: auto;
    display: block;
}

/* GRID */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

/* .card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
} */

.card {
    background: #111;
    border: 1px solid #222;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background-color 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    background-color: #3a3a3a;
    /* gris más claro al hacer hover */
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.thumb {
    aspect-ratio: 16 / 9;
    background: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    font-size: 14px;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card .pad {
    padding: 12px 14px;
}

.card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    color: #fff;
}

.card p {
    margin: 0;
    color: #bdbdbd;
    font-size: 13px;
}

/* MODAL */
.modal.hidden {
    display: none;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: saturate(1.2) blur(2px);
}

.modal-dialog {
    position: relative;
    z-index: 60;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    background: #0f0f0f;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 50px rgba(0, 0, 0, 0.8);
}

.close {
    position: absolute;
    right: 10px;
    top: 10px;
    font-size: 22px;
    background: transparent;
    border: 0;
    color: #e5e5e5;
    width: 36px;
    height: 36px;
    cursor: pointer;
    border-radius: 999px;
}

.video {
    position: relative;
    padding-top: 56.25%;
}

.video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.modal-body {
    padding: 16px 18px;
}

.modal-title {
    margin: 0 0 8px;
    font-size: 20px;
    color: #fff;
}

.modal-excerpt {
    color: #c9c9c9;
    font-size: 14px;
}

footer .container {
    display: flex;
    justify-content: center;
    /* centra horizontal */
    align-items: center;
    /* centra vertical */
    height: 60px;
    /* opcional: altura del footer */
}

.centertext {
    display: flex;
        justify-content: center;
        /* centra horizontal */
        align-items: center;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}