/* Neutraliza el tema WordPress para que Energy 24 se vea como Lovable */

/* GeneratePress / WP: “Saltar al contenido” (skip link).
   Si aún se ve, lo ocultamos por completo. */
a.skip-link,
a.skip-link:focus,
.screen-reader-text.skip-link {
  display: none !important;
}

body.energy24-page {
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif !important;
  background-color: var(--background) !important;
  color: var(--foreground) !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Una sola tipografía en toda la web — seria y profesional */
body.energy24-page,
body.energy24-page h1,
body.energy24-page h2,
body.energy24-page h3,
body.energy24-page h4,
body.energy24-page h5,
body.energy24-page h6,
body.energy24-page p,
body.energy24-page a,
body.energy24-page button,
body.energy24-page input,
body.energy24-page textarea,
body.energy24-page select {
  font-family: "Source Sans 3", ui-sans-serif, system-ui, sans-serif !important;
}

body.energy24-page h1,
body.energy24-page h2,
body.energy24-page h3 {
  font-weight: 700 !important;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

body.energy24-page h1 em,
body.energy24-page h2 em,
body.energy24-page h3 em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-soft, #5c5c5c);
}

/* Skip link de GeneratePress: oculto hasta que alguien navega con teclado */
body.energy24-page a.skip-link.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.energy24-page a.skip-link.screen-reader-text:focus {
  position: fixed !important;
  top: 0.5rem !important;
  left: 0.5rem !important;
  z-index: 99999 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0.75rem 1rem !important;
  overflow: visible !important;
  clip: auto !important;
  background: #111 !important;
  color: #fff !important;
  border-radius: 0.375rem !important;
  font-weight: 600 !important;
}

body.energy24-page a {
  text-decoration: none;
}

body.energy24-page img {
  max-width: 100%;
  height: auto;
}

/* Logo header/footer — tamaño fijo en px (las clases h-* no funcionan por height:auto de arriba) */
.e24-logo {
  display: block;
  width: auto !important;
  max-width: none !important;
  height: 48px !important;
  max-height: 48px !important;
  object-fit: contain;
}

@media (min-width: 640px) {
  .e24-logo {
    height: 52px !important;
    max-height: 52px !important;
  }
}

.e24-logo--footer {
  height: 42px !important;
  max-height: 42px !important;
}

/* Contenido a ancho completo (solo padding lateral) */
body.energy24-page .container-x {
  width: 100% !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: clamp(1.25rem, 4vw, 3rem) !important;
}

/* Gutenberg / contenido de página */
body.energy24-page .entry-content,
body.energy24-page .wp-block-post-content,
body.energy24-page .site-content,
body.energy24-page .content-area,
body.energy24-page article.page {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.energy24-page .entry-header,
body.energy24-page .page-header,
body.energy24-page .page-title {
  display: none !important;
}

body.energy24-page .alignwide,
body.energy24-page .alignfull,
body.energy24-page .wp-block-group {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.energy24-page main {
  display: block;
}

/* Bloques HTML personalizados sin márgenes extra */
body.energy24-page .wp-block-html {
  margin: 0 !important;
}

/* GeneratePress — quitar contenedores que estrechan el diseño */
body.energy24-page #page,
body.energy24-page .site,
body.energy24-page .site-content,
body.energy24-page .content-area,
body.energy24-page .site-main,
body.energy24-page .inside-article,
body.energy24-page article,
body.energy24-page .grid-container,
body.energy24-page .site.grid-container {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.energy24-page.separate-containers .inside-article {
  background: transparent !important;
  box-shadow: none !important;
}

body.energy24-page .entry-content > *:not(section) {
  max-width: none;
}
