/* ============================================================================
   asesoriasgestorias.com — CSS Premium v2.0
   Paleta: Azul marino profundo + Verde esmeralda + Dorado
   Tipografía: Outfit (display) + Inter (body)
   Google Fonts: https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ============================================================================
   TOKENS DE DISEÑO
   ============================================================================ */
:root {
  /* ── Colores core ── */
  --navy:          #0a1628;
  --navy-800:      #0e1f3a;
  --navy-700:      #132848;
  --navy-600:      #1a3355;
  --navy-500:      #1e4070;
  --emerald:       #10b981;
  --emerald-600:   #059669;
  --emerald-400:   #34d399;
  --emerald-100:   #d1fae5;
  --gold:          #d4a84b;
  --gold-light:    #f0c96a;
  --white:         #ffffff;
  --off-white:     #f8fafc;

  /* ── Escala de grises ── */
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;

  /* ── Tipografía ── */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --text-xs:   0.75rem;
  --text-sm:   0.875rem;
  --text-base: 1rem;
  --text-lg:   1.125rem;
  --text-xl:   1.25rem;
  --text-2xl:  1.5rem;
  --text-3xl:  1.875rem;
  --text-4xl:  2.25rem;
  --text-5xl:  3rem;

  /* ── Espaciados ── */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-5:  1.25rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* ── Radios ── */
  --r-sm:   0.375rem;
  --r-md:   0.5rem;
  --r-lg:   0.75rem;
  --r-xl:   1rem;
  --r-2xl:  1.25rem;
  --r-3xl:  1.5rem;
  --r-full: 9999px;

  /* ── Sombras ── */
  --shadow-xs:  0 1px 2px rgba(0,0,0,0.06);
  --shadow-sm:  0 2px 4px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 24px rgba(0,0,0,0.12);
  --shadow-xl:  0 16px 40px rgba(0,0,0,0.16);
  --shadow-2xl: 0 24px 60px rgba(0,0,0,0.22);
  --shadow-navy:0 4px 20px rgba(10,22,40,0.28);
  --shadow-emerald: 0 4px 16px rgba(16,185,129,0.30);

  /* ── Transiciones ── */
  --ease-fast: 120ms ease;
  --ease-base: 220ms ease;
  --ease-slow: 380ms cubic-bezier(0.4,0,0.2,1);

  /* ── Layout ── */
  --container-max: 1260px;
  --container-pad: clamp(1rem, 4vw, 2rem);
  --header-h: 80px;

  /* ── Spacing Mappings ── */
  --spacing-sm:  var(--sp-2);
  --spacing-md:  var(--sp-4);
  --spacing-lg:  var(--sp-6);
  --spacing-xl:  var(--sp-8);
  --spacing-2xl: var(--sp-10);
  --spacing-3xl: var(--sp-12);
  --spacing-4xl: var(--sp-16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  font-family: var(--font-body);
  background-color: var(--off-white);
  color: var(--navy);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, video, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--ease-fast);
}

ul, ol { list-style: none; }

input, textarea, select, button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button { cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--navy);
}

/* ============================================================================
   ACCESIBILIDAD
   ============================================================================ */
:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================================
   LAYOUT BASE
   ============================================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* ============================================================================
   ANIMACIONES
   ============================================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes pulse-emerald {
  0%, 100% { box-shadow: 0 0 0 0 rgba(16,185,129,0.35); }
  50%       { box-shadow: 0 0 0 8px rgba(16,185,129,0); }
}

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

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.55s var(--ease-slow) forwards;
}

.fade-in-up:nth-child(2) { animation-delay: 0.05s; }
.fade-in-up:nth-child(3) { animation-delay: 0.10s; }
.fade-in-up:nth-child(4) { animation-delay: 0.15s; }
.fade-in-up:nth-child(5) { animation-delay: 0.20s; }
.fade-in-up:nth-child(6) { animation-delay: 0.25s; }

/* ============================================================================
   TIPOGRAFÍA UTILITARIA
   ============================================================================ */
.body-xs  { font-size: var(--text-xs);  line-height: 1.5; }
.body-sm  { font-size: var(--text-sm);  line-height: 1.6; }
.body-md  { font-size: var(--text-base); line-height: 1.7; }
.body-lg  { font-size: var(--text-lg);  line-height: 1.7; }

.heading-xl {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.text-emerald { color: var(--emerald); }
.text-gold    { color: var(--gold); }
.text-slate   { color: var(--gray-500); }
.text-white   { color: var(--white); }
.text-center  { text-align: center; }

/* ============================================================================
   BOTONES
   ============================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.75rem 1.75rem;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  transition: all var(--ease-base);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  color: var(--white);
  box-shadow: var(--shadow-emerald);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16,185,129,0.42);
  color: var(--white);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(255,255,255,0.10);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-2px);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-300);
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(212,168,75,0.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,168,75,0.45);
}

.btn-lg { padding: 0.9rem 2.25rem; font-size: 1rem; }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.82rem; }

/* ============================================================================
   BADGES
   ============================================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.8rem;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-emerald { background: var(--emerald-100); color: var(--emerald-600); }
.badge-navy    { background: rgba(10,22,40,0.08); color: var(--navy); }
.badge-gold    { background: rgba(212,168,75,0.12); color: #9a6c1a; }

/* ============================================================================
   HEADER — STICKY CON GLASSMORPHISM
   ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 2px 24px rgba(0,0,0,0.28);
  transition: background var(--ease-base);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--sp-6);
}

/* ── Logo ── */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 14px rgba(16,185,129,0.45);
  flex-shrink: 0;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-text span { color: var(--emerald); }

/* ── Navegación escritorio ── */
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.nav-link {
  position: relative;
  color: rgba(255,255,255,0.72);
  font-size: var(--text-sm);
  font-weight: 500;
  padding-bottom: 2px;
  transition: color var(--ease-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--emerald);
  border-radius: var(--r-full);
  transition: width var(--ease-base);
}

.nav-link:hover { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--emerald-400); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.5rem 1.2rem;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  color: var(--white) !important;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 3px 12px rgba(16,185,129,0.38);
  transition: all var(--ease-base);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(16,185,129,0.48);
}

.nav-cta::after { display: none !important; }

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  gap: 6px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  cursor: pointer;
  transition: background var(--ease-fast);
  flex-shrink: 0;
}

.hamburger:hover { background: rgba(255,255,255,0.12); }

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: var(--r-full);
  transition: all var(--ease-base);
  transform-origin: center;
}

/* Estado abierto del hamburger */
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ── Menú móvil overlay ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  background: rgba(10, 22, 40, 0.98);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  flex-direction: column;
  padding: var(--sp-8) var(--sp-6);
  gap: var(--sp-2);
  overflow-y: auto;
  animation: slideDown var(--ease-slow) forwards;
}

