/* =========================================================
   RESET + BASE
========================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  overflow-x: hidden;
}

body {
  background: #f6f6f6;
  color: #111;
  font-family: 'The Seasons', serif;
  line-height: 1.6;
}

/* Evita elementos “rotos” empujando el layout */
img,
video,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =========================================================
   CONTENEDOR
========================================================= */
.container {
  width: 90%;
  max-width: 1300px;
  margin: 0 auto;
}

/* =========================================================
   TIPOGRAFÍAS (clases)
========================================================= */
.font-heading {
  font-family: 'League Spartan', sans-serif;
  letter-spacing: .5px;
}

.font-body {
  font-family: 'The Seasons', serif;
}

/* =========================================================
   HEADER (FIJO)
========================================================= */
:root {
  --header-h-desktop: 88px;
  --header-h-mobile: 70px;
}

.site-header {
  background: #d9d9d9;
  border-bottom: 1px solid #c8c8c8;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  transition: background .3s ease;
}

.site-header:hover {
  background: #c3c3c3;
}

body {
  padding-top: var(--header-h-desktop);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 18px;
}

.logo-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.logo-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
}

/* NAV */
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
  padding-left: 0;
  margin: 0;
}

.nav-link {
  color: #000;
  text-decoration: none;
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.nav-link--active {
  font-weight: 700;
}

/* ACTIONS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 0 auto;
}

.icon-link {
  color: #000;
  font-size: 22px;
  transition: opacity .2s ease;
}

.icon-link:hover {
  opacity: .6;
}

/* Carrito */
.cart-toggle {
  border: none;
  background: none;
  font-size: 22px;
  cursor: pointer;
  position: relative;
  padding: 6px;
  /* aire para el badge */
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -10px;
  background: #000;
  color: #fff;
  font-size: 11px;
  border-radius: 999px;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 2px 6px;
}

/* =========================================================
   LOCK SCROLL (modal/carrito)
========================================================= */
body.lock-scroll {
  overflow: hidden;
}

/* =========================================================
   BOTONES (base) + FIX Bootstrap
========================================================= */
.btn {
  border-radius: 4px;
  cursor: pointer;
  font-family: 'League Spartan', sans-serif;
  border: 1px solid #000;
  background: transparent;
  text-decoration: none;

  /* Consistencia cross páginas */
  font-size: 14px;
  line-height: 1;
  padding: 10px 14px;
  height: 42px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: #000 !important;
  border-color: #000 !important;
  color: #fff !important;
}

.btn-outline {
  background: #fff !important;
  border-color: #000 !important;
  color: #000 !important;
}

.btn-primary:disabled,
.btn-primary.disabled,
.btn-primary.btn-disabled {
  background: #bdbdbd !important;
  border-color: #bdbdbd !important;
  color: #fff !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

.btn-outline:disabled,
.btn-outline.disabled,
.btn-outline.btn-disabled {
  background: #f2f2f2 !important;
  border-color: #cfcfcf !important;
  color: #777 !important;
  opacity: 1 !important;
  cursor: not-allowed !important;
}

/* Acciones de cards */
.card-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.card-actions .btn {
  width: 170px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .card-actions .btn {
    width: 150px;
  }
}

/* =========================================================
   BANDAS DE SECCIÓN (títulos iguales en todas las páginas)
========================================================= */
.section-label {
  padding: 60px 0 25px;
  text-align: center;
}

.section-label h1,
.section-label h2 {
  font-size: 28px;
  font-weight: 600;
  color: #000;
  font-family: 'League Spartan', sans-serif;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.section-label::after {
  content: "";
  display: block;
  width: 55px;
  height: 1px;
  background: #000;
  margin: 12px auto 0;
  opacity: 0.5;
}

@media (max-width: 820px) {
  body {
    padding-top: var(--header-h-mobile);
  }

  .section-label h1,
  .section-label h2 {
    font-size: 22px;
  }
}

/* =========================================================
   GRILLA + CARDS (base)
========================================================= */
.productos-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.producto-card,
.product-card {
  background: #fff;
  padding: 18px;
  border-radius: 10px;
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
}

.producto-card:hover,
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .08);
}

/* Imagen de cards: consistente */
.producto-img,
.product-card img {
  width: min(300px, 100%);
  height: 300px;
  object-fit: cover;
  border-radius: 6px;
  margin: 0 auto 15px;
  display: block;
}

.producto-card h3,
.product-card h3 {
  font-family: 'League Spartan', sans-serif;
  font-size: 16px;
  margin-top: 12px;
  margin-bottom: 6px;
  font-weight: 400;
}

.precio {
  font-size: 15px;
  margin-bottom: 14px;
  font-weight: 400;
}

/* Badge agotado */
.badge-agotado {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #000;
  color: #fff;
  font-family: 'League Spartan', sans-serif;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0.9;
}

.btn-disabled {
  opacity: .45;
  pointer-events: none;
}

/* =========================================================
   MODAL PRODUCTO
========================================================= */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  z-index: 980;
}

