/**
 * SEO Murcia — Design enhancements v2
 */

:root {
  --gradient-brand: linear-gradient(135deg, #00c9a7 0%, #00e5c0 50%, #5eead4 100%);
  --gradient-hero: linear-gradient(145deg, #060d18 0%, #0f2b4a 42%, #163d6e 100%);
  --gradient-card: linear-gradient(180deg, rgba(0,201,167,0.06) 0%, transparent 100%);
  --shadow-glow: 0 0 60px rgba(0, 201, 167, 0.15);
  --shadow-card: 0 4px 6px -1px rgba(15, 43, 74, 0.06), 0 20px 40px -12px rgba(15, 43, 74, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 100% 0%, rgba(0, 201, 167, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(15, 43, 74, 0.03) 0%, transparent 35%);
}

/* ——— Header ——— */
.header {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(15, 43, 74, 0.06);
}

.header.scrolled {
  box-shadow: 0 4px 30px rgba(15, 43, 74, 0.08);
  background: rgba(255, 255, 255, 0.95);
}

.nav-links a {
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 2px;
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover::after { width: 100%; }

.logo-icon {
  box-shadow: 0 4px 14px rgba(0, 201, 167, 0.35);
  transition: transform 0.3s var(--ease-out);
}

.logo:hover .logo-icon { transform: scale(1.05) rotate(-3deg); }

.btn-primary {
  background: var(--gradient-brand);
  box-shadow: 0 4px 14px rgba(0, 201, 167, 0.35);
  font-weight: 700;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 201, 167, 0.45);
  transform: translateY(-3px);
}

/* ——— Hero ——— */
.hero {
  background: var(--gradient-hero);
  padding: calc(10rem + 2.25rem) 0 5rem;
}

.hero::before {
  background:
    radial-gradient(circle at 15% 85%, rgba(0, 201, 167, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(255, 107, 53, 0.08) 0%, transparent 40%);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-color: rgba(0, 201, 167, 0.25);
}

.hero-badge:first-child {
  border-color: rgba(0, 201, 167, 0.4);
  background: rgba(0, 201, 167, 0.12);
}

.hero-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Google mockup */
.hero-mockup {
  background: #fff;
  border-radius: 16px;
  padding: 1.25rem 1.35rem;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35), var(--shadow-glow);
  color: var(--color-text);
  transform: perspective(1000px) rotateY(-4deg) rotateX(2deg);
  transition: transform 0.5s var(--ease-out);
}

.hero-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
}

.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }

.mockup-search {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1rem;
  background: var(--color-bg);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  border: 1px solid var(--color-border);
}

.mockup-search strong { color: var(--color-primary); }

.mockup-result {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 12px;
  margin-bottom: 0.5rem;
  border: 1px solid transparent;
  transition: var(--transition);
}

.mockup-result--highlight {
  background: linear-gradient(135deg, rgba(0, 201, 167, 0.12), rgba(0, 201, 167, 0.04));
  border-color: rgba(0, 201, 167, 0.3);
  box-shadow: 0 0 0 1px rgba(0, 201, 167, 0.1);
}

.mockup-result-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-primary);
  flex-shrink: 0;
}

.mockup-result-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a0dab;
  margin-bottom: 0.15rem;
}

.mockup-result--highlight .mockup-result-title { color: var(--color-primary); }

.mockup-result-icon--muted {
  background: #e2e8f0;
  color: #94a3b8;
}

.mockup-result-title--muted { color: #70757a; }

.mockup-result-url {
  font-size: 0.75rem;
  color: #006621;
  margin-bottom: 0.2rem;
}

.mockup-result-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.45;
}

.mockup-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-hover);
  background: rgba(0, 201, 167, 0.15);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.35rem;
}

.stat-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
  transition: transform 0.35s var(--ease-out), background 0.35s;
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(0, 201, 167, 0.3);
}

