/* ========================================
   OpenDyslexic Font - Versión Optimizada
   ======================================== */

/* Regular (400) */
@font-face {
    font-family: 'OpenDyslexic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../../fonts/opendyslexic/opendyslexic-latin-400-normal.woff2') format('woff2');
}

/* Regular Italic (400) - opcional */
@font-face {
    font-family: 'OpenDyslexic';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../../fonts/opendyslexic/opendyslexic-latin-400-italic.woff2') format('woff2');
}

/* Bold (700) */
@font-face {
    font-family: 'OpenDyslexic';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../../fonts/opendyslexic/opendyslexic-latin-700-normal.woff2') format('woff2');
}

/* Bold Italic (700) - opcional */
@font-face {
    font-family: 'OpenDyslexic';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../../fonts/opendyslexic/opendyslexic-latin-700-italic.woff2') format('woff2');
}

/* ========================================
   Clase base - VALORES SUAVIZADOS
   ======================================== */
html.easyaccy-dyslexia,
.easyaccy-dyslexia body {
    font-family: 'OpenDyslexic', 'Comic Sans MS', Arial, sans-serif !important;
    
    /* Tamaño de fuente: un poco más grande pero no exagerado */
    font-size: 1.05em !important;  /* Antes: 1.14em (demasiado) */
    
    /* Altura de línea: más呼吸 */
    line-height: 1.6 !important;    /* Antes: 1.9 (excesivo) */
    
    /* Espaciado entre caracteres: sutil */
    letter-spacing: 0.03em !important;  /* Antes: 0.1em (gigante) */
    
    /* Espaciado entre palabras: mínimo */
    word-spacing: 0.05em !important;    /* Antes: 0.08em */
}

/* ========================================
   Headings - Mantener jerarquía visual
   ======================================== */
.easyaccy-dyslexia h1 {
    font-size: 2.2em !important;
    letter-spacing: 0.02em !important;
    margin-bottom: 0.5em !important;
}

.easyaccy-dyslexia h2 {
    font-size: 1.8em !important;
    letter-spacing: 0.02em !important;
}

.easyaccy-dyslexia h3 {
    font-size: 1.5em !important;
    letter-spacing: 0.02em !important;
}

.easyaccy-dyslexia h4 {
    font-size: 1.3em !important;
}

.easyaccy-dyslexia h5,
.easyaccy-dyslexia h6 {
    font-size: 1.1em !important;
}

/* ========================================
   Párrafos y textos largos
   ======================================== */
.easyaccy-dyslexia p,
.easyaccy-dyslexia li,
.easyaccy-dyslexia td,
.easyaccy-dyslexia th {
    font-size: 1.05em !important;    /* Un 5% más grande */
    line-height: 1.7 !important;      /* Cómodo pero compacto */
    margin-bottom: 1.2em !important;
}

/* ========================================
   Enlaces y botones
   ======================================== */
.easyaccy-dyslexia a,
.easyaccy-dyslexia button {
    font-weight: 600 !important;      /* Semi-bold para destacar */
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

/* ========================================
   Modo lectura (si aplica)
   ======================================== */
#ps-easyaccy-reading-layer.easyaccy-dyslexia .reading-content-inner {
    font-family: 'OpenDyslexic', 'Georgia', serif !important;
    font-size: 1.1em !important;
    line-height: 1.8 !important;
    letter-spacing: 0.02em !important;
    max-width: 750px !important;      /* Limitar ancho para mejor lectura */
    margin: 0 auto !important;
}