/* ==========================================================================
   CASTRO VELASQUEZ ABOGADOS - TEMA MINIMALISTA BLANCO & TIPOGRAFÍA INTER
   Inspirado en los estándares internacionales de PPU Legal (ppulegal.com)
   ========================================================================== */

:root {
  /* Minimalist Light Palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-card: #ffffff;
  
  --primary-navy: #0f1b27;
  --secondary-navy: #162638;
  --navy-light: #1e3a5f;
  
  --gold-main: #c8a656;
  --gold-hover: #b8933e;
  --gold-dark: #9e7f37;
  --gold-light-bg: rgba(200, 166, 86, 0.08);
  --gold-border: rgba(200, 166, 86, 0.3);
  
  --text-main: #0f1b27;
  --text-body: #334155;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  
  /* Typography - Clean Modern Sans (Inter) */
  --font-primary: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', serif;
  
  /* Layout & Spacing */
  --max-width: 1280px;
  --header-height: 84px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  
  /* Shadows & Glassmorphism */
  --shadow-sm: 0 2px 8px rgba(15, 27, 39, 0.04);
  --shadow-md: 0 10px 30px rgba(15, 27, 39, 0.06);
  --shadow-lg: 0 20px 40px rgba(15, 27, 39, 0.1);
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(226, 232, 240, 0.8);
  
  --transition-fast: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  background-color: var(--bg-primary);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

/* Utility Classes */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-gold { color: var(--gold-dark); }
.text-muted { color: var(--text-muted); }
.text-bold { font-weight: 700; }
.text-main { color: var(--text-main); }
.w-100 { width: 100%; }

.img-rounded-bordered {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.page-banner {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  padding-top: 10rem;
  border-bottom: 1px solid var(--border-light);
}

/* Section Header Typography */
.section-subtitle {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-primary);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--primary-navy);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto 3rem;
  font-weight: 400;
}

/* Buttons & Micro-interactions */
.btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 3px solid var(--gold-main);
  outline-offset: 2px;
}

.btn-gold {
  background: var(--primary-navy);
  color: #ffffff;
  border: 1px solid var(--primary-navy);
}

.btn-gold:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-gold {
  background: #ffffff;
  color: var(--primary-navy);
  border: 1px solid var(--primary-navy);
}

.btn-outline-gold:hover {
  background: var(--primary-navy);
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.btn-block {
  width: 100%;
}

/* Form Controls & Validation States */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.9rem;
  color: var(--text-main);
  font-weight: 600;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-navy);
  box-shadow: 0 0 0 3px rgba(15, 27, 39, 0.08);
}

.form-input.is-valid {
  border-color: #16a34a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2316a34a' viewBox='0 0 16 16'%3E%3Cpath d='M13.854 3.646a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708 0l-3.5-3.5a.5.5 0 1 1 .708-.708L6.5 10.293l6.646-6.647a.5.5 0 0 1 .708 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  background-size: 1.1rem;
  padding-right: 2.5rem;
}

/* Header & Navbar */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition-smooth);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
}

.site-header.scrolled {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-fast);
}

.site-header.scrolled .brand-logo img {
  height: 42px;
}

.brand-text {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.brand-text span {
  color: var(--gold-dark);
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-navy);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-dark);
  transition: var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--gold-dark);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 30px;
  padding: 3px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.lang-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-navy);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section - Minimalist Light Clean Layout */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 5rem;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-secondary) 100%);
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
  align-items: center;
}

@media (min-width: 993px) {
  .hero-grid-reverse {
    grid-template-columns: 0.8fr 1.2fr;
  }
  .hero-grid-reverse > div:first-child {
    order: 2;
  }
  .hero-grid-reverse > div:last-child {
    order: 1;
  }
}

.service-section-alt {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  padding: 0.4rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  color: var(--gold-dark);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 1.5rem;
  color: var(--primary-navy);
  letter-spacing: -0.03em;
}

.hero-title span {
  color: var(--gold-dark);
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--text-body);
  margin-bottom: 2.2rem;
  max-width: 620px;
  line-height: 1.7;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Quick Stats Bar */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-light);
}

