/* 📑 Estilos Base - Tu Compra Experta
 * Solo tipografía y elementos HTML básicos.
 * Layout y overrides de tema en engine-overrides.css
 */
@import url('variables.css');

/* ============================================
   TIPOGRAFÍA BASE
   ============================================ */

body {
    font-family: var(--font-family);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--text-main);
    font-weight: var(--font-weight-bold);
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.04em;
    font-weight: var(--font-weight-black);
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid var(--border);
    padding-bottom: 0.5rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
}

/* ============================================
   ENLACES
   ============================================ */

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* ============================================
   IMÁGENES RESPONSIVAS
   ============================================ */

img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

/* Restricción para imágenes destacadas en contenido */
.entry-content img,
.featured-image img,
.wp-block-post-featured-image img {
    max-height: 450px;
    width: auto !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
    object-fit: contain;
}

/* ============================================
   BLOQUES DE GUTENBERG
   ============================================ */

.wp-block-paragraph {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

/* Títulos de página (páginas estándar) */
.page .entry-title {
    font-weight: var(--font-weight-black);
    text-align: center;
    margin-bottom: 3rem;
}