/* ===== TUOMUEBLE — ESTILOS PRINCIPALES ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --dorado: #8B6914;
  --dorado-claro: #c9a84c;
  --crema: #f5f4f0;
  --crema-oscuro: #e8e5dc;
  --texto: #2d2d2d;
  --texto-suave: #6b6560;
  --blanco: #ffffff;
  --verde-wa: #25D366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--crema);
  color: var(--texto);
  line-height: 1.6;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== HEADER ===== */
#main-header {
  background: var(--texto);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 2px;
}

.logo-a { color: var(--dorado-claro); }
.logo-todo { color: #fff; }
.logo-mueble { color: #fff; }
.logo-dot { color: var(--dorado-claro); }
.logo-img {
  max-width: 170px;
  max-height: 46px;
  object-fit: contain;
}

.tagline {
  color: #999;
  font-size: 12px;
  flex: 1;
  letter-spacing: 0.3px;
}

.main-nav { display: flex; align-items: center; gap: 20px; }

.nav-link {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color .2s;
}
.nav-link:hover { color: var(--dorado-claro); }

/* Super Ofertas activas: resaltado en el nav */
.nav-link.nav-ofertas-activas {
  color: var(--dorado-claro);
  position: relative;
}
.nav-link.nav-ofertas-activas::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  background: var(--dorado-claro);
  border-radius: 50%;
  animation: nav-oferta-pulse 1.8s ease-in-out infinite;
}
@keyframes nav-oferta-pulse {
  0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
  50% { opacity: 0.5; transform: translateX(-50%) scale(1.5); }
}

.nav-admin {
  color: #555;
  text-decoration: none;
  font-size: 18px;
  transition: color .2s;
  padding: 4px;
}
.nav-admin:hover { color: var(--dorado-claro); }

/* ===== HERO ===== */
.hero {
  background: var(--texto);
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(139,105,20,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.1) 0%, transparent 40%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 600px; margin: 0 auto; }

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.hero-accent { color: var(--dorado-claro); }

.hero-sub {
  color: #bbb;
  font-size: 16px;
  margin-bottom: 32px;
}

.btn-hero {
  display: inline-block;
  background: var(--dorado);
  color: #fff;
  text-decoration: none;
  padding: 14px 36px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  transition: background .2s, transform .2s;
}
.btn-hero:hover { background: var(--dorado-claro); transform: translateY(-2px); }

/* ===== FILTROS LÍNEAS ===== */
.filtros-section {
  padding: 60px 20px;
  background: var(--blanco);
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--texto);
}

.lineas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.linea-card {
  background: var(--crema);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 28px 20px;
  cursor: pointer;
  text-align: center;
  transition: all .25s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
}

.linea-card:hover {
  border-color: var(--dorado);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(139,105,20,0.15);
}

.linea-card.active {
  background: var(--texto);
  border-color: var(--texto);
  color: #fff;
}

