/* =========================================
   SEGNASA — Seguros Nacionales S.A.
   Main Stylesheet — Mobile-First
   ========================================= */

/* -------- DESIGN TOKENS -------- */
:root {
  --navy:        #0D2257;
  --navy-dark:   #091840;
  --navy-light:  #1a3272;
  --gold:        #C9980A;
  --gold-light:  #F0C040;
  --gold-pale:   #FBF3DC;
  --white:       #FFFFFF;
  --off-white:   #F8F7F4;
  --gray-100:    #F3F4F6;
  --gray-200:    #E5E7EB;
  --gray-400:    #9CA3AF;
  --gray-600:    #6B7280;
  --gray-800:    #2C2C2C;
  --whatsapp:    #25D366;
  --whatsapp-dk: #1DA851;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.14);
  --shadow-gold: 0 4px 24px rgba(201,152,10,0.30);
  --shadow-navy: 0 8px 32px rgba(13,34,87,0.25);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);

  --header-h: 96px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* -------- UTILITY -------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-pale);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section-tag--gold {
  color: var(--navy);
  background: rgba(201,152,10,0.15);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-title--white { color: var(--white); }

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.section-subtitle--light { color: rgba(255,255,255,0.75); }

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

.section-header--light .section-title,
.section-header--light p { color: var(--white); }

/* -------- BUTTONS -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-navy);
}

.btn-gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: #b8880a;
  border-color: #b8880a;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* -------- FLOATING WHATSAPP -------- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: all var(--transition);
}
.whatsapp-float:hover {
  background: var(--whatsapp-dk);
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.whatsapp-float:hover .whatsapp-tooltip { opacity: 1; transform: translateX(0); }

.whatsapp-tooltip {
  position: absolute;
  right: calc(100% + 14px);
  background: var(--gray-800);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transition);
  pointer-events: none;
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-width: 0;
  border-left-color: var(--gray-800);
}

/* -------- HEADER / NAVBAR -------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 900;
  height: var(--header-h);
  background: transparent;
  transition: all var(--transition-slow);
}
.header.scrolled {
  background: var(--navy);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}
.header.scrolled .nav-link { color: rgba(255,255,255,0.85); }
.header.scrolled .nav-link:hover { color: var(--gold-light); }
.header.scrolled .hamburger span { background: var(--white); }
.header.scrolled .logo-name { color: var(--white); }
.header.scrolled .logo-sub { color: rgba(255,255,255,0.6); }

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
  padding: 8px 0;
}

/* Logo */
.nav-logo, .footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Navbar logo */
.navbar-logo {
  height: 158px;
  width: auto;
  max-width: 540px;
  object-fit: contain;
  transition: opacity var(--transition);
  display: block;
  margin-top: 12px;
}
.header.scrolled .navbar-logo {
  opacity: 1;
  margin-top: 12px;
}

/* Footer logo */
.footer-logo-img {
  height: 96px;
  width: auto;
  max-width: 360px;
  object-fit: contain;
  margin-bottom: 16px;
  display: block;
}

/* Legacy text-based logo styles (hidden but kept for fallback) */
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gold);
  border: 2.5px solid rgba(255,255,255,0.3);
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.logo-mark--sm { width: 36px; height: 36px; }
.logo-s {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.logo-mark--sm .logo-s { font-size: 1.1rem; }

.logo-text {
  display: none;
  flex-direction: column;
  line-height: 1.15;
}
.logo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.01em;
}
.logo-sub {
  font-size: 0.65rem;
  font-weight: 400;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Nav menu */
.nav-menu {
  display: none;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  color: rgba(255,255,255,0.9);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover { color: var(--gold-light); background: rgba(255,255,255,0.08); }
.nav-link.active { color: var(--gold-light); }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 230px;
  padding: 8px;
  border: 1px solid var(--gray-200);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--gray-800);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.dropdown-link i { color: var(--gold); width: 16px; text-align: center; }
.dropdown-link:hover { background: var(--off-white); color: var(--navy); }

.nav-arrow { font-size: 0.65rem; }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
/* Hide desktop CTA on small screens — hamburger only */
@media (max-width: 767px) {
  .nav-actions .btn-sm { display: none; }
  /* Prevent navbar overflow on small screens */
  .navbar { padding: 8px 16px 8px 12px; }
  .navbar-logo {
    height: 104px;
    max-width: 360px;
    margin-top: 12px;
  }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  padding: 0;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
  transform-origin: center;
}
.header.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Mobile menu open */
.nav-menu.open {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--white);
  padding: 20px;
  gap: 4px;
  box-shadow: var(--shadow-lg);
  border-top: 1px solid var(--gray-200);
  z-index: 850;
}
.nav-menu.open .nav-link { color: var(--gray-800); justify-content: space-between; }
.nav-menu.open .nav-link:hover { color: var(--navy); background: var(--off-white); }
.nav-menu.open .dropdown-menu {
  display: none;
  position: static;
  transform: none;
  box-shadow: none;
  border: none;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}
