@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --obsidian: #06060f;
  --surface-1: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.07);
  --surface-3: rgba(255,255,255,0.10);
  --border: rgba(255,255,255,0.08);
  --border-glow: rgba(240,180,41,0.25);
  --gold: #F0B429;
  --gold-light: #FFD166;
  --gold-dim: rgba(240,180,41,0.15);
  --cyan: #06D6A0;
  --cyan-dim: rgba(6,214,160,0.12);
  --red-accent: #FF6B6B;
  --text-primary: #F0EEE8;
  --text-secondary: rgba(240,238,232,0.55);
  --text-muted: rgba(240,238,232,0.30);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow: 0 0 40px rgba(240,180,41,0.08), 0 20px 60px rgba(0,0,0,0.6);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--obsidian);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  font-size: 15px;
  line-height: 1.6;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(240,180,41,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(6,214,160,0.04) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 50% 50%, rgba(30,20,60,0.5) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(6,6,15,0.8);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { color: var(--text-primary); }
.nav-links {
  display: flex;
  gap: 8px;
  list-style: none;
}
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold);
  background: var(--gold-dim);
}
.nav-cta {
  background: linear-gradient(135deg, var(--gold), #e09c1a) !important;
  color: #000 !important;
  font-weight: 600 !important;
  padding: 8px 18px !important;
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* MAIN WRAP */
.main { position: relative; z-index: 1; padding-top: 64px; }

/* HERO */
.hero {
  padding: 80px 24px 60px;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-dim);
  border: 1px solid var(--border-glow);
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 24px;
}
.hero-badge::before { content: '⚖'; font-size: 0.9em; }
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 40px;
}

/* SECTION */
.section { padding: 60px 24px; max-width: 1200px; margin: 0 auto; }
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  margin-bottom: 8px;
}
.section-title em { font-style: normal; color: var(--gold); }
.section-sub { color: var(--text-secondary); margin-bottom: 40px; font-size: 0.95rem; }

/* GLASS CARD */
.glass-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 32px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.glass-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--shadow-glow);
}

/* CALC GRID */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.calc-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-decoration: none;
  color: var(--text-primary);
  display: block;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.calc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--gold-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}
.calc-card:hover { border-color: var(--border-glow); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.calc-card:hover::before { opacity: 1; }
.calc-icon {
  width: 52px; height: 52px;
  background: var(--gold-dim);
  border: 1px solid var(--border-glow);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.calc-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.calc-card p { color: var(--text-secondary); font-size: 0.87rem; margin-bottom: 20px; line-height: 1.5; }
.calc-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-size: 0.85rem; font-weight: 600;
}

/* FORM ELEMENTS */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-input, .form-select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  appearance: none;
}
.form-input:focus, .form-select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold-dim);
}
.form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23F0B429' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 44px; }
.form-input::placeholder { color: var(--text-muted); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #d4921a 100%);
  color: #000;
  box-shadow: 0 4px 20px rgba(240,180,41,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(240,180,41,0.4); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text-primary);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--border-glow); background: var(--surface-3); }
.btn-ghost {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--border-glow);
}
.btn-ghost:hover { background: var(--gold-dim); }
.btn-full { width: 100%; }
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(37,211,102,0.4); }

/* RESULT BOX */
.result-section {
  display: none;
  margin-top: 32px;
  animation: fadeUp 0.4s ease;
}
.result-section.show { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.result-total {
  background: linear-gradient(135deg, rgba(240,180,41,0.1) 0%, rgba(6,214,160,0.05) 100%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  margin-bottom: 20px;
}
.result-total .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-secondary); margin-bottom: 8px; }
.result-total .amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  color: var(--gold);
}
.result-breakdown {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}
.result-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.result-line .r-label { color: var(--text-secondary); }
.result-line .r-value { font-weight: 600; color: var(--text-primary); }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* DISCLAIMER */
.disclaimer {
  background: rgba(255,107,107,0.06);
  border: 1px solid rgba(255,107,107,0.15);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 20px;
  line-height: 1.5;
}
.disclaimer strong { color: var(--red-accent); }