.stat-card .number {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Trust bar */
.trust-bar {
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  padding: 1.25rem 0;
  box-shadow: 0 4px 20px rgba(15, 43, 74, 0.04);
}

.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem 3rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.trust-item-icon {
  width: 32px;
  height: 32px;
  background: var(--color-accent-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ——— Sections ——— */
.section-label {
  background: var(--color-accent-soft);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(0, 201, 167, 0.2);
}

.section-header h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  background: var(--gradient-brand);
  border-radius: 4px;
  margin: 1rem auto 0;
}

.section-header a {
  color: var(--color-accent-hover);
  font-weight: 600;
  border-bottom: 1px solid rgba(0, 201, 167, 0.3);
}

.section-header a:hover { color: var(--color-primary); }

main section:nth-of-type(even) {
  background: var(--color-white);
  position: relative;
}


/* ——— Cards ——— */
.service-card {
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(15, 43, 74, 0.06);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 201, 167, 0.1);
}

.service-icon {
  transition: transform 0.35s var(--ease-out);
}

.service-card:hover .service-icon {
  transform: scale(1.08);
  background: rgba(0, 201, 167, 0.18);
}

.service-link {
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

/* Why visual */
.why-visual {
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.why-item {
  padding: 1rem;
  border-radius: var(--radius);
  transition: background 0.25s;
}

.why-item:hover {
  background: rgba(0, 201, 167, 0.06);
}

/* Process */
.process-step {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-step::before {
  box-shadow: 0 4px 12px rgba(0, 201, 167, 0.4);
}

/* Testimonials */
.testimonial-card {
  box-shadow: var(--shadow-card);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(0, 201, 167, 0.15);
  line-height: 1;
}

.testimonial-stars {
  letter-spacing: 3px;
  filter: drop-shadow(0 1px 2px rgba(251, 191, 36, 0.3));
}

.author-avatar {
  background: var(--gradient-brand);
  color: var(--color-primary);
  font-weight: 800;
}

/* FAQ */
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: box-shadow 0.25s;
}

.faq-list .faq-item { border-bottom: none; }

.faq-item.active {
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 201, 167, 0.3);
}

.faq-question {
  padding: 1.25rem 1.5rem;
}

.faq-answer-inner { padding: 0 1.5rem 1.25rem; }

/* CTA */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a4a7a 100%);
  border: 1px solid rgba(0, 201, 167, 0.2);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

/* Page hero inner */
.page-hero {
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-top: calc(8rem + 2.25rem);
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 70%, rgba(0, 201, 167, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 70% 30%, rgba(255, 107, 53, 0.06) 0%, transparent 40%);
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f8fafc' d='M0 60V30c120-20 240-40 360-30s240 60 360 40 240-80 360-50 240 90 360 70V60H0z'/%3E%3C/svg%3E") center bottom / cover no-repeat;
}

section:nth-child(even) + .page-hero::after,
.page-hero + section::before { display: none; }

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.breadcrumb {
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  opacity: 1;
}

/* Forms */
.contact-form {
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(15, 43, 74, 0.06);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.15);
}

/* Footer */
.footer {
  position: relative;
  background: linear-gradient(180deg, #0a1628 0%, #060d18 100%);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-brand);
}

.footer-links a {
  transition: color 0.2s, padding-left 0.2s;
}

.footer-links a:hover {
  padding-left: 4px;
}

/* Blog & municipios */
.blog-card,
.municipio-card,
.related-card {
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.25s;
}

.blog-card:hover,
.related-card:hover {
  box-shadow: var(--shadow-md);
}

.municipio-card:hover {
  box-shadow: var(--shadow-sm);
}

.area-tag {
  transition: transform 0.2s, box-shadow 0.2s;
}

a.area-tag:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 201, 167, 0.25);
}

.feature-box {
  border: 1px solid rgba(0, 201, 167, 0.15);
  transition: transform 0.25s;
}

.feature-box:hover { transform: translateY(-2px); }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-mockup { transform: none; }
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav.open .nav-links {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

  .nav.open .btn-primary {
    width: calc(100% - 3rem);
    justify-content: center;
    margin: 1rem 1.5rem 0;
  }

  .hero-mockup {
    transform: none;
  }

  .hero { padding: 7.5rem 0 3.5rem; }

  .trust-bar-inner { gap: 1rem 1.5rem; }

  .trust-item { font-size: 0.8rem; }
}

