/* =====================================================
   HUIXQUILUCANSHOP — Estilos Globales
   ===================================================== */

/* --- Variables --- */
:root {
  --color-primary:   #1a1a2e;
  --color-secondary: #16213e;
  --color-accent:    #e94560;
  --color-accent2:   #f5a623;
  --color-bg:        #f7f8fc;
  --color-text:      #222;
  --color-muted:     #666;
  --color-white:     #fff;
  --radius:          14px;
  --shadow:          0 8px 32px rgba(0,0,0,.12);
  --transition:      .25s ease;
  --font:            'Inter', sans-serif;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* --- Container --- */
.container {
  width: min(1200px, 95%);
  margin: 0 auto;
  padding: 3rem 1rem;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(233,69,96,.4);
}
.btn--primary:hover { transform: translateY(-2px); background: #c73652; }
.btn--accent {
  background: var(--color-accent2);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(245,166,35,.4);
}
.btn--accent:hover { transform: translateY(-2px); background: #d4911c; }
.btn--outline {
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  background: transparent;
}
.btn--outline:hover { background: var(--color-accent); color: var(--color-white); }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    url('../logo/logo.png') center/cover no-repeat,
    var(--color-primary);
  overflow: hidden;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(26,26,46,.88) 0%,
    rgba(233,69,96,.55) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  padding: 2rem;
  max-width: 760px;
}
.hero__logo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 900;
  color: var(--color-white);
  letter-spacing: -1px;
  margin-bottom: .5rem;
}
.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: rgba(255,255,255,.85);
  margin-bottom: 2rem;
  font-weight: 300;
}
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,.6);
  font-size: 1.8rem;
  animation: bounce 2s infinite;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(10px); }
}

/* =====================================================
   SEARCH BAR
   ===================================================== */
.search-bar {
  background: var(--color-white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.search-bar .container { padding: 1rem; }
.search-bar__form {
  display: flex;
  gap: .75rem;
  max-width: 700px;
  margin: 0 auto;
}
.search-bar__input {
  flex: 1;
  padding: .75rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 50px;
  font-size: 1rem;
  font-family: var(--font);
  outline: none;
  transition: var(--transition);
}
.search-bar__input:focus { border-color: var(--color-accent); }

/* =====================================================
   SECTION TITLES
   ===================================================== */
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  text-align: center;
  color: var(--color-primary);
  margin-bottom: .5rem;
}
.section-subtitle {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 3rem;
  font-size: 1.05rem;
}

/* =====================================================
   CATEGORY CARDS GRID
   ===================================================== */
.grid { display: grid; gap: 1.5rem; }
.grid--categories {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: var(--transition);
  border-top: 5px solid transparent;
  cursor: pointer;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,.15);
}
.card__icon { font-size: 2.8rem; }
.card__title { font-size: 1.25rem; font-weight: 700; color: var(--color-primary); }
.card__desc  { color: var(--color-muted); font-size: .95rem; flex: 1; }
.card__cta   { font-weight: 600; font-size: .95rem; margin-top: .5rem; }

/* Color accents per category */
.card--conveniencia   { border-color: #4caf50; }
.card--conveniencia   .card__cta { color: #4caf50; }
.card--emprendimientos{ border-color: #e94560; }
.card--emprendimientos .card__cta { color: #e94560; }
.card--virtuales      { border-color: #2196f3; }
.card--virtuales      .card__cta { color: #2196f3; }
.card--servicios      { border-color: #f5a623; }
.card--servicios      .card__cta { color: #f5a623; }
.card--directorio     { border-color: #9c27b0; grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; }
.card--directorio     .card__cta { color: #9c27b0; }
.card--wide .card__desc { flex: 1; }

@media (max-width: 600px) {
  .card--directorio { flex-direction: column; }
}

/* =====================================================
   STATS
   ===================================================== */
.stats {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  margin-top: 1rem;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  text-align: center;
  padding: 3rem 1rem;
}
.stat__number {
  display: block;
  font-size: 3rem;
  font-weight: 900;
  color: var(--color-accent);
}
.stat__label { font-size: .9rem; color: rgba(255,255,255,.75); }

/* =====================================================
   HOW IT WORKS
   ===================================================== */
.how { padding-top: 4rem; }
.grid--steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}
.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}
.step h4 { font-size: 1.1rem; margin-bottom: .4rem; color: var(--color-primary); }
.step p  { color: var(--color-muted); font-size: .95rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--color-primary);
  color: rgba(255,255,255,.75);
  margin-top: 4rem;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
}
.footer__logo {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  opacity: .8;
  background: rgba(255,255,255,.1);
}
.footer__copy { font-size: .9rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: center; }
.footer__nav a { font-size: .9rem; transition: var(--transition); }
.footer__nav a:hover { color: var(--color-accent); }

/* =====================================================
   INNER PAGE STYLES (shared by sub-pages)
   ===================================================== */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  padding: 4rem 1rem;
  text-align: center;
}
.page-hero__icon { font-size: 3.5rem; margin-bottom: 1rem; }
.page-hero__title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; margin-bottom: .5rem; }
.page-hero__sub   { font-size: 1.05rem; color: rgba(255,255,255,.75); }

.business-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
}
.biz-card {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.biz-card:hover { transform: translateY(-4px); box-shadow: 0 14px 40px rgba(0,0,0,.14); }
.biz-card__thumb {
  height: 170px;
  background: linear-gradient(135deg, #e0e0e0, #c5c5c5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
}
.biz-card__body   { padding: 1.25rem 1.5rem; flex: 1; display: flex; flex-direction: column; gap: .4rem; }
.biz-card__name   { font-size: 1.15rem; font-weight: 700; color: var(--color-primary); }
.biz-card__desc   { color: var(--color-muted); font-size: .9rem; flex: 1; }
.biz-card__footer { padding: 1rem 1.5rem; border-top: 1px solid #f0f0f0; display: flex; gap: .75rem; flex-wrap: wrap; }
.tag {
  background: var(--color-bg);
  padding: .25rem .75rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--color-muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--color-accent);
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
.back-link:hover { gap: .7rem; }

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--color-muted);
}
.empty-state__icon { font-size: 4rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: .5rem; color: var(--color-primary); }
.empty-state p  { margin-bottom: 1.5rem; }

/* Topbar for inner pages */
.topbar {
  background: var(--color-white);
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  padding: .9rem 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.topbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar__brand {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-primary);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.topbar__nav { display: flex; gap: 1rem; flex-wrap: wrap; }
.topbar__nav a { font-size: .9rem; color: var(--color-muted); transition: var(--transition); font-weight: 500; }
.topbar__nav a:hover { color: var(--color-accent); }

/* Responsive */
@media (max-width: 768px) {
  .topbar__nav { display: none; }
}
