/* ═══════════════════════════════════════════
   LUSOSEG - CLEAN DESIGN SYSTEM
   Navy #21234D · Gold #CA9E67 · Cream #FFFEF3
   ═══════════════════════════════════════════ */
:root {
  --navy: #21234D;
  --navy-95: rgba(33,35,77,0.95);
  --navy-light: #344A9A;
  --gold: #CA9E67;
  --gold-light: #D9B482;
  --gold-dark: #B8894F;
  --cream: #FFFEF3;
  --cream-mid: #F8F5E8;
  --white: #FFFFFF;
  --text-dark: #21234D;
  --text-body: #4A4C6A;
  --text-muted: #5E6080;
  --border: rgba(33,35,77,0.08);
  --border-gold: rgba(202,158,103,0.2);
  --shadow-xs: 0 1px 2px rgba(33,35,77,0.04);
  --shadow-sm: 0 2px 8px rgba(33,35,77,0.06);
  --shadow-md: 0 4px 20px rgba(33,35,77,0.08);
  --shadow-lg: 0 8px 40px rgba(33,35,77,0.1);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --font-display: 'Rokkitt', 'Rockwell', Georgia, serif;
  --font-body: 'Source Sans 3', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════
   DARK MODE - Navy-based premium palette
   ═══════════════════════════════════════════ */
body.dark {
  --navy: #FFFEF3;
  --navy-light: #A8B4E0;
  --gold: #CA9E67;
  --gold-light: #D9B482;
  --gold-dark: #D9B482;
  --cream: #141628;
  --cream-mid: #181A3B;
  --white: #1C1E40;
  --text-dark: #FFFEF3;
  --text-body: #B8BAD0;
  --text-muted: #8A8CA8;
  --border: rgba(255,254,243,0.07);
  --border-gold: rgba(202,158,103,0.18);
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.15);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.25);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.3);
}

/* ── Dark: Logo swap (smooth opacity transition) ── */
.hero-lion, .hero-lion-dark { transition: opacity 0.3s ease; position: absolute; }
.hero-lion { opacity: 1; width: 75%; height: 75%; object-fit: contain; border-radius: 50%; }
.hero-lion-dark { opacity: 0; width: 75%; height: 75%; object-fit: contain; border-radius: 50%; }
body.dark .hero-lion { opacity: 0; }
body.dark .hero-lion-dark { opacity: 1; }

.about-lion-img { transition: opacity 0.3s ease; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 1; width: 55%; height: 55%; object-fit: contain; z-index: 1; }
body.dark .about-lion-img { opacity: 1; }

.footer-logo-img { display: none; }
.footer-logo-dark { height: 50px; width: auto; opacity: 0.9; }
.footer-brand { position: relative; }

/* ── Dark: Header ── */
body.dark .header { background: var(--cream); }
body.dark .header.scrolled { background: rgba(20,22,40,0.97); border-bottom-color: var(--border); }
body.dark .menu-toggle span { background: var(--text-dark); }

/* ── Dark: Hero ── */
body.dark .hero-lion-wrapper::before { border-color: rgba(202,158,103,0.15); }
body.dark .hero-lion-wrapper::after { border-color: rgba(202,158,103,0.06); }