.mobile-menu.open { display: flex; }

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-xl);
  color: rgba(255,255,255,0.85);
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  transition: all var(--ease-base);
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.04);
  text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link:focus {
  background: rgba(16,185,129,0.12);
  border-color: rgba(16,185,129,0.3);
  color: var(--white);
  transform: translateX(4px);
}

.mobile-nav-link.active {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.4);
  color: var(--emerald-400);
}

.mobile-nav-arrow {
  color: rgba(255,255,255,0.3);
  font-size: 1.25rem;
  transition: transform var(--ease-fast);
}

.mobile-nav-link:hover .mobile-nav-arrow { transform: translateX(4px); color: var(--emerald); }

.mobile-nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: var(--sp-4) 0;
}

.mobile-nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  color: var(--white) !important;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  box-shadow: var(--shadow-emerald);
  text-decoration: none;
  margin-top: var(--sp-4);
  transition: all var(--ease-base);
}

.mobile-nav-cta:hover { opacity: 0.92; transform: translateY(-2px); }

/* ============================================================================
   HERO SECTION
   ============================================================================ */
.hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 60%, #0d2240 100%);
  padding: clamp(var(--sp-16), 8vw, var(--sp-24)) 0;
  position: relative;
  clip-path: inset(0 0 -500px 0);
}

/* Esferas decorativas */
.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 600px; height: 600px;
  top: -20%; right: -8%;
  background: radial-gradient(circle, rgba(16,185,129,0.09) 0%, transparent 68%);
}

.hero::after {
  width: 400px; height: 400px;
  bottom: -20%; left: -5%;
  background: radial-gradient(circle, rgba(212,168,75,0.07) 0%, transparent 68%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.22);
  color: var(--emerald-400);
  padding: 0.4rem 1rem;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
  width: fit-content;
  animation: pulse-emerald 3s infinite;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-5);
}

.hero-title .highlight {
  background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald-400) 60%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: shimmer 4s linear infinite;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,0.65);
  line-height: 1.75;
  margin-bottom: var(--sp-8);
  max-width: 620px;
}

/* Stats hero */
.hero-stats {
  display: flex;
  gap: var(--sp-8);
  margin-bottom: var(--sp-8);
  flex-wrap: wrap;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1;
}

.hero-stat-value span { color: var(--emerald-400); }

.hero-stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ============================================================================
   BUSCADOR
   ============================================================================ */
.search-section {
  background: var(--white);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-2xl);
  padding: var(--sp-6) var(--sp-8);
  margin-top: var(--sp-8);
  border: 1px solid var(--gray-200);
  position: relative;
  z-index: 2;
}

.search-form {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
}

.search-icon {
  position: absolute;
  left: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.05rem;
  pointer-events: none;
  user-select: none;
}

.search-input {
  width: 100%;
  padding: 0.85rem var(--sp-4) 0.85rem 3rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  font-size: var(--text-base);
  color: var(--navy);
  background: var(--gray-50);
  transition: all var(--ease-base);
  outline: none;
}

/* Badge verified style */
.badge-verified {
  display: inline-block;
  background: linear-gradient(135deg, var(--emerald-400), var(--gold-light));
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: var(--r-md);
  margin-left: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease-fast), box-shadow var(--ease-fast);
}
.badge-verified:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
/* Map container adjustments */
.map-container {
  width: 100%;
  height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.search-input::placeholder { color: var(--gray-400); }

.search-input:focus {
  border-color: var(--emerald);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  z-index: 300;
  max-height: 380px;
  overflow-y: auto;
  display: none;
}

.search-results-dropdown.visible { display: block; }

.search-result-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-5);
  cursor: pointer;
  transition: background var(--ease-fast);
  border-bottom: 1px solid var(--gray-100);
  text-decoration: none;
}

.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover,
.search-result-item:focus { background: var(--gray-50); }

.search-result-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.search-result-name {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--navy);
}

.search-result-loc {
  font-size: var(--text-xs);
  color: var(--gray-500);
  margin-top: 1px;
}

/* ============================================================================
   SECCIONES COMUNES
   ============================================================================ */
.section-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}

.section-label {
  display: inline-block;
  color: var(--emerald);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  margin-bottom: var(--sp-2);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.025em;
  margin-bottom: var(--sp-3);
}

.section-subtitle {
  font-size: var(--text-base);
  color: var(--gray-500);
  max-width: 580px;
  margin-inline: auto;
  line-height: 1.75;
}

/* ── Separador decorativo ── */
.section-divider {
  width: 48px; height: 4px;
  border-radius: var(--r-full);
  background: linear-gradient(90deg, var(--emerald) 0%, var(--emerald-400) 100%);
  margin: var(--sp-4) auto 0;
}

/* ============================================================================
   TARJETAS DE SERVICIO
   ============================================================================ */
.services-section {
  padding: clamp(var(--sp-12), 6vw, var(--sp-20)) 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--sp-5);
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  transition: all var(--ease-slow);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.service-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(16,185,129,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--ease-base);
  pointer-events: none;
}

.service-card:hover {
  border-color: rgba(16,185,129,0.35);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16,185,129,0.10);
  transform: translateY(-5px);
}

.service-card:hover::after { opacity: 1; }

.service-icon {
  width: 54px; height: 54px;
  border-radius: var(--r-xl);
  background: linear-gradient(135deg, rgba(16,185,129,0.10) 0%, rgba(16,185,129,0.04) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform var(--ease-base);
  position: relative;
  z-index: 1;
}

.service-card:hover .service-icon { transform: scale(1.1) rotate(-3deg); }

.service-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  position: relative;
  z-index: 1;
}

.service-desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.65;
  flex: 1;
  position: relative;
  z-index: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--emerald);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: gap var(--ease-fast);
  position: relative;
  z-index: 1;
  margin-top: auto;
}

.service-link:hover { gap: 0.65rem; color: var(--emerald-600); }

/* ============================================================================
   TARJETAS DE PROVINCIA
   ============================================================================ */
.provinces-section {
  padding: clamp(var(--sp-12), 6vw, var(--sp-20)) 0;
  background: var(--gray-50);
}

.provinces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: var(--sp-3);
}

.province-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  transition: all var(--ease-base);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.province-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--emerald) 0%, var(--emerald-600) 100%);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--ease-base);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.province-card:hover {
  border-color: rgba(16,185,129,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px) translateX(2px);
}

.province-card:hover::before { transform: scaleY(1); }

.province-emoji { font-size: 1.5rem; flex-shrink: 0; }

.province-info { flex: 1; min-width: 0; }

.province-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.province-count {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: 1px;
}

.province-arrow {
  color: var(--gray-300);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all var(--ease-fast);
}

.province-card:hover .province-arrow {
  color: var(--emerald);
  transform: translateX(3px);
}

/* ============================================================================
   ESPECIALIDADES
   ============================================================================ */
.especialidades-section {
  padding: clamp(var(--sp-12), 6vw, var(--sp-20)) 0;
  background: var(--white);
}

.especialidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: var(--sp-5);
}

.especialidad-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  transition: all var(--ease-base);
}

.especialidad-card:hover {
  border-color: rgba(16,185,129,0.3);
  background: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.especialidad-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}

.especialidad-desc {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.65;
}

/* ============================================================================
   BLOG CARDS
   ============================================================================ */
.blog-section {
  padding: clamp(var(--sp-12), 6vw, var(--sp-20)) 0;
  background: var(--gray-50);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}

.blog-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--ease-slow);
}

.blog-card:hover {
  border-color: rgba(16,185,129,0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.blog-card-img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.blog-card-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.blog-card-category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
}

.blog-card-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}

.blog-card-excerpt {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.6;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  gap: var(--sp-4);
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: 1px solid var(--gray-100);
}

/* ============================================================================
   SILO HERO (Nivel 2/3/4)
   ============================================================================ */
.silo-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 60%, #0d2240 100%);
  padding: clamp(var(--sp-10), 6vw, var(--sp-20)) 0;
  position: relative;
  overflow: hidden;
}

.silo-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  top: -30%; right: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.silo-hero-content {
  position: relative;
  z-index: 1;
}

.silo-stats {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: rgba(16,185,129,0.10);
  border: 1px solid rgba(16,185,129,0.20);
  color: var(--emerald-400);
  padding: 0.35rem 0.9rem;
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.silo-stats span { color: var(--white); font-size: var(--text-sm); }

.silo-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-4);
}

.silo-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,0.62);
  max-width: 640px;
  line-height: 1.75;
}

/* ============================================================================
   BREADCRUMBS
   ============================================================================ */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-6);
}

.breadcrumb-item {
  color: rgba(255,255,255,0.55);
  transition: color var(--ease-fast);
}

.breadcrumb-item:hover { color: var(--emerald-400); }

.breadcrumb-sep { color: rgba(255,255,255,0.25); user-select: none; }

.breadcrumb-current { color: rgba(255,255,255,0.75); font-weight: 500; }

/* ── Breadcrumbs en fondo claro ── */
.breadcrumbs-light {
  color: var(--gray-400);
}
.breadcrumbs-light .breadcrumb-item { color: var(--gray-500); }
.breadcrumbs-light .breadcrumb-item:hover { color: var(--emerald); }
.breadcrumbs-light .breadcrumb-sep { color: var(--gray-300); }
.breadcrumbs-light .breadcrumb-current { color: var(--navy); }

/* ============================================================================
   TARJETAS DE ASESORÍA (Listado nivel 3)
   ============================================================================ */
.professionals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--sp-5);
}

.pro-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--ease-slow);
}

.pro-card:hover {
  border-color: rgba(16,185,129,0.3);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.pro-card-image {
  width: 100%;
  height: 175px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.4);
  transition: transform 0.5s ease;
}

.pro-card:hover .pro-card-image { transform: scale(1.03); }

.pro-card-body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  flex: 1;
}

.pro-card-category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--emerald);
}

.pro-card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
}

.pro-card-address {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.4;
}

.pro-card-address-icon { flex-shrink: 0; font-size: 0.9rem; }

.pro-card-rating {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
}

.stars { color: #f59e0b; letter-spacing: 1px; }

.rating-count { font-size: var(--text-xs); color: var(--gray-400); }

.pro-card-footer {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--gray-100);
  display: flex;
  gap: var(--sp-2);
}

.pro-card-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem var(--sp-3);
  border-radius: var(--r-full);
  font-size: var(--text-xs);
  font-weight: 700;
  transition: all var(--ease-base);
  text-decoration: none;
}

.pro-card-btn-primary {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(16,185,129,0.28);
}
.pro-card-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16,185,129,0.38);
  color: var(--white);
}

.pro-card-btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--gray-200);
}
.pro-card-btn-outline:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
}

/* ============================================================================
   PÁGINA DE FICHA INDIVIDUAL (Nivel 4)
   ============================================================================ */
.profile-layout {
  display: block;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--sp-8) 0 var(--sp-12);
}

.profile-sidebar {
  display: none !important;
}

/* ── Hero de la ficha ── */
.profile-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 100%);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  color: var(--white);
  margin-bottom: var(--sp-5);
  position: relative;
  overflow: hidden;
}

.profile-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.10) 0%, transparent 70%);
  pointer-events: none;
}

.profile-photo {
  width: 88px; height: 88px;
  border-radius: var(--r-xl);
  object-fit: cover;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: var(--sp-5);
  border: 2px solid rgba(255,255,255,0.15);
  position: relative;
  z-index: 1;
}

.profile-category {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--emerald-400);
  margin-bottom: var(--sp-2);
  position: relative;
  z-index: 1;
}

.profile-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-5);
  position: relative;
  z-index: 1;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  position: relative;
  z-index: 1;
}

.profile-meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-full);
}

/* ── Secciones de la ficha ── */
.profile-section {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  margin-bottom: var(--sp-5);
}

.profile-section-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding-bottom: var(--sp-4);
  border-bottom: 2px solid var(--gray-100);
}

/* ── Grid de contacto ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--gray-50);
  border-radius: var(--r-xl);
  border: 1px solid var(--gray-100);
  transition: all var(--ease-fast);
}

.contact-item:hover { background: var(--white); border-color: var(--emerald-100); }

.contact-item-icon {
  width: 36px; height: 36px;
  background: rgba(16,185,129,0.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.contact-item-value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  word-break: break-word;
}

.contact-item-value a { color: var(--emerald); }
.contact-item-value a:hover { color: var(--emerald-600); text-decoration: underline; }

/* ── Horario ── */
.schedule-grid {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.schedule-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-4);
  background: var(--gray-50);
  border-radius: var(--r-lg);
  border: 1px solid var(--gray-100);
}

.schedule-row.closed { opacity: 0.5; }

.schedule-day {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--navy);
}

.schedule-hours {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 500;
}

/* ── Mapa ── */
.map-container {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1.5px solid var(--gray-200);
  height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* ── Reseñas ── */
.reviews-list { display: flex; flex-direction: column; gap: var(--sp-4); }

.review-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-100);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  transition: all var(--ease-fast);
}

.review-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.review-header {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.review-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--navy-600) 0%, var(--navy-500) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.review-author-name {
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--navy);
}

.review-date {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: 1px;
}

.review-stars {
  font-size: var(--text-sm);
  color: #f59e0b;
  letter-spacing: 1px;
  margin-top: 2px;
}

.review-text {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.7;
  font-style: italic;
}

/* ── Sidebar ── */
.profile-sidebar { display: flex; flex-direction: column; gap: var(--sp-5); }

.sidebar-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  overflow: hidden;
}

.sidebar-card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: var(--sp-4) var(--sp-5);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}

.sidebar-nearby { padding: var(--sp-3); display: flex; flex-direction: column; gap: var(--sp-2); }

