/* ============================================================
   CC Fiesra Suba – Estilos principales
   ============================================================ */

:root {
  --primary:       #4527A0;
  --primary-dark:  #311B92;
  --primary-light: #7C4DFF;
  --accent:        #FF8C00;
  --accent-light:  #FFB74D;
  --dark:          #1A1A2E;
  --light:         #F5F5F7;
  --text:          #212121;
  --muted:         #757575;
  --white:         #FFFFFF;
  --border:        #E0E0E0;
  --shadow:        0 4px 20px rgba(69,39,160,.12);
  --shadow-lg:     0 8px 40px rgba(69,39,160,.18);
  --radius:        12px;
  --radius-sm:     8px;
}

* { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--white);
  margin: 0;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-light); }

/* ── Utilidades ─────────────────────────────────────────── */
.text-primary-cc { color: var(--primary) !important; }
.text-accent      { color: var(--accent) !important; }
.bg-primary-cc    { background: var(--primary) !important; }
.bg-accent        { background: var(--accent) !important; }

.btn-primary-cc {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  border-radius: 50px;
  padding: .55rem 1.6rem;
  font-weight: 600;
  transition: all .25s;
}
.btn-primary-cc:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(69,39,160,.35);
}
.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  border-radius: 50px;
  padding: .55rem 1.6rem;
  font-weight: 600;
  transition: all .25s;
}
.btn-accent:hover {
  background: #e07800;
  border-color: #e07800;
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-cc {
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  padding: .5rem 1.5rem;
  font-weight: 600;
  transition: all .25s;
}
.btn-outline-cc:hover {
  background: var(--primary);
  color: var(--white);
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar-cc {
  background: var(--white);
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-cc .navbar-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 0;
}
.navbar-cc .navbar-brand .brand-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
}
.navbar-cc .nav-link {
  color: var(--text) !important;
  font-weight: 500;
  padding: .5rem .9rem !important;
  border-radius: 6px;
  transition: all .2s;
  font-size: .95rem;
}
.navbar-cc .nav-link:hover,
.navbar-cc .nav-link.active {
  background: rgba(69,39,160,.08);
  color: var(--primary) !important;
}

/* Topbar de información */
.topbar {
  background: var(--primary);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  padding: .4rem 0;
}
.topbar a { color: rgba(255,255,255,.9); }
.topbar a:hover { color: white; }
.topbar i { color: var(--accent-light); }

/* ── Hero Slider ─────────────────────────────────────────── */
.hero-slider {
  position: relative;
  overflow: hidden;
}
.hero-slide {
  min-height: 520px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-slide::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 1;
}
.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  transition: transform 8s ease;
}
.carousel-item.active .hero-bg { transform: scale(1); }
.hero-slide .container { position: relative; z-index: 2; }
.hero-badge {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: .3rem .9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 2rem;
}
.carousel-indicators [data-bs-target] {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: none;
  margin: 0 4px;
}
.carousel-indicators .active { background: var(--accent); }

/* ── Info Bar (debajo del hero) ──────────────────────────── */
.info-bar {
  background: var(--dark);
  color: white;
  padding: 1.2rem 0;
}
.info-bar .info-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .5rem 1rem;
}
.info-bar .info-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.info-bar .info-label { font-size: .75rem; color: rgba(255,255,255,.5); }
.info-bar .info-value { font-size: .95rem; font-weight: 600; }

/* ── Sección genérica ────────────────────────────────────── */
.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
}
.section-title span { color: var(--primary); }
.section-subtitle { color: var(--muted); font-size: 1.05rem; }
.section-divider {
  width: 60px; height: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 2px;
  margin: .75rem auto 1.5rem;
}

/* ── Categorías ──────────────────────────────────────────── */
.cat-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  background: white;
  text-decoration: none;
  display: block;
  color: var(--text);
}
.cat-card:hover, .cat-card.active-cat {
  border-color: var(--primary);
  background: rgba(69,39,160,.05);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: var(--primary);
}
.cat-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  font-size: 1.4rem;
  color: white;
}
.cat-name { font-weight: 600; font-size: .9rem; }

/* ── Tienda Card ─────────────────────────────────────────── */
.tienda-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: all .3s;
  background: white;
  height: 100%;
}
.tienda-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.tienda-card .card-img-wrap {
  height: 200px;
  overflow: hidden;
  position: relative;
  background: var(--light);
}
.tienda-card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.tienda-card:hover .card-img-wrap img { transform: scale(1.08); }
.tienda-card .badge-destacado {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--accent);
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 50px;
}
.tienda-card .badge-disponible {
  position: absolute;
  top: 10px; left: 10px;
  background: #43A047;
  color: white;
  font-size: .75rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 50px;
}
.tienda-card .card-body { padding: 1.25rem; }
.tienda-card .cat-tag {
  font-size: .75rem;
  color: var(--primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: .35rem;
}
.tienda-card .store-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: .4rem;
}
.tienda-card .store-info {
  font-size: .83rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .3rem;
  margin-bottom: .2rem;
}
.tienda-card .store-info i { color: var(--primary); width: 14px; }

