/*
Theme Name: Enzo8A Premium
Theme URI: https://enzo8a.com
Author: Enzo8A
Author URI: https://enzo8a.com
Description: Variante de interacción premium del tema de bloques Enzo8A, con el mismo contenido y paleta coral/dorado/navy/teal, pero con una capa cinematográfica: fondo de red animada en los heroes, carrusel con crossfade, contadores tipo odómetro, reveals con blur-to-focus y cursor con suavizado (lerp).
Version: 1.1.0
Requires at least: 6.4
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enzo8a-premium
*/

/* ==========================================================================
   Enzo8A — estilos de apoyo
   theme.json define la paleta, tipografía y espaciado base.
   Este archivo cubre: menú fijo, estados hover, animación del hero,
   tarjetas, tabla comparativa y elementos que theme.json no controla.
   ========================================================================== */

:root {
  --enzo8a-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --enzo8a-ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --enzo8a-fast: 0.25s;
  --enzo8a-base: 0.6s;
  --enzo8a-premium: 1.1s;
}

/* ==========================================================================
   Capa cinematográfica: fondo de red animada (canvas), fija y de bajo
   contraste, detrás de todo el contenido. La crea premium.js; se pausa
   fuera de pantalla y respeta "reducir movimiento".
   ========================================================================== */
.enzo8a-network-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
}
@media (prefers-reduced-motion: reduce) {
  .enzo8a-network-canvas { display: none; }
}

/* ==========================================================================
   Selector de idioma (ES / EN) — vive en el header, junto al botón Hablemos
   ========================================================================== */
.enzo8a-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid rgba(55, 64, 80, 0.15);
  border-radius: 999px;
  padding: 3px;
  margin-right: 4px;
}
.enzo8a-lang-switch button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--wp--preset--color--ink-soft);
  transition: background 0.2s ease, color 0.2s ease;
}
.enzo8a-lang-switch button.is-active {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--ivory);
}

/* ==========================================================================
   Marquesina de logotipos (clientes) — desplazamiento infinito, ancho completo
   ========================================================================== */
.enzo8a-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.enzo8a-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: enzo8aMarquee 34s linear infinite;
}
.enzo8a-marquee__logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--wp--preset--color--ink-soft);
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}
.enzo8a-marquee__logo svg { flex: 0 0 auto; }
.enzo8a-marquee:hover .enzo8a-marquee__logo { opacity: 0.85; }
@keyframes enzo8aMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .enzo8a-marquee__track { animation: none; }
}
@media (max-width: 600px) {
  .enzo8a-marquee__logo { padding: 0 18px; font-size: 12px; }
}

/* Overlay de transición entre páginas (barrido de color al navegar) */
.enzo8a-page-transition {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--wp--preset--color--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  transition: transform 0.55s var(--enzo8a-ease-expo);
}
.enzo8a-page-transition.is-covering {
  transform: scaleY(1);
  transform-origin: bottom;
}
.enzo8a-page-transition.is-revealing {
  transform-origin: top;
  transform: scaleY(0);
}
@media (prefers-reduced-motion: reduce) {
  .enzo8a-page-transition { display: none; }
}

/* Contadores tipo odómetro: solo para cifras reales ya presentes en el contenido */
.enzo8a-counter {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* Imágenes reales (fotos) también con esquinas suaves por defecto */
img,
.wp-block-post-featured-image img,
.wp-block-image img {
  border-radius: 16px;
}

/* Menú principal siempre visible al hacer scroll */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: var(--wp--preset--color--ivory);
  border-bottom: 1px solid rgba(55, 64, 80, 0.08);
}

.site-header .wp-block-navigation__container > .wp-block-navigation-item > a {
  font-weight: 500;
  color: var(--wp--preset--color--ink-soft);
}
.site-header .wp-block-navigation__container > .wp-block-navigation-item > a:hover {
  color: var(--wp--preset--color--ink);
}
.site-header .current-menu-item > a,
.site-header .wp-block-navigation-item.current-menu-item > a {
  color: var(--wp--preset--color--ink) !important;
}