.nav-menu.open .nav-dropdown.open .dropdown-menu { display: block; }

/* -------- HERO -------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg,
      rgba(9, 24, 64, 0.82) 0%,
      rgba(13, 34, 87, 0.75) 50%,
      rgba(26, 50, 114, 0.70) 100%),
    url('familia.png');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

.hero-shapes {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding-top: calc(var(--header-h) + 40px);
  padding-bottom: 80px;
  max-width: 720px;
  padding-left: 20px;
  padding-right: 20px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,152,10,0.15);
  border: 1px solid rgba(201,152,10,0.3);
  color: var(--gold-light);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.1875rem);
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.7;
}
.hero-subtitle strong { color: var(--gold-light); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-phones {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-phone-link {
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition);
}
.hero-phone-link:hover { color: var(--gold-light); }
.hero-phone-link .fab.fa-whatsapp { color: var(--whatsapp); }
.hero-phone-divider { color: rgba(255,255,255,0.3); }

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}
.hero-scroll a {
  display: flex;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.5);
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  animation: bounce 2s infinite;
  transition: all var(--transition);
}
.hero-scroll a:hover { color: var(--white); border-color: rgba(255,255,255,0.6); }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* -------- TRUST BAR -------- */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 32px 0;
  box-shadow: var(--shadow-sm);
}

.trust-bar-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.trust-number {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.trust-number sup {
  font-size: 1.1rem;
  vertical-align: super;
}
.trust-label {
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-weight: 500;
}
.trust-lloyds i {
  font-size: 1.75rem;
  color: var(--gold);
}
.trust-divider {
  width: 1px;
  height: 48px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* -------- SERVICES -------- */
.services {
  padding: 100px 0;
  background: var(--off-white);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card:hover::before { opacity: 1; }

.service-card--featured {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-color: transparent;
  color: var(--white);
}
.service-card--featured .service-title { color: var(--white); }
.service-card--featured .service-desc { color: rgba(255,255,255,0.75); }
.service-card--featured .service-features li { color: rgba(255,255,255,0.85); }
.service-card--featured .service-features .fa-check { color: var(--gold-light); }

.service-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--gold);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.service-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 24px;
}
.service-icon--blue { background: rgba(13,34,87,0.08); color: var(--navy); }
.service-icon--gold { background: rgba(201,152,10,0.10); color: var(--gold); }
.service-icon--white { background: rgba(255,255,255,0.15); color: var(--gold-light); }

.service-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-desc {
  color: var(--gray-600);
  font-size: 0.9375rem;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-features {
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--gray-700, #374151);
}
.service-features .fa-check {
  color: var(--gold);
  font-size: 0.75rem;
  flex-shrink: 0;
}

.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 600;
  transition: gap var(--transition);
}
.service-cta:hover { gap: 10px; }
.service-cta--white { color: var(--gold-light); }

/* -------- WHY US -------- */
.why-us {
  padding: 100px 0;
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.why-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-slow);
  background: var(--white);
}
.why-card:hover {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow-md);
  transform: translateY(-4px);
}

.why-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 20px;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.why-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* -------- HOW IT WORKS -------- */
.how-it-works {
  padding: 100px 0;
  background: var(--navy);
}
.how-it-works .section-tag { color: var(--navy-dark); background: var(--gold-light); font-weight: 700; }
.how-it-works .section-title { color: var(--white); }

.steps-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-bottom: 56px;
}

.step {
  flex: 1;
  text-align: center;
  padding: 36px 24px;
  max-width: 280px;
  position: relative;
}

.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 2px solid rgba(201,152,10,0.35);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
  position: relative;
  z-index: 2;
}