/* ── Eventos ─────────────────────────────────────────────── */
.evento-card {
  border: none;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: all .3s;
  background: white;
}
.evento-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}
.evento-card .evento-img {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.evento-card .evento-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.evento-card .evento-date-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: .5rem .8rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  min-width: 56px;
}
.evento-card .evento-date-badge .day { font-size: 1.5rem; line-height: 1; }
.evento-card .evento-date-badge .month { font-size: .7rem; text-transform: uppercase; }
.evento-card .card-body { padding: 1.25rem; }
.evento-card .evento-lugar {
  font-size: .8rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: .4rem;
}
.evento-card .evento-hora {
  font-size: .82rem;
  color: var(--muted);
}

/* ── Servicios ───────────────────────────────────────────── */
.servicio-item {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: var(--radius);
  transition: all .3s;
}
.servicio-item:hover {
  background: rgba(69,39,160,.05);
  transform: translateY(-4px);
}
.servicio-icon {
  width: 70px; height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.6rem;
  color: white;
  box-shadow: 0 6px 20px rgba(69,39,160,.3);
}
.servicio-name { font-weight: 700; font-size: 1rem; margin-bottom: .4rem; }
.servicio-desc { font-size: .85rem; color: var(--muted); }

/* ── Mapa / Contacto ─────────────────────────────────────── */
.contact-card {
  border: none;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer-main {
  background: var(--dark);
  color: rgba(255,255,255,.8);
  padding: 4rem 0 2rem;
}
.footer-main h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 1.2rem;
  position: relative;
  padding-bottom: .6rem;
}
.footer-main h5::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 36px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.footer-main .footer-link {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  margin-bottom: .4rem;
  transition: color .2s;
}
.footer-main .footer-link:hover { color: var(--accent-light); padding-left: 4px; }
.footer-main .footer-contact-item {
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: .75rem; font-size: .9rem;
}
.footer-main .footer-contact-item i { color: var(--accent-light); margin-top: .15rem; }
.footer-bottom {
  background: #111122;
  color: rgba(255,255,255,.4);
  font-size: .82rem;
  padding: 1rem 0;
}
.social-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  transition: all .2s;
}
.social-btn:hover { background: var(--primary-light); color: white; }

/* ── Directorio / Search bar ─────────────────────────────── */
.search-bar-wrap {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 2rem;
}
.search-bar-wrap .form-control,
.search-bar-wrap .form-select {
  border: 2px solid var(--border);
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .95rem;
}
.search-bar-wrap .form-control:focus,
.search-bar-wrap .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(124,77,255,.15);
}

/* Locales disponibles highlight */
.disponible-section {
  background: linear-gradient(135deg, #E8F5E9, #F1F8E9);
  border: 2px solid #A5D6A7;
  border-radius: var(--radius);
  padding: 1.5rem;
}
.disponible-section h4 { color: #2E7D32; }

/* ── Página individual tienda ────────────────────────────── */
.tienda-hero {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  padding: 3rem 0 2rem;
}
.tienda-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 280px;
}
.tienda-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.horario-table td { padding: .4rem .8rem; font-size: .9rem; }
.horario-table tr:nth-child(even) td { background: rgba(69,39,160,.03); }

/* ── Page hero genérico ──────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  padding: 3.5rem 0 3rem;
}
.page-hero h1 { font-weight: 800; font-size: 2.2rem; }
.page-hero .breadcrumb-item a { color: rgba(255,255,255,.7); }
.page-hero .breadcrumb-item.active { color: rgba(255,255,255,.9); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.5); }

/* ── Filtro de búsqueda sticky ───────────────────────────── */
.filter-sidebar {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  position: sticky;
  top: 80px;
}
.filter-sidebar h6 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .8px;
}

/* ── Animaciones ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .5s ease forwards; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-slide { min-height: 380px; }
  .hero-title { font-size: 1.8rem; }
  .topbar { display: none; }
  .info-bar .info-item { padding: .3rem .5rem; }
  .section-title { font-size: 1.5rem; }
}

/* ============================================================
   HOME — Refresco moderno
   ============================================================ */

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* Hero más moderno */
.home-page .hero-slide { min-height: 600px; }
.home-page .hero-slide::before {
  background: linear-gradient(120deg, rgba(26,26,46,.85) 0%, rgba(69,39,160,.55) 45%, rgba(0,0,0,.22) 100%);
}
.home-page .hero-slider::after {            /* halo decorativo */
  content: ''; position: absolute; z-index: 2; pointer-events: none;
  width: 520px; height: 520px; right: -150px; top: -170px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(255,140,0,.35), transparent 62%);
}
.home-page .hero-badge {
  background: rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.30);
}
.home-page .hero-title { font-size: clamp(2.2rem, 5.5vw, 4rem); letter-spacing: -.5px; }
.home-page .hero-subtitle { max-width: 560px; }

