/* ===== DESIGN SYSTEM ===== */
:root {
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --primary-200: #bfdbfe;
  --primary-300: #93c5fd;
  --primary-400: #60a5fa;
  --primary-500: #1a73e8;
  --primary-600: #0b5ed7;
  --primary-700: #0a4da8;
  --primary-800: #0c3a7a;
  --primary-900: #0a2554;
  --primary-950: #041833;

  --accent: #06b6d4;
  --accent-dark: #0891b2;
  --accent-light: #67e8f9;

  --gold: #f59e0b;
  --gold-dark: #d97706;

  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --surface-dark: #0f172a;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-inverse: #ffffff;

  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --shadow-xs: 0 1px 2px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,.1);
  --shadow-xl: 0 20px 60px rgba(0,0,0,.12);
  --shadow-2xl: 0 30px 80px rgba(0,0,0,.15);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.35s var(--ease-out);
  --transition-fast: 0.2s var(--ease-out);
  --transition-spring: 0.5s var(--ease-spring);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection { background: var(--primary-500); color: white; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--surface-alt); }
::-webkit-scrollbar-thumb { background: var(--primary-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-400); }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== CONTAINER ===== */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 900px; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary-600), var(--accent), var(--primary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 14px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.08rem;
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.8;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.15);
  transform: translateX(-100%) skewX(-15deg);
  transition: 0.5s;
}

.btn:hover::after { transform: translateX(100%) skewX(-15deg); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white;
  box-shadow: 0 4px 20px rgba(10,77,168,.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(10,77,168,.4);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: white;
  box-shadow: 0 4px 20px rgba(6,182,212,.3);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(6,182,212,.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary-600);
  color: var(--primary-700);
}

.btn-outline:hover {
  background: var(--primary-600);
  color: white;
  transform: translateY(-2px);
}

.btn-white {
  background: white;
  color: var(--primary-700);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-ghost {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
}

.btn-ghost:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }

.btn-sm { padding: 10px 22px; font-size: 0.85rem; }
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ===== NAVIGATION ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid rgba(0,0,0,.05);
  transition: var(--transition);
}

.nav.scrolled { box-shadow: var(--shadow-lg); }

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--primary-600), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(10,77,168,.25);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-900);
  line-height: 1.2;
}

.nav-logo-text small {
  display: block;
  font-weight: 500;
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav-links { display: flex; align-items: center; gap: 6px; }

.nav-links a {
  padding: 8px 18px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  transition: var(--transition);
  position: relative;
}

.nav-links a:not(.btn):hover {
  background: var(--primary-50);
  color: var(--primary-700);
}

.nav-links .nav-cta {
  background: linear-gradient(135deg, var(--primary-600), var(--primary-700));
  color: white !important;
  padding: 10px 24px;
  box-shadow: 0 4px 14px rgba(10,77,168,.25);
}

.nav-links .nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,77,168,.35); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 28px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 4px;
  transition: var(--transition);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; transform: translateX(-10px); }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== PAGE HERO (for service pages) ===== */
.page-hero {
  position: relative;
  padding: 140px 0 80px;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-950) 0%, var(--primary-800) 40%, var(--primary-600) 100%);
}

.page-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(6,182,212,.2) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(96,165,250,.15) 0%, transparent 50%);
}

.page-hero-pattern {
  position: absolute;
  inset: 0;
  opacity: .03;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Ccircle cx='40' cy='40' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}

.page-hero .container { position: relative; z-index: 2; }

.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  color: white;
  margin-bottom: 16px;
}

.page-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.75);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 28px;
}

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 24px;
}

.page-hero-breadcrumb a { color: var(--accent-light); }
.page-hero-breadcrumb a:hover { text-decoration: underline; }
.page-hero-breadcrumb span { color: rgba(255,255,255,.7); }

/* ===== SERVICE CARD VARIANTS ===== */
.service-card-alt {
  background: var(--surface);
  border-radius: var(--radius-md);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card-alt::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-500), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}

.service-card-alt:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.service-card-alt:hover::before { transform: scaleX(1); }

.service-card-alt .icon-wrap {
  width: 60px; height: 60px;
  border-radius: var(--radius-sm);
  background: var(--primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-600);
  margin-bottom: 20px;
  transition: var(--transition-spring);
}

