/* =============================================
   CUSTOM OBRAS – NEUQUÉN  |  v4 Industrial Bold
   ============================================= */

/* ── EUROSTILE LT STD BOLD ─────────────────────
   Reemplazada por Barlow Condensed Bold (Google Fonts)
   Visual y métricamente similar, sin archivos locales
   ────────────────────────────────────────────── */
@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@700&display=swap");
@font-face {
  font-family: 'EurostileLTStdBold';
  src: local('Barlow Condensed Bold'), local('BarlowCondensed-Bold');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

:root {
  --orange:        #801227;
  --orange-dark:   #5c0b1b;
  --orange-light:  #a01630;
  --slate:         #0E1420;
  --slate-mid:     #1C2333;
  --slate-light:   #2E3A50;
  --gray:          #64748B;
  --gray-light:    #94A3B8;
  --border:        #E2E8F0;
  --border-mid:    #CBD5E1;
  --bg:            #F8F7F5;
  --bg-warm:       #F1EDE8;
  --white:         #FFFFFF;
  --gold:          #F59E0B;
  --green:         #10B981;

  --font-display: 'EurostileLTStdBold', 'Eurostile', 'Arial Black', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --shadow-sm:  0 1px 4px rgba(14,20,32,0.06);
  --shadow-md:  0 4px 20px rgba(14,20,32,0.10);
  --shadow-lg:  0 12px 44px rgba(14,20,32,0.14);
  --shadow-xl:  0 24px 80px rgba(14,20,32,0.18);

  --radius:    16px;
  --radius-sm: 8px;
  --t:         0.2s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--slate);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: var(--font-body); cursor: pointer; }

/* ── NAVBAR ────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(14,20,32,0.09); }
.nav-inner {
  max-width: 1320px; margin: 0 auto; padding: 0 28px;
  height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text { display: inline-flex; align-items: baseline; gap: 0; }
.logo svg { display: block; flex-shrink: 0; }
.logo-main { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--slate); letter-spacing: -1px; }
.logo-accent { font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--orange); letter-spacing: -1px; }
.logo-sub { font-size: 9px; font-weight: 700; color: var(--gray-light); text-transform: uppercase; letter-spacing: 2.5px; margin-left: 9px; align-self: center; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 13.5px; font-weight: 500; color: var(--slate); padding: 7px 13px; border-radius: var(--radius-sm); transition: background var(--t), color var(--t); }
.nav-links a:hover { background: var(--bg); color: var(--orange); }
.btn-outline { border: 1.5px solid var(--border-mid) !important; border-radius: var(--radius-sm) !important; padding: 7px 16px !important; font-weight: 600 !important; }
.btn-outline:hover { border-color: var(--orange) !important; color: var(--orange) !important; background: transparent !important; }
.btn-primary { background: var(--orange) !important; color: #fff !important; border-radius: var(--radius-sm) !important; padding: 8px 18px !important; font-weight: 700 !important; font-size: 13.5px !important; box-shadow: 0 2px 10px rgba(128,18,39,0.35) !important; transition: background var(--t), transform 0.12s, box-shadow var(--t) !important; }
.btn-primary:hover { background: var(--orange-dark) !important; transform: translateY(-1px) !important; box-shadow: 0 4px 18px rgba(128,18,39,0.45) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--slate); border-radius: 2px; transition: all .28s; }
.mobile-menu { display: none; position: fixed; top: 68px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px 24px 20px; flex-direction: column; gap: 2px; z-index: 999; box-shadow: var(--shadow-md); }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 15px; font-weight: 500; padding: 11px 12px; border-radius: var(--radius-sm); transition: background var(--t); }
.mobile-menu a:hover { background: var(--bg); }
@media (max-width: 920px) { .nav-links { display: none; } .hamburger { display: flex; } }

/* ── HERO ──────────────────────────────────── */
.hero {
  padding: 148px 28px 100px;
  text-align: center; position: relative; overflow: hidden;
  background: var(--white);
}

/* Franja naranja arriba */
.hero::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-dark), var(--orange-light), var(--orange-dark));
  z-index: 3;
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 55% at 50% -5%, rgba(128,18,39,0.09) 0%, transparent 65%),
    radial-gradient(ellipse 30% 25% at 90% 80%, rgba(128,18,39,0.04) 0%, transparent 60%);
}

/* CRÍTICO: el div que envuelve el contenido del hero */
.hero-content {
  position: relative; z-index: 2;
  max-width: 880px; margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(128,18,39,0.08);
  color: var(--orange-dark);
  border: 1px solid rgba(128,18,39,0.2);
  border-radius: 100px;
  padding: 7px 18px; font-size: 11.5px; font-weight: 700;
  letter-spacing: 1.2px; text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeUp .5s ease both;
}

/* ══════════════════════════════════════════════
   TÍTULOS — Sobrios y adaptativos
   ══════════════════════════════════════════════ */

.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 3.2vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.3px;
  color: var(--slate);
  margin-bottom: 14px;
  animation: fadeUp .55s .08s ease both;
}
.hero h1 em { font-style: normal; color: var(--orange); display: inline; }

.section-header h2,
.map-header h2,
.badges-text h2,
.cta-inner h2,
.membership-inner h1 {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: -0.2px !important;
  line-height: 1.2 !important;
}
.section-header h2   { font-size: clamp(16px, 1.8vw, 22px) !important; margin-bottom: 8px; }
.map-header h2       { font-size: clamp(15px, 1.6vw, 20px) !important; }
.badges-text h2      { font-size: clamp(16px, 1.8vw, 22px) !important; }
.cta-inner h2        { font-size: clamp(18px, 2.2vw, 28px) !important; }
.membership-inner h1 { font-size: clamp(20px, 2.5vw, 30px) !important; }