/* LAWYER CARDS */
.lawyer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; margin-top: 24px; }
.lawyer-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.lawyer-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  opacity: 0;
  transition: opacity 0.3s;
}
.lawyer-card:hover { border-color: var(--border-glow); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.lawyer-card:hover::after { opacity: 1; }
.lawyer-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dim), var(--cyan-dim));
  border: 2px solid var(--border-glow);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 14px;
}
.lawyer-badge {
  position: absolute; top: 16px; right: 16px;
  background: var(--gold-dim);
  border: 1px solid var(--border-glow);
  color: var(--gold);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}
.lawyer-badge.premium { background: rgba(6,214,160,0.12); border-color: rgba(6,214,160,0.25); color: var(--cyan); }
.lawyer-name { font-family: 'Cormorant Garamond', serif; font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.lawyer-spec { color: var(--text-secondary); font-size: 0.8rem; margin-bottom: 10px; }
.lawyer-stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 8px; }
.lawyer-city { color: var(--text-muted); font-size: 0.78rem; display: flex; align-items: center; gap: 4px; margin-bottom: 16px; }
.lawyer-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  padding: 10px;
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.lawyer-btn:hover { background: var(--gold-dim); border-color: var(--border-glow); color: var(--gold); }
.lawyer-btn.wa { background: rgba(37,211,102,0.1); border-color: rgba(37,211,102,0.2); color: #25D366; }
.lawyer-btn.wa:hover { background: rgba(37,211,102,0.2); }

/* FILTER BAR */
.filter-bar {
  display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px;
}
.filter-btn {
  padding: 7px 18px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn.active, .filter-btn:hover { border-color: var(--border-glow); background: var(--gold-dim); color: var(--gold); }

/* FOOTER */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 24px 32px;
  margin-top: 80px;
  position: relative;
  z-index: 1;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-secondary); font-size: 0.85rem; margin-top: 10px; line-height: 1.6; }
.footer-col h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--gold); font-weight: 600; margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.85rem; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text-primary); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; color: var(--text-muted); font-size: 0.78rem; }

/* PAGE CONTENT (legal pages) */
.page-content { max-width: 800px; margin: 0 auto; padding: 80px 24px; }
.page-content h1 { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; font-weight: 600; margin-bottom: 8px; }
.page-content .date { color: var(--text-muted); font-size: 0.82rem; margin-bottom: 40px; }
.page-content h2 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; margin: 32px 0 12px; color: var(--gold); }
.page-content p { color: var(--text-secondary); margin-bottom: 14px; line-height: 1.7; font-size: 0.92rem; }
.page-content ul { color: var(--text-secondary); padding-left: 20px; margin-bottom: 14px; }
.page-content ul li { margin-bottom: 6px; line-height: 1.7; font-size: 0.92rem; }

/* STATS ROW */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 40px 0; }
.stat-card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
}
.stat-value { font-family: 'Cormorant Garamond', serif; font-size: 2rem; font-weight: 700; color: var(--gold); }
.stat-label { color: var(--text-secondary); font-size: 0.78rem; margin-top: 4px; }

/* COOKIE BANNER */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: rgba(6,6,15,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner p { font-size: 0.82rem; color: var(--text-secondary); flex: 1; min-width: 200px; }
.cookie-banner a { color: var(--gold); }
.cookie-actions { display: flex; gap: 8px; }

/* CONTACT FORM */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }

/* WHATSAPP FLOAT */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }

/* CALC LAYOUT */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.calc-info { position: sticky; top: 88px; }

/* TAGS */
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.tag {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tag-gold { background: var(--gold-dim); border: 1px solid var(--border-glow); color: var(--gold); }
.tag-cyan { background: var(--cyan-dim); border: 1px solid rgba(6,214,160,0.2); color: var(--cyan); }

/* PROGRESS BAR */
.progress-bar { height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; margin-bottom: 32px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--cyan)); border-radius: 3px; transition: width 0.4s; }

/* INFO BOX */
.info-box {
  background: var(--gold-dim);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 16px 0;
}
.info-box strong { color: var(--gold); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .calc-layout { grid-template-columns: 1fr; }
  .calc-info { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(6,6,15,0.97); padding: 16px; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .result-actions { flex-direction: column; }
  .calc-grid { grid-template-columns: 1fr; }
  .filter-bar { gap: 6px; }
}

/* PRINT / PDF */
@media print {
  .nav, .footer, .wa-float, .cookie-banner, .result-actions, .filter-bar { display: none !important; }
  body { background: white; color: black; }
  .glass-card { border: 1px solid #ccc; }
}