.service-card-alt:hover .icon-wrap {
  background: var(--primary-600);
  color: white;
  transform: scale(1.1) rotate(-6deg);
}

.service-card-alt h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.service-card-alt p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.service-card-alt .card-link {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--primary-600);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-card-alt .card-link:hover { gap: 12px; }

/* ===== CONTENT SECTION (service pages) ===== */
.content-section {
  padding: 80px 0;
}

.content-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 20px;
}

.content-section h2 .gradient-text { display: inline; }

.content-section p {
  color: var(--text-secondary);
  font-size: 1.02rem;
  line-height: 1.9;
  margin-bottom: 16px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.content-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.content-image-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--primary-100), var(--primary-200));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.content-image-placeholder i {
  font-size: 5rem;
  color: var(--primary-300);
}

/* Condition list */
.condition-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 20px 0;
}

.condition-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--primary-50);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--primary-800);
}

.condition-item i { color: var(--primary-500); font-size: 0.85rem; }

/* Procedure steps */
.procedure-steps {
  display: grid;
  gap: 20px;
  margin: 24px 0;
}

.procedure-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.procedure-step:hover { border-color: var(--primary-300); box-shadow: var(--shadow-md); }

.procedure-step-number {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.procedure-step-text h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.procedure-step-text p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-bottom: 0;
}

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 12px; max-width: 800px; margin: 24px auto 0; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover { border-color: var(--primary-300); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
  transition: var(--transition);
}

.faq-question:hover { background: var(--surface-alt); }

.faq-question i {
  font-size: 0.8rem;
  color: var(--primary-500);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-question i { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.8;
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-900), var(--primary-700));
  border-radius: var(--radius-lg);
  padding: 60px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(6,182,212,.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(96,165,250,.1) 0%, transparent 50%);
}

.cta-banner * { position: relative; z-index: 2; }

.cta-banner h2 {
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 12px;
}

.cta-banner p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .btn-wrap { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer {
  background: var(--surface-dark);
  color: rgba(255,255,255,.65);
  position: relative;
}

.footer-top {
  padding: 64px 0 40px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}

.footer-brand .nav-logo-text { color: white; }
.footer-brand .nav-logo-text small { color: rgba(255,255,255,.4); }

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin: 16px 0 24px;
  color: rgba(255,255,255,.5);
}

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

.footer-social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.5);
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--primary-600);
  color: white;
  transform: translateY(-3px);
}

.footer h4 {
  font-family: var(--font-body);
  font-weight: 700;
  color: white;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,.5);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
  padding-left: 6px;
}

.footer-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.9rem;
  color: rgba(255,255,255,.5);
}

.footer-contact-item i {
  color: var(--accent-light);
  margin-top: 5px;
  min-width: 16px;
  font-size: 0.85rem;
}

.footer-bottom {
  padding: 20px 0;
  text-align: center;
  font-size: 0.84rem;
  color: rgba(255,255,255,.3);
}

/* ===== WHATSAPP FLOAT ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
  transition: var(--transition-spring);
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 8px 30px rgba(37,211,102,.45);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-500), var(--primary-600));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top:hover { transform: translateY(-4px) scale(1.05); box-shadow: var(--shadow-xl); }

/* ===== ANIMATIONS ===== */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.fade-in-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
  .condition-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .nav .container { height: 68px; }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(24px);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-xl);
    transform: translateY(-120%);
    transition: var(--transition);
    border-bottom: 1px solid var(--border);
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-links a { width: 100%; padding: 12px 18px; }
  .nav-links .nav-cta { text-align: center; }

  .nav-toggle { display: flex; }

  .page-hero { padding: 110px 0 60px; }

  .cta-banner { padding: 40px 24px; }
  .cta-banner .btn-wrap { flex-direction: column; align-items: center; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-social { justify-content: center; }
  .footer-contact-item { justify-content: center; }
  .procedure-step { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .page-hero h1 { font-size: 1.8rem; }
  .section-header h2 { font-size: 1.7rem; }
  .btn-lg { padding: 14px 28px; font-size: 0.95rem; }
}