.nearby-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-xl);
  transition: all var(--ease-fast);
  text-decoration: none;
  border: 1px solid transparent;
}

.nearby-item:hover {
  background: var(--gray-50);
  border-color: var(--gray-200);
}

.nearby-icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: rgba(16,185,129,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.nearby-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}

.nearby-loc {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: 1px;
}

/* ── CTA Box sidebar ── */
.cta-box {
  background: linear-gradient(135deg, var(--emerald-600) 0%, #047857 100%);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: -30%; left: -20%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-box-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--sp-2);
  position: relative;
  z-index: 1;
}

.cta-box-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.78);
  line-height: 1.65;
  margin-bottom: var(--sp-5);
  position: relative;
  z-index: 1;
}

.cta-box-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.8rem var(--sp-5);
  background: var(--white);
  color: var(--emerald-600);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  transition: all var(--ease-base);
  position: relative;
  z-index: 1;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.20);
}

.cta-box-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  color: var(--emerald-600);
}

/* ── Highlight box ── */
.highlight-box {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.65;
}

/* ============================================================================
   EMBUDOS DE CAPTACIÓN (Funnel)
   ============================================================================ */
.funnel-hero {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-700) 60%, #0d2240 100%);
  padding: clamp(var(--sp-12), 7vw, var(--sp-24)) 0;
  position: relative;
  overflow: hidden;
}

.funnel-hero::before {
  content: '';
  position: absolute;
  top: -30%; right: -8%;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.funnel-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: var(--sp-10);
  align-items: start;
}

.funnel-form-card {
  background: var(--white);
  border-radius: var(--r-3xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-2xl);
  border: 1px solid var(--gray-200);
  position: sticky;
  top: calc(var(--header-h) + var(--sp-6));
}

.funnel-steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
}

.funnel-step {
  display: flex;
  gap: var(--sp-5);
  align-items: flex-start;
}

.funnel-step-num {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(16,185,129,0.38);
}

.funnel-step-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--white);
  margin-bottom: 0.35rem;
}

.funnel-step-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
}

/* ============================================================================
   FORMULARIOS
   ============================================================================ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: var(--sp-4);
}

.form-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem var(--sp-4);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  color: var(--navy);
  background: var(--white);
  transition: all var(--ease-base);
  outline: none;
  width: 100%;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.12);
}

.form-textarea { resize: vertical; min-height: 120px; }

.form-select { cursor: pointer; }

.contact-form-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-lg);
}

/* ============================================================================
   PÁGINA DE GRACIAS
   ============================================================================ */
.thanks-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-16) 0;
  background: var(--gray-50);
}

.thanks-card {
  background: var(--white);
  border-radius: var(--r-3xl);
  padding: var(--sp-12) var(--sp-10);
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-xl);
}

.thanks-icon { font-size: 4rem; margin-bottom: var(--sp-5); }

/* ============================================================================
   PÁGINAS LEGALES
   ============================================================================ */
.legal-section {
  padding: clamp(var(--sp-10), 5vw, var(--sp-16)) 0;
  background: var(--white);
}

.legal-content {
  max-width: 760px;
  margin: 0 auto;
  padding: var(--sp-8);
  background: var(--white);
  border-radius: var(--r-2xl);
  border: 1.5px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-2);
  border-bottom: 2px solid var(--gray-100);
}

.legal-content p,
.legal-content li {
  font-size: var(--text-base);
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--sp-6);
  margin-bottom: var(--sp-4);
}

/* ============================================================================
   FOOTER
   ============================================================================ */
.site-footer {
  background: linear-gradient(180deg, var(--navy) 0%, #07101f 100%);
  padding: clamp(var(--sp-12), 6vw, var(--sp-20)) 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--sp-10);
  padding-bottom: clamp(var(--sp-10), 5vw, var(--sp-16));
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: var(--sp-4);
}

.footer-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  line-height: 1.75;
  margin-bottom: var(--sp-5);
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: var(--sp-2);
}

.social-icon {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
  transition: all var(--ease-base);
  text-decoration: none;
}

.social-icon:hover {
  background: rgba(16,185,129,0.15);
  border-color: rgba(16,185,129,0.3);
  color: var(--emerald-400);
  transform: translateY(-2px);
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.footer-links { display: flex; flex-direction: column; gap: var(--sp-2); }

.footer-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.45);
  transition: all var(--ease-fast);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
}

.footer-link:hover {
  color: var(--emerald-400);
  transform: translateX(4px);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) 0;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.footer-bottom-text {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.3);
}

.footer-legal {
  display: flex;
  gap: var(--sp-4);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  transition: color var(--ease-fast);
}

.footer-legal a:hover { color: var(--emerald-400); }

/* ============================================================================
   CTA FINAL SECTION
   ============================================================================ */
.cta-final-section {
  padding: clamp(var(--sp-12), 7vw, var(--sp-20)) 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-final-section::before {
  content: '';
  position: absolute;
  top: -40%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 68%);
  pointer-events: none;
}

/* ============================================================================
   ESPACIOS PARA ADSENSE
   Clases que permiten insertar bloques de publicidad entre secciones
   ============================================================================ */
.ad-slot {
  width: 100%;
  min-height: 90px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: var(--sp-6) 0;
}

.ad-slot-top     { margin-top: 0; }
.ad-slot-bottom  { margin-bottom: 0; }
.ad-slot-between { margin: var(--sp-8) 0; }

/* ============================================================================
   RESPONSIVE — TABLET (≤ 1024px)
   Sin columnas laterales, layout de una sola columna para AdSense
   ============================================================================ */
@media (max-width: 1024px) {

  /* ── Ficha individual: eliminar sidebar ── */
  .profile-layout {
    grid-template-columns: 1fr;
  }

  .profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--sp-5);
    margin-top: var(--sp-6);
  }

  /* ── Footer grid ── */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-8);
  }

  /* ── Funnel layout ── */
  .funnel-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .funnel-form-card {
    position: static;
  }

  /* ── Provincias grid más compacto ── */
  .provinces-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }

  /* ── Profesionales en 2 cols ── */
  .professionals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================================
   RESPONSIVE — MÓVIL GRANDE (≤ 768px)
   ============================================================================ */