.step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}
.step-desc {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.step-arrow {
  color: var(--gold);
  font-size: 1.25rem;
  padding: 4px 0;
  transform: rotate(90deg);
  opacity: 0.5;
}

.steps-cta { text-align: center; }

/* -------- ABOUT -------- */
.about {
  padding: 100px 0;
  background: var(--off-white);
}

.about-grid {
  display: flex;
  flex-direction: column;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
  width: 100%;
  max-width: 440px;
  flex-shrink: 0;
}

.about-badge-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-navy);
  position: relative;
  z-index: 2;
}
.abc-number {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.abc-number sup { font-size: 2rem; vertical-align: super; }
.abc-text {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  margin-top: 8px;
  line-height: 1.4;
}

.about-circles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.ac {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(201,152,10,0.2);
}
.ac-1 { width: 120%; height: 120%; top: -10%; left: -10%; }
.ac-2 { width: 140%; height: 140%; top: -20%; left: -20%; opacity: 0.6; }
.ac-3 { width: 160%; height: 160%; top: -30%; left: -30%; opacity: 0.3; }

.about-stat-cards {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  position: relative;
  z-index: 2;
}
.asc {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--gray-600);
  font-weight: 500;
}
.asc i { color: var(--gold); font-size: 1.1rem; }

.about-title { text-align: left; }

.about-desc {
  font-size: 1.0625rem;
  color: var(--gray-600);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about-desc strong { color: var(--navy); font-weight: 600; }
.about-desc em { font-style: italic; color: var(--navy); }

.about-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 28px 0;
}
.about-value {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700, #374151);
}
.about-value i { color: var(--gold); font-size: 0.875rem; flex-shrink: 0; }

.about-license-placeholder {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-pale);
  border: 1px solid rgba(201,152,10,0.2);
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-full);
}

/* -------- CONTACT -------- */
.contact {
  padding: 100px 0;
  background: var(--navy);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.contact-info-title,
.contact-form-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
}

.contact-items { display: flex; flex-direction: column; gap: 20px; margin-bottom: 32px; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.contact-icon--green { background: rgba(37,211,102,0.12); color: var(--whatsapp); }

.contact-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  margin-bottom: 2px;
}
.contact-value {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
}
.contact-value:hover { color: var(--gold-light); }
.contact-value--muted { color: rgba(255,255,255,0.4); font-style: italic; }

.contact-social {
  display: flex;
  gap: 12px;
}
.social-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.social-btn:hover { background: rgba(255,255,255,0.15); color: var(--white); transform: translateY(-2px); }
.social-btn--green { background: rgba(37,211,102,0.12); color: var(--whatsapp); }
.social-btn--green:hover { background: var(--whatsapp); color: var(--white); }

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
}
.contact-form-title { color: var(--navy); }

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}
.required { color: var(--gold); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B7280' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,34,87,0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.form-group input.error,
.form-group select.error { border-color: #ef4444; }
.form-group .error-msg {
  font-size: 0.8rem;
  color: #ef4444;
  display: none;
}
.form-group.has-error .error-msg { display: block; }

.form-note {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.form-success {
  text-align: center;
  padding: 40px 20px;
}
.form-success i {
  font-size: 3rem;
  color: var(--gold);
  margin-bottom: 16px;
  display: block;
}
.form-success h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.form-success p {
  color: var(--gray-600);
  margin-bottom: 24px;
  font-size: 0.9375rem;
}

/* Map */
.map-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

/* -------- FOOTER -------- */
.footer {
  background: var(--navy-dark);
  color: var(--white);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand { max-width: 320px; }

.footer-logo-img {
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--gold); color: var(--white); }

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 18px;
}

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }

.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
}
.footer-contact-list i {
  color: var(--gold);
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.footer-contact-list a {
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}
.footer-contact-list a:hover { color: var(--white); }

.footer-bottom {
  background: rgba(0,0,0,0.2);
  padding: 20px 0;
}
.footer-bottom-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.footer-copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}
.footer-license {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.03em;
}

