:root {
  --c-bg: #122436;
  --c-bg-dark: #0a1622;
  --c-surface: #1a3148;
  --c-surface-2: #213b55;
  --c-surface-3: #284660;
  --c-navy: #1e4a72;
  --c-navy-bright: #25608f;
  --c-teal: #00c2cb;
  --c-teal-dim: #0096a0;
  --c-teal-glow: rgba(0, 194, 203, 0.18);
  --c-blue: #3a8fd4;
  --c-emergency: #ff3b3b;
  --c-amber: #f59e0b;
  --c-success: #10b981;
  --c-text: #f4f8fb;
  --c-text-2: #a8c0d4;
  --c-text-muted: #6e92ad;
  --c-border: rgba(0, 194, 203, 0.24);
  --c-border-subtle: rgba(255, 255, 255, 0.1);
  --c-white: #ffffff;
  --c-white-soft: rgba(255, 255, 255, 0.92);
  --c-white-glow: rgba(255, 255, 255, 0.08);
  --c-white-line: rgba(255, 255, 255, 0.18);
  --c-header: rgba(18, 36, 54, 0.9);
  --c-header-scrolled: rgba(18, 36, 54, 0.97);
  --c-light-bg: #ffffff;
  --c-light-bg-soft: #f4f8fb;
  --c-light-text: #0f1a28;
  --c-light-text-2: #3d5568;
  --c-light-text-muted: #6b8499;
  --c-light-border: rgba(15, 26, 40, 0.1);
  --c-light-surface: #f7fafc;
  --font-display: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 16px; --r-pill: 999px;
  --shadow-card: 0 8px 28px rgba(8, 28, 48, 0.22);
  --glow-teal: 0 0 28px rgba(0, 194, 203, 0.22);
  --glow-red: 0 0 20px rgba(255, 59, 59, 0.35);
  --t-fast: 0.15s ease; --t-normal: 0.25s ease;
  --max-width: 1200px;
  --nav-height: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--c-text);
  background-color: var(--c-bg);
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -15%, rgba(58, 143, 212, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(0, 194, 203, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 35% at 0% 80%, rgba(37, 96, 143, 0.1) 0%, transparent 45%);
  padding-top: var(--nav-height);
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-teal); }

.h-hero { font-family: var(--font-display); font-size: clamp(42px, 6vw, 76px); font-weight: 800; line-height: 1; letter-spacing: -0.01em; text-transform: uppercase; margin: 0; }
.h1 { font-family: var(--font-display); font-size: clamp(32px, 4vw, 52px); font-weight: 700; line-height: 1.1; text-transform: uppercase; margin: 0 0 var(--sp-4); }
.h2 { font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.15; text-transform: uppercase; margin: 0 0 var(--sp-4); }
.h3 { font-family: var(--font-display); font-size: clamp(20px, 2.5vw, 28px); font-weight: 600; line-height: 1.2; margin: 0 0 var(--sp-3); }
.h4 { font-family: var(--font-body); font-size: 18px; font-weight: 600; margin: 0 0 var(--sp-2); }
.body-lg { font-size: 17px; line-height: 1.7; color: var(--c-text-2); }
.body-sm { font-size: 13px; color: var(--c-text-2); }
.label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; }
.stat { font-family: var(--font-mono); font-size: clamp(36px, 5vw, 56px); font-weight: 500; color: var(--c-teal); }

