/* ===== CSS VARIABLES ===== */
:root {
  --primary: hsl(221, 83%, 40%);
  --primary-hover: hsl(221, 83%, 35%);
  --primary-foreground: hsl(0, 0%, 100%);
  --accent: hsl(142, 71%, 28%);
  --accent-hover: hsl(142, 71%, 23%);
  --accent-foreground: hsl(0, 0%, 100%);
  --secondary: hsl(220, 9%, 20%);
  --secondary-foreground: hsl(210, 40%, 98%);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(222, 47%, 11%);
  --card: hsl(0, 0%, 100%);
  --card-foreground: hsl(222, 47%, 11%);
  --muted: hsl(210, 40%, 96%);
  --muted-foreground: hsl(215, 16%, 47%);
  --border: hsl(214, 32%, 91%);
  --input: hsl(214, 32%, 91%);
  --warning: hsl(43, 96%, 56%);
  --radius: 0.5rem;
  --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
  --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', system-ui, sans-serif; color: var(--foreground); background: var(--background); line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ===== CONTAINER ===== */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ===== HEADER ===== */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 4rem; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 2rem; }
.logo { display: flex; align-items: center; gap: 0.625rem; }
.logo-icon { width: 2.25rem; height: 2.25rem; background: var(--primary); color: white; border-radius: 0.5rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-icon svg { width: 1.25rem; height: 1.25rem; }
.logo-name { font-size: 1rem; font-weight: 700; color: var(--foreground); line-height: 1.2; }
.logo-name.inverse { color: var(--secondary-foreground); }
.logo-subtitle { font-size: 0.625rem; font-weight: 500; color: var(--primary); line-height: 1; }
.logo-subtitle.inverse { color: rgba(240,249,255,0.7); }
.nav-desktop { display: none; }
@media (min-width: 1024px) { .nav-desktop { display: flex; align-items: center; gap: 0.25rem; } }
.nav-link { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); padding: 0.375rem 0.75rem; border-radius: 0.375rem; transition: all 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); background: hsla(221,83%,40%,0.05); }
.btn-hamburger { display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 2.5rem; border-radius: 0.5rem; color: var(--foreground); transition: all 0.2s; }
.btn-hamburger:hover { background: var(--muted); }
.btn-hamburger svg { width: 1.5rem; height: 1.5rem; }

/* ===== MOBILE NAV ===== */
.mobile-nav { display: none; border-top: 1px solid var(--border); background: var(--background); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.mobile-nav.open { display: block; }
.mobile-nav-inner { padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav-link { display: block; padding: 0.75rem 1rem; border-radius: 0.5rem; font-size: 0.875rem; font-weight: 500; color: var(--foreground); transition: all 0.2s; }
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--primary); background: hsla(221,83%,40%,0.05); }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 600; font-size: 0.875rem; padding: 0.625rem 1.25rem; border-radius: 0.5rem; transition: all 0.2s; cursor: pointer; border: none; font-family: inherit; text-decoration: none; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 4px 14px hsla(221,83%,40%,0.35); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 6px 20px hsla(221,83%,40%,0.45); }
.btn-accent { background: var(--accent); color: white; box-shadow: 0 4px 14px hsla(142,71%,28%,0.35); }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 6px 20px hsla(142,71%,28%,0.45); }
.btn-outline { background: transparent; color: var(--foreground); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--muted); border-color: var(--primary); color: var(--primary); }
.btn-ghost { background: transparent; color: var(--foreground); }
.btn-ghost:hover { background: var(--muted); }
.btn-white { background: white; color: var(--primary); box-shadow: 0 4px 14px rgba(0,0,0,0.2); }
.btn-white:hover { background: var(--muted); }
.btn-white-outline { background: transparent; color: white; border: 1px solid rgba(255,255,255,0.4); }
.btn-white-outline:hover { background: rgba(255,255,255,0.1); border-color: white; }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.8125rem; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

/* ===== CARDS ===== */
.card { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; box-shadow: var(--shadow-sm); }
.card-hover { transition: all 0.3s; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: hsla(221,83%,40%,0.2); }

/* ===== BADGE ===== */
.badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.375rem 0.875rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; }
.badge-primary { background: hsla(221,83%,40%,0.1); border: 1px solid hsla(221,83%,40%,0.2); color: var(--primary); }

/* ===== PAGE HERO ===== */
.page-hero { position: relative; padding: 6rem 0 4rem; background: linear-gradient(to bottom, var(--muted), var(--background)); overflow: hidden; }
.page-hero-dot-pattern { position: absolute; inset: 0; opacity: 0.4; background-image: radial-gradient(circle at 1px 1px, hsla(221,83%,40%,0.1) 1px, transparent 0); background-size: 30px 30px; }
.page-hero-orb-1 { position: absolute; top: -5rem; right: -5rem; width: 20rem; height: 20rem; border-radius: 9999px; background: hsla(221,83%,40%,0.05); filter: blur(40px); }
.page-hero-orb-2 { position: absolute; bottom: -5rem; left: -5rem; width: 20rem; height: 20rem; border-radius: 9999px; background: hsla(142,71%,28%,0.05); filter: blur(40px); }