/* -------- ANIMATIONS (AOS-lite) -------- */
[data-aos] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-aos].aos-animate {
  opacity: 1;
  transform: none;
}
[data-aos][data-aos-delay="100"] { transition-delay: 0.1s; }
[data-aos][data-aos-delay="150"] { transition-delay: 0.15s; }
[data-aos][data-aos-delay="200"] { transition-delay: 0.2s; }
[data-aos][data-aos-delay="300"] { transition-delay: 0.3s; }
[data-aos][data-aos-delay="400"] { transition-delay: 0.4s; }
[data-aos][data-aos-delay="500"] { transition-delay: 0.5s; }

[data-aos="fade-right"] { transform: translateX(-24px); }
[data-aos="fade-left"]  { transform: translateX(24px); }
[data-aos="fade-right"].aos-animate,
[data-aos="fade-left"].aos-animate { transform: none; }

/* -------- RESPONSIVE: TABLET ≥ 640px -------- */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .steps-grid {
    flex-direction: row;
    align-items: center;
    justify-content: center;
  }
  .step-arrow { transform: rotate(0deg); }
  .trust-divider { display: block; }
  .footer-bottom-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* -------- RESPONSIVE: DESKTOP ≥ 768px -------- */
@media (min-width: 768px) {
  .hamburger { display: none; }
  .nav-menu { display: flex; }

  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; align-items: start; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1.5fr; }
  .about-grid { flex-direction: row; align-items: flex-start; gap: 80px; }
}

/* -------- RESPONSIVE: LARGE ≥ 1024px -------- */
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(4, 1fr); }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .steps-grid { gap: 0; }
}

/* -------- ACCESSIBILITY & FOCUS -------- */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-aos] { opacity: 1; transform: none; }
}

/* -------- PRINT -------- */
@media print {
  .header, .whatsapp-float, .hero-scroll { display: none; }
  .hero { min-height: auto; padding: 40px 0; }
}

/* =========================================
   SERVICES PORTFOLIO — Homepage Block
   ========================================= */
.services-portfolio {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
}

.sp-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin-bottom: 24px;
}

.sp-cat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.sp-cat-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  border: 1.5px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--navy);
  transition: all var(--transition);
}

.sp-cat:hover .sp-cat-icon {
  background: var(--navy);
  color: var(--gold-light);
  border-color: var(--navy);
  transform: translateY(-5px);
  box-shadow: var(--shadow-navy);
}

.sp-cat span {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: color var(--transition);
}

.sp-cat:hover span { color: var(--navy); }

.sp-separator {
  display: none;
}

.sp-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: -12px;
}

.sp-tagline {
  font-size: 0.9375rem;
  color: var(--gray-600);
  max-width: 480px;
  line-height: 1.65;
  margin: 0;
}

/* =========================================
   SERVICIOS PAGE — Hero
   ========================================= */
.services-page-hero {
  background: var(--navy);
  padding: calc(var(--header-h) + 64px) 0 72px;
  position: relative;
  overflow: hidden;
}

.services-page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('familia.png') center/cover no-repeat;
  opacity: 0.12;
}

.services-page-hero-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.services-page-hero-shapes .shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
  background: var(--gold-light);
}

.services-page-hero-shapes .shape-1 { width: 400px; height: 400px; top: -120px; right: -80px; }
.services-page-hero-shapes .shape-2 { width: 240px; height: 240px; bottom: -60px; left: 8%; opacity: 0.04; }

.services-page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.services-page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,152,10,0.15);
  border: 1px solid rgba(201,152,10,0.3);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.services-page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 18px;
}

.services-page-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.services-page-hero-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.72);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =========================================
   CATEGORY NAV (Sticky)
   ========================================= */
.cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--header-h);
  z-index: 800;
  box-shadow: var(--shadow-sm);
}

.cat-nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.cat-nav-inner::-webkit-scrollbar { display: none; }

.cat-nav-link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 15px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
}

.cat-nav-link i { font-size: 0.875rem; }

.cat-nav-link:hover,
.cat-nav-link.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

/* =========================================
   PRODUCT SECTION
   ========================================= */
.product-section {
  padding: 88px 0;
}

.product-section--alt {
  background: var(--off-white);
}

.ps-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
}

.ps-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-navy);
}

.ps-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.ps-subtitle {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* =========================================
   PRODUCT GRID & CARDS
   ========================================= */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-slow);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card:hover::before { opacity: 1; }

.product-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(13,34,87,0.07);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
  transition: all var(--transition);
}

.product-card:hover .product-card-icon {
  background: var(--navy);
  color: var(--gold-light);
}

