/**
 * Global Typography Styles
 *
 * Aplica la tipografía consistente en todo el sitio
 * Usa Roboto para texto y TeX Gyre Adventor para títulos
 *
 * @package Edumart Child
 * @since 1.0.0
 */

/* ==========================================================================
   Base Typography - Aplicado a todo el sitio
   ========================================================================== */

body,
.elementor-widget-text-editor,
.elementor-widget-theme-post-content,
.elementor p,
.elementor-element p {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
}

/* ==========================================================================
   Headings - Títulos con TeX Gyre Adventor Bold
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6,
.elementor-heading-title,
.elementor-widget-heading h1,
.elementor-widget-heading h2,
.elementor-widget-heading h3,
.elementor-widget-heading h4,
.elementor-widget-heading h5,
.elementor-widget-heading h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

h1,
.elementor-widget-heading h1 {
  font-size: 48px;
}

h2,
.elementor-widget-heading h2 {
  font-size: 36px;
}

h3,
.elementor-widget-heading h3 {
  font-size: 28px;
}

h4,
.elementor-widget-heading h4 {
  font-size: 16px;
}

h5,
.elementor-widget-heading h5 {
  font-size: 20px;
}

h6,
.elementor-widget-heading h6 {
  font-size: 18px;
}

/* ==========================================================================
   Botones - Consistencia en todos los botones
   ========================================================================== */

button,
.button,
.btn,
.elementor-button,
a.elementor-button {
  font-family: var(--font-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   Formularios
   ========================================================================== */

input,
textarea,
select,
.elementor-field {
  font-family: var(--font-primary);
  font-size: 15px;
}

/* ==========================================================================
   Widgets de Elementor - Asegurar consistencia
   ========================================================================== */

.elementor-widget-text-editor {
  font-family: var(--font-primary);
}

.elementor-widget-icon-box .elementor-icon-box-title {
  font-family: var(--font-heading);
}

.elementor-widget-image-box .elementor-image-box-title {
  font-family: var(--font-heading);
}

.elementor-widget-testimonial .elementor-testimonial-name {
  font-family: var(--font-heading);
}

/* ==========================================================================
   Navegación
   ========================================================================== */

.navbar,
.nav,
.menu,
.elementor-nav-menu a {
  font-family: var(--font-primary);
  font-weight: 500;
}

/* ==========================================================================
   Responsive Typography
   ========================================================================== */

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }

  h1,
  .elementor-widget-heading h1 {
    font-size: 32px;
  }

  h2,
  .elementor-widget-heading h2 {
    font-size: 28px;
  }

  h3,
  .elementor-widget-heading h3 {
    font-size: 24px;
  }

  h4,
  .elementor-widget-heading h4 {
    font-size: 20px;
  }

  h5,
  .elementor-widget-heading h5 {
    font-size: 18px;
  }

  h6,
  .elementor-widget-heading h6 {
    font-size: 16px;
  }
}