.product-modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.96);
  width: 90%;
  max-width: 900px;
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, transform .3s ease;
  z-index: 990;
}

.product-modal.active {
  opacity: 1;
  pointer-events: all;
  transform: translate(-50%, -50%) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
}

.product-modal-content {
  display: flex;
  gap: 30px;
}

.product-modal-image {
  position: relative;
}

.product-modal-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 8px;
  object-fit: contain;
}

.product-modal-price {
  font-size: 22px;
  margin: 12px 0;
}

.product-modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 820px) {
  .product-modal-content {
    flex-direction: column;
  }

  .product-modal-actions {
    flex-direction: column;
  }

  .product-modal-actions .btn {
    width: 100%;
  }
}

/* ===== Galería modal: puntitos ===== */
.modal-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .55);
  border: 1px solid rgba(0, 0, 0, .25);
  cursor: pointer;
  padding: 0;
}

.modal-dot.active {
  background: #fff;
}

/* ===== Detalles producto en modal ===== */
.modal-product-meta {
  margin-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, .12);
  padding-top: 12px;
  display: block;
}

.modal-product-meta .meta-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 6px 0;
}

.modal-product-meta .meta-k {
  font-family: 'League Spartan', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: .7;
  white-space: nowrap;
}

.modal-product-meta .meta-v {
  font-family: 'The Seasons', serif;
  font-size: 14px;
  text-align: right;
  flex: 1;
}

/* =========================================================
   CARRITO LATERAL (premium)
========================================================= */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  opacity: 0;
  pointer-events: none;
  display: block;
  transition: opacity .22s ease;
  backdrop-filter: blur(0px);
  z-index: 2000 !important;
}

.cart-overlay.active {
  opacity: 1;
  pointer-events: all;
  backdrop-filter: blur(3px);
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(380px, 100%);
  height: 100%;
  background: #fff;
  transform: translateX(100%);
  transition: transform .28s ease;
  z-index: 2001 !important;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header {
  padding: 22px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, .15);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.cart-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 500;
  text-transform: uppercase;
}

.cart-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  opacity: .6;
}

.cart-close:hover {
  opacity: 1;
}

.cart-items {
  list-style: none;
  padding: 0 20px;
  margin: 0;
}

.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
  align-items: center;
}

.cart-item img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item-info {
  flex: 1;
}

.cart-item-info h4 {
  font-size: 14px;
  margin-bottom: 8px;
  font-weight: 400;
}

.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-qty button {
  width: 26px;
  height: 26px;
  border: 1px solid #000;
  background: none;
  cursor: pointer;
}

.cart-price {
  display: block;
  margin-top: 8px;
  font-weight: 400;
}

.cart-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  opacity: .6;
  transition: opacity .2s ease;
}

.cart-remove:hover {
  opacity: 1;
}

/* vacío */
.cart-empty {
  padding: 30px 20px;
  text-align: center;
}

.cart-empty-text {
  border: 1px solid rgba(0, 0, 0, .25);
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.cart-empty-icon {
  font-size: 16px;
  opacity: .7;
}

/* footer carrito */
.cart-footer {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cart-total-row {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.cart-total-row span {
  font-weight: 400;
}

#cart-total {
  font-weight: 700;
}

#cart-instagram {
  width: 90%;
  max-width: 280px;
  margin-top: 20px;
  padding: 16px !important;
  background: #000;
  color: #fff;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  line-height: 1;
}

#cart-instagram:hover {
  opacity: .85;
}

.cart-help {
  margin-top: 12px;
  font-size: 13px;
  opacity: 0.75;
  text-align: center;
  line-height: 1.5;
  max-width: 300px;
}

/* =========================================================
   FEEDBACK: pop contador + toast
========================================================= */
.cart-count.pop {
  animation: cartPop 220ms ease-out;
}

@keyframes cartPop {
  0% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.35);
  }

  100% {
    transform: scale(1);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.92);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  font-family: 'The Seasons', serif;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
  z-index: 5000;
  /* ✅ por encima del modal */
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

.toast i {
  font-size: 18px;
}

/* =========================================================
   BOTÓN FLOTANTE INSTAGRAM
========================================================= */
.instagram-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 27px;
  text-decoration: none;
  z-index: 1000;
}

.instagram-float:hover {
  transform: scale(1.05);
  opacity: .85;
}

/* =========================================================
   FOOTER PRO
========================================================= */
.site-footer {
  background: #d9d9d9;
  border-top: 1px solid rgba(0, 0, 0, .12);
  padding: 44px 0 22px;
  margin-top: 70px;
  text-align: center;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.footer-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin: 0;
}