.linea-icon { font-size: 32px; }
.linea-nombre { font-size: 17px; font-weight: 600; }
.linea-desc { font-size: 13px; color: #888; }
.linea-card.active .linea-desc { color: #bbb; }

/* ===== FILTROS CATEGORÍA ===== */
.categoria-filtros {
  background: var(--crema-oscuro);
  padding: 20px;
  position: sticky;
  top: 57px;
  z-index: 90;
  border-bottom: 1px solid #ddd;
}

.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.cat-tab {
  background: transparent;
  border: 1.5px solid #ccc;
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  color: var(--texto-suave);
  transition: all .2s;
}

.cat-tab:hover { border-color: var(--dorado); color: var(--dorado); }

.cat-tab.active {
  background: var(--dorado);
  border-color: var(--dorado);
  color: #fff;
  font-weight: 500;
}

.subfiltros {
  max-width: 1200px;
  margin: 12px auto 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sub-label { font-size: 13px; color: #888; margin-right: 4px; }

.sub-btn {
  background: transparent;
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 5px 14px;
  font-size: 13px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  color: var(--texto-suave);
  transition: all .2s;
}

.sub-btn:hover { border-color: var(--dorado); color: var(--dorado); }

.sub-btn.active {
  background: var(--texto);
  border-color: var(--texto);
  color: #fff;
}

/* ===== CATÁLOGO ===== */
.catalogo-section { padding: 60px 20px; }

.catalogo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 16px;
}

.busqueda {
  position: relative;
  display: flex;
  align-items: center;
}

#buscador {
  padding: 10px 40px 10px 16px;
  border: 1.5px solid #ddd;
  border-radius: 24px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  width: 240px;
  transition: border-color .2s;
}

#buscador:focus { outline: none; border-color: var(--dorado); }

.buscar-icon {
  position: absolute;
  right: 12px;
  font-size: 16px;
}

/* ===== GRID DE MUEBLES ===== */
.muebles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.mueble-card {
  background: var(--blanco);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform .25s, box-shadow .25s;
  display: flex;
  flex-direction: column;
  animation: fadeInUp .4s ease both;
}

.mueble-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.12);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Galería de fotos de la card */
.card-galeria {
  position: relative;
  width: 100%;
  height: 220px;
  background: #f0ede6;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.card-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .3s;
  position: absolute;
  top: 0; left: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.card-foto.hidden { opacity: 0; pointer-events: none; }

.foto-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.foto-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background .2s;
}

.foto-dot.active { background: #fff; }

.foto-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.35);
  color: #fff;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  opacity: 0;
}

.card-galeria:hover .foto-nav { opacity: 1; }
.foto-nav:hover { background: rgba(0,0,0,0.6); }
.foto-nav.prev { left: 8px; }
.foto-nav.next { right: 8px; }

.foto-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #ccc;
}

