/* =====================================================================
   Vive la Misericordia - Main Stylesheet
   Compatible con WordPress 6.x y Elementor • Responsive 100%
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400..800;1,9..40,400..700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #FFFFFF;
  --bg-alt: #F4F6F9;
  --bg-card: #FFFFFF;
  --text-main: #333333;
  --text-sub: #555555;
  --border-color: #DDE3EA;

  --brand-dark: #073b4c;
  --brand-cyan: #118ab2;
  --brand-gold: #efbd49;
  --brand-gold-hover: #e0ac32;
  --brand-cyan-hover: #0d7496;
  --brand-dark-hover: #052b38;
}

html.dark {
  --bg-main: #0B1922;
  --bg-alt: #122634;
  --bg-card: #152C3C;
  --text-main: #F0F4F8;
  --text-sub: #C2D1DE;
  --border-color: #224358;
}

body {
  font-family: 'Plus Jakarta Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

html:not(.dark) .text-base-ink {
  color: #333333;
}
html.dark .text-base-ink {
  color: #F0F4F8;
}

html:not(.dark) .text-sub-ink {
  color: #555555;
}
html.dark .text-sub-ink {
  color: #C2D1DE;
}

/* Regla estricta: Versión móvil y menú hamburguesa SIN efecto de zoom ni movimiento */
#mobile-menu,
#mobile-menu *,
.no-motion,
.no-motion * {
  transition: none !important;
  transform: none !important;
  animation: none !important;
}

@media (max-width: 1023px) {
  *, *::before, *::after {
    transform: none !important;
    transition-property: background-color, border-color, color, opacity !important;
    transition-duration: 0s !important;
    animation: none !important;
  }
}

/* Estilos de foco accesibles */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #118ab2;
  outline-offset: 2px;
}

/* Scrollbar limpio */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F4F6F9;
}
html.dark ::-webkit-scrollbar-track {
  background: #0B1922;
}
::-webkit-scrollbar-thumb {
  background: #118ab2;
  border-radius: 4px;
}

/* Compatibilidad con WordPress Admin Bar */
.admin-bar header.sticky {
  top: 32px;
}
.admin-bar aside#mobile-menu {
  top: 32px;
}
@media screen and (max-width: 782px) {
  .admin-bar header.sticky {
    top: 46px;
  }
  .admin-bar aside#mobile-menu {
    top: 46px;
  }
}

/* Estilos limpios para Widgets de Menú nativos de WordPress en el Footer */
.vlm-footer-widget ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.vlm-footer-widget ul.menu li a {
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: color 0.15s ease;
}
.vlm-footer-widget ul.menu li a:hover {
  color: #efbd49;
}
.vlm-footer-widget ul.menu li.vlm-gold-link a {
  color: #efbd49;
  font-weight: 700;
}

/* Elementor Full-Width Fixes (Elimina padding extra de contenedores Elementor si se usa full_width) */
.elementor-section.elementor-section-boxed > .elementor-container {
  max-width: 100%;
}
.elementor-column-gap-default > .elementor-column > .elementor-element-populated {
  padding: 0;
}