@media (max-width: 768px) {

  /* ── Mostrar hamburger, ocultar nav escritorio ── */
  .hamburger { display: flex; }
  .site-nav { display: none; }

  /* ── Header logo compacto ── */
  .logo-text { font-size: 1rem; }

  /* ── Hero ── */
  .hero-stats { gap: var(--sp-5); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* ── Buscador ── */
  .search-section { padding: var(--sp-5); }
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; justify-content: center; }

  /* ── Grids a 1 columna ── */
  .services-grid,
  .especialidades-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  /* ── Provincias: 2 columnas ── */
  .provinces-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* ── Profesionales: 1 columna ── */
  .professionals-grid {
    grid-template-columns: 1fr;
  }

  /* ── Ficha: contacto en 1 columna ── */
  .contact-grid { grid-template-columns: 1fr; }

  /* ── Ficha: profile meta en columna ── */
  .profile-meta { flex-direction: column; gap: var(--sp-2); }
  .profile-meta-item { width: fit-content; }

  /* ── Footer: 1 columna ── */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-8);
  }

  .footer-brand { margin-bottom: var(--sp-4); }
  .footer-desc { max-width: 100%; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--sp-2);
  }

  .footer-legal { justify-content: center; }

  /* ── Mapa ── */
  .map-container { height: 240px; }

  /* ── Formulario ── */
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: var(--sp-5); }

  /* ── Thanks ── */
  .thanks-card { padding: var(--sp-8) var(--sp-5); }

  /* ── Legal ── */
  .legal-content { padding: var(--sp-5); }
}

/* ============================================================================
   RESPONSIVE — MÓVIL PEQUEÑO (≤ 480px)
   ============================================================================ */
@media (max-width: 480px) {

  :root { --container-pad: 1rem; }

  /* ── Provincias: 1 columna ── */
  .provinces-grid {
    grid-template-columns: 1fr;
  }

  /* ── Hero título más compacto ── */
  .hero-stats { gap: var(--sp-4); }

  .hero-stat-value { font-size: 1.5rem; }

  /* ── Profile ── */
  .profile-name { font-size: 1.4rem; }
  .profile-hero { padding: var(--sp-5); }

  /* ── Pro cards: botones en columna ── */
  .pro-card-footer { flex-direction: column; }

  /* ── Funnel form card ── */
  .funnel-form-card { padding: var(--sp-5); }

  /* ── Blog/Servicios ── */
  .service-card { padding: var(--sp-5); }

  /* ── Breadcrumbs truncar ── */
  .breadcrumbs {
    font-size: 0.7rem;
  }

  /* ── Silo title ── */
  .silo-title { font-size: 1.5rem; }

  /* ── Footer ── */
  .footer-logo { font-size: 1rem; }
}

/* ============================================================================
   UTILIDADES DE LAYOUT
   ============================================================================ */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.gap-sm  { gap: var(--sp-2); }
.gap-md  { gap: var(--sp-4); }
.gap-lg  { gap: var(--sp-6); }
.gap-xl  { gap: var(--sp-8); }

/* ============================================================================
   SCROLL SUAVE & SCROLL BAR PERSONALIZADA
   ============================================================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: var(--r-full);
}
::-webkit-scrollbar-thumb:hover { background: var(--emerald); }

/* ============================================================================
   SELECCIÓN DE TEXTO
   ============================================================================ */
::selection {
  background: rgba(16,185,129,0.20);
  color: var(--navy);
}

/* ============================================================================
   SECCIÓN PREMIUM DE CIUDADES DE LA HOME (Módulos de Unsplash)
   ============================================================================ */
.top-cities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.city-card-premium {
  position: relative;
  height: 300px;
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--ease-slow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-decoration: none;
}

.city-card-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  transition: transform var(--ease-slow);
  z-index: 1;
}

.city-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(10, 22, 40, 0.85) 90%);
  z-index: 2;
  transition: background var(--ease-base);
}

.city-card-content {
  position: relative;
  z-index: 3;
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.city-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--white);
  line-height: 1.2;
}

.city-badge-count {
  align-self: flex-start;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--white);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: var(--r-full);
  transition: all var(--ease-fast);
}

/* Hover effects */
.city-card-premium:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl), 0 10px 25px rgba(10, 22, 40, 0.2);
}

.city-card-premium:hover .city-card-bg {
  transform: scale(1.06);
}

.city-card-premium:hover .city-card-overlay {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.15) 0%, rgba(10, 22, 40, 0.92) 85%);
}

.city-card-premium:hover .city-badge-count {
  background: var(--emerald);
  border-color: var(--emerald);
}

/* Responsive top cities */
@media (max-width: 1024px) {
  .top-cities-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
  }
  .city-card-premium {
    height: 260px;
  }
}

@media (max-width: 768px) {
  .top-cities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .top-cities-grid {
    grid-template-columns: 1fr;
  }
  .city-card-premium {
    height: 220px;
  }
}
/* ============================================================================
   SOBREESCRITURAS DE DISEÑO: TEMA CLARO, MINIMALISTA Y BOXED (2026)
   ============================================================================ */
:root {
  --off-white:      #f8fafc;
  --container-max:  1120px; /* Diseño más minimalista y boxed */
}

body {
  background-color: var(--off-white);
  color: var(--navy);
}

/* ── Cabecera Clara ── */
.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.logo-text {
  color: var(--navy);
}

.nav-link {
  color: var(--gray-600);
}

.nav-link:hover {
  color: var(--navy);
}

.nav-link.active {
  color: var(--emerald-600);
}

.hamburger span {
  background: var(--navy);
}

/* ── Buscador en Cabecera (Desktop/Tablet) ── */
.header-search {
  display: block;
  margin-left: auto;
  margin-right: 1.5rem;
}

.header-search .search-input {
  width: 200px;
  padding: 0.45rem 1.25rem 0.45rem 2.2rem;
  font-size: var(--text-sm);
  border-radius: var(--r-full);
  border: 1.5px solid var(--gray-200);
  background: var(--gray-50);
  transition: all var(--ease-base);
}

.header-search .search-input:focus {
  width: 280px;
  background: var(--white);
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.12);
}

.header-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-400);
  font-size: 0.9rem;
}

.header-search .search-results-dropdown {
  width: 320px;
  top: calc(100% + 6px);
  left: auto;
  right: 0;
}

/* ── Buscador Móvil ── */
.mobile-search-toggle {
  display: none;
}

.mobile-search-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: var(--sp-3) 0;
  box-shadow: var(--shadow-sm);
}

/* ── Hero Claro ── */
.hero {
  background: linear-gradient(165deg, #ffffff 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--gray-200);
}

.hero::before {
  background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 68%);
}

.hero-title {
  color: var(--navy);
}

.hero-subtitle {
  color: var(--gray-600);
}

.hero-stat-value {
  color: var(--navy);
}

.hero-stat-label {
  color: var(--gray-500);
}

.search-section {
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

/* ── CTA Final Claro ── */
.cta-final {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.cta-final h2 {
  color: var(--navy) !important;
}

.cta-final p {
  color: var(--gray-600) !important;
}

/* ── Footer Claro ── */
.site-footer {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-top: 1px solid var(--gray-200);
  padding-top: var(--sp-12);
}

.footer-logo,
.site-footer .logo-text {
  color: var(--navy);
}

.footer-desc {
  color: var(--gray-600);
}

.footer-col-title {
  color: var(--navy);
}

.footer-link {
  color: var(--gray-600);
}

.footer-link:hover {
  color: var(--emerald-600);
}

.footer-bottom-text {
  color: var(--gray-500);
}

.social-icon {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
}

.social-icon:hover {
  background: var(--emerald-100);
  border-color: var(--emerald);
  color: var(--emerald-600);
}

/* ── Contenedores minimalistas con suficiente padding en Desktop ── */
@media (min-width: 769px) {
  .profile-section {
    padding: var(--sp-8) var(--sp-10);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-sm);
  }

  .sidebar-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-sm);
  }
}

