/* ============================================================
   LOCAL CDMX — upgrade.css
   FASE 1 (conversión) + FASE 2 (UX) · Blueprint Comercial + UX
   Se carga después de los demás CSS para poder sobreescribir.
   ============================================================ */

/* ============ Header: CTA Anúnciate permanente ============ */
.header-nav-cta {
  background: var(--primary-gradient);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.header-nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 127, 63, 0.35);
}

.mobile-nav-cta {
  background: var(--primary-gradient) !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 10px;
  margin: 4px 0;
}

/* ============ Hero ============ */
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin: -6px 0 20px;
}

.quick-filter-btn {
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.quick-filter-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: translateY(-1px);
}

/* ============ Bloque doble audiencia ============ */
.audience-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 8px;
}
.audience-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.audience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--shadow-color-heavy);
}
.audience-card--business {
  background: var(--primary-gradient-soft);
  border-color: #FFE0C7;
}
.audience-card-icon { font-size: 2rem; }
.audience-card-title { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.audience-card-text { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin-bottom: 6px; }
.audience-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

/* ============ Bloque comercial "¿Tienes un negocio?" ============ */
.section--business {
  background: linear-gradient(160deg, #FFFFFF 0%, var(--primary-light) 60%, #FFE9D6 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.business-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.business-block-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 18px;
}
.business-block-list li {
  font-size: 0.92rem;
  color: var(--text);
}
.business-block-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.business-block-link {
  color: var(--primary-dark);
  font-size: 0.9rem;
  text-decoration: none;
}
.business-block-link:hover { text-decoration: underline; }

/* Mock de perfil dentro del bloque */
.business-block-visual {
  display: flex;
  justify-content: center;
}
.mock-profile {
  width: 100%;
  max-width: 320px;
  background: var(--white);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(51, 51, 51, 0.14);
  border: 1px solid var(--border);
  transform: rotate(-1.5deg);
}
.mock-profile-cover {
  height: 110px;
  background: linear-gradient(135deg, var(--pro-gold) 0%, #F0D06E 55%, var(--primary) 130%);
}
.mock-profile-body { padding: 14px 16px 16px; }
.mock-profile-badge {
  display: inline-block;
  background: var(--pro-gold-gradient);
  color: #5C4A00;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.mock-profile-name { font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: 0.04em; }
.mock-profile-rating { font-size: 0.78rem; color: var(--text-secondary); margin: 4px 0 10px; }
.mock-profile-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.mock-profile-wa, .mock-profile-call, .mock-profile-route {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 14px;
}
.mock-profile-wa { background: var(--whatsapp); color: #fff; }
.mock-profile-call { background: var(--primary-light); color: var(--primary-dark); border: 1px solid #FFD9BD; }
.mock-profile-route { background: #EDF2F7; color: #4A5568; }
.mock-profile-note { margin-top: 10px; font-size: 0.7rem; color: var(--text-light); }

/* ============ Tarjetas de planes ============ */
.plans-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
  margin-top: 8px;
}
.plan-col {
  position: relative;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.plan-col:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px var(--shadow-color-heavy);
}
.plan-col--featured {
  border: 2px solid var(--pro-gold);
  background: var(--pro-gold-light);
  box-shadow: 0 10px 26px rgba(212, 175, 55, 0.18);
}
.plan-col-popular {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pro-gold-gradient);
  color: #5C4A00;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 16px;
  white-space: nowrap;
}
.plan-col-best {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 16px;
  white-space: nowrap;
}
.plan-col-header { text-align: center; }
.plan-col-name { font-size: 1.1rem; font-weight: 700; color: var(--text); }
.plan-col-price { font-size: 2.2rem; font-weight: 800; color: var(--primary-dark); line-height: 1.1; margin-top: 4px; }
.plan-col-price-unit { font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); }
.plan-col-period { font-size: 0.8rem; color: var(--text-secondary); margin-top: 2px; }
.plan-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.plan-col-list li {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.45;
}
.anunciate-check { color: #4CAF50; font-weight: 700; }
.plans-trustline {
  text-align: center;
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.plans-more { text-align: center; margin-top: 8px; }
.btn--pro {
  background: var(--pro-gold-gradient);
  color: #5C4A00;
  border: none;
}
.btn--pro:hover { filter: brightness(1.05); }

/* ============ CTA section (home + anunciate) ============ */
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.cta-btn--ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}
.cta-btn--ghost:hover { background: #fff; color: var(--primary-dark); }
.cta-note {
  margin-top: 16px;
  font-size: 0.8rem;
  opacity: 0.85;
}

/* ============ Página /anunciate ============ */
.anunciate-hero {
  background: linear-gradient(150deg, #FFF5EC 0%, #F9F7F3 55%, #FFE9D6 100%);
  padding: 72px 24px 64px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}
.anunciate-hero-eyebrow {
  display: inline-block;
  background: var(--white);
  border: 1px solid #FFD9BD;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.anunciate-hero-title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.2;
  margin-bottom: 16px;
}
.anunciate-hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 22px;
  line-height: 1.65;
}
.anunciate-hero-chips {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.anunciate-hero-chips span {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.anunciate-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.anunciate-hero-note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-light);
}

/* Banda de datos */
.anunciate-statsband {
  background: var(--primary-gradient);
  padding: 28px 0;
}
.anunciate-statsband-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}
.anunciate-stat-number { color: #fff; font-size: 1.7rem; font-weight: 800; }
.anunciate-stat-label { color: rgba(255, 255, 255, 0.85); font-size: 0.82rem; }

/* Pasos */
.anunciate-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.anunciate-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.anunciate-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px var(--shadow-color-heavy);
}
.anunciate-step-num {
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-light);
}
.anunciate-step-icon { font-size: 1.8rem; margin-bottom: 10px; }
.anunciate-step-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.anunciate-step-desc { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; }

.anunciate-flow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
}
.anunciate-flow b { color: var(--primary); }
.anunciate-flow-end {
  background: var(--pro-gold-gradient);
  color: #5C4A00;
  padding: 6px 14px;
  border-radius: 16px;
}

/* Resultados */
.anunciate-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 8px;
}
.anunciate-result {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 22px;
  text-align: center;
}
.anunciate-result-icon { font-size: 2.2rem; margin-bottom: 10px; }
.anunciate-result-title { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.anunciate-result-desc { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.55; }

/* ¿Dónde aparecerá mi negocio? */
.anunciate-where-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 8px;
}
.anunciate-where-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}
.anunciate-where-title { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.anunciate-where-text { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.55; margin-bottom: 14px; }

/* Mocks */
.mock-search, .mock-home, .mock-local {
  background: #F5F3EE;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 12px;
}
.mock-search-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}
.mock-search-item {
  display: flex;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 8px;
}
.mock-search-item--premium { border: 2px solid var(--pro-gold); background: var(--pro-gold-light); }
.mock-search-photo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #E0DDD5, #C9C5BB);
}
.mock-search-item--premium .mock-search-photo {
  background: linear-gradient(135deg, var(--primary), var(--pro-gold));
}
.mock-search-info { display: flex; flex-direction: column; gap: 3px; }
.mock-badge {
  display: inline-block;
  width: max-content;
  background: var(--pro-gold-gradient);
  color: #5C4A00;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}
.mock-badge--hot { background: var(--primary-gradient); color: #fff; }
.mock-search-name { font-size: 0.78rem; font-weight: 700; color: var(--text); }
.mock-search-meta { font-size: 0.7rem; color: var(--text-secondary); }
.mock-search-item--plain .mock-search-photo { opacity: 0.55; }
.mock-search-item--plain .mock-search-name { color: var(--text-light); }

.mock-home-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.mock-home-carousel { display: flex; gap: 8px; }
.mock-home-card {
  flex: 1;
  background: var(--white);
  border: 2px solid var(--pro-gold);
  border-radius: 10px;
  padding: 6px;
}
.mock-home-card--dim { border-color: var(--border); opacity: 0.6; }
.mock-home-photo { height: 56px; border-radius: 7px; background: linear-gradient(135deg, var(--primary), var(--pro-gold)); margin-bottom: 6px; }
.mock-home-card--dim .mock-home-photo { background: #E0DDD5; }
.mock-home-name { font-size: 0.66rem; font-weight: 700; color: var(--text); text-align: center; }

.mock-local {
  min-height: 150px;
  background: linear-gradient(160deg, #E8F0E4, #F5F3EE);
  position: relative;
}
.mock-local-header {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
}
.mock-local-pin {
  position: absolute;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  background: var(--white);
  border: 1.5px solid var(--pro-gold);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text);
  top: 42px;
  left: 18px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.mock-local-pin small { font-weight: 500; color: var(--text-secondary); }
.mock-local-pin--dim { border-color: var(--border); opacity: 0.65; top: 92px; left: 120px; }

/* Planes (sección de la landing) */
.anunciate-plans {
  background: linear-gradient(160deg, #FFFFFF 0%, var(--primary-light) 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 64px 0;
}

/* Publicidad local */
.anunciate-publicidad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.anunciate-publicidad-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.anunciate-publicidad-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px var(--shadow-color-heavy);
}
.anunciate-publicidad-icon { font-size: 1.6rem; margin-bottom: 8px; }
.anunciate-publicidad-title { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.anunciate-publicidad-desc { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }
.anunciate-publicidad-cta {
  margin-top: 26px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.anunciate-publicidad-cta p { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 12px; }

/* Confianza */
.anunciate-confianza-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}
.anunciate-confianza-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
}
.anunciate-confianza-icon { font-size: 1.6rem; margin-bottom: 8px; }
.anunciate-confianza-title { font-size: 0.98rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.anunciate-confianza-desc { font-size: 0.84rem; color: var(--text-secondary); line-height: 1.5; }

/* FAQ */
.anunciate-faq { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.anunciate-faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.anunciate-faq-q {
  list-style: none;
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.anunciate-faq-q::-webkit-details-marker { display: none; }
.anunciate-faq-arrow { color: var(--primary); transition: transform 0.2s ease; }
.anunciate-faq-item[open] .anunciate-faq-arrow { transform: rotate(180deg); }
.anunciate-faq-a {
  padding: 0 18px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.anunciate-faq-more {
  text-align: center;
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.anunciate-faq-more a { color: var(--primary-dark); font-weight: 600; }

/* ============ Ficha de negocio: CTA fijo móvil (FASE 2) ============ */
.profile-mobile-cta {
  display: none;
}
@media (max-width: 768px) {
  .profile-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--white);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .profile-page:has(.profile-mobile-cta) {
    padding-bottom: 76px;
  }
  .profile-mobile-cta-btn {
    flex: 1;
    text-align: center;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 11px 8px;
    border-radius: 14px;
    text-decoration: none;
    white-space: nowrap;
  }
  .profile-mobile-cta-btn--wa { background: var(--whatsapp); color: #fff; }
  .profile-mobile-cta-btn--call { background: var(--primary-gradient); color: #fff; }
  .profile-mobile-cta-btn--route { background: #EDF2F7; color: #4A5568; }
}

/* ============ Barra de filtros: toggles adicionales ============ */
#filter-whatsapp, #filter-verified {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .filter-bar { flex-wrap: wrap; gap: 8px; }
}

/* ============ CTA comercial en resultados por categoría ============ */
.search-category-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--primary-gradient-soft);
  border: 1px solid #FFD9BD;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 14px;
  font-size: 0.88rem;
  color: var(--text);
}
.search-category-cta strong { color: var(--primary-dark); }

/* ============ Geocodificación automática en el formulario ============ */
.publish-geo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
}
.publish-geo-status {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
#pub-geocode-btn {
  border-radius: 18px;
}

/* ============ Responsive general ============ */
@media (max-width: 900px) {
  .audience-split { grid-template-columns: 1fr; }
  .business-block { grid-template-columns: 1fr; gap: 32px; }
  .business-block-visual { order: -1; }
  .plans-cards { grid-template-columns: 1fr; max-width: 480px; margin-left: auto; margin-right: auto; }
  .anunciate-steps { grid-template-columns: 1fr 1fr; }
  .anunciate-results { grid-template-columns: 1fr; }
  .anunciate-where-grid { grid-template-columns: 1fr; }
  .anunciate-publicidad-grid { grid-template-columns: 1fr 1fr; }
  .anunciate-confianza-grid { grid-template-columns: 1fr 1fr; }
  .anunciate-statsband-grid { grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 560px) {
  .anunciate-steps { grid-template-columns: 1fr; }
  .anunciate-publicidad-grid { grid-template-columns: 1fr; }
  .anunciate-confianza-grid { grid-template-columns: 1fr; }
  .business-block-list { grid-template-columns: 1fr; }
  .anunciate-hero { padding: 48px 18px 44px; }
  .anunciate-flow { gap: 6px; }
}