.stat-item h4 {
  font-family: var(--font-primary);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.02em;
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

/* Hero Feature Card Right */
.hero-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  box-sizing: border-box;
  width: 100%;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.hero-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.hero-card-title {
  font-family: var(--font-primary);
  font-size: 1.25rem;
  color: var(--primary-navy);
  font-weight: 700;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.feature-list-item i {
  color: var(--gold-dark);
  margin-top: 0.2rem;
}

/* Services Section */
.services-section {
  background: var(--bg-primary);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-md);
}

.service-card.featured {
  border-color: var(--gold-dark);
  position: relative;
}

.service-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--primary-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
}

.service-img-wrapper {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.service-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.service-card:hover .service-img-wrapper img {
  transform: scale(1.06);
}

.service-content {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.service-title {
  font-family: var(--font-primary);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--primary-navy);
}

.service-text {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-bullets {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.service-bullets li {
  font-size: 0.88rem;
  color: var(--text-body);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-bullets li i {
  color: var(--gold-dark);
  font-size: 0.8rem;
}

/* Consultation Wizard Section */
.wizard-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.wizard-box {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}

.wizard-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.2rem;
  margin: 2rem 0;
}

.wizard-option {
  background: var(--bg-secondary);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.wizard-option:hover, .wizard-option.selected {
  border-color: var(--primary-navy);
  background: var(--bg-primary);
}

.wizard-option i {
  font-size: 2rem;
  color: var(--primary-navy);
  margin-bottom: 0.8rem;
}

.wizard-option h4 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  color: var(--primary-navy);
  font-weight: 700;
}

/* Foreign Visas Highlight Banner */
.visas-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 3.5rem 3rem;
  position: relative;
  overflow: hidden;
}

.visas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

/* Blog / SEO News Section */
.blog-section {
  background: var(--bg-primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.blog-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-navy);
  box-shadow: var(--shadow-md);
}

.blog-card-body {
  padding: 1.5rem;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--gold-dark);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.blog-title {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.8rem;
  line-height: 1.35;
}

.blog-excerpt {
  font-size: 0.9rem;
  color: var(--text-body);
  margin-bottom: 1.2rem;
}

/* ==========================================================================
   Blog Category Grouping, Filter Pills & Search Bar
   ========================================================================== */
.blog-controls-wrapper {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin-bottom: 2.75rem;
  box-shadow: var(--shadow-sm);
}

.blog-search-box {
  position: relative;
  margin-bottom: 1.25rem;
}

.blog-search-input {
  width: 100%;
  padding: 0.9rem 2.8rem 0.9rem 2.85rem;
  font-size: 0.95rem;
  font-family: var(--font-primary);
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  color: var(--primary-navy);
  transition: var(--transition-fast);
}

.blog-search-input:focus {
  outline: none;
  border-color: var(--gold-main);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.2);
}

.blog-search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1rem;
  pointer-events: none;
}

.blog-search-clear {
  position: absolute;
  right: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  display: none;
  line-height: 1;
}

.blog-search-clear:hover {
  color: var(--primary-navy);
}

.blog-filter-pills-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.blog-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.blog-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.05rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  background: #f1f5f9;
  color: var(--text-body);
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.blog-filter-pill i {
  color: var(--gold-dark);
  font-size: 0.88rem;
}

.blog-filter-pill:hover {
  background: #e2e8f0;
  color: var(--primary-navy);
  border-color: #cbd5e1;
}

.blog-filter-pill.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 3px 10px rgba(15, 27, 39, 0.25);
}

.blog-filter-pill.active i {
  color: var(--gold-light);
}

.blog-filter-pill .pill-count {
  display: inline-block;
  background: rgba(197, 160, 89, 0.2);
  color: var(--gold-dark);
  padding: 0.1rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.74rem;
  font-weight: 700;
  margin-left: 0.2rem;
}

.blog-filter-pill.active .pill-count {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* Category Group Sections */
.blog-category-group {
  margin-bottom: 3.5rem;
  scroll-margin-top: 100px;
}

.blog-category-group.group-hidden {
  display: none !important;
}

.blog-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border-left: 5px solid var(--gold-main);
  border-top: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.blog-category-header-main {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: 1;
  min-width: 260px;
}

.blog-category-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.blog-category-tagline {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 0.25rem;
  display: block;
}

.blog-category-title {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary-navy);
  margin: 0 0 0.3rem 0;
  line-height: 1.3;
}

.blog-category-desc {
  font-size: 0.88rem;
  color: var(--text-body);
  margin: 0;
  line-height: 1.5;
}