/* ── Adaptaciones Responsivas para móvil ── */
@media (max-width: 768px) {
  .header-search {
    display: none;
  }

  .mobile-search-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    border: 1px solid var(--gray-200);
    background: var(--gray-50);
    cursor: pointer;
    margin-left: auto;
    margin-right: 8px;
    font-size: 1rem;
    flex-shrink: 0;
  }

  .mobile-search-toggle:hover {
    background: var(--gray-100);
  }
}

/* Espaciado general entre la cabecera sticky y el contenido principal */
#main-content {
  padding-top: var(--sp-12) !important;
}

/* ============================================================================
   BADGE VERIFICADO — Diseño Premium para incrustar
   ============================================================================ */
.badge-verified-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, #059669 0%, #065f46 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px 4px 8px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(5,150,105,0.35);
  vertical-align: middle;
  line-height: 1;
}
.badge-verified-wrap svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Sello grande embebible */
.badge-sello {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff, #f0fdf4);
  border: 2.5px solid #10b981;
  border-radius: 16px;
  padding: 18px 22px 16px;
  box-shadow: 0 4px 20px rgba(16,185,129,0.20), 0 1px 4px rgba(0,0,0,0.08);
  text-decoration: none;
  gap: 6px;
  min-width: 160px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.badge-sello:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(16,185,129,0.28), 0 2px 8px rgba(0,0,0,0.10);
}
.badge-sello__icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(16,185,129,0.4);
}
.badge-sello__title {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 800;
  color: #059669;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.badge-sello__name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  color: #0a1628;
  text-align: center;
  line-height: 1.3;
  max-width: 130px;
}
.badge-sello__site {
  font-size: 0.6rem;
  color: #6b7280;
  letter-spacing: 0.04em;
  font-weight: 500;
}
.badge-sello__year {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  color: #10b981;
}

/* ============================================================================
   MAPA DE UBICACIÓN
   ============================================================================ */
.map-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 0 0 var(--r-2xl) var(--r-2xl);
  overflow: hidden;
  background: #e5e7eb;
}
.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 200px;
  color: var(--gray-400);
  font-size: var(--text-sm);
  background: var(--gray-50);
  border-radius: var(--r-xl);
  border: 1.5px dashed var(--gray-300);
}

/* ============================================================================
   FORMULARIO DE CONTACTO (FICHA)
   ============================================================================ */
.contact-form-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #f8fafc 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: var(--r-2xl);
  padding: var(--sp-8) var(--sp-10);
  margin-top: var(--sp-6);
}
.contact-form-section h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-2);
}
.contact-form-section .form-subtitle {
  font-size: var(--text-sm);
  color: var(--gray-500);
  margin-bottom: var(--sp-6);
  line-height: 1.5;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}
@media (max-width: 600px) {
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-form-section { padding: var(--sp-6) var(--sp-5); }
}
.contact-form-grid .form-group-full { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: var(--sp-1); }
.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--navy);
}
.form-control {
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  color: var(--navy);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}
.form-control:focus {
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.15);
}
.form-control.textarea { min-height: 110px; resize: vertical; }
.contact-form-status {
  display: none;
  padding: 12px 16px;
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  font-weight: 500;
  margin-top: var(--sp-4);
}
.contact-form-status.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #6ee7b7;
}
.contact-form-status.error {
  background: #fee2e2;
  color: #7f1d1d;
  border: 1px solid #fca5a5;
}

/* ============================================================================
   CALCULADORA DE HONORARIOS
   ============================================================================ */
.calc-page {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-6);
}
.calc-header {
  text-align: center;
  margin-bottom: var(--sp-10);
}
.calc-header h1 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: var(--sp-3);
}
.calc-header p {
  color: var(--gray-500);
  font-size: var(--text-base);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.6;
}
.calc-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: var(--sp-8);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-6);
}
.calc-tabs {
  display: flex;
  gap: var(--sp-2);
  flex-wrap: wrap;
  margin-bottom: var(--sp-8);
  border-bottom: 2px solid var(--gray-200);
  padding-bottom: var(--sp-4);
}
.calc-tab {
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--gray-300);
  background: var(--white);
  color: var(--gray-600);
  transition: all 0.2s ease;
}
.calc-tab:hover { border-color: var(--emerald); color: var(--emerald); }
.calc-tab.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.calc-panel { display: none; }
.calc-panel.active { display: block; }
.calc-panel h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--sp-6);
}
.calc-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
@media (max-width: 600px) { .calc-fields { grid-template-columns: 1fr; } }
.calc-fields .field-full { grid-column: 1 / -1; }
.calc-result-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 100%);
  border-radius: var(--r-xl);
  padding: var(--sp-6) var(--sp-8);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-6);
}
.calc-result-box .result-label {
  font-size: var(--text-sm);
  opacity: 0.7;
  margin-bottom: 2px;
}
.calc-result-box .result-price {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--emerald-400);
}
.calc-result-box .result-note {
  font-size: var(--text-xs);
  opacity: 0.6;
  margin-top: 4px;
}
.calc-result-box .btn-calc-cta {
  padding: 12px 24px;
  background: var(--emerald);
  color: #fff;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: var(--text-sm);
  white-space: nowrap;
  transition: background 0.2s;
  flex-shrink: 0;
}
.calc-result-box .btn-calc-cta:hover { background: var(--emerald-600); }
.calc-disclaimer {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-xs);
  color: var(--gray-500);
  line-height: 1.6;
  margin-top: var(--sp-8);
}
.calc-disclaimer strong { color: var(--gray-700); }
.calc-btn-primary {
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  color: #fff;
  border: none;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16,185,129,0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}
.calc-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(16,185,129,0.42);
}

/* ============================================================================
   PÁGINA GRACIAS
   ============================================================================ */
.gracias-hero {
  text-align: center;
  padding: var(--sp-16) var(--sp-6) var(--sp-10);
  max-width: 600px;
  margin: 0 auto;
}
.gracias-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #10b981, #059669);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto var(--sp-6);
  box-shadow: 0 4px 20px rgba(16,185,129,0.35);
}
.gracias-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  color: var(--navy);
  margin-bottom: var(--sp-4);
}
.gracias-hero p { color: var(--gray-500); line-height: 1.7; }
.gracias-notice {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--r-lg);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
  color: #664d03;
  max-width: 600px;
  margin: 0 auto var(--sp-10);
  text-align: center;
}
.gracias-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--sp-5);
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--sp-6) var(--sp-16);
}
.gracias-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  transition: transform 0.2s, box-shadow 0.2s;
}
.gracias-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.gracias-card-icon {
  font-size: 1.8rem;
}
.gracias-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--navy);
}
.gracias-card p {
  font-size: var(--text-sm);
  color: var(--gray-500);
  line-height: 1.5;
}
.gracias-card a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--emerald-600);
  margin-top: auto;
}
.gracias-card a:hover { color: var(--emerald); }