.product-name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-desc {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.65;
  flex-grow: 1;
  margin-bottom: 20px;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  transition: gap var(--transition), color var(--transition);
  margin-top: auto;
  text-decoration: none;
}

.product-cta:hover { gap: 10px; color: var(--gold); }

/* =========================================
   SERVICES PAGE — Final CTA
   ========================================= */
.services-page-cta {
  background: var(--navy);
  padding: 88px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.services-page-cta::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,152,10,0.08) 0%, transparent 65%);
  top: -200px; right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.services-page-cta .section-tag {
  color: var(--navy-dark);
  background: var(--gold-light);
  font-weight: 700;
}

.services-page-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
}

.services-page-cta p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.68);
  max-width: 520px;
  margin: 0 auto 36px;
  line-height: 1.7;
  position: relative;
}

.services-page-cta-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  position: relative;
}

/* Hero content aligned to the left */
.hero .container {
  width: 100%;
}

.hero-content {
  margin-left: 50px;
  margin-right: auto;
  text-align: left;
  max-width: 650px;
}

.hero-ctas {
  justify-content: flex-start;
}

.hero-phones {
  justify-content: flex-start;
}


/* =========================================
   BLOG PREVIEW — Homepage Section
   ========================================= */
.blog-preview {
  padding: 100px 0;
  background: var(--off-white);
}

.blog-preview .section-header {
  margin-bottom: 56px;
}

.blog-preview-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

@media (min-width: 640px) {
  .blog-preview-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-slow);
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.blog-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-card-image-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.35);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card-image-placeholder i {
  font-size: 2.25rem;
  color: rgba(255,255,255,0.2);
}

.blog-card-body {
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card-excerpt {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-200);
  margin-top: auto;
}

.blog-card-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.blog-author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 0.875rem;
  flex-shrink: 0;
}

.blog-author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.blog-author-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.2;
}

.blog-author-role {
  font-size: 0.75rem;
  color: var(--gray-400);
  line-height: 1.2;
}

.blog-card-read-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  transition: gap var(--transition), color var(--transition);
  text-decoration: none;
  flex-shrink: 0;
}

.blog-card-read-link:hover {
  gap: 9px;
  color: var(--gold);
}

.blog-preview-cta {
  text-align: center;
}


/* =========================================
   BLOG PAGE — Hero
   ========================================= */
.blog-hero {
  background: var(--navy);
  padding: calc(var(--header-h) + 72px) 0 80px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.blog-hero-bg {
  position: absolute;
  inset: 0;
  background: url('familia.png') center/cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.blog-hero-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.blog-hero-shape-1 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(201,152,10,0.07) 0%, transparent 65%);
  top: -160px;
  right: -80px;
}

.blog-hero-shape-2 {
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(201,152,10,0.05) 0%, transparent 65%);
  bottom: -80px;
  left: 5%;
}

.blog-hero-content {
  position: relative;
  z-index: 2;
}

.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,152,10,0.15);
  border: 1px solid rgba(201,152,10,0.3);
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.blog-hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.blog-hero-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}


/* =========================================
   BLOG PAGE — Category Nav
   ========================================= */
.blog-cat-nav {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: var(--header-h);
  z-index: 800;
  box-shadow: var(--shadow-sm);
}

.blog-cat-nav-inner {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  gap: 0;
}

.blog-cat-nav-inner::-webkit-scrollbar { display: none; }

.blog-cat-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 15px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-600);
  border-bottom: 3px solid transparent;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
  border-radius: 0;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition);
  font-family: var(--font-body);
}

.blog-cat-btn i { font-size: 0.8125rem; }

.blog-cat-btn:hover,
.blog-cat-btn.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}


/* =========================================
   BLOG PAGE — Articles Grid
   ========================================= */
.blog-main {
  padding: 80px 0 100px;
  background: var(--off-white);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .blog-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.blog-grid-header {
  margin-bottom: 40px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-grid-count {
  font-size: 0.875rem;
  color: var(--gray-400);
  font-weight: 500;
}

.blog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 20px;
  color: var(--gray-400);
}

.blog-empty-state i {
  font-size: 2.5rem;
  margin-bottom: 12px;
  display: block;
  opacity: 0.4;
}

.blog-empty-state p {
  font-size: 0.9375rem;
}


/* =========================================
   ARTICLE PAGE — Layout
   ========================================= */
.article-hero {
  background: var(--navy);
  padding: calc(var(--header-h) + 56px) 0 64px;
  position: relative;
  overflow: hidden;
}

.article-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(9,24,64,0.92) 0%,
    rgba(13,34,87,0.85) 100%);
  pointer-events: none;
}

