/* ============================================================
   CAFÉ CREYENTES — Sección "Nuestra Tienda" (Store Experience)
   FASE 3D.2E (Banner Fotográfico + Historia + Carta/Menú + Ubicación)
   ============================================================ */

/* Contenedor Principal de la Sección */
#tienda.section,
.store-experience-section {
  scroll-margin-top: 84px;
  position: relative;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 88px 0;
}

@media (max-width: 991px) {
  #tienda.section,
  .store-experience-section {
    padding: 72px 0;
  }
}

@media (max-width: 768px) {
  #tienda.section,
  .store-experience-section {
    padding: 56px 0;
  }
}

/* Cabecera Centrada de Sección */
.store-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.store-badge {
  display: inline-block;
  color: var(--gold, #c8a96e);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.store-badge::before,
.store-badge::after {
  content: '—';
  margin: 0 8px;
  opacity: 0.4;
}

.store-section-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--text, #f0ece4);
  margin-bottom: 14px;
}

.store-section-subtitle {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2, #a09a8e);
  max-width: 640px;
  margin: 0 auto 20px auto;
}

.store-divider {
  width: 48px;
  height: 2px;
  background: var(--gold, #c8a96e);
  margin: 0 auto 48px auto;
  border-radius: 1px;
}

@media (max-width: 767px) {
  .store-header {
    margin-bottom: 36px;
  }

  .store-divider {
    margin-bottom: 36px;
  }
}

/* 1. BANNER FOTOGRÁFICO / CARRUSEL */
.store-banner-wrapper {
  max-width: 1140px;
  margin: 0 auto 64px auto;
  padding: 0 20px;
  position: relative;
}

.store-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid var(--border, #2e2b24);
  background: var(--surface-2, #222019);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.store-carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
  width: 100%;
}

.store-carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  height: 480px;
  position: relative;
  overflow: hidden;
  background: #100f0d;
}

.store-carousel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.store-carousel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-3, #665f55);
  background: var(--surface-2, #222019);
}

.store-carousel-placeholder i {
  font-size: 48px;
  color: var(--gold, #c8a96e);
  opacity: 0.6;
}

/* Botones Anterior / Siguiente */
.store-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(24, 23, 20, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(200, 169, 110, 0.4);
  color: var(--gold, #c8a96e);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.25s ease;
}

.store-carousel-btn:hover {
  background: var(--gold, #c8a96e);
  color: #100f0d;
  border-color: var(--gold, #c8a96e);
  box-shadow: 0 0 16px rgba(200, 169, 110, 0.5);
}

.store-carousel-btn:focus-visible {
  outline: 2px solid var(--gold, #c8a96e);
  outline-offset: 2px;
}

.store-carousel-prev {
  left: 20px;
}

.store-carousel-next {
  right: 20px;
}

/* Indicadores de Puntos */
.store-carousel-dots {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(16, 15, 13, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 10;
}

.store-carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.store-carousel-dot:hover {
  border-color: var(--gold, #c8a96e);
}

.store-carousel-dot.active {
  background: var(--gold, #c8a96e);
  border-color: var(--gold, #c8a96e);
  width: 26px;
  border-radius: 8px;
}

.store-carousel-dot:focus-visible {
  outline: 2px solid var(--gold, #c8a96e);
  outline-offset: 2px;
}

/* 2. HISTORIA DE LA TIENDA */
.store-story-container {
  max-width: 1140px;
  margin: 0 auto 64px auto;
  padding: 0 20px;
}

.store-story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.store-story-content {
  display: flex;
  flex-direction: column;
}

.store-story-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold, #c8a96e);
  margin-bottom: 8px;
}

.store-story-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text, #f0ece4);
  margin: 0 0 20px 0;
}

.store-story-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-2, #a09a8e);
}

.store-story-body p {
  margin: 0 0 16px 0;
}

.store-story-body p:last-child {
  margin-bottom: 0;
}

.store-story-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border, #2e2b24);
  background: var(--surface-2, #222019);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.store-story-img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.store-story-media:hover .store-story-img {
  transform: scale(1.02);
}

/* 3. CARTA / MENÚ DE LA TIENDA */
.store-menu-container {
  max-width: 1140px;
  margin: 0 auto 64px auto;
  padding: 0 20px;
}

.store-menu-card {
  background: linear-gradient(135deg, var(--surface, #181714) 0%, var(--surface-2, #222019) 100%);
  border: 1px solid rgba(200, 169, 110, 0.25);
  border-radius: 16px;
  padding: 44px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.store-menu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold, #c8a96e), transparent);
}

.store-menu-icon {
  font-size: 40px;
  color: var(--gold, #c8a96e);
  margin-bottom: 16px;
  display: inline-block;
}

.store-menu-title {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  color: var(--text, #f0ece4);
  font-weight: 700;
  margin: 0 0 10px 0;
}

.store-menu-desc {
  color: var(--text-2, #a09a8e);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}

.store-menu-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--gold, #c8a96e);
  color: #100f0d;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 14px 36px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(200, 169, 110, 0.25);
}

.store-menu-cta:hover {
  background: var(--gold-light, #e8c98e);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 169, 110, 0.4);
  color: #100f0d;
}

.store-menu-cta:focus-visible {
  outline: 2px solid var(--gold, #c8a96e);
  outline-offset: 3px;
}

/* 4. LOCALES Y UBICACIÓN */
.store-locales-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

.store-locales-header {
  text-align: center;
  margin-bottom: 36px;
}

.store-locales-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 3vw, 30px);
  color: var(--text, #f0ece4);
  font-weight: 700;
  margin: 0 0 8px 0;
}

.store-locales-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.store-local-card {
  background: var(--surface, #181714);
  border: 1px solid var(--border, #2e2b24);
  border-radius: 16px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.store-local-card:hover {
  border-color: rgba(200, 169, 110, 0.4);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.store-local-header {
  margin-bottom: 16px;
}

.store-local-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--text, #f0ece4);
  font-weight: 700;
  margin: 0 0 8px 0;
}

.store-local-desc {
  font-size: 13.5px;
  color: var(--text-2, #a09a8e);
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.store-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.store-info-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  color: var(--text-2, #a09a8e);
}

.store-info-row i {
  color: var(--gold, #c8a96e);
  margin-top: 3px;
  width: 16px;
  text-align: center;
  flex-shrink: 0;
}

.store-info-row p {
  margin: 0;
  line-height: 1.5;
}

.store-local-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.store-maps-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--surface-2, #222019);
  border: 1px solid rgba(200, 169, 110, 0.35);
  color: var(--gold, #c8a96e);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.store-maps-btn:hover {
  background: rgba(200, 169, 110, 0.15);
  border-color: var(--gold, #c8a96e);
  color: var(--gold-light, #e8c98e);
  transform: translateY(-1px);
}

.store-maps-btn:focus-visible {
  outline: 2px solid var(--gold, #c8a96e);
  outline-offset: 2px;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .store-header {
    margin-bottom: 40px;
  }

  .store-carousel-slide {
    height: 300px;
  }

  .store-carousel-btn {
    width: 36px;
    height: 36px;
    font-size: 12px;
  }

  .store-carousel-prev {
    left: 12px;
  }

  .store-carousel-next {
    right: 12px;
  }

  .store-story-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .store-story-media {
    order: -1;
  }

  .store-story-img {
    max-height: 320px;
  }

  .store-menu-card {
    padding: 32px 20px;
  }

  .store-menu-title {
    font-size: 24px;
  }

  .store-menu-cta {
    width: 100%;
    justify-content: center;
  }

  .store-locales-grid {
    grid-template-columns: 1fr;
  }

  .store-maps-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Accesibilidad: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .store-carousel-track,
  .store-carousel-btn,
  .store-carousel-dot,
  .store-story-img,
  .store-menu-cta,
  .store-local-card,
  .store-maps-btn {
    transition: none !important;
  }
}