/* Tarjetas: esquinas suaves + leve realce de borde y elevación al pasar el mouse */
.enzo8a-card {
  border: 1px solid rgba(55, 64, 80, 0.1);
  border-radius: 18px;
  transition: border-color 0.25s ease, transform 0.25s var(--enzo8a-ease), box-shadow 0.25s var(--enzo8a-ease);
}
.enzo8a-card:hover {
  border-color: var(--wp--preset--color--terracota);
  transform: translateY(-5px);
  box-shadow: 0 18px 34px -22px rgba(55, 64, 80, 0.35);
}
.enzo8a-card--outline-active {
  border-color: var(--wp--preset--color--terracota);
}
.enzo8a-card--dashed {
  border: 1px dashed rgba(55, 64, 80, 0.25);
}
.enzo8a-card--dashed:hover {
  transform: none;
  box-shadow: none;
  border-color: rgba(55, 64, 80, 0.4);
}

/* Filtros / pills (Proyectos, Insights) — ahora sí, con forma de píldora */
.enzo8a-pill {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 9px 16px;
  border: 1px solid rgba(55, 64, 80, 0.15);
  border-radius: 999px;
  color: var(--wp--preset--color--ink-soft);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.enzo8a-pill:hover {
  border-color: var(--wp--preset--color--terracota);
  color: var(--wp--preset--color--terracota);
  transform: translateY(-2px);
}
.enzo8a-pill--active {
  background: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--ivory);
  border-color: var(--wp--preset--color--ink);
}
.enzo8a-pill--active:hover {
  color: var(--wp--preset--color--ivory);
}

/* Tabla comparativa de Membresías (heredada; ya no se usa en page-membresias,
   la comparativa ahora vive dentro de cada tarjeta — se deja por compatibilidad) */
.enzo8a-compare { border: 1px solid rgba(55, 64, 80, 0.1); border-radius: 16px; overflow: hidden; overflow-x: auto; }
.enzo8a-compare table { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
.enzo8a-compare th, .enzo8a-compare td { padding: 12px 14px; border-left: 1px solid rgba(55, 64, 80, 0.06); text-align: center; }
.enzo8a-compare td:first-child, .enzo8a-compare th:first-child { text-align: left; border-left: none; }
.enzo8a-compare thead th { background: var(--wp--preset--color--ink); color: var(--wp--preset--color--ivory); font-weight: 700; }
.enzo8a-compare tbody tr:nth-child(odd) { background: var(--wp--preset--color--ivory-alt); }
.enzo8a-compare-row { transition: background 0.2s ease; }
.enzo8a-compare-row:hover { background: var(--wp--preset--color--tinte-calido); }

/* Listado de características centrado dentro de cada tarjeta de Membresías */
.enzo8a-feature-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.enzo8a-feature {
  font-size: 13px;
  color: var(--wp--preset--color--ink-soft);
  line-height: 1.4;
}
.enzo8a-feature span::before {
  content: "✓";
  display: inline-block;
  margin-right: 6px;
  color: var(--wp--preset--color--terracota);
  font-weight: 700;
}

/* Hero: slider rotativo de las ocho áreas de acción */
.enzo8a-hero-slider { position: relative; width: 100%; height: 440px; overflow: hidden; border-radius: 22px; box-shadow: 0 30px 60px -30px rgba(55, 64, 80, 0.4); }
.enzo8a-hero-slide {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  opacity: 0;
  transform: scale(1.08);
  animation: enzo8aHeroFade 32s cubic-bezier(0.45, 0, 0.2, 1) infinite;
  text-align: center;
}
@keyframes enzo8aHeroFade {
  0% { opacity: 0; transform: scale(1.08); }
  3% { opacity: 1; transform: scale(1.08); }
  11% { opacity: 1; transform: scale(1); }
  14% { opacity: 0; transform: scale(0.97); }
  100% { opacity: 0; transform: scale(0.97); }
}
.enzo8a-hero-dots { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.enzo8a-hero-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--wp--preset--color--ivory); opacity: 0.5; }
.enzo8a-hero-dots span:first-child { opacity: 0.9; }

@media (prefers-reduced-motion: reduce) {
  .enzo8a-hero-slide { animation: none; opacity: 0; }
  .enzo8a-hero-slide:first-child { opacity: 1; }
}

/* Cuadrícula simple para tarjetas (áreas, disciplinas, proyectos, insights) */
.enzo8a-grid { display: grid; gap: 24px; }
.enzo8a-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.enzo8a-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.enzo8a-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 782px) {
  .enzo8a-grid--2, .enzo8a-grid--3, .enzo8a-grid--4 { grid-template-columns: 1fr; }
  .enzo8a-hero-slider { height: 320px; }
}

/* ==========================================================================
   Animaciones — paneles de texto, paneles de foto/ícono y cuadros
   destacados. Las clases enzo8a-reveal* las añade animations.js de forma
   automática sobre .enzo8a-card, columnas, imágenes destacadas, etc. — no
   hace falta tocar cada plantilla a mano.
   ========================================================================== */