/* Badges de la card */
.card-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-linea {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.badge-linea.economica { background: rgba(3,105,161,0.85); color: #fff; }
.badge-linea.media { background: rgba(124,58,237,0.85); color: #fff; }
.badge-linea.premium { background: rgba(139,105,20,0.9); color: #fff; }

.badge-estado {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

.badge-estado.disponible { background: rgba(22,163,74,0.85); color: #fff; }
.badge-estado.pedido { background: rgba(234,179,8,0.85); color: #fff; }

/* Cuerpo de la card */
.card-body {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--texto);
}

.card-cat {
  font-size: 12px;
  color: #999;
  text-transform: capitalize;
  margin-bottom: 10px;
}

.card-desc {
  font-size: 13px;
  color: var(--texto-suave);
  line-height: 1.5;
  flex: 1;
}

.card-precio {
  font-size: 20px;
  font-weight: 600;
  color: var(--dorado);
  margin-top: 12px;
}

.btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--verde-wa);
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  margin-top: 14px;
  transition: background .2s, transform .2s;
}

.btn-whatsapp:hover { background: #1ea952; transform: scale(1.02); }

.wa-icon { font-size: 18px; }

/* ===== LOADING / EMPTY ===== */
.loading {
  text-align: center;
  color: #999;
  padding: 60px;
  grid-column: 1/-1;
  font-size: 16px;
}

.no-resultados {
  text-align: center;
  color: #999;
  padding: 60px;
  font-size: 16px;
  grid-column: 1/-1;
}

/* ===== CONTACTO ===== */
.contacto-section {
  background: var(--texto);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
}

.contacto-section .section-title { color: #fff; }

.contacto-section p {
  color: #bbb;
  margin-bottom: 24px;
  font-size: 16px;
}

.btn-whatsapp-general {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--verde-wa);
  color: #fff;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 500;
  transition: background .2s, transform .2s;
}

.btn-whatsapp-general:hover { background: #1ea952; transform: translateY(-2px); }

/* ===== FOOTER ===== */
.footer {
  background: #1a1a1a;
  color: #666;
  padding: 24px 20px;
  text-align: center;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--dorado-claro);
  margin-bottom: 8px;
}

.footer p { font-size: 13px; }

/* ===== MODAL FOTO AMPLIADA ===== */
.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.modal-visor {
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
  touch-action: none;
}

.modal-content img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  transform-origin: center center;
  will-change: transform;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.modal-content img.zoomed {
  cursor: grab;
}

.modal-content img.arrastrando {
  cursor: grabbing;
  transition: none;
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
}

.modal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.modal-nav button {
  background: rgba(255,255,255,0.2);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

#modal-contador { color: #fff; font-size: 14px; }

.oferta-galeria,
.oferta-foto {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .tagline { display: none; }
  .muebles-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .catalogo-header { flex-direction: column; align-items: flex-start; }
  #buscador { width: 100%; }
  .modal-content { width: 96vw; }
  .modal-visor { height: 76vh; }
}

/* ===== VER MÁS DESCRIPCIÓN ===== */
.card-desc-wrapper { position: relative; }

.card-desc.truncada {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-ver-mas {
  background: none;
  border: none;
  color: var(--dorado);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  transition: color .2s;
}
.btn-ver-mas:hover { color: var(--dorado-claro); }

.footer-admin {
  color: rgba(255,255,255,0.28);
  text-decoration: none;
  margin-left: 6px;
  font-size: 12px;
}

.footer-admin:hover {
  color: rgba(255,255,255,0.55);
}


#elige-linea-msg {
  max-width: 520px;
  margin: 18px auto 0;
  padding: 14px 18px;
  border: 2px solid #c9a24a;
  border-radius: 8px;
  background: #fff7df;
  color: #3b2b12;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

#elige-linea-msg.mensaje-linea-activo {
  animation: resaltarLinea 0.75s ease;
}

@keyframes resaltarLinea {
  0% { transform: scale(1); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
  35% { transform: scale(1.04); box-shadow: 0 12px 32px rgba(201,162,74,0.45); }
  100% { transform: scale(1); box-shadow: 0 8px 22px rgba(0,0,0,0.12); }
}

@media (max-width: 640px) {
  .subfiltros {
    display: none;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 8px;
    padding: 10px 4px 12px;
    margin-top: 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .subfiltros[style*="flex"] {
    display: flex !important;
  }

  .subfiltros::after {
    content: "";
    flex: 0 0 14px;
  }

  .subfiltros .sub-label {
    position: sticky;
    left: 0;
    z-index: 2;
    flex: 0 0 auto;
    padding: 9px 10px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 8px 0 12px rgba(255,255,255,0.96);
    font-weight: 700;
    white-space: nowrap;
  }

  .subfiltros .sub-btn {
    flex: 0 0 auto;
    min-width: max-content;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .subfiltros::-webkit-scrollbar {
    height: 4px;
  }

  .subfiltros::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.22);
    border-radius: 999px;
  }
}


/* ===== AJUSTE MOVIL CATEGORIAS Y SUBCATEGORIAS ===== */
@media (max-width: 640px) {
  .header-inner {
    padding: 10px 12px;
    gap: 8px;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    gap: 14px;
  }

  .categoria-filtros {
    top: 88px;
    padding: 10px 10px 9px;
  }

  .categoria-filtros .container {
    padding: 0;
  }

  .cat-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .cat-tab {
    width: 100%;
    padding: 8px 6px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
  }

  .subfiltros,
  .subfiltros[style*="flex"] {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 7px;
    margin: 9px 0 0;
    padding: 0;
    scroll-snap-type: none;
  }

  .subfiltros .sub-label {
    display: none !important;
  }

  .subfiltros::after {
    content: none !important;
  }

  .subfiltros .sub-btn {
    flex: 1 1 calc(33.333% - 7px);
    min-width: 0;
    padding: 7px 5px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
    scroll-snap-align: none;
  }

  .subfiltros::-webkit-scrollbar {
    display: none;
  }

  .catalogo-section {
    padding-top: 36px;
  }
}

/* ===== CORRECCION MOVIL SUBCATEGORIAS ===== */
@media (max-width: 640px) {
  .subfiltros {
    display: none !important;
  }

  .subfiltros[style*="flex"] {
    display: flex !important;
    flex-wrap: wrap !important;
    overflow: visible !important;
    gap: 7px;
    margin: 9px 0 0;
    padding: 0;
  }

  .subfiltros .sub-label {
    display: none !important;
  }

  .subfiltros .sub-btn {
    flex: 1 1 calc(33.333% - 7px);
    min-width: 0;
    padding: 7px 5px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
  }
}

/* ===== SUBCATEGORIAS MOVIL DESLIZABLES ===== */
@media (max-width: 640px) {
  .subfiltros {
    display: none !important;
  }

  .subfiltros[style*="flex"] {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    gap: 7px;
    margin: 9px 0 0;
    padding: 2px 2px 8px;
    -webkit-overflow-scrolling: touch;
  }

  .subfiltros .sub-label {
    display: none !important;
  }

  .subfiltros .sub-btn {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
    text-align: center;
  }

  .subfiltros::after {
    content: "";
    flex: 0 0 10px;
  }

  .subfiltros::-webkit-scrollbar {
    height: 4px;
  }

  .subfiltros::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.24);
    border-radius: 999px;
  }
}

/* ===== SUBCATEGORIAS MOVIL: DESLIZAR CON DEDO SIN BARRA ===== */
@media (max-width: 640px) {
  .subfiltros[style*="flex"] {
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .subfiltros[style*="flex"]::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
  }
}

/* ===== PORTADA MOVIL VERTICAL ===== */
@media (max-width: 640px) and (orientation: portrait) {
  .hero {
    min-height: 74vh;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: var(--texto);
  }
}

/* ===== AJUSTE PORTADA MOVIL: QUITAR FRANJA NEGRA ALTA ===== */
@media (max-width: 640px) and (orientation: portrait) {
  .hero {
    min-height: auto !important;
    padding: 78px 20px 38px !important;
    background-size: 100% auto !important;
    background-position: center top !important;
    background-repeat: no-repeat !important;
  }
}


.mueble-card.mueble-destacado {
  outline: 3px solid var(--dorado-claro);
  box-shadow: 0 0 0 6px rgba(201,168,76,0.24), 0 12px 28px rgba(0,0,0,0.22);
}

/* ===== MOSTRAR ESLOGAN EN CELULAR ===== */
@media (max-width: 640px) {
  .tagline {
    display: block !important;
    width: 100%;
    order: 2;
    text-align: center;
    color: #cfcfcf;
    font-size: 11px;
    line-height: 1.25;
    margin-top: -2px;
  }

  .main-nav {
    order: 3;
  }
}

/* ===== ESLOGAN MOVIL VERTICAL Y HORIZONTAL ===== */
@media (max-width: 900px) {
  .tagline {
    display: block !important;
    flex: 1 1 auto;
    min-width: 160px;
    text-align: left;
    color: #cfcfcf;
    font-size: 11px;
    line-height: 1.25;
    margin: 0;
  }
}

@media (max-width: 640px) {
  .header-inner {
    align-items: center;
  }

  .logo {
    font-size: 24px;
  }

  .tagline {
    width: auto;
    max-width: 210px;
    order: 1;
    text-align: left;
  }

  .main-nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

/* ===== HEADER CELULAR HORIZONTAL ===== */
@media (max-width: 900px) and (orientation: landscape) {
  .header-inner {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 10px 14px !important;
  }

  .logo {
    font-size: 22px !important;
    flex: 0 0 auto;
  }

  .tagline {
    display: block !important;
    order: 0 !important;
    flex: 1 1 auto;
    min-width: 120px;
    max-width: none;
    text-align: left;
    font-size: 10px;
    line-height: 1.2;
    color: #cfcfcf;
  }

  .main-nav {
    order: 0 !important;
    width: auto !important;
    flex: 0 0 auto;
    justify-content: flex-end !important;
    gap: 12px !important;
  }

  .nav-link {
    font-size: 12px;
    white-space: nowrap;
  }
}

/* ===== HEADER CELULAR VERTICAL: LOGO Y ESLOGAN ALINEADOS ===== */
@media (max-width: 640px) and (orientation: portrait) {
  .header-inner {
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 8px 10px !important;
    padding: 10px 12px !important;
  }

  .logo {
    order: 1;
    flex: 0 0 auto;
    font-size: 23px !important;
  }

  .tagline {
    order: 2 !important;
    display: block !important;
    flex: 1 1 120px;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    text-align: left !important;
    font-size: 10.5px !important;
    line-height: 1.15 !important;
    margin: 0 !important;
    color: #cfcfcf !important;
  }

  .main-nav {
    order: 3 !important;
    width: 100% !important;
    justify-content: center !important;
  }
}

/* ===== AJUSTE FINO ESLOGAN MOVIL VERTICAL ===== */
@media (max-width: 640px) and (orientation: portrait) {
  .tagline {
    transform: translateY(3px);
  }
}

/* ===== AJUSTE FINO GLOBAL ESLOGAN ===== */
.tagline {
  transform: translateY(4px);
}

@media (max-width: 640px) and (orientation: portrait) {
  .tagline {
    transform: translateY(6px) !important;
  }
}

/* ===== SUPER OFERTAS ===== */
.super-ofertas-section {
  padding: 72px 0;
  background: #fff;
}

.super-ofertas-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 28px;
}

.super-ofertas-header p {
  color: #666;
  margin-top: 6px;
}

.btn-alertas-inline {
  border: 0;
  background: #8B6914;
  color: #fff;
  padding: 11px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

.super-ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.oferta-card {
  background: #f8f6ef;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  animation: fadeUp .45s ease both;
}

.oferta-galeria {
  position: relative;
  height: 220px;
  background: #eee8dc;
}

.oferta-foto {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.oferta-foto.hidden {
  display: none;
}

.oferta-body {
  padding: 18px;
}

.oferta-label {
  display: inline-block;
  background: #8B6914;
  color: #fff;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 10px;
}

.oferta-titulo {
  font-size: 20px;
  font-family: 'Playfair Display', serif;
  color: #2d2d2d;
  margin-bottom: 8px;
}

.oferta-desc {
  color: #555;
  line-height: 1.55;
  font-size: 14px;
  white-space: pre-line;
}

.oferta-fecha {
  color: #888;
  font-size: 12px;
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed #ddd;
}

.oferta-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.oferta-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dc2626;
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(220,38,38,0.25);
}

.oferta-precios {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0 12px 0;
}

.oferta-precio-oferta {
  background: #16a34a;
  color: #fff;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 18px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(22,163,74,0.25);
}

.oferta-precio-normal {
  color: #999;
  font-size: 14px;
  text-decoration: line-through;
  padding-left: 16px;
}

.oferta-limite {
  background: #fef3c7;
  color: #92400e;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #fcd34d;
}

.oferta-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  animation: fadeUp .45s ease both;
  transition: transform 0.2s, box-shadow 0.2s;
}

.oferta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.14);
}

.oferta-galeria {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #eee8dc;
  overflow: hidden;
}

@media (max-width: 640px) {
  .super-ofertas-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn-alertas-inline {
    width: 100%;
  }
}


/* ===== FIX: Prevent browser pinch-zoom conflict ===== */
#modal-img {
  touch-action: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ===== BOTÓN HERO SUPER OFERTAS ===== */
.btn-hero-ofertas {
  border: none;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.01em;
  margin-left: 12px;
  background: linear-gradient(135deg, #c0392b 0%, #8B6914 100%);
  animation: pulso-oferta 2.4s ease-in-out infinite;
}
.btn-hero-ofertas:hover {
  background: linear-gradient(135deg, #a93226 0%, #6d510f 100%);
  transform: translateY(-2px);
  animation: none;
}
@keyframes pulso-oferta {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0.0); }
  50%       { box-shadow: 0 0 0 8px rgba(192,57,43,0.22); }
}

/* ===== BOTÓN VOLVER AL CATÁLOGO (desde super ofertas) ===== */
.btn-volver-catalogo {
  border: 2px solid var(--dorado);
  background: transparent;
  color: var(--dorado);
  padding: 9px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.btn-volver-catalogo:hover {
  background: var(--dorado);
  color: #fff;
}

.super-ofertas-footer {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 640px) {
  .btn-hero-ofertas {
    margin-left: 0;
    margin-top: 12px;
    display: block;
    width: 100%;
    text-align: center;
  }
  .btn-volver-catalogo {
    width: 100%;
    margin-top: 8px;
  }
}