.blog-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary-navy);
  white-space: nowrap;
  flex-shrink: 0;
}

.blog-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.7rem;
}

.cat-laboral {
  background: rgba(197, 160, 89, 0.15);
  color: var(--gold-dark);
  border: 1px solid rgba(197, 160, 89, 0.3);
}

.cat-empresarial {
  background: rgba(15, 27, 39, 0.07);
  color: var(--primary-navy);
  border: 1px solid rgba(15, 27, 39, 0.18);
}

.cat-inmobiliario {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
  border: 1px solid rgba(16, 185, 129, 0.28);
}

.cat-penal-extincion {
  background: rgba(220, 38, 38, 0.1);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.cat-migratorio {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.28);
}

.blog-card.card-hidden {
  display: none !important;
}

/* Empty Search Results State */
.blog-no-results {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.blog-no-results-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(197, 160, 89, 0.14);
  color: var(--gold-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.15rem;
}

.blog-no-results-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.5rem;
}

.blog-no-results-desc {
  color: var(--text-body);
  font-size: 0.92rem;
  max-width: 480px;
  margin: 0 auto 1.5rem auto;
  line-height: 1.55;
}

/* Contact & Location Section */
.contact-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  margin-bottom: 1.8rem;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-navy);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.info-text h4 {
  font-family: var(--font-primary);
  font-size: 1.05rem;
  color: var(--primary-navy);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.info-text p, .info-text a {
  font-size: 0.95rem;
  color: var(--text-body);
}

.info-text a:hover {
  color: var(--gold-dark);
}

.map-container {
  width: 100%;
  height: 100%;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition-smooth);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

/* Footer */
.site-footer {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-title {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--gold-main);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #94a3b8;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer .brand-text {
  color: #ffffff;
}

/* Responsive Queries */
@media (max-width: 992px) {
  .hero-grid, .visas-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 1rem;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .brand-logo img {
    height: 40px;
  }

  .brand-text {
    display: block;
    font-size: 0.92rem;
    line-height: 1.05;
  }

  .brand-text span {
    font-size: 0.62rem;
    letter-spacing: 0.5px;
  }

  .header-actions {
    gap: 0.45rem;
  }

  .header-actions .btn-sm {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .lang-switcher {
    padding: 2px;
  }

  .lang-btn {
    font-size: 0.68rem;
    padding: 2px 6px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: -100%;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: #ffffff;
    flex-direction: column;
    padding: 2.5rem 1.5rem;
    align-items: flex-start;
    gap: 1.5rem;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links.active {
    left: 0;
  }
  .mobile-toggle {
    display: block;
    padding: 0.3rem;
  }
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .brand-logo img {
    height: 36px;
  }
  
  .brand-text {
    font-size: 0.82rem;
  }

  .brand-text span {
    font-size: 0.58rem;
  }

  .header-actions {
    gap: 0.3rem;
  }

  .header-actions .btn-sm {
    padding: 0.35rem 0.55rem;
    font-size: 0.72rem;
  }
}

/* ==========================================================================
   SHARE SYSTEM, MODAL & TOAST STYLES
   ========================================================================== */
.share-btn-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-share {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: #ffffff;
  color: var(--primary-navy);
  border: 1px solid var(--primary-navy);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.8rem;
  font-family: var(--font-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition-smooth);
  box-sizing: border-box;
}

.btn-share:hover {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  transform: translateY(-2px);
}

.btn-share.btn-sm {
  padding: 0.55rem 1.2rem;
  font-size: 0.85rem;
}

.btn-share-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  color: var(--primary-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.9rem;
}

.btn-share-icon:hover {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  transform: translateY(-2px);
}

/* Article Share Toolbar */
.article-share-toolbar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.article-share-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.article-share-buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.social-share-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  border: 1px solid transparent;
}

.social-share-chip.wa {
  background: #25d366;
  color: #ffffff;
}

.social-share-chip.wa:hover {
  background: #1da851;
  color: #ffffff;
}

.social-share-chip.tg {
  background: #229ed9;
  color: #ffffff;
}

.social-share-chip.tg:hover {
  background: #1b82b5;
  color: #ffffff;
}

.social-share-chip.li {
  background: #0a66c2;
  color: #ffffff;
}

.social-share-chip.li:hover {
  background: #084e96;
  color: #ffffff;
}

.social-share-chip.copy {
  background: var(--primary-navy);
  color: #ffffff;
  cursor: pointer;
}

.social-share-chip.copy:hover {
  background: var(--gold-dark);
  color: #ffffff;
}

/* Modal Flotante de Compartir */
.share-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 27, 39, 0.6);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 1rem;
}