/* Nav dropdown */
.nav-dropdown-menu {
  border: 1px solid rgba(15, 43, 74, 0.08);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.nav-dropdown-menu a:hover {
  background: var(--color-accent-soft);
  color: var(--color-primary);
}

/* Cookie banner polish */
.cookie-banner {
  backdrop-filter: blur(16px);
  background: rgba(15, 43, 74, 0.97);
  border-top: 1px solid rgba(0, 201, 167, 0.25);
  color: rgba(255, 255, 255, 0.92);
}

.cookie-banner a {
  color: var(--color-accent);
}

.cookie-banner .btn-outline {
  color: rgba(255, 255, 255, 0.9);
  border-color: rgba(255, 255, 255, 0.35);
}

.cookie-banner .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 1024px) {
  .hero-side { order: -1; }
  .hero-mockup { max-width: 420px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════
   Design v3 — inner pages & components
   ═══════════════════════════════════════════ */

.page-hero-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

.page-hero-content .breadcrumb {
  justify-content: flex-start;
  margin-bottom: 1.25rem;
}

.page-hero-content h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: 1.15;
}

.page-hero-content p {
  margin: 0;
  max-width: 540px;
}

.page-hero-actions {
  margin-top: 1.75rem;
}

.page-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.page-hero-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  background: rgba(0, 201, 167, 0.15);
  border: 1px solid rgba(0, 201, 167, 0.25);
  color: #a7f3d0;
}

.page-hero-aside {
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-hero-icon-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-hero-icon-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed rgba(0, 201, 167, 0.25);
  animation: spin-slow 30s linear infinite;
}

.page-hero-icon-ring::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 201, 167, 0.2) 0%, transparent 70%);
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.page-hero-icon {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25), var(--shadow-glow);
}

.page-hero-icon--brand {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-accent);
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 320px;
}

.page-hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform 0.3s var(--ease-out), background 0.3s;
}

.page-hero-stat:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
}

.page-hero-stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.page-hero-stat-label {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.35rem;
  line-height: 1.35;
}

/* Trust bar SVG icons */
.trust-item-icon svg {
  color: var(--color-accent-hover);
}

/* Contact page */
.contact-grid {
  align-items: start;
}

.contact-info-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.contact-info-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.contact-info-card > p {
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-detail {
  padding: 1rem;
  background: var(--color-bg);
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.contact-detail:hover {
  border-color: rgba(0, 201, 167, 0.25);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.contact-detail-icon {
  color: var(--color-accent-hover);
}

.contact-detail-icon svg {
  display: block;
}

.contact-form-header {
  margin-bottom: 1.5rem;
}

.contact-form-header h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
}

.contact-form-header p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.contact-form .btn-primary {
  width: 100%;
  justify-content: center;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  cursor: pointer;
}

.form-checkbox input {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.form-checkbox span {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.form-checkbox a {
  color: var(--color-accent);
}

.hp-field {
  display: none !important;
}

.cta-section .cta-banner {
  margin-top: 0;
}

.servicios-cta {
  margin-top: 3rem;
}

/* CTA banner full width */
.cta-banner--full {
  max-width: 100%;
  margin: 0;
}

.cta-banner-inner {
  position: relative;
  z-index: 1;
}

.cta-section {
  padding-bottom: 5.5rem;
}

/* Service content prose */
.service-content ul:not(.faq-list) {
  list-style: none;
  padding: 0;
}

.service-content ul:not(.faq-list) li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.65rem;
}

.service-content ul:not(.faq-list) li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gradient-brand);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.2);
}

.service-content a {
  color: var(--color-accent-hover);
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 201, 167, 0.25);
  transition: color 0.2s, border-color 0.2s;
}

.service-content a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Feature boxes grid */
.service-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.feature-box {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.feature-box h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.feature-box p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Blog cards visual header */
.blog-card {
  overflow: hidden;
  padding: 0;
}

.blog-card-visual {
  height: 120px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #1a5a8a 50%, rgba(0, 201, 167, 0.4) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.25rem;
  position: relative;
}

.blog-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 20px 20px;
}

.blog-card-visual .blog-category {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.95);
  color: var(--color-primary);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.blog-card-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.blog-card-body h2 {
  font-size: 1.1rem;
  margin: 0 0 0.65rem;
  line-height: 1.35;
}

