/* =========================
 *   Reset mínimo
 *   ========================= */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
    background: #eeeeee;
    color: #222;
    line-height: 1.5;
}

/* =========================
 *   Contenedor principal
 *   ========================= */
.page {
    max-width: 900px;
    margin: 40px auto;
    padding: 32px 40px;
    background: #f4f4f2;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

.meitat {
    display: flex;
    gap: 2rem;           /* espacio entre columnas */
    align-items: flex-start;
}

@media (max-width: 768px) {
    .meitat {
        flex-direction: column;
    }
}

.atributs {
    flex: 0 0 20%;
}

.equipament {
    flex: 0 0 80%;
}

/* =========================
 *   Títulos
 *   ========================= */
h2 {
    margin-top: 0;
    text-align: center;
    font-size: 2rem;
    letter-spacing: 0.04em;
}

h3 {
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #ccc;
    padding-bottom: 0.25rem;
    font-size: 1.2rem;
}

/* =========================
 *   Generador
 *   ========================= */
.chargen {
    font-size: 1rem;
}

.chargen b {
    font-weight: 600;
}

/* líneas tipo ficha */
/*.chargen span {
    font-weight: 500;
}*/

/* =========================
 *   Listas de notas
 *   ========================= */
.chargen li {
    margin-left: 1.2rem;
    margin-bottom: 0.4rem;
}

/* =========================
 *   Botones y enlaces
 *   ========================= */
button {
    margin-top: 2rem;
    padding: 10px 18px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    background: #2c2c2c;
    color: #fff;
    cursor: pointer;
}

button:hover {
    background: #444;
}

a {
    color: #1a5fb4;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* =========================
 *   Separadores
 *   ========================= */
br {
    line-height: 1.8;
}

/* =========================
 *   Versión impresión
 *   ========================= */
@media print {
    body {
        background: white;
    }

    .page {
        box-shadow: none;
        margin: 0;
        padding: 0;
    }

    button,
    a {
        display: none;
    }
}