.share-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.share-modal-content {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 450px;
  width: 100%;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.25s ease;
}

.share-modal-overlay.active .share-modal-content {
  transform: translateY(0);
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.8rem;
}

.share-modal-title {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-navy);
}

.share-modal-close {
  background: transparent;
  border: none;
  font-size: 1.3rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
}

.share-modal-close:hover {
  color: var(--primary-navy);
}

.share-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}

.share-modal-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--primary-navy);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
  cursor: pointer;
}

.share-modal-option:hover {
  background: #ffffff;
  border-color: var(--primary-navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.share-modal-option i {
  font-size: 1.5rem;
}

.share-modal-option.opt-wa i { color: #25d366; }
.share-modal-option.opt-tg i { color: #229ed9; }
.share-modal-option.opt-li i { color: #0a66c2; }
.share-modal-option.opt-fb i { color: #1877f2; }
.share-modal-option.opt-mail i { color: #ea4335; }
.share-modal-option.opt-copy i { color: var(--gold-dark); }

.share-url-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.6rem;
}

.share-url-input {
  border: none;
  background: transparent;
  flex-grow: 1;
  font-size: 0.85rem;
  color: var(--text-muted);
  outline: none;
}

/* Toast Notifications */
.toast-notification {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--primary-navy);
  color: #ffffff;
  padding: 0.8rem 1.5rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-notification.active {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ==========================================================================
   GOOGLE BUSINESS PROFILE TRUST BADGES & REVIEWS SECTION
   ========================================================================== */

/* Hero Google Badge */
.hero-google-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 166, 86, 0.4);
  border-radius: 50px;
  padding: 0.45rem 1.1rem;
  margin-top: 1.2rem;
  margin-bottom: 0.3rem;
  text-decoration: none;
  color: #ffffff;
  transition: var(--transition-fast);
  max-width: fit-content;
}

.hero-google-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--gold-main);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.google-badge-g {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  flex-shrink: 0;
}

.google-badge-content {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: left;
}

.google-badge-stars {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.google-rating-num {
  font-weight: 800;
  font-size: 0.95rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.stars-gold {
  color: #fbbf24;
  font-size: 0.8rem;
  display: inline-flex;
  gap: 2px;
}

.stars-gold-lg {
  color: #fbbf24;
  font-size: 1.25rem;
  display: inline-flex;
  gap: 3px;
}

.google-badge-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.google-badge-link-icon {
  color: var(--gold-main);
  font-size: 0.8rem;
  margin-left: 0.2rem;
  opacity: 0.85;
}

/* Google Reviews Section */
.google-reviews-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.google-profile-summary-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.8rem 2.2rem;
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.google-summary-brand {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.google-logo-box {
  width: 52px;
  height: 52px;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(15, 27, 39, 0.05);
  flex-shrink: 0;
}

.google-summary-firm {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.2rem;
  letter-spacing: -0.02em;
}

.google-summary-location {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.badge-verified {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #16a34a;
  font-weight: 600;
  font-size: 0.8rem;
}

.google-summary-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rating-number {
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary-navy);
  line-height: 1;
  letter-spacing: -0.03em;
}

.rating-caption {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

.google-summary-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* Reviews Grid */
.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.google-review-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}

.google-review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(200, 166, 86, 0.4);
}

.review-card-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.reviewer-avatar-wrap {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.reviewer-avatar-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(197, 160, 89, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  display: block;
}

.reviewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
  flex-shrink: 0;
}

.avatar-blue { background: linear-gradient(135deg, #1e3a5f, #0f1b27); }
.avatar-gold { background: linear-gradient(135deg, #d4af37, #9e7f37); }
.avatar-navy { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.avatar-dark { background: linear-gradient(135deg, #475569, #1e293b); }

.reviewer-info {
  flex-grow: 1;
}

.reviewer-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.1rem;
}

.reviewer-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.badge-google-user {
  color: #16a34a;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.review-g-icon {
  color: #4285F4;
  font-size: 1.15rem;
  opacity: 0.85;
}

.review-stars-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.review-category-badge {
  background: var(--gold-light-bg);
  color: var(--gold-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border: 1px solid var(--gold-border);
}

.review-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.55;
  font-style: italic;
  margin-top: auto;
}

/* Reviews Footer Callout */
.reviews-footer-cta {
  background: #ffffff;
  border: 1px dashed var(--gold-main);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.reviews-footer-text {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.reviews-footer-text i {
  font-size: 2rem;
}

.reviews-footer-text h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 0.2rem;
}

.reviews-footer-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .hero-google-badge {
    margin-top: 1rem;
    width: 100%;
    justify-content: center;
  }
  .google-profile-summary-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
  }
  .google-summary-brand {
    flex-direction: column;
  }
  .google-summary-location {
    justify-content: center;
  }
  .google-summary-rating {
    flex-direction: column;
    gap: 0.4rem;
  }
  .google-summary-actions {
    justify-content: center;
    width: 100%;
  }
  .google-summary-actions .btn {
    width: 100%;
  }
  .reviews-footer-cta {
    flex-direction: column;
    text-align: center;
  }
  .reviews-footer-text {
    flex-direction: column;
  }
  .reviews-footer-cta .btn {
    width: 100%;
  }
}

/* ==========================================================================
   LABOR CALCULATOR & INDEMNITY SIMULATOR STYLES
   ========================================================================== */

.calc-section {
  background: var(--bg-secondary);
  padding: 3.5rem 0 5rem;
}

.calc-app-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.2rem;
  align-items: start;
}

.calc-form-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-md);
}

.calc-step-block {
  margin-bottom: 1.8rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--border-light);
}

.calc-step-block:last-of-type {
  margin-bottom: 1.2rem;
  padding-bottom: 0;
  border-bottom: none;
}

.calc-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}

.calc-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary-navy);
  color: var(--gold-main);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.calc-step-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0;
}

.calc-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: start;
}

.calc-form-row > .calc-field {
  margin-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.4rem;
}

.calc-field {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.calc-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  min-height: 1.4rem;
  line-height: 1.35;
  margin: 0;
}

.calc-label-hint {
  font-size: 0.76rem;
  color: var(--text-muted);
  font-weight: 400;
}

.calc-input,
.calc-select {
  width: 100%;
  height: 48px;
  min-height: 48px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-family: var(--font-primary);
  font-size: 0.95rem;
  color: var(--primary-navy);
  font-weight: 500;
  background: #ffffff;
  transition: var(--transition-fast);
  outline: none;
  box-sizing: border-box;
  margin: 0;
}

.calc-input:focus,
.calc-select:focus {
  border-color: var(--gold-main);
  box-shadow: 0 0 0 3px rgba(200, 166, 86, 0.15);
}

.calc-input-prefix-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.calc-input-prefix {
  position: absolute;
  left: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  pointer-events: none;
}

.calc-input-prefix-wrap .calc-input {
  padding-left: 2rem;
}

.calc-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.calc-chip-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-navy);
  cursor: pointer;
  transition: var(--transition-fast);
}

.calc-chip-btn:hover {
  background: var(--gold-light-bg);
  border-color: var(--gold-main);
  color: var(--gold-dark);
}

.calc-duration-pill {
  background: #f0f4f8;
  border-left: 3px solid var(--gold-main);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--primary-navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

.calc-radio-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.calc-radio-card {
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #ffffff;
}

.calc-radio-card:hover {
  border-color: var(--gold-border);
  background: var(--bg-secondary);
}

.calc-radio-card.active {
  border-color: var(--gold-main);
  background: var(--gold-light-bg);
}

.calc-radio-card input[type="radio"] {
  margin-top: 0.22rem;
  accent-color: var(--primary-navy);
}

.calc-radio-card-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--primary-navy);
  display: block;
}