/* ============================================================================
   MEJORAS DE FICHA INDIVIDUAL (NIVEL 4) - LOGO, BOTONES, MAPA, OPINIONES Y ENLAZADO
   ============================================================================ */

/* ── Logo con Inicial ── */
.profile-photo-logo {
  width: 96px;
  height: 96px;
  border-radius: var(--r-2xl);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  border: 2px solid rgba(255, 255, 255, 0.2);
  margin-bottom: var(--sp-5);
  position: relative;
  z-index: 1;
}

/* Degradados deterministas */
.profile-photo-logo.bg-gradient-1 {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-600) 100%);
  color: var(--gold-light);
  border-color: var(--navy-500);
}
.profile-photo-logo.bg-gradient-2 {
  background: linear-gradient(135deg, var(--navy) 0%, var(--emerald-600) 100%);
  color: var(--white);
  border-color: var(--emerald-400);
}
.profile-photo-logo.bg-gradient-3 {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-700) 100%);
  color: var(--white);
  border-color: var(--gray-300);
}
.profile-photo-logo.bg-gradient-4 {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-600) 100%);
  color: var(--gold);
  border-color: var(--gold);
}

/* ── Botones de Conversión (CTA) ── */
.profile-cta-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
  width: 100%;
}

.btn-cta-premium {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 1rem 1.5rem;
  border-radius: var(--r-xl);
  font-family: var(--font-display);
  text-decoration: none;
  transition: all var(--ease-base);
  box-shadow: var(--shadow-md);
  border: 1.5px solid transparent;
}

.btn-cta-premium .cta-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.btn-cta-premium .cta-text-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.25;
}

.btn-cta-premium .cta-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.btn-cta-premium .cta-main {
  font-size: 0.95rem;
  font-weight: 800;
}

/* Botón Calcular Presupuesto (Verde) */
.btn-cta-calc {
  background: linear-gradient(135deg, var(--emerald) 0%, var(--emerald-600) 100%);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.35);
}
.btn-cta-calc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
  color: var(--white);
}

/* Botón Solicitar Cita (Navy/Gold Outline u Oscuro) */
.btn-cta-appointment {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--gold-light);
  box-shadow: 0 4px 18px rgba(10, 22, 40, 0.25);
}
.btn-cta-appointment:hover {
  transform: translateY(-2px);
  background: var(--navy-700);
  box-shadow: 0 8px 24px rgba(10, 22, 40, 0.35);
  color: var(--white);
}

/* Adaptación a dispositivos móviles */
@media (max-width: 640px) {
  .profile-cta-buttons {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
  .btn-cta-premium {
    padding: 0.85rem var(--sp-4);
  }
  .btn-cta-premium .cta-main {
    font-size: 0.88rem;
  }
}

/* ── Enlazado Circular (Anterior / Siguiente) ── */
.nearby-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
  margin-top: var(--sp-4);
}

.nearby-nav-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  transition: all var(--ease-base);
  text-decoration: none;
}

.nearby-nav-card:hover {
  background: var(--white);
  border-color: var(--emerald-400);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.nearby-nav-card.prev-card {
  text-align: left;
}

.nearby-nav-card.next-card {
  text-align: right;
  justify-content: flex-end;
}

.nearby-nav-card .nav-arrow {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--emerald-600);
  transition: transform var(--ease-fast);
}

.nearby-nav-card.prev-card:hover .nav-arrow {
  transform: translateX(-4px);
}

.nearby-nav-card.next-card:hover .nav-arrow {
  transform: translateX(4px);
}

.nearby-nav-card .nav-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nearby-nav-card.prev-card .nav-content {
  margin-left: var(--sp-3);
}

.nearby-nav-card.next-card .nav-content {
  margin-right: var(--sp-3);
}

.nearby-nav-card .nav-subtitle {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-400);
  font-weight: 600;
}

.nearby-nav-card .nav-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
}

.nearby-nav-card .nav-meta {
  font-size: 0.72rem;
  color: var(--gray-500);
}

@media (max-width: 640px) {
  .nearby-nav-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }
}

/* ── Rediseño de Opiniones (Mockup Google GBP) ── */
.rating-badge-header {
  background: rgba(212, 168, 75, 0.15);
  color: #9a6c1a;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-md);
  font-size: var(--text-sm);
  font-weight: 700;
  border: 1px solid rgba(212, 168, 75, 0.25);
}

/* Card Resumen Opiniones */
.rating-summary-card {
  display: grid;
  grid-template-columns: 200px 1fr 240px;
  gap: var(--sp-8);
  padding: var(--sp-6) var(--sp-8);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  margin-bottom: var(--sp-6);
  align-items: center;
}

/* Columna 1: Nota grande */
.summary-col-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border-right: 1.5px solid var(--gray-100);
  padding-right: var(--sp-6);
}

.score-big {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.score-stars {
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: var(--sp-2);
}

.score-count {
  font-size: var(--text-sm);
  color: var(--gray-600);
  font-weight: 600;
  margin-bottom: var(--sp-2);
}

.score-source {
  font-size: 0.68rem;
  color: var(--gray-400);
  display: flex;
  align-items: center;
  gap: 2px;
}

.score-source .source-text {
  margin-left: 4px;
}

/* Columna 2: Distribución de barras */
.summary-col-distribution {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.distribution-row {
  display: flex;
  align-items: center;
  font-size: var(--text-xs);
  color: var(--gray-500);
  gap: var(--sp-2);
}

.dist-num {
  font-weight: 700;
  width: 10px;
  text-align: right;
  color: var(--navy);
}

.dist-star {
  color: var(--gold);
}

.dist-bar-container {
  flex: 1;
  height: 8px;
  background: var(--gray-100);
  border-radius: var(--r-full);
  overflow: hidden;
}

.dist-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: var(--r-full);
  transition: width 0.6s ease;
}

.dist-count {
  width: 25px;
  text-align: left;
  color: var(--gray-400);
  font-weight: 500;
}

/* Columna 3: Enlaces Google */
.summary-col-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding-left: var(--sp-6);
  border-left: 1.5px solid var(--gray-100);
  height: 100%;
}

.btn-google-reviews {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-xl);
  color: var(--navy);
  font-weight: 700;
  font-size: var(--text-sm);
  transition: all var(--ease-base);
  box-shadow: var(--shadow-xs);
}

