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

:root {
  --primary: #E8451C;
  --primary-dark: #C73A17;
  --primary-light: #FFF0EC;
  --secondary: #1A1A2E;
  --accent: #F2A900;
  --text: #1A1A2E;
  --text-light: #6B7280;
  --text-lighter: #9CA3AF;
  --bg: #FAFAFA;
  --white: #FFFFFF;
  --border: #E5E7EB;
  --border-light: #F3F4F6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 24px;
}
.btn-lg { padding: 14px 32px; font-size: 1.05rem; }
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}
.btn-full { width: 100%; }

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.5px;
}
.logo-promo { color: var(--text); }
.logo-ba { color: var(--primary); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-light);
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary);
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--primary-dark); }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.mobile-menu-btn span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.85) 0%, rgba(26,26,46,0.6) 50%, rgba(232,69,28,0.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 700px;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}
.hero-sub {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  gap: 40px;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}

/* === TIME CONTEXT BAR === */
.time-context {
  background: var(--secondary);
  padding: 16px 0;
}
.time-bar {
  display: flex;
  align-items: center;
  gap: 12px;
}
.time-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22C55E;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(34,197,94,0); }
}
.time-text {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  font-weight: 500;
}

/* === SECTIONS === */
.section {
  padding: 80px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-light);
  font-size: 1.1rem;
  max-width: 540px;
  margin: 0 auto;
}

/* === PROMO CARDS === */
.promo-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  justify-content: center;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--white);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.promos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.promo-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: all 0.3s ease;
}
.promo-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.promo-urgent {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #DC2626;
  color: white;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}
.promo-discount {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: white;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  font-weight: 800;
  z-index: 2;
}

.promo-body { padding: 24px; }

.promo-category-tag {
  display: inline-block;
  color: white;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.promo-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
}
.promo-business {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 10px;
}
.promo-desc {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.promo-pricing {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.price-original {
  font-size: 1rem;
  color: var(--text-lighter);
  text-decoration: line-through;
}
.price-promo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
}

.promo-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-lighter);
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.promos-cta {
  text-align: center;
  margin-top: 48px;
}
.promos-cta p {
  color: var(--text-light);
  margin-bottom: 16px;
}

/* === HOW IT WORKS === */
.how-it-works {
  background: var(--white);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step { text-align: center; }
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 20px;
}
.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.step p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === BARRIOS === */
.barrios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.barrio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  transition: transform 0.3s;
}
.barrio-card:hover { transform: translateY(-4px); }
.barrio-img-wrap {
  position: absolute;
  inset: 0;
}
.barrio-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.barrio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.1) 60%);
}
.barrio-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  color: white;
  z-index: 2;
}
.barrio-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.barrio-info p {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* === CATEGORIES === */
.categories-section { background: var(--white); }
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.category-card {
  padding: 28px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
  display: block;
}
.category-card:hover {
  border-color: currentColor;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.category-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.category-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.category-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.category-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.5;
}

/* === BUSINESS CTA === */
.business-cta-section {
  background: linear-gradient(135deg, var(--secondary) 0%, #2D2D4E 100%);
  color: var(--white);
}
.business-cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.business-cta-content h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}
.business-cta-content p {
  color: rgba(255,255,255,0.7);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.6;
}
.business-cta-stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.biz-stat {
  display: flex;
  flex-direction: column;
  padding: 20px 24px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.1);
}
.biz-stat-num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}
.biz-stat span:last-child {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

/* === WAITLIST === */
.waitlist-section {
  background: var(--white);
}
.waitlist-card {
  max-width: 640px;
  margin: 0 auto;
}
.waitlist-form {
  margin-top: 8px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.form-input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  background: var(--white);
}
.form-input::placeholder { color: var(--text-lighter); }
select.form-input { appearance: none; cursor: pointer; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-lighter);
  margin-top: 12px;
}

.waitlist-success {
  text-align: center;
  padding: 40px 20px;
}
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #DCFCE7;
  color: #16A34A;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.waitlist-success h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.waitlist-success p {
  color: var(--text-light);
}

/* === PAGE HERO (barrio/category) === */
.page-hero {
  position: relative;
  padding: 120px 0 60px;
  overflow: hidden;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
}
.page-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.page-hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
}
.page-hero-stat {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 16px;
  background: rgba(255,255,255,0.15);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
}

.page-hero-category {
  background: linear-gradient(135deg, var(--secondary), var(--cat-color, var(--primary)));
  min-height: 280px;
}

.page-hero-business {
  background: linear-gradient(135deg, var(--secondary), #2D2D4E);
  min-height: 280px;
  text-align: center;
}
.page-hero-business .page-hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: rgba(255,255,255,0.6);
}
.breadcrumb a {
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--white); }

/* === BUSINESS PAGE === */
.business-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.benefit {
  display: flex;
  gap: 20px;
  margin-bottom: 32px;
}
.benefit-num {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  padding-top: 4px;
}
.benefit h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.benefit p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 88px;
}
.form-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.form-card > p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 24px;
}
.business-form .form-input {
  margin-bottom: 12px;
}

/* === RELATED / CHIPS === */
.related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}
.related-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.barrios-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
}
.chip:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: 80px 20px;
}
.empty-state h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.empty-state p {
  color: var(--text-light);
  margin-bottom: 20px;
}

/* === FOOTER === */
.site-footer {
  background: var(--secondary);
  color: var(--white);
  padding: 60px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
}
.footer-links h4 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.5);
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* === MOBILE === */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero { min-height: 80vh; padding: 100px 0 60px; }
  .hero h1 { font-size: 2.25rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats { gap: 24px; }

  .section { padding: 60px 0; }
  .section-header h2 { font-size: 1.75rem; }

  .promos-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .barrios-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .categories-grid { grid-template-columns: 1fr; }
  .business-cta-card { grid-template-columns: 1fr; gap: 32px; }
  .business-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .form-card { position: static; }

  .page-hero-content h1 { font-size: 2rem; }
  .promo-filters { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.85rem; }
  .barrios-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Mobile menu open */
.main-nav.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 24px;
  gap: 16px;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