.blog-card-body > p {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

/* Stats row (about page) */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.stat-box {
  text-align: center;
  padding: 1.75rem 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.stat-box:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.stat-box-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.stat-box-value span {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-box-label {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
}

/* Municipio cards */
.municipio-card {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
}

.municipio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  opacity: 0;
  transition: opacity 0.3s;
}

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

/* Related services */
.related-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.related-card h3 {
  color: var(--color-primary);
  transition: color 0.2s;
}

.related-card:hover h3 { color: var(--color-accent-hover); }

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gradient-brand);
  color: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 201, 167, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease-out);
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 201, 167, 0.5);
}

.back-to-top svg { stroke: var(--color-primary); }

/* Section spacing polish */
.section-pad-lg { padding: 5rem 0; }

@media (max-width: 1024px) {
  .page-hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .page-hero-content .breadcrumb { justify-content: center; }
  .page-hero-content p { margin: 0 auto; }
  .page-hero-actions { display: flex; justify-content: center; }
  .page-hero-aside { order: -1; }
  .page-hero-icon-wrap { width: 160px; height: 160px; }
  .page-hero-icon { width: 100px; height: 100px; font-size: 2.75rem; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .stats-row { grid-template-columns: 1fr 1fr; }
  .back-to-top { bottom: 5.5rem; right: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero-icon-ring { animation: none; }
}

/* ═══════════════════════════════════════════
   Design v4 — SVG icons, blog, 404, landings
   ═══════════════════════════════════════════ */

.nav-links a.nav-active {
  color: var(--color-primary);
  font-weight: 600;
}

.nav-links a.nav-active::after { width: 100%; }

.service-icon svg {
  color: var(--color-accent-hover);
  stroke: var(--color-accent-hover);
}

.page-hero-icon--svg {
  font-size: 0;
  color: var(--color-accent);
}

.page-hero-icon--svg svg {
  stroke: var(--color-accent-hover);
}

.why-item-icon {
  color: var(--color-accent-hover);
}

.why-item-icon svg {
  display: block;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.page-hero-actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Blog article */
.page-hero--article .page-hero-content {
  text-align: left;
}

.page-hero-layout--article {
  align-items: flex-start;
}

.blog-category--hero {
  display: inline-block;
  margin-bottom: 1rem;
  background: rgba(0, 201, 167, 0.15);
  border: 1px solid rgba(0, 201, 167, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #a7f3d0;
}

.blog-meta--hero {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  justify-content: flex-start;
}

.article-hero-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  min-width: 200px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.article-hero-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  background: rgba(0, 201, 167, 0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.article-hero-card-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}

.article-hero-card-cat {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
}

.blog-lead {
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--color-text);
  border-left: 3px solid var(--color-accent);
  padding-left: 1.25rem;
  margin-bottom: 2rem;
}

.cta-banner--compact {
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  text-align: left;
}

.cta-banner--compact h2 {
  font-size: 1.25rem;
  text-align: left;
}

.cta-banner--compact p {
  margin-left: 0;
  text-align: left;
  max-width: none;
}

.cta-banner--compact .btn {
  margin-top: 0.5rem;
}

.blog-grid--related {
  margin: 1.5rem 0 2.5rem;
}

.blog-cta-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
}

/* 404 */
.page-hero--error .error-code {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(4rem, 12vw, 7rem);
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.35;
  margin-bottom: 0.5rem;
}

.error-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  font-weight: 600;
}

.error-visual svg {
  color: var(--color-accent);
  opacity: 0.8;
}

.error-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.error-link-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.25s;
}

.error-link-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 201, 167, 0.3);
}

.error-link-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  background: var(--color-accent-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-hover);
}

.error-link-card h3 {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: var(--color-primary);
}

.error-link-card p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin: 0;
}

/* Landing sections */
.landing-sections {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.landing-section {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.landing-section:hover {
  transform: translateX(4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(0, 201, 167, 0.2);
}

.landing-section-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  flex-shrink: 0;
  min-width: 2.5rem;
}

.landing-section h2 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.landing-section p {
  font-size: 0.925rem;
  color: var(--color-text-muted);
  margin: 0;
}

.landing-footer-links {
  margin: 2rem 0;
  color: var(--color-text-muted);
}

/* Municipios search */
.municipios-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2rem;
  color: var(--color-text-muted);
}

.search-box {
  position: relative;
  max-width: 480px;
  margin: 0 auto 3rem;
}

.search-box svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 201, 167, 0.15);
}

