/* ==========================================================================
   CSS BASE GLOBAL — Biblioteca Latinoamericana de Música para Piano
   Cargado en todos los templates del sistema
   ========================================================================== */

/* ── Box model ── */
*, *::before, *::after {
    box-sizing: border-box;
}

/* ── Tipografía base ── */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Imágenes responsivas ── */
img {
    max-width: 100%;
    height: auto;
}

/* ── Scroll suave ── */
html {
    scroll-behavior: smooth;
}

/* ── Focus visible accesible ── */
:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* ── Utilidades de texto ── */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Transición global para elementos interactivos ── */
a, button {
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}