.page-header h1,
.profile-name,
.dash-title,
.form-card h2,
.profile-section-title,
.sidebar-header h3 {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
}
.page-header h1  { font-size: clamp(18px, 2.2vw, 26px) !important; letter-spacing: -0.2px !important; }
.profile-name    { font-size: clamp(17px, 2vw, 24px) !important; }
.dash-title      { font-size: 17px !important; }
.form-card h2    { font-size: 18px !important; }

.hero-sub {
  font-size: clamp(15.5px, 2vw, 18px);
  color: var(--gray); line-height: 1.75;
  max-width: 720px; margin: 0 auto 44px;
  animation: fadeUp .55s .16s ease both;
}

/* ── SEARCH ────────────────────────────────── */
.search-box {
  display: flex; align-items: stretch;
  max-width: 660px; margin: 0 auto 26px;
  background: var(--white);
  border: 2px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xl);
  position: relative; overflow: visible;
  animation: fadeUp .55s .24s ease both;
  transition: border-color var(--t), box-shadow var(--t);
}
.search-box:focus-within { border-color: var(--orange); box-shadow: 0 12px 50px rgba(128,18,39,0.18); }
.search-input-wrap { flex: 1; display: flex; align-items: center; padding: 0 18px; position: relative; }
.search-icon { width: 18px; height: 18px; color: var(--gray-light); flex-shrink: 0; margin-right: 10px; }
#mainSearch { flex: 1; border: none; outline: none; font-family: var(--font-body); font-size: 15px; color: var(--slate); background: transparent; padding: 20px 0; }
#mainSearch::placeholder { color: var(--gray-light); }
.search-suggestions { position: absolute; top: calc(100% + 10px); left: -2px; right: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xl); z-index: 200; display: none; max-height: 300px; overflow-y: auto; }
.search-suggestions.open { display: block; }
.suggestion-item { padding: 12px 16px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 10px; transition: background .15s; border-bottom: 1px solid var(--bg); }
.suggestion-item:last-child { border-bottom: none; }
.suggestion-item:hover { background: var(--bg); }
.suggestion-item span { color: var(--gray-light); font-size: 12px; }
.search-location { display: flex; align-items: center; gap: 6px; padding: 0 18px; border-left: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--gray); white-space: nowrap; }
.search-location svg { width: 13px; height: 13px; color: var(--orange); }
.btn-search { background: var(--orange); color: #fff; border: none; padding: 0 28px; font-family: var(--font-display); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; border-radius: 0 calc(var(--radius) - 2px) calc(var(--radius) - 2px) 0; transition: background var(--t); }
.btn-search:hover { background: var(--orange-dark); }
.popular-tags { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; font-size: 12.5px; color: var(--gray); animation: fadeUp .55s .32s ease both; }
.popular-tags a { background: var(--white); border: 1px solid var(--border); padding: 5px 14px; border-radius: 100px; font-size: 12px; font-weight: 600; color: var(--slate); transition: all var(--t); box-shadow: var(--shadow-sm); }
.popular-tags a:hover { background: var(--orange); color: #fff; border-color: var(--orange); transform: translateY(-1px); }

/* ── STATS BAR ─────────────────────────────── */
.stats-bar { background: var(--slate); padding: 40px 28px; position: relative; overflow: hidden; }
.stats-bar::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(128,18,39,0.07) 0%, transparent 50%); }
.stats-inner { max-width: 1080px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 0; position: relative; }
.stat { text-align: center; padding: 0 56px; }
.stat-num { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--orange); letter-spacing: -1.5px; line-height: 1; display: block; }
.stat-label { font-size: 11px; color: rgba(255,255,255,0.38); font-weight: 700; letter-spacing: 1.2px; margin-top: 6px; text-transform: uppercase; }
.stat-div { width: 1px; height: 60px; background: rgba(255,255,255,0.07); flex-shrink: 0; }
@media (max-width: 640px) { .stats-inner { flex-wrap: wrap; gap: 28px; } .stat-div { display: none; } .stat { padding: 0 16px; } .stat-num { font-size: 30px; } }