.municipio-group-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-border);
}

.comarca-count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  background: var(--color-bg);
  padding: 0.3rem 0.75rem;
  border-radius: 50px;
}

.municipio-card[hidden] { display: none; }

.municipio-group[hidden] { display: none; }

.no-results {
  text-align: center;
  color: var(--color-text-muted);
  padding: 2rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 1024px) {
  .blog-meta--hero { justify-content: center; }
  .page-hero--article .page-hero-content { text-align: center; }
  .error-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .landing-section { flex-direction: column; gap: 0.75rem; }
  .error-links { grid-template-columns: 1fr; }
  .blog-cta-footer { flex-direction: column; align-items: flex-start; }
  .cta-banner--compact { text-align: center; }
  .cta-banner--compact h2,
  .cta-banner--compact p { text-align: center; }
}

/* ═══════════════════════════════════════════
   Design v5 — footer, maps, metrics, legal
   ═══════════════════════════════════════════ */

.footer-cta-band {
  background: linear-gradient(135deg, var(--color-primary) 0%, #163d6e 100%);
  padding: 2.5rem 0;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--color-accent), #5eead4) 1;
}

.footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-cta-text h2 {
  color: var(--color-white);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: 0.35rem;
}

.footer-cta-text p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9rem;
  margin: 0;
}

.footer-brand .logo { margin-bottom: 1.25rem; }

.footer-contact {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.footer-contact a:hover { color: var(--color-accent); }

.footer-contact-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: rgba(0, 201, 167, 0.12);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
}

.footer-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.footer-trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
}

.footer-trust svg { color: var(--color-accent); stroke: var(--color-accent); }

.footer-heading-spaced { margin-top: 1.5rem; }

.footer-legal a { color: var(--color-accent); }