.calc-radio-card-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.35;
  margin-top: 0.15rem;
}

/* Results Card */
.calc-results-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: sticky;
  top: calc(var(--header-height) + 1.2rem);
}

.calc-results-hero {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #162638 100%);
  color: #ffffff;
  padding: 2rem 2rem 1.6rem;
  border-bottom: 3px solid var(--gold-main);
}

.calc-results-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200, 166, 86, 0.18);
  color: var(--gold-main);
  border: 1px solid rgba(200, 166, 86, 0.4);
  padding: 0.25rem 0.75rem;
  border-radius: 30px;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.calc-total-label {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0.2rem;
}

.calc-total-amount {
  font-size: 2.35rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 1.1rem;
}

.calc-subtotals-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.calc-subtotal-box {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
}

.calc-subtotal-box span {
  display: block;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.75);
}

.calc-subtotal-box strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--gold-main);
}

.calc-results-body {
  padding: 1.6rem 2rem 2rem;
}

/* Visual Distribution Bar */
.calc-bar-container {
  margin-bottom: 1.4rem;
}

.calc-bar-track {
  height: 10px;
  width: 100%;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  margin-bottom: 0.5rem;
}

.calc-bar-seg {
  height: 100%;
  transition: width 0.35s ease;
}

.seg-prestaciones { background: var(--primary-navy); }
.seg-vacaciones { background: #2563eb; }
.seg-indemnizacion { background: var(--gold-main); }
.seg-salario { background: #16a34a; }

.calc-bar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.calc-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.calc-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Breakdown Items */
.calc-breakdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
}

.calc-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.9rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  gap: 0.8rem;
}

