body {
    margin: 0;
    padding: 0;
}

html {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #838bff;
    font-family: 'Pulang', sans-serif;
}

.fondo {
    background-color: #838bff;
    background-image: url('../img/kn02_64.png'); /* o wib01s.png */
    background-repeat: repeat;
    background-size: 64px 64px; /* o auto si prefieres */
    background-attachment: fixed;
    min-height: 100vh;
}

.header {
    background: #0078d7;
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-family: 'Pulang';
}

.contenedor-cartas {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px;
    max-width: 1600px;
    margin: 0 auto;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.modal-content {
    width: 85%;
    max-width: 680px;
    background: #ECE9D8;
    border: 5px solid #0054E3;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.modal-header {
    background: #0054E3;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}

.titleVentana {
    font-family: 'Consola';
    font-size: 15px;
    display: flex;
    align-items: center;
}

.close-button {
    background: red;
    color: white;
    border: 1px solid #fff;
    padding: 2px 10px;
    font-size: 22px;
    cursor: pointer;
    border-radius: 4px;
}

.modal-body {
    padding: 15px 25px;
    text-align: center;
    max-height: 70vh;
    overflow-y: auto;
}

.imgModal {
    max-width: 95%;
    border: 3px solid #0054E3;
    margin: 10px 0;
}