/* Buscador flotante del hero */
.hero-search {
  display: flex; gap: .4rem; max-width: 560px; margin: -34px auto 0;
  position: relative; z-index: 5;
  background: #fff; padding: .4rem; border-radius: 50px;
  box-shadow: 0 16px 44px rgba(17,12,46,.22);
}
.hero-search input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  padding: .65rem 1.2rem; font-size: 1rem; color: var(--text);
}
.hero-search button {
  border: none; border-radius: 50px; padding: .65rem 1.5rem; font-weight: 700; white-space: nowrap;
  background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff;
  transition: transform .2s, box-shadow .2s;
}
.hero-search button:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(69,39,160,.4); }

/* Eyebrow de sección */
.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary);
  background: rgba(69,39,160,.08); padding: .3rem .9rem; border-radius: 50px; margin-bottom: .7rem;
}
.home-page .section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -.5px; }

/* Tarjetas modernas */
.home-page .tienda-card,
.home-page .evento-card { border-radius: 18px; box-shadow: 0 6px 26px rgba(17,12,46,.08); }
.home-page .tienda-card:hover,
.home-page .evento-card:hover { box-shadow: 0 18px 50px rgba(69,39,160,.20); }
.home-page .tienda-card .card-img-wrap::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.42), transparent 55%);
}

/* Categorías modernas */
.home-page .cat-card { border-radius: 18px; border-color: transparent; box-shadow: 0 4px 18px rgba(17,12,46,.06); }
.home-page .cat-card:hover { transform: translateY(-6px); }
.home-page .cat-icon { transition: transform .3s; box-shadow: 0 8px 20px rgba(0,0,0,.14); }
.home-page .cat-card:hover .cat-icon { transform: scale(1.1) rotate(-4deg); }

/* Servicios modernos */
.home-page .servicio-item { background: #fff; border: 1px solid var(--border); }
.home-page .servicio-item:hover { border-color: transparent; box-shadow: 0 16px 40px rgba(69,39,160,.16); transform: translateY(-6px); }

/* Stats con glass + número grande */
.home-page .stat-box {
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px; padding: 1.6rem 1rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.home-page .stat-num { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1; }

/* Info bar interactivo */
.home-page .info-bar .info-item { border-radius: 12px; transition: background .25s; }
.home-page .info-bar .info-item:hover { background: rgba(255,255,255,.06); }

@media (max-width: 768px) {
  .home-page .hero-slide { min-height: 470px; }
  .hero-search { margin-top: -28px; }
}

/* ── PQRS chips ───────────────────────────────────────────── */
.pqrs-chip {
  display: inline-flex; align-items: center;
  padding: .45rem 1rem; border-radius: 50px; cursor: pointer;
  border: 1.5px solid var(--border); background: #fff;
  font-size: .88rem; font-weight: 600; color: var(--muted);
  transition: all .2s;
}
.pqrs-chip:hover { border-color: var(--primary); color: var(--primary); }
.pqrs-chip.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* ── Newsletter (footer) ──────────────────────────────────── */
.newsletter-form {
  display: flex;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 50px;
  padding: 4px;
  max-width: 320px;
}
.newsletter-form input {
  flex: 1; min-width: 0; border: none; outline: none; background: transparent;
  color: #fff; padding: .5rem .9rem; font-size: .9rem;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.55); }
.newsletter-form button {
  border: none; border-radius: 50px; width: 40px; flex-shrink: 0;
  background: var(--accent); color: #fff; cursor: pointer; transition: background .2s, transform .2s;
}
.newsletter-form button:hover { background: var(--accent-light); transform: translateX(2px); }

/* ── Aviso de cookies / tratamiento de datos ──────────────── */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 1060;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--dark);
  color: #fff;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  max-width: 960px;
  margin: 0 auto;
}
.cookie-banner.show { display: flex; animation: cookieUp .4s ease; }
@keyframes cookieUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.cookie-banner .cookie-text { flex: 1; min-width: 240px; font-size: .88rem; line-height: 1.5; }
.cookie-banner .cookie-actions { display: flex; gap: .5rem; flex-shrink: 0; }
/* Cuando el banner está visible, sube el botón de WhatsApp para que no se tapen */
.cookie-banner.show ~ .wa-float { bottom: 96px; }

/* ── Botón flotante de WhatsApp ───────────────────────────── */
.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  z-index: 1050;
  box-shadow: 0 8px 26px rgba(37,211,102,.45);
  transition: transform .25s, box-shadow .25s;
}
.wa-float:hover {
  color: #fff;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 32px rgba(37,211,102,.55);
}
.wa-float::before {            /* anillo de pulso */
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  z-index: -1;
  animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(1.9); opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wa-float::before { animation: none; } }
@media (max-width: 768px) {
  .wa-float { width: 52px; height: 52px; font-size: 1.6rem; right: 16px; bottom: 16px; }
}