.enzo8a-reveal {
  opacity: 0;
  filter: blur(10px);
  transition: opacity var(--enzo8a-premium) var(--enzo8a-ease-expo),
    transform var(--enzo8a-premium) var(--enzo8a-ease-expo),
    filter var(--enzo8a-premium) var(--enzo8a-ease-expo);
  will-change: opacity, transform, filter;
}
.enzo8a-reveal--up { transform: translateY(36px); }
.enzo8a-reveal--scale { transform: scale(0.94); }
.enzo8a-reveal--left { transform: translateX(-40px); }
.enzo8a-reveal--right { transform: translateX(40px); }
.enzo8a-reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* Reveal escalonado dentro de un grid/columnas: cada hijo directo entra con un pequeño retraso */
.enzo8a-reveal-parent.is-visible > .enzo8a-reveal { opacity: 1; transform: none; filter: blur(0); }
.enzo8a-reveal-parent.is-visible > .enzo8a-reveal:nth-child(1) { transition-delay: 0.03s; }
.enzo8a-reveal-parent.is-visible > .enzo8a-reveal:nth-child(2) { transition-delay: 0.09s; }
.enzo8a-reveal-parent.is-visible > .enzo8a-reveal:nth-child(3) { transition-delay: 0.15s; }
.enzo8a-reveal-parent.is-visible > .enzo8a-reveal:nth-child(4) { transition-delay: 0.21s; }
.enzo8a-reveal-parent.is-visible > .enzo8a-reveal:nth-child(5) { transition-delay: 0.27s; }
.enzo8a-reveal-parent.is-visible > .enzo8a-reveal:nth-child(6) { transition-delay: 0.33s; }
.enzo8a-reveal-parent.is-visible > .enzo8a-reveal:nth-child(7) { transition-delay: 0.39s; }
.enzo8a-reveal-parent.is-visible > .enzo8a-reveal:nth-child(8) { transition-delay: 0.45s; }
.enzo8a-reveal-parent.is-visible > .enzo8a-reveal:nth-child(n+9) { transition-delay: 0.5s; }

/* Paneles de foto/ícono: además del fade, un leve zoom del contenido visual al aparecer y al pasar el mouse */
.enzo8a-card svg,
.enzo8a-card img,
.wp-block-post-featured-image img {
  transition: transform var(--enzo8a-base) var(--enzo8a-ease);
}
.enzo8a-card:hover svg,
.enzo8a-card:hover img { transform: scale(1.06); }
.enzo8a-hero-slider,
.wp-block-post-featured-image {
  overflow: hidden;
}
.wp-block-post-featured-image:hover img { transform: scale(1.04); }

/* Cuadros de texto importantes: CTA finales (fondo ink) y titulares hero */
.has-ink-background-color.enzo8a-reveal { transform: scale(0.96); }
.enzo8a-split-text .enzo8a-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.5em);
  transition: opacity 0.5s var(--enzo8a-ease), transform 0.5s var(--enzo8a-ease);
}
.enzo8a-split-text.is-visible .enzo8a-char { opacity: 1; transform: none; }