/* Blog category themes */
.blog-card-visual--cat-local { background: linear-gradient(135deg, #0f2b4a, #1a5a8a 50%, rgba(0,201,167,0.5)); }
.blog-card-visual--cat-guides { background: linear-gradient(135deg, #1e3a5f, #2d5a87 50%, rgba(94,234,212,0.4)); }
.blog-card-visual--cat-maps { background: linear-gradient(135deg, #134e4a, #0f766e 50%, rgba(52,211,153,0.45)); }
.blog-card-visual--cat-marketing { background: linear-gradient(135deg, #4a1d6a, #7c3aed 50%, rgba(167,139,250,0.35)); }
.blog-card-visual--cat-audit { background: linear-gradient(135deg, #1e3a5f, #0369a1 50%, rgba(56,189,248,0.4)); }
.blog-card-visual--cat-ecommerce { background: linear-gradient(135deg, #7c2d12, #ea580c 50%, rgba(251,191,36,0.35)); }
.blog-card-visual--cat-content { background: linear-gradient(135deg, #365314, #65a30d 50%, rgba(163,230,53,0.35)); }
.blog-card-visual--cat-technical { background: linear-gradient(135deg, #1e293b, #475569 50%, rgba(148,163,184,0.4)); }
.blog-card-visual--cat-default { background: linear-gradient(135deg, var(--color-primary), #1a5a8a 50%, rgba(0,201,167,0.4)); }

/* Maps mockup (local section) */
.local-map {
  background: transparent;
  border: none;
  padding: 0;
  min-height: auto;
  align-items: stretch;
}

.maps-mockup {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  width: 100%;
}

.maps-mockup-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.maps-mockup-header svg { color: #ea4335; stroke: #ea4335; }

.maps-result {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}

.maps-result--highlight {
  background: rgba(0, 201, 167, 0.08);
  border: 1px solid rgba(0, 201, 167, 0.2);
}

.maps-result-pin {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--color-primary);
}

.maps-result-pin::after {
  content: attr(data-label);
}

.maps-result--highlight .maps-result-pin {
  box-shadow: 0 2px 8px rgba(0, 201, 167, 0.4);
}

.maps-pin-label {
  display: block;
  transform: rotate(45deg);
}

.maps-result-pin--muted {
  background: #e2e8f0;
  color: #94a3b8;
  transform: none;
  border-radius: 50%;
  font-size: 0.75rem;
}

.maps-result-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-primary);
  margin-bottom: 0.15rem;
}

.maps-result-name--muted { color: var(--color-text-muted); font-weight: 500; }

.maps-result-stars {
  font-size: 0.75rem;
  color: #fbbf24;
  margin-bottom: 0.15rem;
}

.maps-result-stars span {
  color: var(--color-text-muted);
  margin-left: 0.35rem;
}

.maps-result-stars--muted { color: #cbd5e1; }

.maps-result-meta {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.local-map-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 1rem;
}

.local-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn-outline-light {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline-light:hover {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
}

/* Process steps numbered */
.process-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.process-steps {
  position: relative;
}

@media (min-width: 1025px) {
  .process-steps::before {
    content: '';
    position: absolute;
    top: 2.5rem;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(0,201,167,0.3), transparent);
    z-index: 0;
  }
  .process-step { position: relative; z-index: 1; }
}

/* Metrics with bars */
.metric-row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.25rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.metric-row:last-child { border-bottom: none; }

.metric-value {
  font-weight: 800;
  color: var(--color-accent);
  font-family: var(--font-display);
}

.metric-bar {
  grid-column: 1 / -1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  width: 0;
  background: var(--gradient-brand);
  border-radius: 4px;
  transition: width 1.2s var(--ease-out);
}

.metric-bar-fill[data-metric="85"] { --metric: 85%; }
.metric-bar-fill[data-metric="72"] { --metric: 72%; }
.metric-bar-fill[data-metric="78"] { --metric: 78%; }
.metric-bar-fill[data-metric="65"] { --metric: 65%; }
.metric-bar-fill[data-metric="92"] { --metric: 92%; }

.metric-row.visible .metric-bar-fill {
  width: var(--metric, 50%);
}

/* Legal content */
.legal-content h2 {
  font-size: 1.2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-accent);
  margin-top: 2rem;
}

.legal-content code {
  background: var(--color-bg);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
}

.content-narrow { max-width: 900px; }

.section-cta-link {
  text-align: center;
  margin-top: 2rem;
}

@media (max-width: 768px) {
  .footer-cta-inner {
    flex-direction: column;
    text-align: center;
  }
  .footer-cta-inner .btn { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════
   Design v6 — header bar, mobile CTA, polish
   ═══════════════════════════════════════════ */

.header-top {
  background: var(--color-bg-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.75rem;
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 0.45rem 1.5rem;
  color: rgba(255, 255, 255, 0.65);
}

.header-top-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.header-top-item svg,
.header-top-phone svg {
  color: var(--color-accent);
  stroke: var(--color-accent);
  flex-shrink: 0;
}

.header-top-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-white);
  font-weight: 600;
  transition: color 0.2s;
}

.header-top-phone:hover { color: var(--color-accent); }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-badge svg {
  color: var(--color-accent);
  stroke: var(--color-accent);
  flex-shrink: 0;
}

.mockup-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mockup-search svg {
  color: var(--color-text-muted);
  flex-shrink: 0;
}

/* Blog card icon overlay */
.blog-card-visual {
  position: relative;
  justify-content: space-between;
  align-items: flex-end;
}

.blog-card-visual-icon {
  position: absolute;
  top: 1rem;
  right: 1rem;
  opacity: 0.2;
  color: var(--color-white);
}

.blog-card-visual-icon svg {
  stroke: var(--color-white);
}

/* Testimonials enhanced */
.testimonial-card {
  border-left: 3px solid var(--color-accent);
}

.testimonials-grid .testimonial-card:first-child {
  background: linear-gradient(135deg, var(--color-white) 0%, rgba(0, 201, 167, 0.04) 100%);
}

/* Nav dropdown */
.nav-dropdown-menu a {
  transition: background 0.2s, color 0.2s;
}

/* Hamburger animation */
.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-toggle span {
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
  transform-origin: center;
}

/* Mobile nav slide */
@media (max-width: 768px) {
  .header-top-inner {
    gap: 0.75rem 1.25rem;
    font-size: 0.7rem;
  }

  .header-top-item:nth-child(2) { display: none; }

  .nav.open .nav-links {
    animation: navSlideIn 0.35s var(--ease-out);
  }

  @keyframes navSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav.open .nav-dropdown-menu {
    display: none;
  }

  .nav.open .nav-dropdown.open .nav-dropdown-menu {
    display: block;
  }

  .nav.open .nav-dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav.open .nav-dropdown.open .nav-dropdown-menu a {
    opacity: 1;
    transform: none;
  }

  body.has-mobile-cta {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .back-to-top.visible {
    bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Mobile sticky CTA */
.mobile-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 850;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -4px 24px rgba(15, 43, 74, 0.1);
  gap: 0.65rem;
}

.mobile-cta-bar.is-visible {
  display: flex;
}

.mobile-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mobile-cta-btn--call {
  flex: 0 0 auto;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
}

.mobile-cta-btn--call svg { stroke: var(--color-accent-hover); }

.mobile-cta-btn--primary {
  flex: 1;
  background: var(--gradient-brand);
  color: var(--color-primary);
  box-shadow: 0 4px 14px rgba(0, 201, 167, 0.35);
}

.mobile-cta-btn:active {
  transform: scale(0.98);
}

.mobile-cta-bar.is-hidden {
  display: none !important;
}


@media (min-width: 769px) {
  .mobile-cta-bar { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-dropdown-menu a {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav.open .nav-links { animation: none; }
}

/* ═══════════════════════════════════════════
   Design v7 — blog UX, reading progress
   ═══════════════════════════════════════════ */

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 1100;
  background: transparent;
  pointer-events: none;
}

.reading-progress-bar {
  height: 100%;
  width: 0;
  background: var(--gradient-brand);
  box-shadow: 0 0 8px rgba(0, 201, 167, 0.5);
  transition: width 0.1s linear;
}

.page-blog-article .header {
  border-bottom-color: transparent;
}

/* Blog featured */
.blog-featured {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 2.5rem;
}

.blog-featured-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: linear-gradient(135deg, var(--color-primary), #1a5a8a 50%, rgba(0,201,167,0.4));
}

.blog-featured--cat-local .blog-featured-visual { background: linear-gradient(135deg, #0f2b4a, #1a5a8a 50%, rgba(0,201,167,0.5)); }
.blog-featured--cat-guides .blog-featured-visual { background: linear-gradient(135deg, #1e3a5f, #2d5a87 50%, rgba(94,234,212,0.4)); }
.blog-featured--cat-maps .blog-featured-visual { background: linear-gradient(135deg, #134e4a, #0f766e 50%, rgba(52,211,153,0.45)); }
.blog-featured--cat-marketing .blog-featured-visual { background: linear-gradient(135deg, #4a1d6a, #7c3aed 50%, rgba(167,139,250,0.35)); }
.blog-featured--cat-audit .blog-featured-visual { background: linear-gradient(135deg, #1e3a5f, #0369a1 50%, rgba(56,189,248,0.4)); }
.blog-featured--cat-ecommerce .blog-featured-visual { background: linear-gradient(135deg, #7c2d12, #ea580c 50%, rgba(251,191,36,0.35)); }
.blog-featured--cat-content .blog-featured-visual { background: linear-gradient(135deg, #365314, #65a30d 50%, rgba(163,230,53,0.35)); }
.blog-featured--cat-technical .blog-featured-visual { background: linear-gradient(135deg, #1e293b, #475569 50%, rgba(148,163,184,0.4)); }

.blog-featured-icon {
  opacity: 0.35;
  color: var(--color-white);
}

.blog-featured-icon svg { stroke: var(--color-white); }

.blog-featured-body {
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-featured-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-hover);
  margin-bottom: 0.5rem;
}

.blog-featured-body .blog-category {
  margin-bottom: 0.75rem;
}

.blog-featured-body h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.blog-featured-body h2 a:hover { color: var(--color-accent-hover); }

.blog-featured-body > p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.blog-featured-body .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

/* Blog filters */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.blog-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 50px;
  background: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.blog-filter:hover {
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.blog-filter.is-active {
  background: var(--color-accent-soft);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.blog-filter-count {
  font-size: 0.7rem;
  font-weight: 700;
  background: var(--color-bg);
  padding: 0.1rem 0.45rem;
  border-radius: 50px;
  color: var(--color-text-muted);
}

.blog-filter.is-active .blog-filter-count {
  background: rgba(0, 201, 167, 0.2);
  color: var(--color-primary);
}

.blog-card[hidden] { display: none; }

/* Author box */
.author-box {
  display: flex;
  gap: 1.25rem;
  padding: 1.75rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin: 2.5rem 0;
}

.author-box-avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: var(--gradient-brand);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.author-box-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.author-box-name {
  display: block;
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.author-box-bio {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.author-box-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-accent-hover);
}

.author-box-link:hover { color: var(--color-primary); }

.content-nav-links {
  margin-top: 2rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.content-nav-links a {
  color: var(--color-accent-hover);
  font-weight: 500;
}

.content-nav-links a:hover { color: var(--color-primary); }

/* Focus states */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn:focus-visible,
.blog-filter:focus-visible {
  outline-offset: 3px;
}

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

  .blog-featured-visual {
    min-height: 160px;
  }

  .blog-featured-body {
    padding: 1.5rem;
  }

  .blog-filters {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .blog-filters::-webkit-scrollbar { display: none; }

  .blog-filter { flex-shrink: 0; }

  .author-box {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* ═══════════════════════════════════════════
   Design v8 — blog sidebar, share, forms, FAQ
   ═══════════════════════════════════════════ */

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}

.blog-layout-main {
  max-width: none;
  min-width: 0;
}

.blog-sidebar {
  position: sticky;
  top: calc(104px + 1rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sidebar-label,
.share-box-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
}

.share-box-label svg { color: var(--color-accent-hover); }

.article-toc,
.share-box,
.sidebar-cta {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.article-toc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}

.article-toc-list li {
  counter-increment: toc;
  margin-bottom: 0.35rem;
}

.article-toc-link {
  display: block;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all 0.2s;
}

.article-toc-link:hover {
  color: var(--color-primary);
  background: var(--color-bg);
}

.article-toc-link.is-active {
  color: var(--color-primary);
  background: var(--color-accent-soft);
  border-left-color: var(--color-accent);
  font-weight: 600;
}

.share-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.65rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 700;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-primary);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  font-family: var(--font-sans);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.share-btn--linkedin { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.share-btn--twitter { background: #0f1419; color: #fff; border-color: #0f1419; }
.share-btn--whatsapp { background: #25d366; color: #fff; border-color: #25d366; }
.share-btn--copy.is-copied { background: var(--color-accent-soft); border-color: var(--color-accent); }

.sidebar-cta {
  background: linear-gradient(135deg, rgba(0,201,167,0.08), rgba(15,43,74,0.04));
  border-color: rgba(0, 201, 167, 0.2);
}

.sidebar-cta strong {
  display: block;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: 0.35rem;
}

.sidebar-cta p {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.btn-sm {
  padding: 0.6rem 1.15rem;
  font-size: 0.85rem;
}

/* Form inputs with icons */
.input-wrap {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  z-index: 1;
}

.input-wrap--textarea .input-icon {
  top: 0.85rem;
  transform: none;
}

.input-wrap input,
.input-wrap select,
.input-wrap textarea {
  padding-left: 2.65rem;
  width: 100%;
}

.input-wrap textarea {
  min-height: 120px;
}

.input-wrap input:focus + .input-icon,
.input-wrap select:focus + .input-icon,
.input-wrap:focus-within .input-icon {
  color: var(--color-accent-hover);
}

/* FAQ grid on home — removed; single column is cleaner */

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

  .blog-sidebar {
    position: static;
    order: -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .sidebar-cta {
    grid-column: 1 / -1;
  }
}

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

  .article-toc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
  }

  .article-toc-list li { margin: 0; }

  .article-toc-link {
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    border: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
    font-size: 0.8rem;
  }

  .article-toc-link.is-active {
    border-color: var(--color-accent);
  }
}
