/* ============================================================
   LOCAL CDMX — redesign.css
   Overrides and new styles for the Apple/Airbnb/Stripe redesign
   ============================================================ */

/* ----- HEADER REDESIGN ----- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 0 var(--space-lg);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: var(--space-lg);
}

.header-nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.header-nav-link {
  font-weight: 500;
  color: var(--text);
  font-size: var(--font-size-sm);
  padding: 8px 12px;
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
}

.header-nav-link:hover {
  background: var(--surface);
  color: var(--primary);
}

.header-nav-link.btn--primary {
  background: var(--primary);
  color: var(--white);
}

.header-nav-link.btn--primary:hover {
  background: var(--primary-hover);
  color: var(--white);
}

/* ----- HERO & AIRBNB SEARCH ----- */
.hero-section {
  padding: 80px 0 60px;
  background: var(--surface);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
}

/* Airbnb style search */
.airbnb-search-bar {
  display: flex;
  align-items: center;
  background: var(--white);
  border-radius: 40px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  max-width: 800px;
  margin: 0 auto 24px;
  border: 1px solid var(--border);
  padding: 8px;
  position: relative;
  z-index: 10;
}

.airbnb-search-field {
  flex: 1;
  padding: 12px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-right: 1px solid var(--border-light);
}

.airbnb-search-field:last-of-type {
  border-right: none;
}

.airbnb-search-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.airbnb-search-input {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 15px;
  color: var(--text-secondary);
  width: 100%;
  outline: none;
  box-shadow: none;
}

.airbnb-search-btn {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 32px;
  padding: 14px 28px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.airbnb-search-btn:hover {
  background: var(--primary-hover);
  transform: scale(1.02);
}

/* ----- QUICK FILTERS ----- */
.quick-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.quick-filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.quick-filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(16, 42, 99, 0.08);
  transform: translateY(-1px);
}

/* ----- STATS SECTION ----- */
.stats-section {
  padding: 40px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item {
  padding: 24px;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* ----- NEW CATEGORIES ----- */
.new-categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.new-category-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  display: block;
}

.new-category-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.new-category-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.new-category-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.new-category-count {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ----- 3-TIER BUSINESS CARDS ----- */

/* Base overrides for all cards */
.business-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* Card image constraints — prevent oversized images */
.business-card .card-image {
  max-height: 120px;
  overflow: hidden;
  flex-shrink: 0;
}

.business-card .card-image img {
  width: 100%;
  height: 100%;
  max-height: 120px;
  object-fit: cover;
  display: block;
}

/* Mosaic view: slightly taller images */
.results-mosaic .business-card .card-image,
.results-mosaic .business-card .card-image img {
  max-height: 180px;
  height: 180px;
}

/* Nivel 1: Gratis */
.business-card--gratis {
  box-shadow: var(--shadow-sm);
}

.business-card--gratis:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-light);
}

/* Nivel 2: Premium */
.business-card--premium {
  border: 2px solid var(--pro-gold);
  box-shadow: var(--shadow-md);
  background: linear-gradient(to bottom, var(--white), var(--pro-gold-light) 500px);
}

.business-card--premium:hover {
  box-shadow: 0 12px 32px rgba(244, 180, 0, 0.15);
  transform: translateY(-4px);
}

.premium-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--pro-gold);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(244, 180, 0, 0.3);
}

/* Nivel 3: Destacado */
.business-card--destacado {
  grid-column: span 2;
  display: flex;
  flex-direction: row;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  background: var(--white);
}

.business-card--destacado:hover {
  box-shadow: 0 16px 40px rgba(16, 42, 99, 0.15);
  transform: translateY(-4px);
}

.business-card--destacado .card-image {
  width: 50%;
  height: 100%;
}

.business-card--destacado .card-body {
  width: 50%;
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.business-card--destacado .card-name {
  font-size: 28px;
  margin-bottom: 12px;
}

/* ----- PRICING SECTION ----- */
.pricing-section {
  padding: 80px 0;
  background: var(--surface);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  position: relative;
}

.pricing-card--premium {
  border: 2px solid var(--pro-gold);
  box-shadow: 0 16px 40px rgba(244, 180, 0, 0.15);
  transform: scale(1.02);
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pro-gold);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.pricing-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
}

.pricing-price {
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 32px;
}

.pricing-price span {
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--text);
}

.feature-check {
  color: var(--green);
  font-weight: bold;
}

.pricing-btn {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: all var(--transition);
}

.pricing-btn--outline {
  background: transparent;
  border: 2px solid var(--border);
  color: var(--text);
}

.pricing-btn--outline:hover {
  border-color: var(--text);
}

.pricing-btn--gold {
  background: var(--pro-gold);
  color: #fff;
  border: none;
}

.pricing-btn--gold:hover {
  background: #E5A800;
  transform: translateY(-2px);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .business-card--destacado {
    grid-column: span 1;
    flex-direction: column;
  }
  .business-card--destacado .card-image,
  .business-card--destacado .card-body {
    width: 100%;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card--premium {
    transform: none;
  }
}
@media (max-width: 768px) {
  .stats-grid, .new-categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .airbnb-search-bar {
    flex-direction: column;
    border-radius: 16px;
  }
  .airbnb-search-field {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
  }
  .airbnb-search-field:last-of-type {
    border-bottom: none;
  }
  .airbnb-search-btn {
    width: 100%;
    justify-content: center;
  }
}