/* ==========================================================================
   Cursor personalizado — resplandor difuminado + anillo giratorio en
   degradado cónico + una leve estela de destellos. Solo en dispositivos
   con puntero fino; premium.js suaviza la posición con lerp.
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .enzo8a-cursor-orb {
    position: fixed;
    top: 0;
    left: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    background: radial-gradient(circle, rgba(217, 58, 44, 0.35) 0%, rgba(0, 146, 168, 0.22) 55%, transparent 75%);
    filter: blur(9px);
    transform: translate3d(-50%, -50%, 0);
    transition: width 0.3s var(--enzo8a-ease-expo), height 0.3s var(--enzo8a-ease-expo);
  }
  .enzo8a-cursor-orb.is-active {
    width: 68px;
    height: 68px;
  }
  .enzo8a-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    pointer-events: none;
    z-index: 9998;
    transform: translate3d(-50%, -50%, 0);
    transition: width 0.25s var(--enzo8a-ease-expo), height 0.25s var(--enzo8a-ease-expo);
  }
  .enzo8a-cursor-ring.is-active {
    width: 48px;
    height: 48px;
  }
  .enzo8a-cursor-ring__inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(from 0deg, var(--wp--preset--color--terracota), var(--wp--preset--color--ocre), var(--wp--preset--color--teal), var(--wp--preset--color--terracota));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
    animation: enzo8aCursorSpin 4.5s linear infinite;
  }
  .enzo8a-cursor-ring.is-active .enzo8a-cursor-ring__inner {
    animation-duration: 1.3s;
  }
  .enzo8a-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--wp--preset--color--ink);
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
  }
  body.enzo8a-has-cursor a,
  body.enzo8a-has-cursor button,
  body.enzo8a-has-cursor .enzo8a-card,
  body.enzo8a-has-cursor .enzo8a-pill {
    cursor: none;
  }
}
@keyframes enzo8aCursorSpin {
  to { transform: rotate(360deg); }
}
.enzo8a-cursor-spark {
  position: fixed;
  top: 0;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--wp--preset--color--ocre);
  pointer-events: none;
  z-index: 9996;
  transform: translate3d(-50%, -50%, 0);
  animation: enzo8aCursorSparkFade 0.7s var(--enzo8a-ease) forwards;
}
@keyframes enzo8aCursorSparkFade {
  0% { opacity: 0.7; transform: translate3d(-50%, -50%, 0) scale(1); }
  100% { opacity: 0; transform: translate3d(-50%, -50%, 0) scale(0.2); }
}

/* ==========================================================================
   Animaciones de botones: relleno deslizante + efecto magnético (vía JS)
   ========================================================================== */
.wp-block-button__link {
  position: relative;
  overflow: hidden;
  transition: transform var(--enzo8a-fast) var(--enzo8a-ease), box-shadow var(--enzo8a-fast) var(--enzo8a-ease);
  z-index: 0;
}
.wp-block-button__link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wp--preset--color--ink);
  transform: translateY(101%);
  transition: transform var(--enzo8a-fast) var(--enzo8a-ease);
  z-index: -1;
  border-radius: inherit;
}
.wp-block-button__link:hover::after { transform: translateY(0); }
.wp-block-button__link:hover {
  box-shadow: 0 14px 26px -14px rgba(55, 64, 80, 0.45);
}
.is-style-outline .wp-block-button__link::after {
  background: var(--wp--preset--color--ink);
}
.is-style-outline .wp-block-button__link:hover {
  color: var(--wp--preset--color--ivory) !important;
}

/* ==========================================================================
   Formularios (Hablemos / Insights)
   ========================================================================== */
.enzo8a-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 620px;
}
.enzo8a-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
@media (max-width: 600px) {
  .enzo8a-form__row { grid-template-columns: 1fr; }
}
.enzo8a-form label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--wp--preset--color--ink);
}
.enzo8a-form input[type="text"],
.enzo8a-form input[type="email"],
.enzo8a-form input[type="tel"],
.enzo8a-form select,
.enzo8a-form textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 13px 16px;
  border: 1px solid rgba(55, 64, 80, 0.18);
  border-radius: 12px;
  background: var(--wp--preset--color--ivory);
  color: var(--wp--preset--color--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.enzo8a-form textarea { resize: vertical; min-height: 120px; }
.enzo8a-form input:focus,
.enzo8a-form select:focus,
.enzo8a-form textarea:focus {
  outline: none;
  border-color: var(--wp--preset--color--teal);
  box-shadow: 0 0 0 3px rgba(0, 146, 168, 0.18);
}
.enzo8a-form__hp { position: absolute; left: -9999px; opacity: 0; }
.enzo8a-form__submit {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.enzo8a-form-message {
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 0.9375rem;
  margin-bottom: 20px;
}
.enzo8a-form-message--success {
  background: rgba(0, 146, 168, 0.12);
  color: var(--wp--preset--color--teal);
  border: 1px solid rgba(0, 146, 168, 0.3);
}
.enzo8a-form-message--error {
  background: var(--wp--preset--color--tinte-calido);
  color: var(--wp--preset--color--terracota-oscuro);
  border: 1px solid var(--wp--preset--color--terracota);
}

/* ==========================================================================
   Red de Expertos: mini-rol en grid + perfil individual
   ========================================================================== */
.enzo8a-experto-rol-mini {
  margin-top: 4px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink-soft);
  letter-spacing: 0.2px;
}
.enzo8a-experto-rol {
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wp--preset--color--terracota);
  letter-spacing: 0.3px;
}
.enzo8a-experto-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}
.enzo8a-experto-social a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--wp--preset--color--ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(55, 64, 80, 0.28);
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.enzo8a-experto-social a:hover {
  color: var(--wp--preset--color--teal);
  border-color: var(--wp--preset--color--teal);
}
.wp-block-post-template .wp-block-group {
  transition: transform 0.35s var(--enzo8a-ease-expo, cubic-bezier(0.16, 1, 0.3, 1));
}
.wp-block-post-template .wp-block-group:hover {
  transform: translateY(-4px);
}