.article-hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.article-back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.55);
  margin-bottom: 28px;
  text-decoration: none;
  transition: color var(--transition);
}

.article-back-link:hover {
  color: var(--gold-light);
}

.article-category-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(201,152,10,0.15);
  border: 1px solid rgba(201,152,10,0.25);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.875rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 28px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.article-meta-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.05) 100%);
  border: 2px solid rgba(201,152,10,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1rem;
  flex-shrink: 0;
}

.article-author-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.article-author-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--white);
}

.article-author-role {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.article-meta-date {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 6px;
}


/* =========================================
   ARTICLE PAGE — Body Content
   ========================================= */
.article-body-wrap {
  padding: 72px 0 80px;
  background: var(--white);
}

.article-featured-image {
  width: 100%;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.25);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  flex-direction: column;
  gap: 10px;
}

.article-featured-image i {
  font-size: 2.5rem;
  opacity: 0.2;
}

.article-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: start;
}

@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 1fr 300px;
    gap: 64px;
  }
}

/* Article prose */
.article-prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
  color: var(--navy);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.25;
}

.article-prose h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 36px;
  margin-bottom: 12px;
  line-height: 1.3;
}

.article-prose p {
  font-size: 1.0625rem;
  color: var(--gray-800);
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-prose ul,
.article-prose ol {
  padding-left: 24px;
  margin-bottom: 20px;
}

.article-prose li {
  font-size: 1.0625rem;
  color: var(--gray-800);
  line-height: 1.75;
  margin-bottom: 6px;
}

.article-prose strong {
  color: var(--navy);
  font-weight: 600;
}

/* Blockquote / callout */
.article-callout {
  border-left: 4px solid var(--gold);
  background: var(--gold-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 32px 0;
}

.article-callout p {
  font-family: var(--font-display);
  font-size: 1.1875rem;
  font-style: italic;
  color: var(--navy);
  line-height: 1.6;
  margin: 0;
}

.article-callout cite {
  display: block;
  margin-top: 10px;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--gray-600);
  font-weight: 500;
}

/* Inline CTA box inside article */
.article-inline-cta {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin: 40px 0;
}

.article-inline-cta h3 {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 10px;
}

.article-inline-cta p {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 20px;
  line-height: 1.6;
}

/* Article sidebar */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.article-sidebar-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--gray-200);
}

.article-sidebar-card h4 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-200);
}

.sidebar-author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
  font-size: 1.25rem;
  margin: 0 auto 12px;
}

.sidebar-author-name {
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}

.sidebar-author-role {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--gray-400);
  margin-bottom: 12px;
}

.sidebar-author-bio {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.65;
  text-align: center;
}

.sidebar-cta-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
}

.sidebar-cta-card h4 {
  color: var(--white);
  border-bottom-color: rgba(255,255,255,0.12);
}

.sidebar-cta-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  margin-bottom: 16px;
}


/* =========================================
   ARTICLE PAGE — Related Articles
   ========================================= */
.article-related {
  padding: 80px 0;
  background: var(--off-white);
}

.article-related .section-title {
  margin-bottom: 40px;
}

.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .related-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

/* Related card — compact variant */
.related-card {
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-slow);
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.related-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.2);
  font-size: 1.5rem;
}

.related-card-body {
  padding: 18px 20px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.related-card-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.related-card-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: 0;
  flex-grow: 1;
}


/* =========================================
   BLOG / ARTICLE — Responsive overrides
   ========================================= */
@media (max-width: 639px) {
  .blog-preview {
    padding: 72px 0;
  }
  .blog-main {
    padding: 56px 0 80px;
  }
  .article-body-wrap {
    padding: 48px 0 64px;
  }
  .article-related {
    padding: 56px 0;
  }
  .article-inline-cta {
    padding: 28px 20px;
  }
  .blog-card-body {
    padding: 20px 20px 18px;
  }
}

/* Fix: oversized navbar logo overlapping services category nav */
.services-page .nav-logo {
  pointer-events: none;
}