.btn {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 11px 22px; border-radius: var(--r-sm);
  border: 1.5px solid transparent; cursor: pointer;
  text-decoration: none; transition: all var(--t-normal);
  white-space: nowrap;
}
.btn-primary { background: var(--c-teal); color: #000; border-color: var(--c-teal); }
.btn-primary:hover { background: #00DADB; box-shadow: var(--glow-teal); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--c-teal); border-color: var(--c-teal); }
.btn-outline:hover { background: var(--c-teal-glow); }
.btn-emergency { background: var(--c-emergency); color: #fff; border-color: var(--c-emergency); animation: emergency-pulse 2s infinite; }
.btn-ghost { background: transparent; color: var(--c-text-2); border-color: var(--c-border-subtle); }
.btn-ghost:hover { color: var(--c-text); border-color: var(--c-teal); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
@keyframes emergency-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(255,59,59,0); }
}

.section { padding: var(--sp-9) var(--sp-5); max-width: var(--max-width); margin: 0 auto; }
.section-full { padding: var(--sp-9) var(--sp-5); width: 100%; }
.section-header { margin-bottom: var(--sp-7); text-align: center; }

/* Optional section themes (assign class or data-section-theme from CMS later) */
.section-bright {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
  border-top: 1px solid var(--c-white-line);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.section-bright .section-label {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--c-white-line);
  color: var(--c-white-soft);
}
.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-top: 1px solid var(--c-white-line);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
/* White section — enable via .section-light or style="--section-bg:#fff" from admin */
.section-light,
[data-section-theme="light"] {
  position: relative;
  isolation: isolate;
  color: var(--c-light-text);
  --section-bg: var(--c-light-bg);
}
.section.section-light::before,
.section-full.section-light::before,
.trust-strip.section-light::before,
.compliance-row.section-light::before,
[data-section-theme="light"].section::before,
[data-section-theme="light"].section-full::before {
  content: '';
  position: absolute;
  z-index: -1;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  top: 0;
  bottom: 0;
  background: var(--section-bg, var(--c-light-bg));
}
[data-section-theme="light"] {
  border-top: 1px solid var(--c-light-border);
  border-bottom: 1px solid var(--c-light-border);
}
.section-light .h1, .section-light .h2, .section-light .h3, .section-light .h4,
[data-section-theme="light"] .h1, [data-section-theme="light"] .h2,
[data-section-theme="light"] .h3, [data-section-theme="light"] .h4 { color: var(--c-light-text); }
.section-light .body-lg, .section-light .body-sm,
[data-section-theme="light"] .body-lg, [data-section-theme="light"] .body-sm { color: var(--c-light-text-2); }
.section-light .card, [data-section-theme="light"] .card {
  background: var(--c-light-surface);
  border-color: var(--c-light-border);
}
.section-light .card h3 a, [data-section-theme="light"] .card h3 a { color: var(--c-light-text); }

.panel-white {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid var(--c-white-line);
  border-radius: var(--r-md);
  box-shadow: 0 12px 40px rgba(8, 28, 48, 0.15);
}
.card-highlight {
  border-color: var(--c-white-line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1) 0%, var(--c-surface-2) 42%);
}
.section-label {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-teal);
  background: var(--c-teal-glow); border: 1px solid var(--c-border);
  padding: 5px 12px; border-radius: var(--r-sm); margin-bottom: var(--sp-3);
}

.card {
  background: var(--c-surface-2); border: 1px solid var(--c-border);
  border-radius: var(--r-md); padding: var(--sp-6); transition: all var(--t-normal);
  position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(8, 28, 48, 0.12);
}
.card:hover { background: var(--c-surface-3); border-color: rgba(0, 194, 203, 0.35); transform: translateY(-3px); box-shadow: var(--shadow-card); }
.card-media { border-radius: var(--r-sm); overflow: hidden; margin-bottom: var(--sp-4); aspect-ratio: 16/10; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.bg-grid {
  background-image:
    linear-gradient(rgba(0, 194, 203, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 203, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero.bg-grid { background-image: none; }

.grid-3 { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-2 { display: grid; gap: var(--sp-5); grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }

.site-footer { background: var(--c-surface-2); border-top: 1px solid var(--c-border); margin-top: 0; }
.site-footer > .footer-inner.section {
  padding-top: var(--sp-7);
  padding-bottom: var(--sp-7);
}
.footer-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer-heading { color: var(--c-text); margin: 0 0 var(--sp-4); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--c-text-2); text-decoration: none; font-size: 14px; }
.footer-links a:hover { color: var(--c-teal); }
.footer-links li { margin-bottom: var(--sp-2); }
.footer-link { display: block; color: var(--c-text-2); text-decoration: none; margin-bottom: var(--sp-2); font-size: 14px; }
.footer-bar { border-top: 1px solid var(--c-border-subtle); padding: var(--sp-4) var(--sp-5); }
.footer-bar-inner { max-width: var(--max-width); margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); }
.status-live { color: var(--c-teal); }
.footer-emergency { margin-top: var(--sp-5); }
.footer-emergency .label { display: block; margin-bottom: var(--sp-2); color: var(--c-text-muted); }

.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}

.emergency-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(18, 36, 54, 0.88);
  display: flex; align-items: center; justify-content: center;
}
.emergency-overlay.hidden { display: none; }
.emergency-modal { text-align: center; padding: var(--sp-6); max-width: 420px; }
.emergency-close { position: absolute; top: 24px; right: 24px; background: none; border: none; color: var(--c-text); font-size: 24px; cursor: pointer; }
.emergency-label { color: var(--c-emergency); }

.form-group { margin-bottom: var(--sp-4); }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: var(--sp-2); color: var(--c-text-2); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--c-border); background: var(--c-surface-3); color: var(--c-text);
  font-family: var(--font-body); font-size: 15px;
}
.form-msg { margin-top: var(--sp-3); font-size: 14px; }
.form-msg.ok { color: var(--c-success); }
.form-msg.err { color: var(--c-emergency); }

.page-hero { padding: var(--sp-8) var(--sp-5) var(--sp-7); max-width: var(--max-width); margin: 0 auto; }
.page-hero .body-lg { max-width: 640px; }

/* Progressive reveal — content stays visible unless JS enables animations */
html.js [data-reveal]:not(.revealed) {
  opacity: 0;
  transform: translateY(16px);
}
html.js [data-reveal].revealed {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal]:not(.revealed) {
    opacity: 1;
    transform: none;
  }
}