/* ── Dark: Cards & components ── */
body.dark .service-card { background: var(--white); border-color: var(--border); }
body.dark .service-card:hover { border-color: var(--border-gold); }
body.dark .why-us { background: #181A3B; border-color: var(--border); }
body.dark .why-item { background: var(--cream); border-color: var(--border); }
body.dark .why-item:hover { border-color: var(--border-gold); }
body.dark .test-card { background: var(--white); border-color: var(--border); }
body.dark .test-avatar { background: #0E1020; }
body.dark .blog-card { background: var(--white); border-color: var(--border); }
body.dark .blog-thumb { background: #0E1020; }

/* ── Dark: Comparison ── */
body.dark .comparison { background: #181A3B; border-color: var(--border); }
body.dark .comp-table { background: var(--cream); border-color: var(--border); }
body.dark .comp-table thead { background: #0E1020; }
body.dark .comp-table th { color: var(--gold); }
body.dark .comp-table td { border-bottom-color: var(--border); color: var(--text-body); }
body.dark .comp-table tbody tr:nth-child(even) { background: var(--white); }

/* ── Dark: About ── */
body.dark .about { background: #181A3B; border-color: var(--border); }
body.dark .about-img-area { background: #0E1020; }
body.dark .about-badge { background: var(--gold); color: #141628; }

/* ── Dark: Upload ── */
body.dark .dropzone { border-color: rgba(202,158,103,0.2); }
body.dark .dropzone:hover, body.dark .dropzone.dragover { background: rgba(202,158,103,0.04); }
body.dark .upload-file-item { background: var(--cream); }

/* ── Dark: CTA, Contact, Footer ── */
body.dark .cta-strip { background: #0E1020; }
body.dark .cta-inner h3 { color: #FFFEF3; }
body.dark .cta-inner p { color: rgba(255,254,243,0.5); }
body.dark .footer { background: #0E1020; color: rgba(255,254,243,0.5); }
body.dark .footer-col h4 { color: #FFFEF3; }
body.dark .footer-col a { color: rgba(255,254,243,0.72); }
body.dark .footer-col a:hover { color: var(--gold); }
body.dark .soc-link { background: rgba(255,254,243,0.06); color: rgba(255,254,243,0.5); }
body.dark .soc-link:hover { background: var(--gold); color: #141628; }
body.dark .footer-bottom { color: rgba(255,254,243,0.4); }
body.dark .footer-legal a { color: rgba(255,254,243,0.4); }
body.dark .contact-form-card { background: var(--white); border-color: var(--border); }
body.dark .form-input, body.dark .form-textarea { background: var(--cream); border-color: var(--border); color: var(--text-dark); }
body.dark .form-submit { background: var(--gold); color: #141628; }
body.dark .form-submit:hover { background: var(--gold-dark); }
body.dark .footer { background: #0E1020; }

/* ── Dark: Overlays & widgets ── */
body.dark .cookie-banner { background: var(--white); border-color: var(--border); }
body.dark .cookie-accept { background: var(--gold); color: #141628; }
body.dark .cookie-config { border-color: var(--border); color: var(--text-muted); }
body.dark .chat-fab { background: var(--gold); color: #141628; }
body.dark .chat-window { background: var(--white); border-color: var(--border); }
body.dark .chat-header { background: #0E1020; color: #FFFEF3; }
body.dark .chat-body { background: var(--cream); }
body.dark .chat-msg.bot { animation: msgFadeIn 0.3s ease; background: var(--white); border-color: var(--border); color: var(--text-body); }
body.dark .chat-msg.user { background: var(--gold); color: #141628; }
body.dark .chat-input-area { background: var(--white); border-top-color: var(--border); }
body.dark .chat-input { background: var(--cream); border-color: var(--border); color: var(--text-dark); }
body.dark .chat-send { background: var(--gold); color: #141628; }
body.dark .chat-quick-btn { background: rgba(202,158,103,0.1); border-color: rgba(202,158,103,0.2); }
body.dark .modal-overlay { background: rgba(10,11,22,0.75); }
body.dark .modal-card { background: var(--white); }
body.dark .modal-ref { background: var(--cream); }
body.dark .error-page { background: var(--cream); }
body.dark .trust-bar { border-color: var(--border); }
body.dark .nav-mobile { background: var(--cream); }
body.dark .nav-mobile a { color: var(--text-dark); }
body.dark .nav-mobile a:hover { color: var(--gold); }
body.dark .btt { background: var(--gold); color: #141628; }
body.dark .btt:hover { background: var(--gold-dark); }

/* ── Dark: Buttons ── */
body.dark .btn-primary { background: var(--gold); color: #141628; border-color: var(--gold); }
body.dark .btn-primary:hover { background: #D9B482; border-color: #D9B482; color: #141628; }
body.dark .btn-secondary { background: #FFFEF3; color: #141628; border-color: #FFFEF3; }
body.dark .btn-secondary:hover { background: #E8E5D8; }
body.dark .btn-outline { background: transparent; color: #FFFEF3; border-color: rgba(255,254,243,0.3); }
body.dark .btn-outline:hover { background: #FFFEF3; color: #141628; }
body.dark .nav-desktop a { color: var(--text-body); }
body.dark .nav-desktop a:hover { color: #FFFEF3; }
body.dark .hero h1 em { color: var(--gold); }
body.dark .card-link { color: var(--gold); }
body.dark .service-card:hover .card-link { color: #FFFEF3; }
body.dark .why-number { color: var(--gold); }
body.dark .about-val::before { color: var(--gold); }
body.dark .section-label { color: var(--gold); }
body.dark .hero-label { color: var(--gold); }
body.dark .hero-label::before { background: var(--gold); }
body.dark .hero-stat h3 { color: var(--gold); }
body.dark .check { color: #5ABF7A; }
body.dark .blog-card h3 a { color: var(--text-dark); }
body.dark .blog-card h3 a:hover { color: var(--gold); }

/* ── Dark mode toggle ── */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; background: none; border: 1.5px solid var(--border);
  border-radius: 50%; cursor: pointer; color: var(--text-muted);
  transition: all var(--transition); flex-shrink: 0;
}
.theme-toggle:hover { color: var(--gold); border-color: var(--gold); background: rgba(202,158,103,0.06); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
body.dark .theme-toggle .icon-sun { display: block; }
body.dark .theme-toggle .icon-moon { display: none; }
body.dark .theme-toggle { border-color: rgba(255,254,243,0.12); color: var(--gold); }

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

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

/* ── Text selection ── */
::selection { background: rgba(202,158,103,0.25); color: var(--navy); }
body.dark ::selection { background: rgba(202,158,103,0.35); color: #FFFEF3; }

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: rgba(33,35,77,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(33,35,77,0.25); }
body.dark ::-webkit-scrollbar-track { background: #141628; }
body.dark ::-webkit-scrollbar-thumb { background: rgba(255,254,243,0.1); }
body.dark ::-webkit-scrollbar-thumb:hover { background: rgba(255,254,243,0.2); }

/* ── Reduced motion (WCAG) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .partners-slide { animation: none !important; }
  .preloader-logo { animation: none !important; }
  .hero-lion-wrapper::before, .hero-lion-wrapper::after { animation: none !important; }
}

/* ── Print styles ── */
@media print {
  .header, .footer, .cookie-banner, .btt, .chat-fab, .chat-window,
  .preloader, .skip-link, .nav-mobile, .theme-toggle, .theme-toggle-mobile,
  .menu-toggle { display: none !important; }
  body, body.dark { background: #fff !important; color: #000 !important; }
  .hero { min-height: auto; padding: 40px 0; }
  .service-card, .test-card, .blog-card { break-inside: avoid; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #666; }
  .btn { border: 1px solid #ccc; }
}

/* ═══════════════════════════════════════════
   SKIP LINK (WCAG Accessibility)
   ═══════════════════════════════════════════ */
.skip-link {
  position: fixed; top: -100%; left: 50%; transform: translateX(-50%);
  z-index: 10000; background: var(--navy); color: var(--cream);
  padding: 12px 28px; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
  text-decoration: none; transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ═══════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════ */
.preloader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
body.dark .preloader { background: #141628; }
.preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-inner { text-align: center; }
.preloader-logo {
  animation: preloaderPulse 1.2s ease-in-out infinite;
}
@keyframes preloaderPulse {
  0%, 100% { opacity: 0.4; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
}
.preloader-bar {
  width: 120px; height: 3px; background: var(--border);
  border-radius: 3px; margin-top: 24px; overflow: hidden;
}
.preloader-fill {
  height: 100%; width: 0; background: var(--gold);
  border-radius: 3px; animation: preloaderFill 1.2s ease forwards;
}
@keyframes preloaderFill { to { width: 100%; } }

/* ═══════════════════════════════════════════
   PARTNERS CAROUSEL
   ═══════════════════════════════════════════ */
.partners {
  padding: 32px 0; border-bottom: 1px solid var(--border); background: var(--cream);
}
.partners-label {
  text-align: center; font-size: 0.78rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 20px;
}
.partners-sublabel {
  font-size: 0.7rem; font-weight: 600; color: #8A6A3A;
  letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 8px;
  padding-left: 4px;
}
.partners-track {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.partners-slide {
  display: flex; gap: 48px; width: max-content;
  animation: partnerScroll 28s linear infinite;
}
.partner-logo {
  flex-shrink: 0; font-family: var(--font-display); font-weight: 700;
  font-size: 1rem; color: var(--text-muted); opacity: 0.45;
  padding: 12px 8px; white-space: nowrap; letter-spacing: 0.02em;
  transition: opacity var(--transition); text-decoration: none;
}
.partner-logo:hover { opacity: 0.8; }
.partner-note span {
  display: block; font-size: 0.68rem; font-weight: 500;
  color: var(--gold-dark); letter-spacing: 0.01em; margin-top: 1px;
  font-family: var(--font-body);
}
@keyframes partnerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.partners-slide:hover { animation-play-state: paused; }
.partners-slide-slow { animation-duration: 20s; }

body.dark .partners { border-bottom-color: var(--border); }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--text-body); background: var(--cream); line-height: 1.75; overflow-x: hidden; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
a { color: var(--navy-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--navy); line-height: 1.2; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.4rem); font-weight: 600; }
p { max-width: 68ch; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
section { padding: clamp(64px, 10vw, 120px) 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  padding: 14px 32px; border-radius: var(--radius-sm);
  border: 2px solid transparent; cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.btn-primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-dark); border-color: var(--gold-dark); color: var(--navy); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(202,158,103,0.3); }
.btn-secondary { background: var(--navy); color: var(--cream); border-color: var(--navy); }
.btn-secondary:hover { background: #2d2f5a; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(33,35,77,0.2); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--cream); transform: translateY(-1px); }
.btn-outline-light { background: transparent; color: var(--cream); border-color: rgba(255,254,243,0.4); }
.btn-outline-light:hover { background: var(--cream); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--gold-dark); border: none; padding: 8px 0; font-weight: 600; }
.btn-ghost:hover { color: var(--navy); }

/* ═══════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--cream); border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.header.scrolled {
  background: rgba(255,254,243,0.97); backdrop-filter: blur(16px);
  border-bottom-color: var(--border); box-shadow: var(--shadow-xs);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; max-width: 1280px; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px);
}

.logo-img { height: 50px; width: auto; display: block; transition: opacity 0.3s ease; }
.logo-img-dark { height: 50px; width: auto; display: block; position: absolute; top: 0; left: 0; opacity: 0; transition: opacity 0.3s ease; }
body.dark .logo-img { opacity: 0; }
body.dark .logo-img-dark { opacity: 1; }

.logo { position: relative; display: flex; align-items: center; }

.nav-desktop { display: flex; align-items: center; gap: 36px; }
.nav-desktop a {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  color: var(--text-body); position: relative; padding: 4px 0;
}
.nav-desktop a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--gold);
  transition: width var(--transition);
}
.nav-desktop a:hover { color: var(--navy); }
.nav-desktop a:hover::after { width: 100%; }
.nav-cta { padding: 10px 24px !important; font-size: 0.85rem !important; border-radius: 6px !important; }

.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px; z-index: 1001;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); transition: all var(--transition); border-radius: 1px; }
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none; position: fixed; inset: 0; background: var(--cream);
  z-index: 999; flex-direction: column; justify-content: center; align-items: center; gap: 28px;
}
.nav-mobile.active { display: flex; }
.nav-mobile a { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); font-weight: 600; }
.nav-mobile a:hover { color: var(--gold); }

@media (max-width: 960px) { .nav-desktop { display: none; } .menu-toggle { display: flex; } .theme-toggle-mobile { display: flex; } }
@media (min-width: 961px) { .theme-toggle-mobile { display: none; } }
@media (max-width: 480px) { .logo-img, .logo-img-dark { height: 42px; } }

/* ═══════════════════════════════════════════
   HERO - Clean, light, spacious
   ═══════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: var(--cream); padding: 120px 0 80px; position: relative;
}

.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px); align-items: center;
}

.hero-content { max-width: 560px; }

.hero-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.82rem; font-weight: 600; color: #8A6A3A;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeIn 0.8s ease;
}
.hero-label::before {
  content: ''; width: 32px; height: 1.5px; background: var(--gold);
}

.hero h1 {
  margin-bottom: 24px;
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero h1 em {
  font-style: normal; color: var(--gold-dark);
}

.hero-desc {
  font-size: 1.1rem; color: var(--text-muted); line-height: 1.85;
  margin-bottom: 36px; text-align: left;
  animation: fadeInUp 0.7s ease 0.2s both;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 14px;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-visual {
  display: flex; align-items: center; justify-content: center;
  position: relative;
  animation: fadeIn 1s ease 0.3s both;
}

.hero-lion-wrapper {
  width: clamp(280px, 28vw, 400px);
  height: clamp(280px, 28vw, 400px);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-lion-wrapper::before,
.hero-lion-wrapper::after { display: none; }

.hero-stats {
  display: flex; gap: clamp(24px, 4vw, 48px);
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.7s ease 0.4s both;
}
.hero-stat h3 {
  font-size: clamp(1.6rem, 2.5vw, 2rem);
  color: var(--gold-dark); font-weight: 800; line-height: 1; margin-bottom: 2px;
}
.hero-stat p { font-size: 0.82rem; color: var(--text-muted); }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes msgFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes typingDot { 0%,100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes fabPulse { 0%,100% { transform: scale(1); box-shadow: 0 4px 20px rgba(202,158,103,0.35); } 50% { transform: scale(1.12); box-shadow: 0 6px 28px rgba(202,158,103,0.6); } }
@keyframes spinSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-visual { order: -1; }
  .hero-lion-wrapper { width: 220px; height: 220px; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-label { justify-content: center; }
}

/* ═══════════════════════════════════════════
   TRUST BAR
   ═══════════════════════════════════════════ */
.trust-bar {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}
.trust-bar-inner {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 32px 56px;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-muted); font-size: 0.85rem; font-weight: 500;
}
.trust-icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-dark); flex-shrink: 0;
}

/* ═══════════════════════════════════════════
   SECTION HEADERS
   ═══════════════════════════════════════════ */
.section-header { text-align: center; max-width: 600px; margin: 0 auto 56px; }
.section-label {
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  color: #8A6A3A; letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 12px; display: block;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--text-muted); font-size: 1.02rem; margin: 0 auto; }

/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */
.services { background: var(--cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 30px 26px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-gold);
}

.service-icon {
  width: 48px; height: 48px;
  background: rgba(202,158,103,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}

.service-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.service-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.7; }
.card-tags {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px;
}
.card-tags span, .card-tags a {
  font-size: 0.72rem; font-weight: 600; color: var(--gold-dark);
  background: rgba(202,158,103,0.08); padding: 3px 10px;
  border-radius: 50px; letter-spacing: 0.01em; white-space: nowrap;
  text-decoration: none; transition: all var(--transition);
}
.card-tags a:hover { background: var(--gold); color: #fff; }
.card-link {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 16px; font-weight: 600; font-size: 0.88rem;
  color: var(--gold-dark); transition: all var(--transition);
}
.service-card:hover .card-link { gap: 8px; color: var(--navy); }

@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }
@media (min-width: 601px) and (max-width: 1024px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

/* ═══════════════════════════════════════════
   WHY US - on cream with subtle cards
   ═══════════════════════════════════════════ */
.why-us {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.why-item {
  text-align: center; padding: 36px 24px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.why-item:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.why-number {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 800; color: var(--gold); margin-bottom: 14px; line-height: 1;
}
.why-item h3 { margin-bottom: 10px; font-size: 1.05rem; }
.why-item p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; margin: 0 auto; }

@media (max-width: 768px) { .why-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .why-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   COMPARISON
   ═══════════════════════════════════════════ */
/* ═══════════════════════════════════════════
   COMPARISON
   ═══════════════════════════════════════════ */
.comparison { background: var(--white); border-top: 1px solid var(--border); }

.comp-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--cream); border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--border);
}
.comp-table thead { background: var(--navy); }
.comp-table th {
  padding: 16px 24px; color: var(--cream); font-family: var(--font-display);
  font-weight: 600; font-size: 0.88rem; text-align: left;
}
.comp-table td {
  padding: 15px 24px; font-size: 0.9rem; border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tbody tr:nth-child(even) { background: var(--white); }
.check { color: #3A8F5C; font-weight: 600; }
.cross { color: #CCC; }

@media (max-width: 768px) {
  .comp-table th, .comp-table td { padding: 11px 12px; font-size: 0.82rem; }
}

/* ═══════════════════════════════════════════
   TESTIMONIALS
   ═══════════════════════════════════════════ */
.testimonials { background: var(--cream); }

.test-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.test-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px; border: 1px solid var(--border);
}
.test-stars { color: var(--gold); font-size: 1rem; letter-spacing: 3px; margin-bottom: 14px; }
.test-card blockquote {
  font-size: 0.95rem; line-height: 1.8; color: var(--text-body);
  font-style: italic; margin-bottom: 22px;
}
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar {
  width: 42px; height: 42px; background: var(--navy);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: 0.9rem;
}
.test-name { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.test-role { font-size: 0.8rem; color: var(--text-muted); }

/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about { background: var(--white); border-top: 1px solid var(--border); }

.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.about-visual { position: relative; }
.about-img-area {
  width: 100%; aspect-ratio: 1/1;
  background: var(--navy); border-radius: var(--radius-lg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.about-badge {
  position: absolute; bottom: -16px; right: -12px;
  background: var(--gold); color: var(--navy); padding: 20px;
  border-radius: var(--radius-md); text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge-num { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; line-height: 1; }
.about-badge-txt { font-size: 0.75rem; font-weight: 600; margin-top: 2px; }

.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--text-muted); margin-bottom: 14px; font-size: 1rem; line-height: 1.85; text-align: left; }
.about-values {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 28px 0;
}
.about-val {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; color: var(--navy); font-size: 0.92rem;
}
.about-val::before { content: '◆'; color: var(--gold); font-size: 0.7rem; transform: scaleY(1.4); display: inline-block; }

@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ═══════════════════════════════════════════
   BLOG
   ═══════════════════════════════════════════ */
.blog-section { background: var(--cream); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-card {
  background: var(--white); border-radius: var(--radius-md);
  overflow: hidden; border: 1px solid var(--border);
  transition: all var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.blog-thumb {
  height: 0; padding-bottom: 50%; background: var(--navy); position: relative; overflow: hidden; background-size: cover; background-position: center;
}
.blog-thumb::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(202,158,103,0.12) 0%, transparent 70%);
}
.blog-cat {
  position: absolute; top: 14px; left: 14px;
  background: var(--gold); color: var(--navy);
  font-size: 0.7rem; font-weight: 700; padding: 4px 12px;
  border-radius: 50px; letter-spacing: 0.05em; text-transform: uppercase;
}

.blog-body { padding: 24px; }
.blog-date { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 8px; }
.blog-card h3 { font-size: 1.08rem; margin-bottom: 8px; line-height: 1.4; }
.blog-card h3 a { color: var(--navy); }
.blog-card h3 a:hover { color: var(--gold-dark); }
.blog-excerpt { font-size: 0.88rem; color: var(--text-muted); line-height: 1.7; }

/* ═══════════════════════════════════════════
   CTA STRIP
   ═══════════════════════════════════════════ */
.cta-strip {
  background: var(--navy); padding: 56px 0;
}
.cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.cta-inner h3 { color: var(--cream); font-size: 1.5rem; }
.cta-inner p { color: rgba(255,254,243,0.5); font-size: 0.92rem; margin-top: 4px; }

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact { background: var(--cream); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 64px; align-items: start;
}

.contact-info h2 { margin-bottom: 16px; }
.contact-info > p { color: var(--text-muted); font-size: 1rem; margin-bottom: 32px; line-height: 1.8; }

.contact-methods { display: flex; flex-direction: column; gap: 20px; }
.contact-method { display: flex; align-items: center; gap: 14px; }
.cm-icon {
  width: 44px; height: 44px; background: rgba(202,158,103,0.08);
  border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; color: var(--gold-dark); flex-shrink: 0;
}
.cm-text strong { display: block; color: var(--navy); font-size: 0.9rem; }
.cm-text span { color: var(--text-muted); font-size: 0.88rem; }

.contact-form-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
}
.contact-form-card h3 { margin-bottom: 24px; font-size: 1.2rem; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--navy); margin-bottom: 6px;
}
.form-input, .form-textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text-dark);
  background: var(--cream); transition: all var(--transition);
}
.form-input:focus, .form-textarea:focus {
  border-color: var(--gold); outline: none;
  box-shadow: 0 0 0 3px rgba(202,158,103,0.1);
}
.form-input::placeholder, .form-textarea::placeholder { color: #8C8EA6; }
.form-textarea { min-height: 110px; resize: vertical; }

.form-consent {
  display: flex; align-items: flex-start; gap: 10px; margin: 18px 0 22px;
}
.form-consent input[type="checkbox"] { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; }
.form-consent label { font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }
.form-consent a { color: var(--gold-dark); text-decoration: underline; }

.form-submit {
  width: 100%; padding: 15px; background: var(--navy); color: var(--cream);
  border: none; border-radius: var(--radius-sm); font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700; cursor: pointer; transition: all var(--transition);
}
.form-submit:hover { background: #2d2f5a; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(33,35,77,0.2); }
.form-reassurance { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-top: 10px; }

/* ═══════════════════════════════════════════
   FAQ
   ═══════════════════════════════════════════ */
.faq { background: var(--white); border-top: 1px solid var(--border); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { background: var(--cream); border: 1px solid var(--border); border-radius: var(--radius-md); margin-bottom: 12px; overflow: hidden; transition: border-color var(--transition); }
.faq-item[open] { border-color: var(--border-gold); }
.faq-item summary { list-style: none; cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--navy); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.5rem; color: var(--gold-dark); font-weight: 400; line-height: 1; flex-shrink: 0; transition: transform var(--transition); }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--gold-dark); }
.faq-answer { padding: 0 22px 20px; }
.faq-answer p { font-size: 0.92rem; color: var(--text-body); line-height: 1.75; margin: 0; max-width: none; }
.faq-answer a { color: var(--gold-dark); text-decoration: underline; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--navy); color: rgba(255,254,243,0.5);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,254,243,0.06);
}
.footer-brand p { margin-top: 18px; font-size: 0.88rem; line-height: 1.8; max-width: 300px; text-align: left; }
.footer-logo-img { height: 50px; width: auto; opacity: 0.9; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.soc-link {
  width: 36px; height: 36px; background: rgba(255,254,243,0.06);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,254,243,0.5); transition: all var(--transition); font-size: 0.82rem;
}
.soc-link:hover { background: var(--gold); color: var(--navy); }

.footer-col h4 { color: var(--cream); font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 18px; }
.footer-col a { display: block; color: rgba(255,254,243,0.72); font-size: 0.85rem; padding: 4px 0; }
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding: 24px 0; display: flex; justify-content: center;
  align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.8rem;
}
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { font-size: 0.8rem; color: rgba(255,254,243,0.4); }

@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════
   COOKIE BANNER
   ═══════════════════════════════════════════ */
.cookie-banner {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  max-width: 480px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 24px; box-shadow: var(--shadow-lg); z-index: 9999;
  display: none; max-height: calc(100vh - 40px); overflow-y: auto;
}
.cookie-banner.visible { display: block; animation: fadeInUp 0.4s ease; }
.cookie-banner h4 { color: var(--navy); margin-bottom: 6px; font-size: 0.95rem; }
.cookie-banner p { color: var(--text-muted); font-size: 0.82rem; line-height: 1.6; margin-bottom: 16px; }
.cookie-banner a { color: var(--gold-dark); text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }
.cookie-accept {
  padding: 9px 22px; background: var(--navy); color: var(--cream);
  border: none; border-radius: 6px; font-weight: 600; font-family: var(--font-display);
  cursor: pointer; font-size: 0.85rem; transition: background var(--transition);
}
.cookie-accept:hover { background: #2d2f5a; }
.cookie-config {
  padding: 9px 22px; background: transparent; color: var(--text-muted);
  border: 1px solid var(--border); border-radius: 6px; font-weight: 600;
  font-family: var(--font-display); cursor: pointer; font-size: 0.85rem;
}

/* ── Back to top ── */
.btt {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; background: var(--navy); color: var(--cream);
  border: none; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; box-shadow: var(--shadow-md); transition: all var(--transition);
  opacity: 0; visibility: hidden; z-index: 100;
}
.btt.visible { opacity: 1; visibility: visible; }
.btt:hover { transform: translateY(-2px); background: var(--gold); color: var(--navy); }

/* ── Scroll reveal ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ═══════════════════════════════════════════
   UPLOAD DE DOCUMENTOS
   ═══════════════════════════════════════════ */
.dropzone {
  border: 2px dashed rgba(202,158,103,0.3); border-radius: var(--radius-md);
  padding: 48px 24px; text-align: center; cursor: pointer;
  transition: all var(--transition); position: relative;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--gold); background: rgba(202,158,103,0.04);
}
.dropzone-icon { color: var(--gold); margin-bottom: 14px; }
.dropzone h4 { color: var(--navy); font-family: var(--font-display); font-size: 1.05rem; margin-bottom: 6px; }
.dropzone p { color: var(--text-muted); font-size: 0.85rem; }
.dropzone-link { color: var(--gold-dark); font-weight: 600; text-decoration: underline; cursor: pointer; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-file-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.upload-file-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--cream); padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: 0.85rem;
}
.upload-file-item .file-info { display: flex; align-items: center; gap: 8px; color: var(--text-body); }
.upload-file-item .file-size { color: var(--text-muted); font-size: 0.78rem; }
.upload-file-item .file-remove {
  background: none; border: none; color: var(--text-muted); cursor: pointer;
  font-size: 1.1rem; padding: 0 4px; transition: color var(--transition);
}
.upload-file-item .file-remove:hover { color: #C0392B; }

/* ═══════════════════════════════════════════
   CHAT WIDGET
   ═══════════════════════════════════════════ */
.chat-fab {
  position: fixed; bottom: 28px; right: 88px; z-index: 900;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  box-shadow: none;
  transition: all var(--transition);
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.chat-fab svg { transition: transform var(--transition); }

.chat-window {
  position: fixed; bottom: 28px; right: 28px; z-index: 901;
  width: 370px; max-height: 520px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  display: none; flex-direction: column; overflow: hidden;
}
.chat-window.open { display: flex; animation: fadeInUp 0.3s ease; }

.chat-header {
  background: var(--navy); color: var(--cream); padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.chat-header-info { display: flex; align-items: center; gap: 10px; }
.chat-header-avatar {
  width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  border: 2px solid rgba(202,158,103,0.5); background: var(--navy);
}
.chat-header-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.chat-header-name { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; }
.chat-header-status { font-size: 0.72rem; color: rgba(255,254,243,0.5); display: flex; align-items: center; gap: 5px; }
.chat-header-status::before { content: ''; width: 6px; height: 6px; background: #5DCF72; border-radius: 50%; display: inline-block; }
.chat-close {
  background: none; border: none; color: rgba(255,254,243,0.6); cursor: pointer;
  font-size: 1.3rem; padding: 4px; transition: color var(--transition);
}
.chat-close:hover { color: #FFFEF3; }

.chat-body {
  flex: 1; padding: 20px; overflow-y: auto; min-height: 280px;
  display: flex; flex-direction: column; gap: 12px; background: var(--cream);
}
.chat-msg {
  max-width: 85%; padding: 12px 16px; border-radius: 14px;
  font-size: 0.88rem; line-height: 1.6;
}
.chat-msg.bot {
  background: var(--white); color: var(--text-body);
  border: 1px solid var(--border);
  align-self: flex-start; border-bottom-left-radius: 4px;
}
.chat-msg.user {
  background: var(--navy); color: var(--cream);
  align-self: flex-end; border-bottom-right-radius: 4px;
}
.chat-msg-time { font-size: 0.7rem; color: var(--text-muted); margin-top: 4px; }
.chat-quick-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chat-quick-btn {
  padding: 8px 16px; background: var(--white);
  border: 1.5px solid var(--gold); border-radius: 50px;
  font-size: 0.78rem; font-weight: 600; color: var(--gold-dark);
  cursor: pointer; transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(202,158,103,0.1);
}
.chat-quick-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); transform: translateY(-1px); box-shadow: 0 3px 8px rgba(202,158,103,0.25); }
.chat-quick-btn:active { transform: translateY(0); }
.chat-quick-btn.disabled { opacity: 0.4; pointer-events: none; border-color: var(--border); color: var(--text-muted); background: transparent; transform: none; box-shadow: none; }
.chat-card-btn {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px;
  background: var(--white); border: 1.5px solid var(--gold); border-radius: 10px;
  cursor: pointer; transition: all 0.2s ease; font-size: 0.78rem; font-weight: 600;
  color: var(--gold-dark); text-align: left; font-family: var(--font-body);
}
.chat-card-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.chat-card-btn:hover svg { stroke: var(--navy); }
.chat-card-btn svg { flex-shrink: 0; }

.chat-input-area {
  padding: 14px 16px; border-top: 1px solid var(--border);
  display: flex; gap: 8px; background: var(--white);
}
.chat-input {
  flex: 1; padding: 10px 14px; border: 1.5px solid var(--border);
  border-radius: 50px; font-family: var(--font-body); font-size: 0.88rem;
  color: var(--text-dark); background: var(--cream); outline: none;
  transition: border-color var(--transition);
}
.chat-input:focus { border-color: var(--gold); }
.chat-input::placeholder { color: var(--text-muted); }
.chat-send {
  width: 40px; height: 40px; background: var(--gold); border: none;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: all var(--transition); flex-shrink: 0;
}
.chat-send:hover { background: var(--gold-dark); }

@media (max-width: 480px) {
  .chat-window { position: fixed; top: 0; right: 0; left: 0; bottom: 0; width: 100%; max-height: 100%; height: 100%; border-radius: 0; z-index: 9999; }
  .chat-body { min-height: 0; flex: 1; }
  .chat-header { padding: 14px 16px; }
  .chat-header-avatar { width: 40px; height: 40px; }
  .chat-msg { max-width: 90%; font-size: 0.85rem; }
  .chat-input-area { padding: 10px 12px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
  .chat-input { font-size: 16px; }
  .chat-fab { bottom: 20px; right: 20px; }
  .chat-card-btn { padding: 8px 10px; font-size: 0.75rem; }
}

/* Chat on tablet */
@media (min-width: 481px) and (max-width: 768px) {
  .chat-window { width: 370px; max-height: 70vh; right: 16px; bottom: 16px; }
  .chat-fab { bottom: 20px; right: 20px; }
}

/* ═══════════════════════════════════════════
   THANK YOU MODAL
   ═══════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(33,35,77,0.6); backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; animation: fadeIn 0.3s ease; }

.modal-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 48px 40px; max-width: 460px; width: 100%; text-align: center;
  box-shadow: var(--shadow-lg); position: relative;
  animation: fadeInUp 0.4s ease;
}
.modal-close {
  position: absolute; top: 16px; right: 16px; background: none; border: none;
  color: var(--text-muted); font-size: 1.4rem; cursor: pointer; padding: 4px;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--navy); }
.modal-icon {
  width: 72px; height: 72px; background: rgba(58,143,92,0.1);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: #3A8F5C;
}
.modal-card h2 { font-size: 1.5rem; margin-bottom: 10px; }
.modal-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; margin-bottom: 24px; }
.modal-ref { background: var(--cream); padding: 12px 20px; border-radius: var(--radius-sm); margin-bottom: 20px; display: inline-block; }
.modal-ref-label { font-size: 0.78rem; color: var(--text-muted); }
.modal-ref-code { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.1rem; }

/* Legal modals */
.legal-modal-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 40px; max-width: 680px; width: 100%; text-align: left;
  box-shadow: var(--shadow-lg); position: relative;
  animation: fadeInUp 0.4s ease; max-height: 85vh; display: flex; flex-direction: column;
}
.legal-modal-card h2 { font-size: 1.3rem; margin-bottom: 20px; color: var(--navy); text-align: center; }
.legal-modal-body { overflow-y: auto; flex: 1; padding-right: 8px; }
.legal-modal-body h3 { font-size: 1rem; color: var(--navy); margin: 20px 0 8px; }
.legal-modal-body h3:first-child { margin-top: 0; }
.legal-modal-body p { color: var(--text-body); font-size: 0.88rem; line-height: 1.75; margin-bottom: 10px; text-align: left; }
.legal-modal-body ul { padding-left: 20px; margin-bottom: 12px; }
.legal-modal-body li { color: var(--text-body); font-size: 0.88rem; line-height: 1.7; margin-bottom: 4px; }
.legal-updated { text-align: center; font-size: 0.78rem; color: var(--text-muted); margin-bottom: 16px; }
body.dark .legal-modal-card { background: var(--white); }

/* Blog - em breve */
.blog-soon { color: var(--text-muted); cursor: default; text-decoration: none; pointer-events: none; }
.blog-soon-badge { display: inline-block; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; background: var(--cream); color: var(--gold-dark); padding: 2px 8px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }

/* Cookie config panel */
.cookie-config-panel { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.cookie-config-panel.visible { display: block; }
.cookie-config-panel.visible ~ .cookie-actions { display: none; }
.cookie-option { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; }
.cookie-option-info { flex: 1; }
.cookie-option-name { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.cookie-option-desc { font-size: 0.75rem; color: var(--text-muted); }
.cookie-toggle { position: relative; width: 40px; height: 22px; flex-shrink: 0; margin-left: 12px; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-slider { position: absolute; inset: 0; background: #ccc; border-radius: 22px; cursor: pointer; transition: 0.2s; }
.cookie-toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; bottom: 3px; background: white; border-radius: 50%; transition: 0.2s; }
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--gold); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle-slider { opacity: 0.7; cursor: default; }
.cookie-save { margin-top: 12px; width: 100%; padding: 10px; border: none; border-radius: 6px; background: var(--navy); color: var(--cream); font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; cursor: pointer; }
.cookie-save:hover { background: #2d2f5a; }
body.dark .cookie-option-name { color: var(--text-dark); }
body.dark .cookie-save { background: var(--gold); color: #141628; }

/* ═══════════════════════════════════════════
   404 / 500 ERROR PAGES
   ═══════════════════════════════════════════ */
.error-page {
  display: none; min-height: 100vh; align-items: center; justify-content: center;
  background: var(--cream); text-align: center; padding: 40px 20px;
}
.error-page.active { display: flex; }

.error-content { max-width: 500px; }
.error-code {
  font-family: var(--font-display); font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 800; color: var(--navy); line-height: 1;
  opacity: 0.08; position: absolute; transform: translate(-50%, -60%); left: 50%;
}
.error-visual { position: relative; margin-bottom: 24px; display: inline-block; }
.error-lion {
  width: 120px; height: 120px; opacity: 0.2;
}
.error-content h2 { font-size: 1.6rem; margin-bottom: 12px; }
.error-content p { color: var(--text-muted); font-size: 1rem; line-height: 1.7; margin-bottom: 28px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

@media (max-width: 480px) {
  .hero-stats { flex-direction: column; gap: 16px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
  .hero-desc { text-align: center; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-inner .btn { width: 100%; justify-content: center; }
  .trust-bar-inner { gap: 20px 32px; }
  .trust-item { font-size: 0.8rem; }
  .cookie-banner { left: 12px; right: 12px; padding: 20px; }
  .cookie-actions { flex-direction: column; }
  .cookie-accept, .cookie-config { width: 100%; text-align: center; }
  .btt { bottom: 20px; left: 16px; right: auto; width: 40px; height: 40px; font-size: 1rem; }
  .section-header { margin-bottom: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .meeting-inner { flex-direction: column; text-align: center; }
  .meeting-inner .btn { width: 100%; justify-content: center; }
  .legal-modal-card { padding: 24px 20px; max-height: 92vh; border-radius: 16px; }
  .legal-modal-card h2 { font-size: 1.15rem; }
  .legal-modal-body h3 { font-size: 0.92rem; }
  .about-badge { bottom: -12px; right: 0; padding: 14px; }
  .about-badge-num { font-size: 1.4rem; }
  .about-values { grid-template-columns: 1fr; }
  .partners-slide { gap: 32px; }
  .footer-brand p { max-width: 100%; }
}

/* iPhone SE / very small phones (320px) */
@media (max-width: 360px) {
  .hero-lion-wrapper { width: 180px; height: 180px; }
  .trust-bar-inner { flex-direction: column; gap: 14px; }
  .blog-grid { grid-template-columns: 1fr; }
  .prod-tabs { gap: 4px; padding: 8px 16px; }
  .prod-tab { padding: 5px 10px; font-size: 0.7rem; }
  .prod-body { padding: 16px; }
  .prod-body ul li { font-size: 0.8rem; }
  .chat-card-btn { padding: 7px 8px; font-size: 0.72rem; gap: 5px; }
}

/* Tablet-specific */
@media (min-width: 481px) and (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-visual { order: -1; }
  .hero-lion-wrapper { width: 200px; height: 200px; }
  .hero-stats { justify-content: center; }
  .hero-actions { justify-content: center; }
  .hero-label { justify-content: center; }
  .hero-desc { text-align: center; }
  .trust-bar-inner { gap: 24px 40px; }
  .legal-modal-card { padding: 32px 28px; }
  .chat-window { width: 400px; max-height: 580px; }
}

/* Tablet landscape (769-1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-grid { gap: 32px; }
  .about-grid { gap: 48px; }
  .contact-grid { gap: 40px; }
}

/* Ensure touch targets are at least 44px (WCAG / Apple HIG) */
@media (max-width: 768px) {
  .nav-mobile a { padding: 8px 16px; }
  .btn { min-height: 48px; }
  .form-input, .form-textarea, .form-select { font-size: 16px; }
  .comp-table { font-size: 0.82rem; }
  .comp-table th, .comp-table td { padding: 12px 14px; }
}

/* iOS zoom prevention - inputs below 16px trigger auto-zoom on focus */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="tel"],
  input[type="search"], textarea, select { font-size: 16px !important; }
}

/* Safe areas for notched phones (iPhone X+) */
@supports (padding: env(safe-area-inset-bottom)) {
  .footer { padding-bottom: env(safe-area-inset-bottom); }
  .cookie-banner { bottom: max(20px, env(safe-area-inset-bottom)); }
  .btt { bottom: max(20px, calc(env(safe-area-inset-bottom) + 8px)); left: 16px; right: auto; }
  .chat-fab { bottom: max(28px, calc(env(safe-area-inset-bottom) + 8px)); }
}

/* Landscape phone */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { min-height: auto; padding: 100px 0 60px; }
  .nav-mobile { gap: 16px; }
  .nav-mobile a { font-size: 1.2rem; }
}

/* Large screens (1440px+) */
@media (min-width: 1440px) {
  .container { max-width: 1320px; }
  .hero-grid { gap: 80px; }
  .about-grid { gap: 96px; }
}

/* Ultra-wide (1920px+) */
@media (min-width: 1920px) {
  .container { max-width: 1400px; }
}
/* ═══ PRODUCT MODAL ═══ */
.prod-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);z-index:9999;display:none;align-items:center;justify-content:center;padding:16px;opacity:0;transition:opacity .3s}
.prod-overlay.active{display:flex;opacity:1}
.prod-modal{background:var(--white);border-radius:var(--radius-lg);width:100%;max-width:900px;max-height:90vh;display:flex;flex-direction:column;box-shadow:0 24px 80px rgba(0,0,0,.25);position:relative;overflow:hidden}
body.dark .prod-modal{background:var(--white);border:1px solid var(--border)}
.prod-header{display:flex;align-items:center;justify-content:space-between;padding:20px 28px;border-bottom:1px solid var(--border);flex-shrink:0}
.prod-header h2{font-size:1.2rem;font-family:var(--font-display);color:var(--navy);margin:0;display:flex;align-items:center;gap:10px}
body.dark .prod-header h2{color:#FFFEF3}
.prod-header h2 .prod-icon{width:28px;height:28px;background:var(--gold);border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.prod-header h2 .prod-icon svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:2}
.prod-close{width:36px;height:36px;border-radius:50%;border:none;background:var(--cream);cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:1.2rem;color:var(--navy);transition:all .2s}
body.dark .prod-close{background:var(--navy-light);color:#FFFEF3}
.prod-close:hover{background:var(--gold);color:#fff;transform:scale(1.1)}
.prod-tabs{display:flex;gap:6px;padding:14px 28px;overflow-x:auto;flex-shrink:0;border-bottom:1px solid var(--border);scrollbar-width:thin}
.prod-tabs::-webkit-scrollbar{height:4px}
.prod-tabs::-webkit-scrollbar-track{background:transparent}
.prod-tabs::-webkit-scrollbar-thumb{background:var(--gold);border-radius:4px}
.prod-tab{padding:7px 16px;border-radius:20px;border:1px solid var(--border);background:transparent;cursor:pointer;font-size:.78rem;white-space:nowrap;color:var(--text-muted);transition:all .25s;font-family:var(--font-body)}
.prod-tab:hover{border-color:var(--gold);color:var(--gold)}
.prod-tab.active{background:var(--gold);color:#fff;border-color:var(--gold);font-weight:600}
body.dark .prod-tab{border-color:var(--border);color:var(--text-muted)}
body.dark .prod-tab.active{background:var(--gold);color:#fff;border-color:var(--gold)}
.prod-body{padding:28px;overflow-y:auto;flex:1}
.prod-body h3{font-size:1.05rem;font-family:var(--font-display);color:var(--navy);margin:0 0 6px}
body.dark .prod-body h3{color:#FFFEF3}
.prod-body .prod-subtitle{font-size:.85rem;color:var(--gold);margin-bottom:16px;font-weight:600}
.prod-body .prod-desc{font-size:.88rem;color:var(--text-muted);line-height:1.75;margin-bottom:20px}
.prod-body .prod-section{margin-bottom:20px}
.prod-body .prod-section-title{font-size:.82rem;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--navy);margin-bottom:10px;padding-bottom:6px;border-bottom:2px solid var(--gold)}
body.dark .prod-body .prod-section-title{color:#FFFEF3}
.prod-body ul{list-style:none;padding:0;margin:0}
.prod-body ul li{position:relative;padding:5px 0 5px 20px;font-size:.85rem;color:var(--text-muted);line-height:1.6}
.prod-body ul li::before{content:'✓';position:absolute;left:0;color:var(--gold);font-weight:700}
.prod-table{width:100%;border-collapse:collapse;font-size:.8rem;margin:12px 0}
.prod-table th,.prod-table td{padding:8px 12px;text-align:left;border-bottom:1px solid var(--border)}
.prod-table th{background:var(--cream);color:var(--navy);font-weight:600;font-size:.75rem;text-transform:uppercase;letter-spacing:.3px}
body.dark .prod-table th{background:var(--navy-light);color:#FFFEF3}
.prod-table td{color:var(--text-muted)}
.prod-table tr:hover td{background:rgba(202,158,103,.06)}
.prod-badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:.72rem;font-weight:600;background:rgba(202,158,103,.12);color:var(--gold);margin-right:4px;margin-bottom:4px}
.prod-cta{display:flex;gap:12px;margin-top:24px;padding-top:20px;border-top:1px solid var(--border)}
.prod-cta .btn{font-size:.85rem;padding:10px 24px}
@media(max-width:600px){
.prod-overlay{padding:0;align-items:flex-end}
.prod-modal{max-height:95vh;border-radius:16px 16px 0 0;margin-top:auto}
.prod-header{padding:16px 20px}
.prod-header h2{font-size:1.05rem}
.prod-tabs{padding:10px 20px;gap:5px}
.prod-tab{padding:6px 12px;font-size:.72rem}
.prod-body{padding:20px}
.prod-cta{flex-direction:column}
.prod-cta .btn{width:100%;justify-content:center;text-align:center}
}
@media(max-width:400px){
.prod-modal{max-height:100vh;border-radius:0}
.prod-overlay{padding:0;align-items:stretch}
}

/* Blog card links */
.blog-excerpt { max-height: none; overflow: visible; position: relative; }
.blog-read-more { display: inline-block; margin-top: 12px; font-size: 0.82rem; font-weight: 600; color: var(--gold-dark); cursor: pointer; border: none; background: none; font-family: var(--font-body); padding: 0; }
.blog-card:hover .blog-read-more { color: var(--navy); }

/* ═══════════════════════════════════════════
   reCAPTCHA v3 Badge - oculto (permitido pelo Google
   desde que o texto de atribuição esteja visível no site)
   ═══════════════════════════════════════════ */
.grecaptcha-badge {
  visibility: hidden !important;
}
