/* ===== RESET & ROOT ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --bg: #f8fafc;
  --bg-card: #ffffff;
  --navy: #0f172a;
  --navy-light: #1e293b;
  --navy-mid: #334155;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-light: #eff6ff;
  --blue-mid: #dbeafe;
  --border: #e2e8f0;
  --border-dark: #cbd5e1;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
  --shadow-xl: 0 24px 64px rgba(0,0,0,0.12), 0 8px 24px rgba(0,0,0,0.06);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--blue);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ===== LOADER ===== */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 9998;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.loader-logo span {
  color: var(--blue);
}

.loader-bar {
  width: 160px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  background: var(--blue);
  border-radius: 3px;
  animation: loaderFill 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderFill {
  0% { width: 0%; }
  60% { width: 70%; }
  100% { width: 100%; }
}

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.nav-logo span {
  color: var(--blue);
}

.nav-logo-icon {
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-links a {
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 14px;
  right: 14px;
  height: 1.5px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--navy);
  background: transparent;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

.nav-links a.active {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-cta {
  background: var(--blue) !important;
  color: white !important;
  padding: 9px 20px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  transition: var(--transition) !important;
}

.nav-cta:hover {
  background: var(--blue-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-hamburger:hover { background: var(--bg); }

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== MOBILE NAV ===== */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 12px;
  transition: var(--transition);
  letter-spacing: -0.03em;
}

.mobile-nav a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.mobile-nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: var(--transition);
}

.mobile-nav-close:hover { background: var(--bg); }

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section { position: relative; }

/* ===== TYPOGRAPHY UTILS ===== */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 540px;
}

.blue-text { color: var(--blue); }

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 60%, #2563eb 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShiftBase 4s linear infinite;
}
@keyframes gradientShiftBase {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
  font-family: var(--font);
}

.btn-primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0s;
}

.btn-primary:hover::after {
  animation: btnShine 0.55s forwards;
}

@keyframes btnShine {
  to { left: 160%; }
}

.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.38);
}

.btn-outline {
  background: white;
  color: var(--navy);
  border: 1.5px solid var(--border-dark);
}

.btn-outline:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.btn-ghost {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--border);
}

/* ===== CARD ===== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-dark);
  transform: translateY(-2px);
}

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.visible { opacity: 1; transform: scale(1); }

[data-delay="1"] { transition-delay: 0.08s; }
[data-delay="2"] { transition-delay: 0.16s; }
[data-delay="3"] { transition-delay: 0.24s; }
[data-delay="4"] { transition-delay: 0.32s; }
[data-delay="5"] { transition-delay: 0.40s; }
[data-delay="6"] { transition-delay: 0.48s; }

/* ===== TAG ===== */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.775rem;
  font-weight: 500;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: var(--border);
  width: 100%;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  padding: 72px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.footer-brand .nav-logo {
  color: white;
  font-size: 1.2rem;
}

.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 14px 0 24px;
  max-width: 260px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition);
}

.footer-socials a:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

.footer-col ul a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom p {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: var(--transition);
}

.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 100;
  border: none;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--blue); transform: translateY(-2px); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ===== CUSTOM CURSOR — disabled ===== */
.cursor-dot,
.cursor-ring { display: none; }

/* ===== SECTION LABEL ENHANCEMENT ===== */
.section-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #7c3aed);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ===== IMPROVED CARD HOVER ===== */
.card:hover {
  box-shadow:
    0 0 0 1px rgba(37,99,235,0.08),
    0 16px 48px rgba(37,99,235,0.08),
    0 4px 12px rgba(0,0,0,0.05);
  border-color: rgba(37,99,235,0.15);
  transform: translateY(-3px);
}

/* ===== TAG ENHANCEMENT ===== */
.tag {
  background: var(--bg);
  border: 1px solid var(--border);
  transition: var(--transition);
}
.tag:hover {
  background: var(--blue-light);
  border-color: var(--blue-mid);
  color: var(--blue);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 520px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.15);
  z-index: 9997;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(120px);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
  pointer-events: none;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-text h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cookie-banner-text p {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.cookie-banner-text a {
  color: #60a5fa;
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 10px;
}

.cookie-btn-accept {
  flex: 1;
  padding: 10px 18px;
  background: var(--blue);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
}

.cookie-btn-accept:hover {
  background: var(--blue-dark);
}

.cookie-btn-decline {
  padding: 10px 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
  white-space: nowrap;
}

.cookie-btn-decline:hover {
  background: rgba(255,255,255,0.12);
  color: white;
}

@media (max-width: 480px) {
  .cookie-banner { bottom: 16px; left: 16px; right: 16px; padding: 20px; }
  .cookie-banner-actions { flex-direction: column; }
}

/* ===== WHATSAPP BUTTON ===== */
.whatsapp-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.15);
  z-index: 200;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.22s ease;
  animation: waBounce 3s ease-in-out 3s infinite;
}

.whatsapp-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0,0,0,0.15);
  animation: none;
}

.whatsapp-btn svg {
  width: 28px;
  height: 28px;
  fill: white;
  flex-shrink: 0;
}

.whatsapp-tooltip {
  position: absolute;
  right: 66px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--navy);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  padding: 8px 14px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: var(--shadow);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-right: none;
  border-left-color: var(--navy);
}

.whatsapp-btn:hover .whatsapp-tooltip {
  opacity: 1;
}

@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Move back-to-top up when both visible */
.back-to-top {
  bottom: 96px;
}