.footer-link {
  font-family: 'The Seasons', serif;
  font-size: 13px;
  color: #000;
  text-decoration: none;
  opacity: .75;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-text {
  font-family: 'The Seasons', serif;
  font-size: 13px;
  opacity: .75;
  margin: 0;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-social a {
  color: #000;
  font-size: 20px;
  opacity: .75;
  transition: opacity .2s ease, transform .2s ease;
}

.footer-social a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, .10);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-copy {
  font-family: 'The Seasons', serif;
  font-size: 12px;
  opacity: .65;
  margin: 0;
}

.footer-dev {
  font-family: 'The Seasons', serif;
  font-size: 11px;
  opacity: .45;
  margin: 0;
}

@media (max-width: 820px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* =========================================================
   MOBILE HEADER (una sola fila + grid)
========================================================= */
@media (max-width: 820px) {
  .header-inner {
    display: grid;
    grid-template-columns: 52px 1fr auto;
    /* logo | nav | carrito */
    align-items: center;
    gap: 10px;
    padding: 12px 0;
    flex-wrap: nowrap;
  }

  .logo-img {
    width: 52px;
    height: 52px;
  }

  /* ocultamos IG arriba (ya hay botón flotante) */
  .header-actions .icon-link {
    display: none;
  }

  .nav-list {
    gap: 14px;
    justify-content: center;
  }

  .nav-link {
    font-size: 13px;
    letter-spacing: .6px;
    padding: 0 !important;
    margin: 0 !important;
  }

  .cart-count {
    top: -2px;
    right: -6px;
  }
}

@media (max-width: 360px) {
  .nav-list {
    gap: 10px;
  }

  .nav-link {
    font-size: 12px;
  }
}

/* =========================================================
   SECCIÓN SILENCIOSA (index)
========================================================= */
.silent-section {
  padding: 46px 0 10px;
}

.silent-inner {
  text-align: center;
  max-width: 820px;
}

.silent-text {
  font-family: 'The Seasons', serif;
  font-size: 16px;
  opacity: .78;
  margin: 0 auto 14px;
}

.silent-divider {
  width: 60px;
  height: 1px;
  background: #000;
  opacity: .25;
  margin: 0 auto;
}

@media (max-width: 820px) {
  .silent-section {
    padding: 36px 0 8px;
  }

  .silent-text {
    font-size: 15px;
    padding: 0 12px;
  }
}

/* =========================================================
   FIX MODAL MOBILE (no cortado + por encima del header)
========================================================= */
@media (max-width: 820px) {
  .product-modal-overlay {
    z-index: 3000 !important;
  }

  .product-modal {
    z-index: 3001 !important;
    top: 12px;
    left: 50%;
    width: calc(100% - 24px);
    max-width: 520px;

    transform: translateX(-50%) !important;

    height: calc(100vh - 24px);
    max-height: none;

    overflow: auto;
    padding: 18px;
  }

  .product-modal.active {
    transform: translateX(-50%) !important;
  }

  .modal-close {
    position: sticky;
    top: 0;
    margin-left: auto;
    z-index: 5;
    background: #fff;
    padding: 6px 8px;
    border-radius: 8px;
  }

  .product-modal-image img {
    max-height: 42vh;
    object-fit: contain;
  }
}

/* =========================================================
   FIX FINAL: tipografía MODAL (igual en todas las páginas)
========================================================= */

/* Título producto en modal */
.product-modal h2,
.product-modal h3 {
  font-family: 'The Seasons', serif;
  font-size: 24px;
  /* MÁS grande que el precio */
  font-weight: 400;
  /* SIN negrita */
  margin-bottom: 6px;
}

/* Precio en modal */
.product-modal-price {
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 14px;
}

/* Texto descripción modal */
.product-modal p {
  font-size: 15px;
  line-height: 1.6;
}

/* Mobile: ajustamos un poco */
@media (max-width: 820px) {

  .product-modal h2,
  .product-modal h3 {
    font-size: 22px;
  }

  .product-modal-price {
    font-size: 17px;
  }
}

/* Contenedor de imagen */
.producto-img,
.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  /* marco cuadrado */
  object-fit: contain;
  /* NO corta, NO estira */
  background: #f2f2f2;
  /* fondo neutro elegante */
  border-radius: 6px;
}

/* ===== Galería modal: flechas + dots ===== */
.product-modal-image {
  position: relative;
}

.modal-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .18);
  background: rgba(255, 255, 255, .92);
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .08);
}

.modal-arrow:hover {
  opacity: .9;
}

.modal-arrow.prev {
  left: 10px;
}

.modal-arrow.next {
  right: 10px;
}

.modal-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
  box-shadow: none;
}

.modal-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 6;
}

.modal-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(0, 0, 0, .20);
  cursor: pointer;
  padding: 0;
}

.modal-dot.active {
  background: #000;
}

/* (opcional) en mobile un poco más chicas */
@media (max-width: 820px) {
  .modal-arrow {
    width: 38px;
    height: 38px;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.producto-card,
.product-card {
  animation: fadeInUp 0.35s ease both;
}