/* =========================================================
   ALC Corp — "Forzar el diseño original"
   Se carga al final. Pone el diseño de alc-corp-web por encima de
   WordPress, WooCommerce, el editor de bloques y otros plugins.
   Se activa/desactiva en ALC Corp → Diseño → Forzar el diseño.
   ========================================================= */
html { scroll-behavior: smooth; overflow-x: clip; }
body.alc-force {
  margin: 0 !important;
  font-family: var(--alc-ff) !important;
  font-size: var(--alc-fs) !important;
  line-height: 1.6 !important;
  color: var(--alc-text) !important;
  background: #fff !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.alc-force *, body.alc-force *::before, body.alc-force *::after { box-sizing: border-box; }
body.alc-force :is(h1, h2, h3, h4, h5, h6) {
  font-family: var(--alc-ff) !important; font-stretch: var(--alc-wide) !important; font-weight: var(--alc-hw) !important;
  letter-spacing: -.025em; line-height: 1.02; margin: 0; color: var(--alc-ink); text-transform: none;
}
body.alc-force .alc-row--dark :is(h1, h2, h3, h4) { color: #fff; }
body.alc-force :is(h3, h4) { letter-spacing: -.015em; line-height: 1.15; }
body.alc-force p { margin: 0 0 1em; }
body.alc-force a { color: inherit; text-decoration: none; box-shadow: none; }
body.alc-force .alc-content a, body.alc-force .alc-pb-text a, body.alc-force .alc-pd-desc a { color: var(--alc-forest); text-decoration: underline; text-underline-offset: 3px; }
body.alc-force img { max-width: 100%; height: auto; border: 0; box-shadow: none; }
body.alc-force :is(ul, ol) { margin-block: 0; }
body.alc-force :is(ul, ol)[class] { list-style: none; padding: 0; }
body.alc-force button { font: inherit; letter-spacing: normal; text-transform: none; }
body.alc-force ::selection { background: var(--alc-lime); color: var(--alc-ink); }

/* Estructura: sin márgenes ni anchos que meta el tema de bloques o un plugin */
body.alc-force :is(.wp-site-blocks, .site, #page, #content, .site-content, .alc-main) { padding: 0 !important; margin: 0 !important; max-width: none !important; }
body.alc-force .alc-main > :is(.entry-content, .alc-content) { max-width: none; }
body.alc-force .alc-wrap { width: min(100% - var(--alc-gutter) * 2, var(--alc-wrap)); margin-inline: auto; }
body.alc-force .alc-row--flush .alc-wrap, body.alc-force .alc-row--full > .alc-wrap { width: 100%; max-width: none; margin-inline: 0; }
body.alc-force .alc-row { margin-block: 0; }
body.alc-force .alc-row--pad-none { padding-block: 0 !important; }

/* Botones del diseño (también los de WooCommerce y de formularios) */
body.alc-force :is(.alc-btn, .button, button.button, a.button, .wp-element-button, input[type="submit"], .wpcf7-submit, .wpforms-submit, .fluent_form_submit button) {
  min-height: var(--alc-btn-h); border-radius: var(--alc-btn-r); font-weight: 700; padding: 0 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; line-height: 1.1; cursor: pointer;
  transition: background .3s, color .3s, transform .4s var(--alc-ease), box-shadow .3s;
}
body.alc-force :is(.button, a.button, .wp-element-button, input[type="submit"], .wpcf7-submit, .wpforms-submit) {
  background: var(--alc-forest); color: #fff; border: 0;
}
body.alc-force :is(.button, a.button, .wp-element-button, input[type="submit"], .wpcf7-submit, .wpforms-submit):hover { background: var(--alc-forest-d); color: #fff; transform: translateY(-2px); }

/* Formularios: mismo aspecto que el diseño original */
body.alc-force :is(input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="url"], input[type="search"], select, textarea) {
  width: 100%; border: 1.5px solid var(--alc-line); border-radius: var(--alc-r-m, 14px); background: #fff; color: var(--alc-text);
  padding: 14px 16px; font: inherit; box-shadow: none; outline: 0; transition: border-color .25s, box-shadow .25s;
}
body.alc-force :is(input, select, textarea):focus { border-color: var(--alc-forest); box-shadow: 0 0 0 4px rgba(27, 122, 43, .12); }
body.alc-force :is(input, textarea)::placeholder { color: var(--alc-muted); opacity: .8; }
body.alc-force label { font-weight: 600; color: var(--alc-ink); }

/* WooCommerce: nada de avisos, estrellas ni botones de compra fuera del diseño */
body.alc-force .woocommerce-notices-wrapper:empty { display: none; }
body.alc-force :is(.woocommerce, .woocommerce-page) :is(h1, h2, h3) { color: var(--alc-ink); }
body.alc-force .woocommerce ul.products { margin: 0; padding: 0; }
body.alc-force .woocommerce ul.products::before, body.alc-force .woocommerce ul.products::after { display: none; }
body.alc-force .woocommerce span.onsale { display: none; }
body.alc-force :is(.price, .amount) { color: inherit; }

/* Barra de administración de WordPress: no tapa la cabecera fija */
body.alc-force.admin-bar .alc-row--sticky { top: var(--wp-admin--admin-bar--height, 32px); }

/* Imágenes de bloques y alineaciones: sin recortes raros */
body.alc-force :is(.alignwide, .alignfull) { max-width: none; width: 100%; margin-inline: 0; }
body.alc-force figure { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  body.alc-force * { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
