/* Cremería 2000 — estilos unificados (Bootstrap 5) */
:root {
  /* Verde azulado del "2000" en el logo */
  --c-brand: #336b79;
  --c-brand-dark: #254f5c;
  --c-brand-light: #e8f0f2;
  --c-text: #1a1a1a;
  --c-muted: #5c5c5c;
  --c-border: #e8e8e8;
  --c-bg: #f6f6f6;
  --c-card: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
}

/* Top bar */
.site-topbar {
  background: linear-gradient(90deg, var(--c-brand-dark) 0%, var(--c-brand) 50%, #3d8494 100%);
  color: #fff;
  padding: 0.85rem 0;
  border-bottom: 3px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 12px rgba(37, 79, 92, 0.3);
}

.site-topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
}

.site-topbar__eyebrow {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.88;
  margin-bottom: 0.15rem;
}

.site-topbar__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.25;
}

.site-topbar__title strong {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.site-topbar__tagline {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  opacity: 0.9;
  max-width: 28rem;
}

.site-topbar__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-topbar__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-topbar__chip:hover {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
  transform: translateY(-1px);
}

.site-topbar__chip--wa {
  background: rgba(255, 255, 255, 0.22);
}

.site-topbar__chip-icon {
  font-size: 0.95rem;
  line-height: 1;
}

@media (max-width: 575.98px) {
  .site-topbar__title {
    font-size: 1rem;
  }

  .site-topbar__actions {
    width: 100%;
  }

  .site-topbar__chip {
    flex: 1 1 auto;
    justify-content: center;
    font-size: 0.75rem;
  }
}

/* Header */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.site-header .navbar-brand img {
  max-height: 52px;
  width: auto;
}

.navbar-nav .nav-link {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--c-text) !important;
  padding: 0.5rem 0.75rem !important;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--c-brand) !important;
}

.btn-brand {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
  font-weight: 600;
}

.btn-brand:hover {
  background: var(--c-brand-dark);
  border-color: var(--c-brand-dark);
  color: #fff;
}

.btn-outline-brand {
  color: var(--c-brand);
  border-color: var(--c-brand);
  font-weight: 600;
}

.btn-outline-brand:hover {
  background: var(--c-brand);
  color: #fff;
}

/* Lista completa CTA */
.list-cta {
  background: linear-gradient(135deg, var(--c-brand) 0%, var(--c-brand-dark) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.list-cta p {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  opacity: 0.95;
}

/* Layout catálogo */
.catalog-layout {
  padding: 1.5rem 0 2.5rem;
}

.catalog-sidebar {
  background: var(--c-card);
  border-radius: var(--radius);
  border: 1px solid var(--c-border);
  padding: 1rem;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 992px) {
  .catalog-sidebar {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
  }
}

.dept-toggle {
  width: 100%;
  text-align: left;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--c-text);
  background: var(--c-bg);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.35rem;
}

.dept-toggle:hover {
  background: var(--c-brand-light);
}

.dept-toggle[aria-expanded="true"] {
  background: var(--c-brand);
  color: #fff;
}

.dept-links {
  list-style: none;
  padding: 0 0 0.5rem 0.5rem;
  margin: 0 0 0.5rem;
}

.dept-links a {
  display: block;
  padding: 0.35rem 0.5rem;
  font-size: 0.875rem;
  color: var(--c-muted);
  text-decoration: none;
  border-radius: 6px;
}

.dept-links a:hover,
.dept-links a.active {
  color: var(--c-brand);
  background: var(--c-brand-light);
  font-weight: 600;
}

/* Carrusel inicio — altura fija para que no “brinque” entre slides */
.hero-carousel {
  background: #ebebeb;
}

.hero-carousel .carousel-inner {
  min-height: 340px;
}

.hero-carousel .carousel-item {
  min-height: 340px;
}

.hero-carousel__frame {
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 3rem;
  box-sizing: border-box;
}

.hero-carousel__frame img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 2.75rem;
  height: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
  border-radius: 50%;
  background-color: var(--c-brand);
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-carousel .carousel-control-prev {
  left: 0.65rem;
}

.hero-carousel .carousel-control-next {
  right: 0.65rem;
}

.hero-carousel .carousel-control-prev:hover,
.hero-carousel .carousel-control-next:hover {
  background-color: var(--c-brand-dark);
}

.hero-carousel .carousel-indicators [data-bs-target] {
  background-color: var(--c-brand);
  opacity: 0.35;
}

.hero-carousel .carousel-indicators .active {
  opacity: 1;
}

@media (max-width: 575.98px) {
  .hero-carousel .carousel-inner,
  .hero-carousel .carousel-item {
    min-height: 220px;
  }

  .hero-carousel__frame {
    height: 200px;
    padding: 0.75rem 2.5rem;
  }

  .hero-carousel .carousel-control-prev,
  .hero-carousel .carousel-control-next {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Tarjetas producto */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 576px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.product-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__img-wrap {
  aspect-ratio: 1;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  position: relative;
  min-height: 0;
}

.product-card__img-wrap a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
}

.product-card__img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.product-card__badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--c-brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.product-card__body {
  padding: 0.85rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.product-card__meta {
  font-size: 0.8rem;
  color: var(--c-muted);
  margin-top: auto;
  padding: 0.35rem 0.5rem;
  background: var(--c-bg);
  border-radius: 6px;
  text-align: center;
}

.section-title {
  font-weight: 800;
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--c-brand);
}

.page-hero {
  background: var(--c-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--c-border);
}

/* Footer */
.site-footer {
  background: #1e1e1e;
  color: #ccc;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer h5 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.site-footer a {
  color: #ccc;
  text-decoration: none;
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .footer-bottom {
  border-top: 1px solid #444;
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.8rem;
  color: #888;
}

/* Páginas estáticas */
.content-page .accordion-button:not(.collapsed) {
  background: var(--c-brand-light);
  color: var(--c-brand);
}

.contact-map-link {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--c-border);
}

.contact-map-link img {
  width: 100%;
  height: auto;
  display: block;
}