.calc-item-row.highlight-indemnity {
  background: var(--gold-light-bg);
  border-color: var(--gold-border);
}

.calc-item-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin: 0 0 0.15rem 0;
}

.calc-item-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.3;
}

.calc-item-value {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--primary-navy);
  white-space: nowrap;
}

.calc-moratoria-alert {
  background: #faf8f5;
  border-left: 4px solid var(--gold-main);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  color: var(--text-body);
  line-height: 1.5;
  margin-bottom: 1.4rem;
}

.calc-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.calc-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

/* Promo Banner for Homepage & Articles */
.calc-promo-banner {
  background: linear-gradient(135deg, var(--primary-navy) 0%, #162638 100%);
  border: 1px solid rgba(200, 166, 86, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.2rem 2.5rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.calc-promo-content {
  max-width: 680px;
}

.calc-promo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(200, 166, 86, 0.2);
  color: var(--gold-main);
  border: 1px solid rgba(200, 166, 86, 0.4);
  padding: 0.3rem 0.8rem;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.calc-promo-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.calc-promo-desc {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
  line-height: 1.6;
}

.calc-promo-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

@media (max-width: 992px) {
  .calc-app-grid {
    grid-template-columns: 1fr;
  }
  .calc-results-card {
    position: static;
  }
  .calc-promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 1.8rem 1.5rem;
  }
  .calc-promo-cta {
    width: 100%;
  }
  .calc-promo-cta .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .calc-form-card,
  .calc-results-body,
  .calc-results-hero {
    padding: 1.4rem;
  }
  .calc-form-row,
  .calc-radio-cards,
  .calc-subtotals-grid,
  .calc-actions-row {
    grid-template-columns: 1fr;
  }
  .calc-total-amount {
    font-size: 1.85rem;
  }
}

/* ==========================================================================
   WORK HOURS CALCULATOR (CALCULADORA DE HORAS TRABAJADAS)
   ========================================================================== */

.tools-nav-switcher {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.2rem;
  flex-wrap: wrap;
}

.tools-nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1.35rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  text-decoration: none;
  transition: var(--transition-fast);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.tools-nav-tab:hover {
  border-color: var(--gold-main);
  color: var(--primary-navy);
  transform: translateY(-1px);
}

.tools-nav-tab.active {
  background: var(--primary-navy);
  color: #ffffff;
  border-color: var(--primary-navy);
  box-shadow: 0 4px 12px rgba(15, 27, 39, 0.15);
}

.tools-nav-tab.active i {
  color: var(--gold-main);
}

.calc-segmented-pill {
  display: inline-flex;
  background: #f1f5f9;
  border-radius: 30px;
  padding: 3px;
  gap: 3px;
  border: 1px solid var(--border-light);
}

.calc-seg-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 1rem;
  border-radius: 25px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition-fast);
}

.calc-seg-btn:hover {
  color: var(--primary-navy);
}

