/* ============================================================
   Webaldia — sistema de diseño
   Azul marino oscuro + verde accent (mantenimiento WordPress)
   Tema claro, limpio, profesional
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Surfaces */
  --bg-0: #ffffff;
  --bg-1: #f8fafc;
  --bg-2: #f1f5f9;
  --bg-3: #e2e8f0;

  /* Text */
  --text:    #0B2545;
  --text-2:  #475569;
  --text-3:  #94a3b8;

  /* Borders */
  --border:        #e2e8f0;
  --border-strong: #cbd5e1;

  /* Brand — navy blue */
  --primary:       #0B2545;
  --primary-soft:  rgba(11, 37, 69, 0.08);

  /* Accent — green */
  --accent:        #4CB944;
  --accent-soft:   rgba(76, 185, 68, 0.10);
  --accent-strong: #3d9436;

  /* Status */
  --success: #10b981;
  --warning: #f59e0b;
  --danger:  #ef4444;

  /* Radii / shadows */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --shadow-1: 0 4px 16px rgba(11, 37, 69, 0.06);
  --shadow-2: 0 12px 40px rgba(11, 37, 69, 0.10);
  --shadow-3: 0 24px 60px rgba(11, 37, 69, 0.14);

  /* Layout */
  --container: 1180px;
  --nav-h: 68px;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg-0);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Background ambient */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(60% 40% at 80% 0%, rgba(76, 185, 68, 0.05), transparent 70%),
    radial-gradient(50% 40% at 0% 60%, rgba(11, 37, 69, 0.04), transparent 70%);
  pointer-events: none; z-index: 0;
}
body > * { position: relative; z-index: 1; }
#wa-nav-mount { z-index: 200; }

a { color: inherit; text-decoration: none; }

/* ============================================================
   Tipografía
   ============================================================ */
h1, h2, h3 { font-family: 'Inter', system-ui, sans-serif; letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; color: var(--primary); }
h1 { font-size: clamp(36px, 5vw, 58px); }
h2 { font-size: clamp(28px, 3.4vw, 42px); }
h3 { font-size: clamp(20px, 1.8vw, 24px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); color: var(--accent-strong);
  border: 1px solid rgba(76, 185, 68, 0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: wa-pulse 2s ease-in-out infinite;
}

.muted  { color: var(--text-2); }
.faint  { color: var(--text-3); }

/* ============================================================
   Container
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Botones
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--r-md);
  padding: 13px 22px;
  font-family: inherit; font-weight: 600; font-size: 15px;
  cursor: pointer; user-select: none;
  border: 1px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--accent); color: white;
  box-shadow: 0 6px 24px rgba(76, 185, 68, 0.25);
  font-weight: 700;
}
.btn--primary:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(76, 185, 68, 0.35);
}

.btn--secondary {
  background: var(--primary); color: white;
  box-shadow: 0 6px 24px rgba(11, 37, 69, 0.25);
}
.btn--secondary:hover {
  background: #091d38;
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(11, 37, 69, 0.35);
}

.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn--sm { padding: 9px 16px; font-size: 13px; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  background: var(--bg-0);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
}
.card--hover {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}
.card--hover:hover {
  transform: translateY(-3px);
  border-color: rgba(76, 185, 68, 0.40);
  box-shadow: var(--shadow-2);
}

/* ============================================================
   Top nav (inyectada por nav.js)
   ============================================================ */
.wa-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
}
.wa-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 8px rgba(11, 37, 69, 0.06);
}
.wa-nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em; color: var(--primary);
}
.wa-nav__brand img { height: 120px; width: auto; }
.wa-nav__links {
  display: flex; align-items: center; gap: 28px;
}
.wa-nav__link {
  position: relative;
  color: var(--text-2);
  font-size: 14px; font-weight: 500;
  transition: color 0.2s ease;
  padding: 6px 2px;
}
.wa-nav__link:hover, .wa-nav__link.is-active { color: var(--text); }
.wa-nav__link.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.wa-nav__cta {
  background: var(--accent); color: white;
  border: none; border-radius: 8px;
  padding: 9px 18px; font-family: inherit; font-weight: 700; font-size: 13px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 4px 18px rgba(76, 185, 68, 0.25);
  text-decoration: none;
}
.wa-nav__cta:hover { transform: translateY(-2px); background: var(--accent-strong); box-shadow: 0 8px 26px rgba(76, 185, 68, 0.35); }
.wa-nav__burger { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

@media (max-width: 880px) {
  .wa-nav { padding: 0 16px; }
  .wa-nav__links {
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 14px 16px 18px;
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .wa-nav.is-open .wa-nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .wa-nav__link { padding: 12px 4px; border-bottom: 1px solid var(--border); }
  .wa-nav__link.is-active::after { display: none; }
  .wa-nav__cta { width: 100%; margin-top: 10px; padding: 12px 18px; text-align: center; }
  .wa-nav__burger { display: inline-flex; }
}

/* ============================================================
   Footer
   ============================================================ */
.wa-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
  margin-top: 80px;
  color: var(--text-3);
  font-size: 14px;
}
.wa-footer .row {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.wa-footer .brand {
  font-size: 20px; font-weight: 800; color: var(--primary);
  display: flex; align-items: center; gap: 8px;
}
.wa-footer .brand img { height: 120px; }
.wa-footer .links { display: flex; gap: 22px; }
.wa-footer .links a { color: var(--text-2); transition: color 0.2s ease; }
.wa-footer .links a:hover { color: var(--text); }
.wa-footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.wa-footer__grid h4 { font-size: 14px; font-weight: 700; color: var(--primary); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.wa-footer__grid ul { list-style: none; }
.wa-footer__grid li { margin-bottom: 8px; }
.wa-footer__grid a { color: var(--text-2); transition: color 0.2s; font-size: 14px; }
.wa-footer__grid a:hover { color: var(--accent); }
.wa-footer__desc { color: var(--text-2); font-size: 14px; line-height: 1.7; max-width: 320px; }
.wa-footer__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 24px; border-top: 1px solid var(--border);
  flex-wrap: wrap; gap: 16px;
}

@media (max-width: 720px) {
  .wa-footer__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================================
   Reveal-on-scroll
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-from="left"]  { transform: translateX(-32px); }
.reveal[data-from="right"] { transform: translateX(32px); }
.reveal[data-from="left"].is-visible,
.reveal[data-from="right"].is-visible { transform: none; }

/* ============================================================
   Animaciones
   ============================================================ */
@keyframes wa-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.85); }
}
@keyframes wa-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-strong); }

/* Selection */
::selection { background: var(--accent); color: white; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