.enzo8a-newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  max-width: 480px;
}
.enzo8a-newsletter-form input[type="email"] {
  flex: 1 1 240px;
  padding: 13px 16px;
  border: 1px solid rgba(55, 64, 80, 0.18);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
}
.enzo8a-newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--wp--preset--color--teal);
  box-shadow: 0 0 0 3px rgba(0, 146, 168, 0.18);
}
.enzo8a-newsletter-form button {
  border: none;
  cursor: pointer;
  font-family: inherit;
}

/* ==========================================================================
   Responsivo — el punto más importante: que todas las páginas se vean
   estéticas y equilibradas en teléfono y tableta. Estrategia: como casi
   todo el espaciado de secciones usa var(--wp--preset--spacing--60/70) y
   toda la tipografía usa var(--wp--preset--font-size--*), reescalar esas
   variables en los breakpoints ajusta el sitio entero sin tocar cada
   plantilla una por una.
   ========================================================================== */
@media (max-width: 960px) {
  :root {
    --wp--preset--spacing--70: 56px !important;
    --wp--preset--spacing--60: 44px !important;
    --wp--preset--spacing--50: 32px !important;
  }
  .enzo8a-hero-slider { height: 380px; }
  .wp-block-post-template.is-layout-grid,
  .enzo8a-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 782px) {
  :root {
    --wp--preset--font-size--hero: clamp(2rem, 8vw, 2.75rem) !important;
    --wp--preset--font-size--xx-large: clamp(1.6rem, 6vw, 2.1rem) !important;
    --wp--preset--font-size--x-large: clamp(1.35rem, 5vw, 1.6rem) !important;
    --wp--preset--font-size--large: clamp(1.05rem, 3.6vw, 1.2rem) !important;
  }
  .wp-block-columns { gap: 28px !important; }
  .wp-block-column { flex-basis: 100% !important; width: 100% !important; }
  .enzo8a-hero-slider { height: 340px; border-radius: 16px; }
  .enzo8a-feature-list { text-align: center; }
  .enzo8a-experto-social { justify-content: center; }
}

@media (max-width: 600px) {
  :root {
    --wp--preset--spacing--70: 40px !important;
    --wp--preset--spacing--60: 28px !important;
    --wp--preset--spacing--50: 24px !important;
    --wp--preset--spacing--40: 18px !important;
  }
  .site-header { padding-left: var(--wp--preset--spacing--40) !important; padding-right: var(--wp--preset--spacing--40) !important; }
  .enzo8a-hero-slider { height: 300px; }
  .wp-block-post-template.is-layout-grid,
  .enzo8a-grid--2, .enzo8a-grid--3, .enzo8a-grid--4 { grid-template-columns: 1fr !important; }
  .enzo8a-pill { font-size: 13px; padding: 8px 14px; }
  h1, h2, h3 { word-break: break-word; overflow-wrap: break-word; }
  .wp-block-buttons { justify-content: center !important; }
  .wp-block-button { width: 100%; max-width: 340px; }
  .wp-block-button__link { display: block; text-align: center; }
}

@media (max-width: 480px) {
  .enzo8a-hero-slide { padding: 0 var(--wp--preset--spacing--30, 16px); }
  .enzo8a-lang-switch { margin-right: 0; }
}

/* Evita desbordes horizontales por texto o elementos anchos en pantallas angostas */
html, body { overflow-x: hidden; max-width: 100%; }
img, svg, video, iframe, .wp-block-post-featured-image, .wp-block-image { max-width: 100%; height: auto; }

/* ==========================================================================
   Accesibilidad: respeta "reducir movimiento" del sistema
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .enzo8a-reveal,
  .enzo8a-split-text .enzo8a-char,
  .enzo8a-card,
  .enzo8a-card svg,
  .enzo8a-card img,
  .wp-block-post-featured-image img,
  .wp-block-button__link {
    transition: none !important;
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
  }
  .enzo8a-cursor-orb,
  .enzo8a-cursor-ring,
  .enzo8a-cursor-dot,
  .enzo8a-cursor-spark { display: none; }
  .enzo8a-marquee__track { animation: none; }
}