.calc-seg-btn.active {
  background: #ffffff;
  color: var(--primary-navy);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.time-picker-box {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.time-num-input-wrap {
  position: relative;
  flex: 1;
}

.time-num-input {
  width: 100%;
  height: 48px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-navy);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0 22px 0 8px;
  box-sizing: border-box;
  font-family: inherit;
  transition: var(--transition-fast);
}

.time-num-input:focus {
  border-color: var(--gold-main);
  outline: none;
  box-shadow: 0 0 0 3px rgba(197, 160, 89, 0.15);
}

.time-stepper-controls {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
}

.time-step-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 14px;
  padding: 0;
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.15s;
}

.time-step-btn:hover {
  color: var(--gold-dark);
}

.time-colon {
  font-size: 1.25rem;
  font-weight: 800;
  color: #94a3b8;
  user-select: none;
}

.time-ampm-select {
  height: 48px;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--primary-navy);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 0 0.8rem;
  cursor: pointer;
  box-sizing: border-box;
  transition: var(--transition-fast);
}

.time-ampm-select:focus {
  border-color: var(--gold-main);
  outline: none;
}

.calc-presets-bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.calc-preset-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  background: rgba(197, 160, 89, 0.1);
  border: 1px solid rgba(197, 160, 89, 0.35);
  cursor: pointer;
  transition: var(--transition-fast);
}

.calc-preset-pill:hover {
  background: var(--gold-main);
  color: #ffffff;
  border-color: var(--gold-main);
}

.hours-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.88rem;
}

.hours-metric-row:last-child {
  border-bottom: none;
}

.hours-metric-label {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hours-metric-value {
  color: #ffffff;
  font-weight: 700;
}

.hours-metric-highlight {
  color: var(--gold-light);
  font-weight: 800;
}

.hours-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.76rem;
  font-weight: 700;
  margin-top: 0.6rem;
}

.hours-badge-ok {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.hours-badge-overtime {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.hours-badge-deficit {
  background: rgba(2, 132, 199, 0.18);
  color: #38bdf8;
  border: 1px solid rgba(2, 132, 199, 0.4);
}

/* Card: Horas a Favor del Empleador (Déficit) */
.employer-hours-box {
  background: #f0f9ff;
  border: 1.5px solid #0284c7;
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.25rem;
  transition: var(--transition-fast);
}

.employer-hours-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.45rem;
}

.employer-hours-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(2, 132, 199, 0.15);
  color: #0284c7;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.employer-hours-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0369a1;
  display: block;
}

.employer-hours-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0c4a6e;
  margin: 0;
}

.employer-hours-desc {
  font-size: 0.85rem;
  color: #334155;
  line-height: 1.55;
  margin: 0.4rem 0 0.6rem;
}

.employer-hours-legal-note {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  font-size: 0.79rem;
  color: #0369a1;
  line-height: 1.45;
}



/* Print Stylesheet for PDF Export */
@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .calc-actions-stack,
  .calc-quick-chips,
  .article-share-toolbar,
  .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .calc-section {
    padding: 0 !important;
    background: #ffffff !important;
  }
  .calc-app-grid {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  .calc-results-card,
  .calc-form-card {
    box-shadow: none !important;
    border: 1px solid #cbd5e1 !important;
    page-break-inside: avoid;
  }
  .calc-results-hero {
    background: #0f1b27 !important;
    color: #ffffff !important;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}




/* ==========================================================================
   Universal Sticky Table of Contents (TOC) & In-Article Jump Links
   ========================================================================== */

/* Smooth scrolling and anchor offset compensation */
html {
  scroll-behavior: smooth;
}

[id^="seccion-"], [id^="faq-"] {
  scroll-margin-top: calc(var(--header-height, 84px) + 1.4rem);
}

/* In-Article Static TOC Card */
.article-toc-box {
  background: #FAF8F5;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-navy);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 1.4rem 1.6rem;
  margin: 1rem 0 1.5rem 0;
}

.article-toc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.article-toc-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 1.1rem;
}

.article-toc-badge {
  font-size: 0.75rem;
  background: rgba(200, 166, 86, 0.18);
  color: var(--gold-dark);
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-toc-list {
  margin: 0;
  padding-left: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.98rem;
}

.article-toc-list li a {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-toc-list li a:hover {
  color: var(--primary-navy);
  text-decoration: underline;
}

/* Floating Sticky Pill Trigger */
.sticky-toc-pill {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  background: var(--primary-navy);
  color: #ffffff;
  border: 1.5px solid var(--gold-main);
  border-radius: 50px;
  padding: 0.7rem 1.25rem;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 10px 30px rgba(15, 27, 39, 0.4);
  cursor: pointer;
  z-index: 995;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, box-shadow 0.25s ease;
  transform: translateY(120px);
  opacity: 0;
  pointer-events: none;
}

.sticky-toc-pill.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.sticky-toc-pill:hover {
  background: #162638;
  border-color: #dfbe73;
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 27, 39, 0.5);
}

.sticky-toc-pill i.fa-list-ul {
  color: var(--gold-main);
  font-size: 0.95rem;
}

.sticky-toc-count {
  background: var(--gold-main);
  color: var(--primary-navy);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 12px;
  line-height: 1.3;
}

.sticky-toc-chevron {
  font-size: 0.75rem;
  color: var(--gold-main);
  transition: transform 0.25s ease;
}

.sticky-toc-pill.active .sticky-toc-chevron {
  transform: rotate(180deg);
}

/* Drawer / Bottom Sheet Modal */
.toc-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 27, 39, 0.65);
  backdrop-filter: blur(5px);
  z-index: 10005;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 0;
}