.btn-google-reviews:hover {
  background: var(--gray-50);
  border-color: var(--gray-300);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.link-open-maps {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 600;
  text-decoration: none;
  transition: color var(--ease-fast);
}

.link-open-maps:hover {
  color: var(--emerald-600);
  text-decoration: underline;
}

/* Tarjetas de opinión */
.review-card .review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: var(--sp-3);
}

.review-avatar-circle {
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-xs);
}

.review-author-info {
  flex: 1;
  margin-left: var(--sp-3);
}

.review-author-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.review-stars-row {
  font-size: 0.85rem;
  color: var(--gold);
  letter-spacing: 1px;
}

.review-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.65rem;
  background: #f0fdf4;
  color: #15803d;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: var(--r-md);
  border: 1px solid #bbf7d0;
  box-shadow: 0 1px 2px rgba(21, 128, 61, 0.05);
}

.review-verified-badge .verified-check {
  color: #16a34a;
  font-weight: 900;
}

.review-text-premium {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  font-style: italic;
  background: rgba(243, 244, 246, 0.5);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-lg);
  border-left: 3px solid var(--emerald);
  margin-top: var(--sp-2);
}

/* Caja de Llamada: Opina */
.review-invitation-box {
  text-align: center;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: var(--sp-8) var(--sp-6);
  margin-top: var(--sp-8);
  box-shadow: var(--shadow-sm);
}

.invitation-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: var(--sp-3);
}

.invitation-desc {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto var(--sp-5);
}

.btn-invitation-review {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 2rem;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-navy);
  transition: all var(--ease-base);
  text-decoration: none;
}

.btn-invitation-review:hover {
  background: var(--navy-800);
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(10, 22, 40, 0.4);
  color: var(--white);
}

/* Banner de Reclamación de Negocio */
.business-claim-banner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: var(--r-xl);
  padding: var(--sp-4) var(--sp-5);
  margin-top: var(--sp-5);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.04);
}

.claim-icon-circle {
  width: 24px;
  height: 24px;
  background: #3b82f6;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.9rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.claim-text {
  font-size: 0.85rem;
  color: #1e3a8a;
  font-weight: 600;
  line-height: 1.5;
}

.claim-link {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 700;
  transition: color var(--ease-fast);
}

.claim-link:hover {
  color: #1d4ed8;
}

/* Adaptación responsive para opiniones */
@media (max-width: 820px) {
  .rating-summary-card {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    text-align: center;
  }
  .summary-col-score {
    border-right: none;
    border-bottom: 1.5px solid var(--gray-100);
    padding-right: 0;
    padding-bottom: var(--sp-4);
  }
  .summary-col-actions {
    border-left: none;
    border-top: 1.5px solid var(--gray-100);
    padding-left: 0;
    padding-top: var(--sp-4);
  }
}

/* ============================================================================
   RANKINGS & METODOLOGÍA (E-E-A-T)
   ============================================================================ */

/* Home rankings grid */
.rankings-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-top: var(--sp-6);
}

.ranking-home-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  text-decoration: none;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  transition: all var(--ease-base);
}

.ranking-home-card:hover {
  transform: translateY(-3px);
  border-color: var(--emerald);
  box-shadow: var(--shadow-md), 0 8px 20px rgba(16, 185, 129, 0.08);
}

.ranking-home-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-sm);
  color: var(--emerald-600);
  background: var(--emerald-50);
  padding: 0.35rem 0.75rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--emerald-100);
  flex-shrink: 0;
  transition: all var(--ease-fast);
}

.ranking-home-card:hover .ranking-home-num {
  background: var(--emerald);
  color: var(--white);
  border-color: var(--emerald);
}

.ranking-home-info {
  flex: 1;
}

.ranking-home-info h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 2px 0;
}

.ranking-home-kw {
  font-size: 0.75rem;
  color: var(--gray-500);
  display: block;
}

.ranking-home-arrow {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-300);
  transition: all var(--ease-fast);
}

.ranking-home-card:hover .ranking-home-arrow {
  color: var(--emerald);
  transform: translateX(3px);
}

/* Responsive home rankings */
@media (max-width: 1024px) {
  .rankings-home-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-5);
  }
}

@media (max-width: 640px) {
  .rankings-home-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
}

/* City Top 10 Ranking Item Card */
.ranking-item-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: var(--sp-6) var(--sp-6) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  box-shadow: var(--shadow-sm);
  transition: all var(--ease-base);
  overflow: hidden;
}

.ranking-item-card:hover {
  border-color: var(--emerald-500);
  box-shadow: var(--shadow-lg), 0 10px 25px rgba(16, 185, 129, 0.04);
}

/* Badge Medalla de Posición */
.ranking-badge-medal {
  position: absolute;
  top: 0;
  left: 0;
  padding: var(--sp-2) var(--sp-5) var(--sp-2) var(--sp-4);
  border-bottom-right-radius: var(--r-2xl);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

/* Medallas de Pódium */
.ranking-badge-medal.medal-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(217, 119, 6, 0.25);
}

.ranking-badge-medal.medal-2 {
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(100, 116, 139, 0.2);
}

.ranking-badge-medal.medal-3 {
  background: linear-gradient(135deg, #b45309 0%, #7c2d12 100%);
  color: var(--white);
  box-shadow: 0 4px 10px rgba(124, 45, 18, 0.25);
}

/* Otras posiciones */
.ranking-badge-medal {
  background: #f1f5f9;
  color: #334155;
  border-right: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

/* Caja de metodología */
.methodology-box, .methodology-box-local {
  transition: all var(--ease-base);
}

.methodology-box:hover {
  border-color: var(--emerald-300) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Hover en grid de rankings index */
.ranking-home-card[id^="rk-city-"]:hover {
  border-color: var(--emerald) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Fallback premium de tarjetas sin imagen */
.pro-card-fallback-header {
  position: relative;
  width: 100%;
  height: 175px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pro-card-fallback-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.pro-card:hover .pro-card-fallback-bg {
  transform: scale(1.08);
  filter: brightness(1.15);
}

.pro-card-fallback-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(var(--emerald) 1px, transparent 1px),
                    radial-gradient(var(--emerald) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: 0 0, 8px 8px;
  transition: opacity 0.5s ease;
}

.pro-card:hover .pro-card-fallback-pattern {
  opacity: 0.15;
}

.pro-card-fallback-icon {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 68px;
  border-radius: var(--r-2xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.5s ease, background-color 0.5s ease;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.pro-card-fallback-icon svg {
  width: 32px;
  height: 32px;
  color: var(--emerald);
  transition: color 0.5s ease, transform 0.5s ease;
}

.pro-card:hover .pro-card-fallback-icon {
  transform: translateY(-4px) scale(1.08) rotate(-4deg);
  border-color: var(--emerald-400);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 40px 0 rgba(16, 185, 129, 0.25);
}

.pro-card:hover .pro-card-fallback-icon svg {
  color: var(--emerald-400);
  transform: scale(1.05);
}




