/* === Reset mínimo (no romper Elementor) === */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body.wp-static-export {
  overflow-x: hidden;
  font-family: "Lato", "Open Sans", system-ui, sans-serif;
  color: #333;
  -webkit-font-smoothing: antialiased;
}

/* === Cabecera propia === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #fff;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.08);
}
.site-header__bar {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-logo img {
  display: block;
  height: 52px;
  width: auto;
  max-width: 200px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
}
.site-nav a {
  color: #54595f;
  text-decoration: none;
  font-family: "Montserrat", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-radius: 4px;
  transition: color 0.2s, background 0.2s;
}
/* Nav y CTA: ver eduguia-theme.css */
.site-nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.site-nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  border-radius: 2px;
}

/* === Pie propio === */
.site-footer {
  background: #1a1a2e;
  color: #e8e8e8;
  padding: 48px 24px 32px;
  margin-top: 0;
}
.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  text-align: center;
}
.site-footer__brand img {
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.site-footer__brand p {
  max-width: 420px;
  margin: 0 auto 24px;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.85;
}
.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.site-footer__links a {
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__copy {
  font-size: 13px;
  opacity: 0.6;
  margin: 0;
}

/* === Contenido Elementor === */
.site-main { min-height: 50vh; }
.elementor-page .elementor { width: 100%; }
.elementor-section.elementor-section-stretch > .elementor-container {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
}
.elementor img { max-width: 100%; height: auto; }
.elementor-heading-title { margin-top: 0; }
.elementor-button { transition: transform 0.2s, box-shadow 0.2s; }
.elementor-button:hover { transform: translateY(-2px); }

/* Responsive cabecera */
@media (max-width: 900px) {
  .site-nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: #fff;
    padding: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    margin-left: 0;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { width: 100%; text-align: center; }
  .site-header__bar { position: relative; flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .elementor-hidden-phone { display: none !important; }
}
@media (max-width: 1024px) {
  .elementor-hidden-tablet { display: none !important; }
}
@media (min-width: 1025px) {
  .elementor-hidden-desktop { display: none !important; }
}