/* ===== ACCORDION ===== */
.accordion { display: flex; flex-direction: column; gap: 0.75rem; }
.accordion-item { background: var(--card); border: 1px solid var(--border); border-radius: 0.75rem; overflow: hidden; transition: all 0.2s; }
.accordion-item:hover { border-color: hsla(221,83%,40%,0.3); }
.accordion-item.open { border-color: var(--primary); }
.accordion-trigger { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; font-size: 1rem; font-weight: 600; color: var(--foreground); text-align: left; background: none; border: none; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.accordion-trigger:hover { color: var(--primary); background: hsla(221,83%,40%,0.02); }
.accordion-trigger svg { flex-shrink: 0; transition: transform 0.3s; }
.accordion-item.open .accordion-trigger svg { transform: rotate(180deg); }
.accordion-item.open .accordion-trigger { color: var(--primary); }
.accordion-content { display: none; padding: 0 1.5rem 1.25rem; font-size: 0.9375rem; color: var(--muted-foreground); line-height: 1.625; }
.accordion-item.open .accordion-content { display: block; }

/* ===== BREADCRUMBS ===== */
.breadcrumbs { padding: 1rem 0; background: var(--muted); border-bottom: 1px solid var(--border); }
.breadcrumbs ol { list-style: none; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; font-size: 0.875rem; }
.breadcrumbs a { color: var(--muted-foreground); transition: color 0.2s; display: flex; align-items: center; }
.breadcrumbs a:hover { color: var(--primary); }
.crumb-current { color: var(--primary); font-weight: 500; }

/* ===== FOOTER ===== */
.site-footer { margin-top: 0; }
.footer-main { background: var(--secondary); padding: 4rem 0; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-col-brand { }
.footer-desc { color: rgba(240,249,255,0.7); font-size: 0.875rem; line-height: 1.625; margin-bottom: 1.5rem; max-width: 20rem; }
.footer-title { font-size: 0.875rem; font-weight: 700; color: var(--secondary-foreground); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 1.25rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { font-size: 0.875rem; color: rgba(240,249,255,0.7); transition: color 0.2s; }
.footer-links a:hover { color: var(--secondary-foreground); }
.footer-contact-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.footer-contact-item svg { color: var(--primary); flex-shrink: 0; margin-top: 0.125rem; }
.footer-contact-item a { font-size: 0.875rem; color: rgba(240,249,255,0.7); transition: color 0.2s; word-break: break-all; }
.footer-contact-item a:hover { color: var(--secondary-foreground); }
.footer-bottom { background: hsla(0,0%,0%,0.3); padding: 1.25rem 0; }
.footer-bottom-inner { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; text-align: center; }
@media (min-width: 768px) { .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-copyright { font-size: 0.875rem; color: rgba(240,249,255,0.5); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.875rem; color: rgba(240,249,255,0.5); transition: color 0.2s; }
.footer-legal a:hover { color: rgba(240,249,255,0.9); }

/* ===== WHATSAPP FLOATING ===== */
.whatsapp-floating { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 100; }
.whatsapp-pulse { position: absolute; inset: 0; background: var(--accent); border-radius: 9999px; animation: pulse-ring 2s infinite; opacity: 0; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.5); opacity: 0; } }
.whatsapp-btn-inner { position: relative; display: flex; align-items: center; gap: 0.5rem; background: var(--accent); color: white; padding: 0.75rem 1.25rem; border-radius: 9999px; font-weight: 600; font-size: 0.875rem; box-shadow: 0 8px 32px hsla(142,71%,28%,0.4); transition: all 0.3s; cursor: pointer; }
.whatsapp-btn-inner:hover { background: var(--accent-hover); transform: scale(1.05); }
.whatsapp-btn-inner svg { width: 1.5rem; height: 1.5rem; }
.whatsapp-btn-text { display: none; }
@media (min-width: 640px) { .whatsapp-btn-text { display: inline; } }
.whatsapp-tooltip { display: none; }

/* ===== GRID HELPERS ===== */
.grid { display: grid; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .md\:table-wrap { display: block; }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
  .lg\:block { display: block; }
  .lg\:hidden { display: none; }
}
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none; }
@media (min-width: 1024px) { .lg\:hidden { display: none; } }

/* ===== BLOG ACTIVE CAT ===== */
.active-cat { background: var(--primary) !important; color: white !important; border-color: var(--primary) !important; }

/* ===== BLOG CONTENT ===== */
.blog-content h2 { font-size: 1.5rem; font-weight: 700; color: var(--foreground); margin: 2rem 0 1rem; }
.blog-content h3 { font-size: 1.25rem; font-weight: 600; color: var(--foreground); margin: 1.5rem 0 0.75rem; }
.blog-content p { color: var(--muted-foreground); line-height: 1.75; margin-bottom: 1rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .container { padding: 0 1rem; }
  h1 { font-size: 1.75rem !important; }
  h2 { font-size: 1.5rem !important; }
}