.toc-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.toc-drawer-panel {
  background: #ffffff;
  width: 100%;
  max-width: 520px;
  border-radius: 22px 22px 0 0;
  max-height: 84vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.toc-drawer-overlay.active .toc-drawer-panel {
  transform: translateY(0);
}

.toc-drawer-header {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 1.15rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold-main);
}

.toc-drawer-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #ffffff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  line-height: 1;
}

.toc-drawer-close:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.08);
}

.toc-progress-wrapper {
  padding: 0.75rem 1.4rem 0.55rem;
  background: #FAF8F5;
  border-bottom: 1px solid var(--border-light);
}

.toc-progress-track {
  height: 5px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.toc-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-main));
  transition: width 0.15s ease-out;
}

.toc-drawer-body {
  padding: 0.9rem 1.2rem;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  -webkit-overflow-scrolling: touch;
}

.toc-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 0.95rem;
  background: #FAF8F5;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: all 0.2s ease;
}

.toc-item:hover, .toc-item.current-active {
  background: #ffffff;
  border-color: var(--gold-main);
  box-shadow: 0 4px 14px rgba(200, 166, 86, 0.18);
  transform: translateX(3px);
}

.toc-item.current-active {
  border-left: 4px solid var(--gold-main);
}

.toc-item-badge {
  width: 32px;
  height: 32px;
  background: var(--primary-navy);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toc-item-content {
  flex: 1;
}

.toc-item-title {
  color: var(--primary-navy);
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
}

.toc-item-desc {
  color: #666;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.toc-item-arrow {
  color: var(--gold-main);
  font-size: 0.85rem;
  transition: transform 0.2s ease;
}

.toc-item:hover .toc-item-arrow {
  transform: translateX(3px);
}

.toc-faq-sublinks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
  padding-left: 2.8rem;
  margin-top: -0.2rem;
  margin-bottom: 0.3rem;
}

.toc-sublink {
  font-size: 0.82rem;
  color: var(--primary-navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: background 0.15s ease, color 0.15s ease;
}

.toc-sublink i {
  color: var(--gold-main);
  font-size: 0.78rem;
}

.toc-sublink:hover {
  background: #FAF8F5;
  color: var(--gold-dark);
}

.toc-drawer-footer {
  padding: 0.9rem 1.4rem;
  border-top: 1px solid var(--border-light);
  background: #ffffff;
}

/* Responsive */
@media (min-width: 769px) {
  .toc-drawer-overlay {
    align-items: center;
  }
  .toc-drawer-panel {
    border-radius: 18px;
    transform: translateY(30px) scale(0.96);
  }
  .toc-drawer-overlay.active .toc-drawer-panel {
    transform: translateY(0) scale(1);
  }
  .sticky-toc-pill {
    bottom: 2rem;
    left: 2rem;
  }
}

@media (max-width: 768px) {
  .sticky-toc-pill {
    bottom: 1.3rem;
    left: 1rem;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
  }
  .sticky-toc-pill .sticky-toc-text {
    font-size: 0.82rem;
  }
}

@media print {
  .sticky-toc-pill,
  .toc-drawer-overlay {
    display: none !important;
  }
}