/* ── MAP SECTION ───────────────────────────── */
.map-section { padding: 80px 0 0; background: var(--white); }
.map-header { max-width: 1320px; margin: 0 auto 28px; padding: 0 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.map-header p { font-size: 15px; color: var(--gray); margin-top: 6px; }
.map-filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.map-filters select { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 9px 14px; font-size: 13px; font-family: var(--font-body); color: var(--slate); background: var(--white); cursor: pointer; outline: none; transition: border-color var(--t); font-weight: 500; }
.map-filters select:focus { border-color: var(--orange); }
.map-tipo-tabs { display: flex; border: 1.5px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.map-tipo-tab { padding: 8px 15px; font-size: 13px; font-family: var(--font-body); background: var(--white); border: none; cursor: pointer; color: var(--gray); transition: all var(--t); font-weight: 600; }
.map-tipo-tab.active { background: var(--orange); color: white; }
.map-tipo-tab:not(:last-child) { border-right: 1.5px solid var(--border); }
.map-container { width: 100%; display: grid; grid-template-columns: 1fr 360px; border-top: 1px solid var(--border); height: 600px; overflow: hidden; }
#mainMap { width: 100%; height: 100%; }
.marker-logo-wrap { width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.22); overflow: hidden; background: #f0ece8; display: flex; align-items: center; justify-content: center; }
.marker-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.marker-logo-wrap.plan-anual   { border-color: #F5A623; }
.marker-logo-wrap.plan-mensual { border-color: #3B82F6; }
.marker-logo-wrap.plan-free { border-color: #e5e7eb !important; }
.plan-free .plan-name { color: #6b7280 !important; }
.plan-free .plan-price { color: #374151 !important; }
.btn-free { background: transparent !important; color: #6b7280 !important; border: 2px solid #d1d5db !important; }
.btn-free:hover { border-color: #9ca3af !important; color: #374151 !important; }
.map-sidebar { background: var(--white); border-left: 1px solid var(--border); display: flex; flex-direction: column; overflow: hidden; }
.sidebar-header { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
#resultCount { font-size: 11.5px; color: var(--gray); }
.sidebar-list { flex: 1; overflow-y: auto; }
.sidebar-item { padding: 14px 20px; border-bottom: 1px solid var(--bg); cursor: pointer; transition: background .15s; display: flex; gap: 12px; align-items: flex-start; }
.sidebar-item:hover { background: var(--bg); }
.sidebar-item.highlighted { background: rgba(128,18,39,0.04); border-left: 3px solid var(--orange); padding-left: 17px; }
.sidebar-avatar { width: 44px; height: 44px; border-radius: 10px; background: transparent; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; overflow: hidden; border: 2px solid var(--border); }
.sidebar-avatar img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-avatar.plan-anual   { border-color: #F5A623; }
.sidebar-avatar.plan-mensual { border-color: #3B82F6; }
.sidebar-info { flex: 1; min-width: 0; }
.sidebar-name { font-size: 13.5px; font-weight: 700; color: var(--slate); margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-rubro { font-size: 11.5px; color: var(--gray); margin-bottom: 4px; }
.sidebar-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sidebar-stars { font-size: 11px; color: var(--gold); }
.sidebar-reviews { font-size: 11px; color: var(--gray); }
.sidebar-badges { display: flex; gap: 3px; margin-left: auto; }
.mini-badge { font-size: 14px; }
/* ═══ TAG-PILL: sistema unificado (membresía + tipo de perfil) — píldora sin borde ═══ */
.tag-pill {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  padding: 3px 10px; border-radius: 100px;
  text-transform: uppercase; line-height: 1.3;
}
.tag-pill .dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
/* Membresía */
.tag-pill.plan-anual    { background: #fef3c7; color: #92400e; }
.tag-pill.plan-anual    .dot { background: #f59e0b; }
.tag-pill.plan-mensual  { background: #dbeafe; color: #2563EB; }
.tag-pill.plan-mensual  .dot { background: #2563EB; }
.tag-pill.plan-gratuito { background: #f1f5f9; color: #475569; }
.tag-pill.plan-gratuito .dot { background: #94a3b8; }
/* Tipo de perfil */
.tag-pill.tipo-empresa     { background: #fff1f2; color: #991b1b; }
.tag-pill.tipo-profesional { background: #EFF4F8; color: #1E3A5F; }
.tag-pill.sello           { background: #f1f5f9; color: #475569; }
.plan-tag { display: inline-block; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 4px; }
.plan-tag.anual   { background: rgba(245,166,35,0.12); color: #D97706; }
.plan-tag.mensual { background: rgba(59,130,246,0.10); color: #2563EB; }
@media (max-width: 900px) { .map-container { grid-template-columns: 1fr; grid-template-rows: 320px auto; height: auto; } .map-sidebar { max-height: 280px; } }

/* ── SECTION HEADER ────────────────────────── */
.section-header { max-width: 1320px; margin: 0 auto 48px; text-align: center; position: relative; }
.section-header p { font-size: 16px; color: var(--gray); max-width: 460px; margin: 0 auto; line-height: 1.7; }
.see-all { position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 13.5px; font-weight: 700; color: var(--orange); }
.see-all:hover { text-decoration: underline; }

/* ── RUBROS ────────────────────────────────── */
.rubros-section { padding: 80px 0; background: var(--bg); overflow: hidden; }
.rubros-section .section-header { padding: 0 28px; max-width: 1320px; margin: 0 auto 32px; }

/* ── MARQUEE WRAP ────────────────────────────── */
.rubro-marquee-wrap {
  width: 100%;
  overflow: hidden;
  position: relative;
  /* fade edges */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}
/* Pausa al hover */
.rubro-marquee-wrap:hover .rubro-marquee-track { animation-play-state: paused; }

.rubro-marquee-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}
.rubro-marquee-left  { animation-name: marquee-left; }
.rubro-marquee-right { animation-name: marquee-right; }

@keyframes marquee-left  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }

/* ── RUBRO PILLS ─────────────────────────────── */
.rubro-pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  background: #EFF4F8; border: 1.5px solid #7BA3C7;
  border-radius: 100px; padding: 9px 18px;
  font-size: 13.5px; font-weight: 600; color: #1E3A5F;
  text-decoration: none; transition: all 0.2s;
  box-shadow: var(--shadow-sm); cursor: pointer;
  flex-shrink: 0;
}
.rubro-pill:hover { border-color: #4A7CA8; background: #DCE7F0; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.rubro-pill-empresa { border-color: #fca5a5; background: #fff1f2; color: #991b1b; }
.rubro-pill-empresa:hover { border-color: #ef4444; color: #991b1b; background: #fee2e2; }
.rubro-pill-tec { border-color: #93c5fd; background: #eff6ff; color: #1e3a8a; }
.rubro-pill-tec:hover { border-color: #3b82f6; color: #1e3a8a; background: #dbeafe; }

/* ── FEATURED ──────────────────────────────── */

/* ── MAP EXTRAS ─────────────────────────────── */
.map-legend {
  padding: 10px 16px; border-top: 1px solid var(--border);
  background: var(--bg); font-size: 11px; color: var(--gray);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.legend-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
}
.map-api-notice {
  background: #FFF8E6; border-top: 1px solid #FDE68A;
  padding: 10px 20px; font-size: 12px; color: #92400E;
  text-align: center;
}
.map-api-notice code {
  background: rgba(0,0,0,0.06); padding: 1px 5px; border-radius: 3px; font-family: monospace;
}

/* ── FEATURED — CARRUSEL ────────────────────── */
.featured-section { padding: 72px 0; background: var(--white); }
.featured-section .section-header { padding: 0 28px; margin-bottom: 28px; }

.carousel-wrap {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px;
}

.carousel-viewport {
  overflow: hidden;
  padding: 8px 4px;        /* espacio para que el hover no se corte */
  margin: -8px -4px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.38s cubic-bezier(.4,0,.2,1);
  will-change: transform;
}

/* Por defecto: 3 cards visibles */
.carousel-card {
  flex-shrink: 0;
  min-width: calc(33.333% - 11px);
}
@media (max-width: 900px) { .carousel-card { min-width: calc(50% - 8px); } }
@media (max-width: 580px) { .carousel-card { min-width: 100%; } }

.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: all var(--t);
  z-index: 10;
}
.carousel-btn svg { width: 16px; height: 16px; color: var(--slate); }
.carousel-btn:hover { background: var(--orange); border-color: var(--orange); }
.carousel-btn:hover svg { color: #fff; }
.carousel-btn:disabled { opacity: 0.3; cursor: default; }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

.carousel-dots {
  display: flex; justify-content: center; gap: 6px;
  margin-top: 22px;
}
.carousel-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--border-mid); border: none; cursor: pointer;
  padding: 0; transition: all var(--t);
}
.carousel-dot.active { background: var(--orange); width: 20px; border-radius: 4px; }

.carousel-card .pro-card { height: 100%; }

/* Grid fallback para directorio */
.professionals-grid { width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.pro-card { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all 0.25s; position: relative; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.pro-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }

/* Spacer para alinear footer en todas las tarjetas */
.pro-card-footer { margin-top: auto; }
.pro-card.featured-card { border-color: var(--orange); }
.pro-card.featured-card::before { content: '⚡'; position: absolute; top: 12px; right: 12px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; padding: 4px 8px; border-radius: 100px; letter-spacing: 0; z-index: 2; max-width: 26px; overflow: hidden; white-space: nowrap; transition: max-width 0.3s ease, padding 0.3s ease, letter-spacing 0.3s ease; }
.pro-card.featured-card:hover::before { content: '⚡ Destacado'; max-width: 120px; padding: 4px 10px; letter-spacing: 0.4px; }
.pro-card-header { padding: 20px 20px 14px; display: flex; gap: 14px; align-items: flex-start; }
.pro-avatar { width: 54px; height: 54px; border-radius: 12px; background: var(--slate-mid); flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; overflow: hidden; }
.pro-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pro-info { flex: 1; min-width: 0; }
.pro-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 3px; letter-spacing: -0.2px;  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-rubro { font-size: 12.5px; color: var(--gray); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pro-location { font-size: 11.5px; color: var(--gray-light); display: flex; align-items: center; gap: 4px; }
.pro-location svg { width: 11px; height: 11px; }
.pro-badges { padding: 0 20px 12px; display: flex; gap: 5px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 100px; font-size: 10.5px; font-weight: 700; }
.badge-portfolio { background: rgba(128,18,39,0.09); color: var(--orange-dark); }
.badge-reviews   { background: rgba(245,158,11,0.10); color: #B45309; }
.badge-anual     { background: rgba(16,185,129,0.10); color: #047857; }
.badge-verified  { background: rgba(5,150,105,0.12);  color: #065f46; }   /* Profesional Verificado — verde */
.badge-identidad { background: rgba(59,130,246,0.10); color: #1D4ED8; }   /* Identidad Verificada — azul */
.badge-top       { background: rgba(139,92,246,0.10); color: #6D28D9; }
.badge-photos    { background: rgba(236,72,153,0.10); color: #BE185D; }
.pro-card-footer { padding: 14px 20px; border-top: 1px solid var(--bg); display: flex; align-items: center; justify-content: space-between; }
.pro-rating { display: flex; align-items: center; gap: 6px; }
.stars { color: var(--gold); font-size: 12.5px; }
.rating-num { font-size: 13px; font-weight: 700; }
.reviews-count { font-size: 11.5px; color: var(--gray); }
.pro-cta { font-size: 13px; font-weight: 700; color: var(--orange); padding: 7px 14px; border: 1.5px solid var(--orange); border-radius: var(--radius-sm); transition: all var(--t); }
.pro-cta:hover { background: var(--orange); color: #fff; }

/* ── HOW IT WORKS ──────────────────────────── */
.how-section { padding: 96px 28px; background: var(--slate); position: relative; overflow: hidden; }
.how-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 55% 60% at 85% 50%, rgba(128,18,39,0.09) 0%, transparent 65%); }
.how-section .section-header h2 { color: var(--white) !important; }
.how-section .section-header p  { color: rgba(255,255,255,0.38) !important; }
.steps-grid { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 40px; }
.step { text-align: center; }
.step-num { font-family: var(--font-display); font-size: 36px; font-weight: 800; color: var(--orange); opacity: 1; line-height: 1; margin-bottom: 10px; letter-spacing: -1.5px; }
.step h3 { font-family: var(--font-display); font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 6px; letter-spacing: 0.8px; text-transform: uppercase; }
.step p { font-size: 12.5px; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* ── BADGES SECTION ────────────────────────── */
.badges-section { padding: 96px 28px; background: var(--bg); }
.badges-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.badges-text p { font-size: 15.5px; color: var(--gray); margin-bottom: 28px; line-height: 1.75; margin-top: 14px; }
.badges-text .btn-primary { display: inline-flex; padding: 12px 24px !important; font-size: 14px !important; }
.badges-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.badge-item { background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 16px 10px 12px; text-align: center; transition: all var(--t); box-shadow: var(--shadow-sm); }
.badge-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--orange); }
.badge-icon { width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 10px; }
.badge-bronze    { background: rgba(205,127,50,0.10); }
.badge-silver    { background: rgba(156,163,175,0.12); }
.badge-gold      { background: rgba(245,158,11,0.10); }
.badge-verified  { background: rgba(5,150,105,0.12); }    /* Profesional Verificado — verde */
.badge-identidad { background: rgba(59,130,246,0.10); }   /* Identidad Verificada — azul */
.badge-top       { background: rgba(139,92,246,0.10); }
.badge-photo     { background: rgba(236,72,153,0.10); }
.badge-item span { font-size: 11px; font-weight: 700; color: var(--slate); letter-spacing: 0.2px; display: block; margin-top: 4px; }
@media (max-width: 768px) { .badges-inner { grid-template-columns: 1fr; gap: 40px; } }

/* ── CTA / PRECIOS ─────────────────────────── */
.cta-section { padding: 96px 28px; background: var(--white); }
.cta-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.cta-inner p { font-size: 17px; color: var(--gray); margin-bottom: 56px; line-height: 1.65; margin-top: 14px; }
.pricing-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 640px; margin: 0 auto; }
.pricing-cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); max-width: 960px; margin: 0 auto; gap: 20px; }
@media (max-width: 760px) {
  .pricing-cards-3 { grid-template-columns: 1fr; max-width: 420px; gap: 14px; margin: 0 auto; }
  .pricing-featured { transform: none !important; }
}
.pricing-card { background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius); padding: 32px 26px; text-align: left; transition: transform var(--t), box-shadow var(--t); }
.pricing-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.pricing-featured { background: var(--slate); border-color: var(--orange); color: #fff; transform: scale(1.02); box-shadow: var(--shadow-lg); }
.pricing-featured:hover { transform: scale(1.02) translateY(-3px); }
.pricing-badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--orange); margin-bottom: 16px; }
.pricing-featured .pricing-badge { color: var(--orange-light); }
.pricing-price { font-family: var(--font-display); font-size: 42px; font-weight: 800; margin-bottom: 22px; letter-spacing: -2px; line-height: 1; }
.pricing-price span { font-size: 15px; font-weight: 400; opacity: 0.55; letter-spacing: 0; }
.pricing-card ul { list-style: none; margin-bottom: 26px; display: flex; flex-direction: column; gap: 9px; }
.pricing-card ul li { font-size: 13.5px; color: var(--gray); }
.pricing-featured ul li { color: rgba(255,255,255,0.60); }
.btn-outline-white { display: inline-block; border: 2px solid var(--border-mid); border-radius: var(--radius-sm); padding: 11px 20px; font-size: 13.5px; font-weight: 700; color: var(--slate); transition: all var(--t); width: 100%; text-align: center; }
.btn-outline-white:hover { background: var(--orange); color: #fff; border-color: var(--orange); }
.pricing-featured .btn-primary { display: block; padding: 12px 20px !important; font-size: 14px !important; text-align: center; }
@media (max-width: 560px) { .pricing-cards { grid-template-columns: 1fr; } .pricing-featured { transform: none; } }

/* ── FOOTER ────────────────────────────────── */
.footer { background: var(--slate); padding: 80px 28px 0; }
.footer-inner { max-width: 1320px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand .logo-main { color: var(--white); }
.footer-brand .logo-accent { color: var(--orange); }
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.32); margin-top: 14px; line-height: 1.75; }
.footer-links h4 { font-family: var(--font-display); font-size: 11px; font-weight: 700; color: var(--white); margin-bottom: 18px; text-transform: uppercase; letter-spacing: 2px; }
.footer-links a { display: block; font-size: 13px; color: rgba(255,255,255,0.32); margin-bottom: 11px; transition: color var(--t); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding: 24px 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.18); }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 560px)  { .footer-inner { grid-template-columns: 1fr; } }

/* ── PÁGINAS INTERNAS ──────────────────────── */
.page-header { padding: 108px 28px 44px; background: var(--white); border-bottom: 1px solid var(--border); }
.page-header-inner { max-width: 1320px; margin: 0 auto; }
.page-header p { font-size: 15px; color: var(--gray); margin-top: 6px; }

.directorio-layout { max-width: 1320px; margin: 0 auto; padding: 36px 28px; display: grid; grid-template-columns: 270px 1fr; gap: 32px; align-items: start; }
.directorio-layout > *:last-child { min-width: 0; }
.filter-sidebar { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; position: sticky; top: 88px; box-shadow: var(--shadow-sm); }
.filter-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 22px; }
.filter-group { margin-bottom: 24px; }
.filter-label { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gray); margin-bottom: 10px; display: block; }
.filter-option { display: flex; align-items: center; gap: 8px; padding: 6px 0; cursor: pointer; font-size: 13.5px; transition: color var(--t); }
.filter-option:hover { color: var(--orange); }
.filter-option input[type="checkbox"] { accent-color: var(--orange); width: 15px; height: 15px; }
.filter-count { font-size: 11.5px; color: var(--gray); margin-left: auto; }
.results-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; gap: 12px; }
.results-count { font-size: 14.5px; color: var(--gray); }
.results-count strong { color: var(--slate); font-weight: 700; }
.sort-select { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 8px 14px; font-size: 13px; font-family: var(--font-body); cursor: pointer; outline: none; font-weight: 500; }
@media (max-width: 900px) { .directorio-layout { grid-template-columns: 1fr; } .filter-sidebar { position: static; } }

/* ── PROFILE PAGE ──────────────────────────── */
.profile-hero { padding: 108px 28px 0; background: var(--white); }
.profile-hero-inner { max-width: 1100px; margin: 0 auto; }
.profile-header { display: flex; gap: 32px; align-items: flex-start; padding-bottom: 32px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.profile-big-avatar { width: 100px; height: 100px; border-radius: 20px; background: var(--slate-mid); display: flex; align-items: center; justify-content: center; font-size: 40px; flex-shrink: 0; }
.profile-meta { flex: 1; min-width: 200px; }
.profile-rubro { font-size: 15.5px; color: var(--gray); margin-bottom: 14px; margin-top: 6px; }
.profile-badges-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.profile-stats { display: flex; gap: 28px; }
.profile-stat { text-align: center; }
.profile-stat-num { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: var(--orange); letter-spacing: -1px; }
.profile-stat-label { font-size: 11.5px; color: var(--gray); }
.profile-contact { display: flex; flex-direction: column; gap: 10px; flex-shrink: 0; }
.btn-contact { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; background: var(--orange); color: #fff; border-radius: var(--radius-sm); font-size: 14px; font-weight: 700; transition: background var(--t); border: none; cursor: pointer; box-shadow: 0 2px 10px rgba(128,18,39,0.35); }
.btn-contact:hover { background: var(--orange-dark); }
.btn-contact-outline { background: transparent; border: 1.5px solid var(--border-mid); color: var(--slate); box-shadow: none; }
.btn-contact-outline:hover { border-color: var(--orange); color: var(--orange); background: transparent; }
.profile-layout { max-width: 1100px; margin: 0 auto; padding: 36px 28px; display: grid; grid-template-columns: 1fr 310px; gap: 32px; align-items: start; }
.profile-section { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow-sm); }
.profile-section-title { font-size: 17px; letter-spacing: -0.3px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--bg); }
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.portfolio-item { aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; cursor: pointer; }
.portfolio-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 30px; background: linear-gradient(135deg, var(--bg) 0%, var(--bg-warm) 100%); }
.review-item { padding: 16px 0; border-bottom: 1px solid var(--bg); }
.review-item:last-child { border-bottom: none; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar { width: 35px; height: 35px; border-radius: 50%; background: var(--slate-mid); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.review-author { font-size: 13.5px; font-weight: 700; }
.review-date { font-size: 11.5px; color: var(--gray); margin-left: auto; }
.review-stars { color: var(--gold); font-size: 12.5px; margin-bottom: 6px; }
.review-text { font-size: 13.5px; color: var(--gray); line-height: 1.65; }

/* ── DASHBOARD ─────────────────────────────── */
.dashboard-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; padding-top: 68px; }
.dashboard-sidebar { background: var(--slate); padding: 24px 14px; position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; }
.dash-menu { display: flex; flex-direction: column; gap: 3px; margin-top: 18px; }
.dash-menu-item { display: flex; align-items: center; gap: 10px; padding: 10px 13px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500; color: rgba(255,255,255,0.50); cursor: pointer; transition: all var(--t); }
.dash-menu-item:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.dash-menu-item.active { background: rgba(128,18,39,0.14); color: var(--orange-light); }
.dash-menu-item svg { width: 16px; height: 16px; }
.dashboard-main { padding: 36px; background: var(--bg); min-height: calc(100vh - 68px); }
.dash-page { max-width: 860px; }
.dash-page-header { margin-bottom: 26px; }
.dash-subtitle { font-size: 13.5px; color: var(--gray); margin: 0; }
.dash-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.dash-stat-card { background: var(--white); border-radius: var(--radius); padding: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.dash-stat-icon { font-size: 20px; margin-bottom: 8px; }
.dash-stat-val { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -1.5px; }
.dash-stat-label { font-size: 11.5px; color: var(--gray); margin-top: 2px; }
.dash-stat-trend { font-size: 11.5px; color: var(--green); margin-top: 4px; }
.dash-section-title { font-family: var(--font-display); font-size: 20px; font-weight: 800; margin-bottom: 20px; letter-spacing: -0.5px; }
.dash-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.dash-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.dash-card-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--gray); margin-bottom: 8px; }
.dash-card-val { font-family: var(--font-display); font-size: 34px; font-weight: 800; color: var(--slate); letter-spacing: -2px; }
.dash-card-sub { font-size: 12px; color: var(--green); margin-top: 4px; }
.progress-badge { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.progress-badge-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.progress-badge-icon { font-size: 28px; }
.progress-badge-info h4 { font-size: 15px; font-weight: 700; margin-bottom: 2px; }
.progress-badge-info p { font-size: 13px; color: var(--gray); }
.progress-bar { background: var(--bg); border-radius: 100px; height: 8px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--orange); border-radius: 100px; transition: width 1s ease; }
.progress-badge.earned { border-color: var(--green); }
.earned-tag { font-size: 11px; font-weight: 700; color: var(--green); margin-left: auto; }
@media (max-width: 900px) { .dash-stats-row { grid-template-columns: 1fr 1fr; } .dashboard-main { padding: 20px 16px; } }

/* ── MEMBRESIA ─────────────────────────────── */
.membership-page { padding: 108px 28px 96px; }
.membership-inner { max-width: 900px; margin: 0 auto; }
.membership-inner > p { text-align: center; font-size: 17px; color: var(--gray); margin-bottom: 56px; margin-top: 14px; }

/* ── FORMS ─────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-label { font-size: 12px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 0.6px; }
.form-input { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 11px 14px; font-size: 14px; font-family: var(--font-body); color: var(--slate); background: var(--white); outline: none; transition: border-color var(--t), box-shadow var(--t); width: 100%; }
.form-input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(128,18,39,0.09); }
.form-input::placeholder { color: var(--gray-light); }
textarea.form-input { min-height: 100px; resize: vertical; }
.form-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; max-width: 560px; margin: 0 auto; box-shadow: var(--shadow-md); }

/* ── ANIMATIONS ────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LEAFLET ────────────────────────────────── */
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; box-shadow: var(--shadow-xl) !important; border: 1px solid var(--border) !important; }
.leaflet-popup-content { margin: 0 !important; }
.map-popup { padding: 16px 18px; min-width: 210px; }
.map-popup-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.map-popup-rubro { font-size: 12px; color: var(--gray); margin-bottom: 8px; }
.map-popup-stars { font-size: 12.5px; color: var(--gold); }
.map-popup-link { display: inline-block; margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--orange); padding: 6px 13px; border: 1.5px solid var(--orange); border-radius: var(--radius-sm); transition: all var(--t); }
.map-popup-link:hover { background: var(--orange); color: #fff; }

/* ── TOAST ─────────────────────────────────── */
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--slate); color: #fff; padding: 14px 20px; border-radius: var(--radius); font-size: 13.5px; font-weight: 600; z-index: 9999; display: none; animation: fadeUp 0.3s ease; border-left: 4px solid var(--orange); box-shadow: var(--shadow-lg); }
.toast.show { display: block; }

/* ── UTILS ─────────────────────────────────── */
.container { max-width: 1320px; margin: 0 auto; padding: 0 28px; }
.text-orange { color: var(--orange); }
.text-gray   { color: var(--gray); }
.fw-700 { font-weight: 700; }
.fw-800 { font-weight: 800; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }

/* ── MOBILE RESPONSIVE ─────────────────────── */
/* ══════════════════════════════════════
   RESPONSIVE — 768px (tablet)
   ══════════════════════════════════════ */
@media (max-width: 768px) {
  /* ── Navbar ── */
  .nav-inner { padding: 0 16px; }

  /* ── Hero ── */
  .hero { padding: 100px 16px 56px; }
  .hero-badge { font-size: 10.5px; padding: 6px 14px; margin-bottom: 20px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 24px; max-width: 100%; }

  /* ── Search ── */
  .search-box { flex-direction: column; border-radius: 12px; overflow: hidden; }
  .search-input-wrap { padding: 13px 16px; }
  #mainSearch { padding: 0; font-size: 15px; }
  .search-location { border-left: none; border-top: 1px solid var(--border); padding: 12px 16px; }
  .btn-search { padding: 13px 20px; border-radius: 0 !important; font-size: 14px; }

  /* ── Stats ── */
  .stats-bar { padding: 24px 12px; }
  .stat { padding: 0 10px; }

  /* ── Secciones generales ── */
  .featured-section, .how-section, .badges-section, .cta-section,
  .rubros-section, .map-section { padding: 48px 16px; }

  /* ── Mapa ── */
  .map-section { padding: 40px 0 0; }
  .map-header { padding: 0 16px; flex-direction: column; gap: 12px; margin-bottom: 14px; }
  .map-filters { width: 100%; flex-direction: column; }
  .map-filters select, .map-tipo-tab { width: 100%; }
  .map-tipo-tabs { width: 100%; }

  /* ── Rubros ── */
  .rubros-section { padding: 40px 0; }
  .rubros-section .section-header { padding: 0 16px; }
  .rubro-pill { font-size: 12.5px; padding: 8px 14px; }

  /* ── Cards / carrusel ── */
  .professionals-grid { grid-template-columns: 1fr; }
  .carousel-wrap { padding: 0 44px; }
  .carousel-btn { width: 32px; height: 32px; }

  /* ── Steps ── */
  .steps-grid { grid-template-columns: 1fr 1fr; gap: 20px; }

  /* ── Badges ── */
  .badges-inner { grid-template-columns: 1fr; gap: 32px; }
  .badges-grid { grid-template-columns: repeat(4, 1fr); gap: 8px; }

  /* ── Precios index ── */
  .pricing-cards { grid-template-columns: 1fr; gap: 14px; }
  .pricing-featured { transform: none; }

  /* ── Footer ── */
  .footer { padding: 40px 16px 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }

  /* ── Directorio ── */
  .directorio-layout { padding: 16px; }
  .filter-bar { gap: 8px; }
  .filter-select { font-size: 12px; }
  .pro-card-header { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* ── Dashboard ── */
  .dash-layout, .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar, .dashboard-sidebar { display: none; }
  .dash-main, .dashboard-main { padding: 16px; }
  .dash-stats-row { grid-template-columns: 1fr 1fr; }
  .cards-row { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .tab-nav { overflow-x: auto; white-space: nowrap; }

  /* ── Perfil ── */
  .profile-hero { padding: 90px 16px 0; }
  .profile-layout { grid-template-columns: 1fr; padding: 16px; }
  .profile-hero-inner { flex-direction: column; }
  .profile-info-grid { grid-template-columns: 1fr; }

  /* ── Admin ── */
  .admin-sidebar { display: none; }
  .admin-content { padding: 16px 12px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-wrap: wrap; }

  /* ── Membresía ── */
  .membership-page { padding: 90px 16px 48px; }
  .steps-bar { gap: 8px; }
  .step-label { font-size: 10px; }
  .plan-card { padding: 22px 18px; }

  /* ── Registro / Login ── */
  .register-card, .login-card, .form-card { padding: 28px 20px; margin: 80px auto 40px; }

  /* ── Featured section: fix procards + Ver todos en mobile (opción A) ── */
  .featured-section .section-header { padding: 0 20px; }
  .featured-section .section-header h2 { font-size: 20px; margin-bottom: 4px; letter-spacing: -.2px; }
  .featured-section .section-header p { font-size: 13.5px; margin: 0 0 4px; }
  .featured-section .see-all {
    position: static;
    display: inline-block;
    margin-top: 8px;
    font-size: 13px;
  }
  .featured-section .carousel-wrap { padding: 0; }
  .featured-section .carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .featured-section .carousel-viewport::-webkit-scrollbar { display: none; }
  .featured-section .carousel-track { gap: 12px; padding: 4px 20px; }
  .featured-section .carousel-card,
  .featured-section .pro-card {
    flex: 0 0 85vw;
    width: 85vw;
    max-width: 320px;
    scroll-snap-align: start;
  }
  .featured-section .carousel-btn { display: none; }
}

/* ── Directorio: accordion de filtros en mobile ── */
.filters-toggle{display:none}  /* base: oculto en desktop */
@media (max-width: 768px){
  .directorio-layout{grid-template-columns:1fr;gap:16px}
  .filter-sidebar{display:none}
  .filter-sidebar.open{display:block}
  .filter-title{display:none}  /* redundante con el boton */
  .filters-toggle{
    display:flex;align-items:center;justify-content:space-between;
    width:100%;padding:12px 16px;
    background:#fff;border:1px solid var(--border);border-radius:12px;
    font-family:"Inter",sans-serif;font-weight:700;font-size:14px;
    color:var(--slate, #0E1420);cursor:pointer;
    transition:border-color .2s
  }
  .filters-toggle:hover,.filters-toggle.open{border-color:#801227}
  .filters-toggle .ft-label{display:flex;align-items:center;gap:8px}
  .filters-toggle .ft-icon{color:#801227;flex-shrink:0}
  .filters-toggle .ft-badge{
    background:#801227;color:#fff;
    padding:2px 8px;border-radius:100px;
    font-size:11px;font-weight:700;margin-left:4px
  }
  .filters-toggle .ft-chev{color:#64748B;font-size:14px;transition:transform .2s}
  .filters-toggle.open .ft-chev{transform:rotate(180deg)}

  /* Fix procards del directorio: no desbordar el grid en mobile */
  .directorio-layout main,
  .directorio-layout > main{min-width:0;overflow-x:hidden}
  .directorio-layout .professionals-grid{min-width:0;grid-template-columns:minmax(0,1fr) !important}
  .directorio-layout .pro-card{min-width:0;width:100%;max-width:100%}
  .directorio-layout .pro-card > *{min-width:0;max-width:100%}
}


/* ══════════════════════════════════════
   RESPONSIVE — 480px (mobile pequeño)
   ══════════════════════════════════════ */
@media (max-width: 480px) {
  /* ── Tipografía ── */
  .hero h1 { font-size: 24px; letter-spacing: -0.3px; }
  .section-header h2 { font-size: 18px !important; }
  .cta-inner h2, .membership-inner h1 { font-size: 20px !important; }
  .page-header h1 { font-size: 17px !important; }

  /* ── Hero ── */
  .hero { padding: 88px 14px 48px; }
  .hero-badge { font-size: 9.5px; padding: 5px 12px; letter-spacing: .8px; }

  /* ── Stats ── */
  .stats-inner { flex-wrap: wrap; gap: 20px 0; }
  .stat-div { display: none; }
  .stat { padding: 0 14px; width: 50%; text-align: center; }
  .stat-num { font-size: 26px; }
  .stat-label { font-size: 9px; }

  /* ── Steps: 1 columna ── */
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
  .step { display: flex; align-items: flex-start; gap: 16px; text-align: left; }
  .step-num { margin-bottom: 0; min-width: 36px; }

  /* ── Badges: 4 por fila ── */
  .badges-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .badge-item { padding: 8px 4px; }

  /* ── Carrusel ── */
  .carousel-card { min-width: 100%; }
  .carousel-wrap { padding: 0 36px; }

  /* ── Footer ── */
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .footer-links h4 { font-size: 12px; }
  .footer-links a { font-size: 12px; }

  /* ── Precios: 1 columna ── */
  .pricing-cards { grid-template-columns: 1fr; }

  /* ── Pro cards ── */
  .pro-card { padding: 14px; }
  .pro-name { font-size: 14px; }
  .pro-rubro, .pro-location, .pro-rating { font-size: 11.5px; }

  /* ── Rubros ── */
  .rubro-pill { font-size: 11.5px; padding: 7px 12px; }

  /* ── Search ── */
  .search-box { box-shadow: var(--shadow-md); }

  /* ── Dashboard cards ── */
  .cards-row { grid-template-columns: 1fr; }
  .info-card-val { font-size: 20px; }

  /* ── Admin ── */
  .admin-topbar { padding: 0 12px; }
  .stats-grid { grid-template-columns: 1fr; }
  .user-table th, .user-table td { font-size: 11.5px; padding: 8px 8px; }
  .btn-act { font-size: 11px; padding: 4px 8px; }

  /* ── Membresía ── */
  .plans-grid { grid-template-columns: 1fr !important; }
  .plan-card { padding: 20px 16px; }
  .plan-price { font-size: 32px; }
  .plan-features li { font-size: 12.5px; }
  .steps-bar { flex-wrap: nowrap; overflow-x: auto; }

  /* ── Misc ── */
  .btn-primary, .btn-outline { font-size: 13px !important; padding: 10px 18px !important; }
  .how-section, .badges-section, .cta-section { padding: 40px 14px; }
}


/* ── FOOTER SOCIAL ── */
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.social-link:hover { background: var(--orange); color: white; border-color: var(--orange); }
.footer-bottom a { color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom a:hover { color: var(--orange); }

/* ── SPONSORS CAROUSEL ── */
.sponsors-track-wrap { overflow: hidden; position: relative; }
.sponsors-track-wrap::before, .sponsors-track-wrap::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2;
}
.sponsors-track-wrap::before { left: 0; background: linear-gradient(to right, #f8fafc, transparent); }
.sponsors-track-wrap::after  { right: 0; background: linear-gradient(to left, #f8fafc, transparent); }
.sponsors-track {
  display: flex; gap: 20px; align-items: center;
  animation: sponsors-scroll 30s linear infinite;
  width: max-content;
}
.sponsors-track:hover { animation-play-state: paused; }
.sponsor-logo {
  background: white; border: 1.5px solid #e5e7eb;
  border-radius: 10px; padding: 12px 24px;
  font-size: 13px; font-weight: 700; color: #374151;
  white-space: nowrap; flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sponsor-logo:hover { border-color: #801227; box-shadow: 0 2px 8px rgba(128,18,39,0.12); }
@keyframes sponsors-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── BADGE IMAGES ─────────────────────────── */
.badge-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}
.badge.badge-portfolio, .badge.badge-reviews, .badge.badge-identidad,
.badge.badge-anual, .badge.badge-top, .badge.badge-photos {
  background: transparent !important;
  border: none !important;
  padding: 2px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pro-badges { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }

.badge-img-lg {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.badge-img-sm {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.plan-gratuito { background: #f3f4f6; color: #6b7280; border: 1.5px solid #e5e7eb; }

/* Hero badge: ondas pulsantes (estilo botón ? del centro de ayuda) */
.hero-badge{position:relative}
.hero-badge::before,.hero-badge::after{
  content:"";position:absolute;inset:-2px;
  border:1.5px solid rgba(128,18,39,0.5);
  border-radius:100px;
  opacity:0;pointer-events:none;
  animation:badgePulse 3s ease-out infinite
}
.hero-badge::after{animation-delay:1.5s}
@keyframes badgePulse{
  0%{opacity:.45;transform:scale(1,1)}
  80%{opacity:0;transform:scale(1.15,1.45)}
  100%{opacity:0;transform:scale(1.15,1.45)}
}
