/*
Theme Name: GAD Manú Modern
Theme URI: https://manu.gob.ec/loja/
Author: Ilion Systems
Author URI: https://manu.gob.ec/loja/
Description: Tema institucional ultrarrápido y accesible para el GAD Parroquial Rural Manú (Cantón Saraguro, Loja). Desarrollado con arquitectura nativa de WordPress, Tailwind CSS, compatibilidad completa con WPBakery Page Builder (pestañas y tours) y Shortcodes Ultimate.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: gad-manu-modern
*/

:root {
  --color-primary: #166534;
  --color-primary-dark: #0f291e;
  --color-secondary: #15803d;
  --color-sun: #eab308;
  --color-sun-hover: #ca8a04;
  --color-bg-light: #f8fafc;
  --color-surface: #ffffff;
  --color-text-main: #1e293b;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
}

/* Tipografía y accesibilidad */
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-bg-light);
}

body.a11y-high-contrast {
  filter: contrast(135%) brightness(95%);
  background-color: #000000 !important;
  color: #ffffff !important;
}

body.a11y-font-large {
  font-size: 115% !important;
}

body.a11y-font-xlarge {
  font-size: 130% !important;
}

/* Dropdown Navigation con Zona Segura y Retardo Suave */
.dropdown {
  position: relative;
}
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 12px;
}

.dropdown-menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  transition-delay: 0.18s; /* Retardo de salida para saltar de pestaña con comodidad */
}

.dropdown:hover > .dropdown-menu,
.dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0s; /* Abre instantáneamente */
}

/* Ocultar barra superior de wp si se requiere o ajustar margen */
#wpadminbar {
  opacity: 0.9;
}

/* ========================================================
   ESTILOS MODERNOS PARA PESTAÑAS WPBAKERY Y SHORTCODES
   ======================================================== */
.wp-content {
  color: #334155;
  font-size: 1rem;
  line-height: 1.75;
}

.wp-content a {
  color: #166534;
  font-weight: 600;
  text-decoration: underline;
  transition: color 0.15s ease;
}
.wp-content a:hover {
  color: #15803d;
}

.wp-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.wp-content th, .wp-content td {
  border: 1px solid #e2e8f0;
  padding: 10px 14px;
  text-align: left;
}
.wp-content th {
  background-color: #0f291e;
  color: #ffffff;
  font-weight: 700;
}
.wp-content tr:nth-child(even) {
  background-color: #f8fafc;
}
.wp-content tr:hover {
  background-color: #f1f5f9;
}

.wp-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem auto;
}

/* Estilos de pestañas WPBakery Tour / Tabs */
.vc_tta-tabs-container {
  margin-bottom: 1.5rem;
}
.vc_tta-tabs-list {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  border-bottom: 2px solid #e2e8f0 !important;
  padding-bottom: 8px !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
.vc_tta-tab {
  margin: 0 !important;
}
.vc_tta-tab > a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 16px !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  font-size: 0.875rem !important;
  text-decoration: none !important;
  border: 1px solid #e2e8f0 !important;
  transition: all 0.2s ease !important;
}
.vc_tta-tab.vc_active > a,
.vc_tta-tab > a:hover {
  background: #166534 !important;
  color: #ffffff !important;
  border-color: #166534 !important;
  box-shadow: 0 2px 4px rgba(22, 101, 52, 0.2) !important;
}
.vc_tta-panel-body {
  padding: 1.5rem 0 !important;
}

/* Estilos para Shortcodes Ultimate (su_spoiler, su_accordion) */
.su-accordion {
  margin: 1.5rem 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #ffffff !important;
}
.su-spoiler {
  margin: 0 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}
.su-spoiler:last-child {
  border-bottom: none !important;
}
.su-spoiler-title {
  padding: 12px 18px !important;
  background: #f8fafc !important;
  color: #0f291e !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}
.su-spoiler-title:hover {
  background: #f0fdf4 !important;
  color: #166534 !important;
}
.su-spoiler-content {
  padding: 16px 20px !important;
  background: #ffffff !important;
}
