/* Variables Profesionales */
:root {
    --bg-color: #F8F7F5;
    --text-primary: #1A1A1A;
    --text-secondary: #5A5A5A;
    --accent: #8E7F71;
    --nav-bg: rgba(248, 247, 245, 0.85);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-color); color: var(--text-primary);
    font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}

/* Navbar */
.navbar {
    position: fixed; top: 0; width: 100%; display: flex; justify-content: space-between; align-items: center;
    padding: 1.5rem 5%; background: var(--nav-bg); backdrop-filter: blur(12px); z-index: 1000;
    transition: all 0.4s ease; border-bottom: 1px solid rgba(0,0,0,0.05);
}
.navbar.scrolled { padding: 1rem 5%; box-shadow: 0 4px 20px rgba(0,0,0,0.03); }
.nav-links a, .nav-icons a { text-decoration: none; color: var(--text-secondary); font-size: 0.9rem; margin: 0 1rem; text-transform: uppercase; letter-spacing: 1px; transition: color 0.3s; }
.nav-links a:hover, .nav-icons a:hover { color: var(--text-primary); }
.logo { font-family: var(--font-heading); font-size: 2rem; font-weight: 600; letter-spacing: 3px; }

/* Selectores y Buscador */
.lang-select {
    background: transparent; border: none; color: var(--text-secondary); font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; letter-spacing: 1px; cursor: pointer; outline: none; margin-right: 1rem; transition: all 0.3s ease;
}
.lang-select:hover { color: var(--text-primary); }

.search-input {
    background: transparent; border: none; border-bottom: 1px solid var(--text-secondary);
    color: var(--text-primary); font-family: var(--font-body); font-size: 0.85rem;
    padding: 4px 5px; margin-right: 1.5rem; outline: none; transition: all 0.4s ease; width: 100px;
}
.search-input:focus { border-bottom-color: var(--text-primary); width: 150px; }
.search-input::placeholder { color: var(--text-secondary); }

/* Botón Carrito Navbar */
.cart-btn { position: relative; }
.cart-badge {
    position: absolute; top: -10px; right: -15px; background: var(--text-primary); color: white;
    font-size: 0.7rem; padding: 2px 6px; border-radius: 50%; font-weight: bold;
}

/* Modal Carrito */
.cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.4);
    z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease;
}
.cart-overlay.active { opacity: 1; pointer-events: all; }
.cart-modal {
    position: fixed; top: 0; right: -450px; width: 400px; max-width: 100%; height: 100vh;
    background: var(--bg-color); z-index: 2001; transition: right 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1); display: flex; flex-direction: column;
}
.cart-modal.active { right: 0; }
.cart-header { display: flex; justify-content: space-between; align-items: center; padding: 2rem; border-bottom: 1px solid rgba(0,0,0,0.1); }
.cart-header h2 { font-family: var(--font-heading); font-size: 1.8rem; }
.close-btn { background: none; border: none; font-size: 2rem; cursor: pointer; color: var(--text-secondary); transition: color 0.3s; }
.close-btn:hover { color: var(--text-primary); }
.cart-items { flex-grow: 1; padding: 2rem; overflow-y: auto; }
.empty-cart { text-align: center; color: var(--text-secondary); font-style: italic; margin-top: 2rem;}
.cart-item { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(0,0,0,0.05); }
.cart-item-info h4 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.cart-item-info p { color: var(--text-secondary); font-size: 0.85rem; margin-bottom: 0.3rem;}
.cart-item-actions { display: flex; align-items: center; gap: 10px; }
.btn-qty { background: #eee; border: none; padding: 5px 10px; cursor: pointer; font-weight: bold; border-radius: 2px;}
.cart-footer { padding: 2rem; border-top: 1px solid rgba(0,0,0,0.1); background: white; }
.cart-total-container { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; }
.w-100 { width: 100%; text-align: center; }

/* Hero */
.hero { height: calc(var(--nav-h, 120px) + clamp(170px, 26vh, 260px)); padding-top: var(--nav-h, 120px); box-sizing: border-box; background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.4)), url('https://images.unsplash.com/photo-1490481651871-ab68de25d43d?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat; display: flex; align-items: center; justify-content: center; text-align: center; color: white; }
.subtitle { font-size: 0.9rem; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 1rem; font-weight: 300; }
.hero-content h1 { font-family: var(--font-heading); font-size: clamp(2rem, 3.6vw, 3.4rem); line-height: 1.1; margin-bottom: 1.5rem; font-style: italic; }
.btn-primary { display: inline-block; padding: 1rem 2.5rem; background-color: white; color: var(--text-primary); text-decoration: none; text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem; border:none; font-weight: 500; cursor: pointer; transition: transform 0.3s, background-color 0.3s; }
.btn-primary:hover { transform: translateY(-3px); background-color: var(--bg-color); }

/* Marquesina & Catálogo */
.marquee { background-color: var(--text-primary); color: var(--bg-color); padding: 1rem 0; overflow: hidden; white-space: nowrap; }
.marquee-content { display: inline-block; animation: scrollText 20s linear infinite; font-size: 0.8rem; letter-spacing: 2px; }
@keyframes scrollText { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.shop-section { scroll-margin-top: calc(var(--nav-h, 120px) + 8px); padding: 3rem 5% 6rem; max-width: 1400px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 1.5rem; }
.section-header h2 { font-family: var(--font-heading); font-size: 2rem; margin-bottom: 0.5rem; }

/* Filtros */
.filtros { display: flex; justify-content: center; flex-wrap: wrap; gap: 1.5rem; margin-bottom: 2rem; }
.btn-filtro { background: none; border: none; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-secondary); cursor: pointer; padding-bottom: 5px; border-bottom: 2px solid transparent; transition: all 0.3s ease; }
.btn-filtro.activo, .btn-filtro:hover { color: var(--text-primary); border-bottom-color: var(--text-primary); }

/* Grid y Productos */
.grid-productos { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2.5rem 1.5rem; }
.producto { transition: opacity 0.5s ease, transform 0.5s ease; }
.producto.hidden { display: none; }
.img-container { position: relative; overflow: hidden; aspect-ratio: 3/4; background-color: #eee; margin-bottom: 1.5rem; cursor: pointer;}
.img-container img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s ease, transform 1.5s ease; }

.producto-info h3 { font-size: 1rem; font-weight: 500; margin-bottom: 5px;}
.precio { display:block; font-family: var(--font-heading); font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 1rem;}

/* Opciones de Talla y Color */
.producto-opciones { display: flex; gap: 10px; margin-bottom: 1.2rem; }
.select-variacion { 
    flex: 1; padding: 8px 5px; border: 1px solid #ddd; background: transparent; 
    font-family: var(--font-body); font-size: 0.8rem; color: var(--text-secondary); outline: none; cursor: pointer;
}
.select-variacion:focus { border-color: var(--text-primary); color: var(--text-primary); }

.btn-comprar { width: 100%; padding: 1rem; background: transparent; border: 1px solid var(--text-primary); color: var(--text-primary); text-transform: uppercase; letter-spacing: 1px; font-size: 0.8rem; cursor: pointer; transition: all 0.4s ease; }
.btn-comprar:hover { background: var(--text-primary); color: white; }

/* Editorial y Footer */
.footer { background-color: var(--text-primary); color: white; padding: 6rem 5% 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 4rem; }
.footer-links a, .footer-social a { display: block; color: #999; text-decoration: none; margin-bottom: 0.8rem; font-size: 0.9rem; transition: color 0.3s; }
.footer-links a:hover, .footer-social a:hover { color: white; }
.footer-bottom { text-align: center; font-size: 0.8rem; color: #666; }

/* Animaciones Generales */
.fade-in { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) { .editorial-section, .footer-grid { grid-template-columns: 1fr; } .filtros { gap: 1rem; } .search-input { width: 80px; margin-right: 0.5rem; } }

/* Enlaces por producto */
.producto-links { display: flex; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; }
.link-sec { font-size: 0.8rem; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.link-sec:hover { color: var(--text-primary); }

/* Botón flotante de WhatsApp */
.wa-float { position: fixed; right: 20px; bottom: 20px; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; z-index: 1500; box-shadow: 0 6px 20px rgba(0,0,0,0.2); transition: transform 0.3s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .marquee-content { animation: none; } .fade-in, .producto { transition: none; } }

/* Editorial */
.editorial-section { padding: 6rem 5%; background-color: #EFECE8; }
.editorial-head { max-width: 640px; margin: 0 auto 3.5rem; text-align: center; }
.editorial-head h2 { font-family: var(--font-heading); font-size: 3rem; margin-bottom: 1.5rem; }
.editorial-head p { font-size: 1.05rem; color: var(--text-secondary); line-height: 1.8; margin-bottom: 2rem; }
.editorial-cta { display: inline-block; width: auto; padding: 1rem 2.5rem; text-decoration: none; }
.editorial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; max-width: 1400px; margin: 0 auto; }
.editorial-card { position: relative; display: block; aspect-ratio: 3/4; overflow: hidden; background: var(--accent); color: white; text-decoration: none; }
.editorial-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s ease; }
.editorial-card:hover img { transform: scale(1.04); }
.editorial-card .titulo { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem 1rem; background: linear-gradient(transparent, rgba(0,0,0,0.65)); font-family: var(--font-heading); font-size: 1.15rem; font-style: italic; }
.editorial-note { text-align: center; margin-top: 2.5rem; font-size: 0.8rem; color: var(--text-secondary); }

.img-container .img-hover { position: absolute; inset: 0; opacity: 0; }
.img-container:hover .img-hover { opacity: 1; }

/* Las portadas ya traen su propio título: se oculta el rótulo sobre la imagen (queda para tarjetas sin imagen) */
.editorial-card .titulo { display: none; }
.editorial-card.sin-img .titulo { display: block; }

/* ===== Subpágina Editorial ===== */
a.logo { text-decoration: none; color: inherit; }
.editorial-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.editorial-cta-solid { background: var(--text-primary); color: #fff; }
.editorial-cta-solid:hover { background: transparent; color: var(--text-primary); }

.ed-hero { padding: 11rem 5% 4rem; text-align: center; background: #EFECE8; }
.ed-hero .subtitle { color: var(--accent); }
.ed-hero h1 { font-family: var(--font-heading); font-size: clamp(3rem, 7vw, 6rem); font-style: italic; font-weight: 400; margin-bottom: 1.5rem; }
.ed-hero p.lead { max-width: 640px; margin: 0 auto 1.5rem; font-size: 1.05rem; line-height: 1.8; color: var(--text-secondary); }
.ed-count { font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase; color: var(--text-secondary); }

.ed-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 3rem 2rem; max-width: 1400px; margin: 0 auto; padding: 5rem 5% 4rem; }
.ed-item { background: none; border: none; padding: 0; text-align: left; cursor: zoom-in; font: inherit; color: inherit; }
.ed-frame { position: relative; overflow: hidden; aspect-ratio: 3/4; background: var(--accent); }
.ed-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s ease; }
.ed-item:hover .ed-frame img, .ed-item:focus-visible .ed-frame img { transform: scale(1.04); }
.ed-cap { display: flex; align-items: baseline; gap: 0.9rem; margin-top: 1rem; }
.ed-num { font-size: 0.75rem; letter-spacing: 2px; color: var(--accent); }
.ed-title { font-family: var(--font-heading); font-style: italic; font-size: 1.25rem; }

.ed-footer-cta { text-align: center; padding: 1rem 5% 6rem; }
.ed-footer-cta .editorial-actions { margin-bottom: 1.5rem; }
.ed-note { font-size: 0.8rem; color: var(--text-secondary); }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 3000; background: rgba(10,10,10,0.94); display: none; align-items: center; justify-content: center; padding: 3.5rem 4rem 5rem; }
.lb.open { display: flex; }
.lb-fig { max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.lb-fig img { max-height: calc(100vh - 11rem); max-width: 100%; width: auto; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,0.5); }
.lb-info { display: flex; align-items: center; gap: 1.5rem; color: #fff; flex-wrap: wrap; justify-content: center; }
.lb-title { font-family: var(--font-heading); font-style: italic; font-size: 1.3rem; }
.lb-ig { color: #ddd; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.lb-ig:hover { color: #fff; }
.lb-btn { position: absolute; background: none; border: none; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; padding: 0.5rem 1rem; opacity: 0.75; transition: opacity 0.3s; }
.lb-btn:hover, .lb-btn:focus-visible { opacity: 1; }
.lb-close { top: 0.8rem; right: 1rem; }
.lb-prev { left: 0.5rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.5rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
  .ed-hero { padding-top: 9rem; }
  .ed-gallery { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .ed-title { font-size: 1rem; }
  .lb { padding: 3.5rem 0.5rem 5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 0.8rem; transform: none; }
  .lb-prev { left: 1rem; } .lb-next { right: 1rem; }
}

/* Producto abierto desde un enlace de pedido (?p=ID) */
.producto.destacado .img-container { outline: 2px solid var(--text-primary); outline-offset: 6px; }

/* Etiqueta de referencia visible en cada prenda (también se puede buscar) */
.ref { display: block; font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }

/* ===== Selector de idioma y país ===== */
.country-btn { background: transparent; border: 1px solid rgba(0,0,0,0.25); color: var(--text-secondary); font-family: var(--font-body); font-size: 0.75rem; font-weight: 500; letter-spacing: 1px; padding: 4px 10px; margin-right: 1rem; cursor: pointer; transition: all 0.3s ease; }
.country-btn:hover { color: var(--text-primary); border-color: var(--text-primary); }
.pref-overlay { position: fixed; inset: 0; z-index: 4000; background: rgba(10,10,10,0.6); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 1rem; }
.pref-overlay.open { display: flex; }
.pref-card { position: relative; background: var(--bg-color); width: 100%; max-width: 440px; max-height: 100%; overflow-y: auto; padding: 2.5rem 2rem 2rem; box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.pref-card h2 { font-family: var(--font-heading); font-size: 1.8rem; margin-bottom: 0.6rem; padding-right: 1.5rem; }
.pref-sub { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.6; margin-bottom: 1.8rem; }
.pref-label { display: block; font-size: 0.75rem; letter-spacing: 2px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.6rem; }
.pref-langs { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 1.5rem; }
.pref-lang { padding: 0.8rem 0.5rem; background: transparent; border: 1px solid #ccc; font-family: var(--font-body); font-size: 0.95rem; color: var(--text-secondary); cursor: pointer; transition: all 0.25s ease; }
.pref-lang:hover { border-color: var(--text-primary); color: var(--text-primary); }
.pref-lang.activo { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }
.pref-select { width: 100%; padding: 0.8rem 0.6rem; border: 1px solid #ccc; background: #fff; font-family: var(--font-body); font-size: 0.95rem; color: var(--text-primary); }
.pref-note { min-height: 1.4rem; margin: 0.8rem 0 1.4rem; font-size: 0.85rem; color: var(--text-secondary); }
.pref-go { width: 100%; padding: 1rem; background: var(--text-primary); color: #fff; border: 1px solid var(--text-primary); text-transform: uppercase; letter-spacing: 1.5px; font-size: 0.8rem; font-family: var(--font-body); cursor: pointer; transition: all 0.3s ease; }
.pref-go:hover:not(:disabled) { background: transparent; color: var(--text-primary); }
.pref-go:disabled { opacity: 0.4; cursor: not-allowed; }
.pref-close { position: absolute; top: 0.6rem; right: 0.9rem; background: none; border: none; font-size: 2rem; line-height: 1; color: var(--text-secondary); cursor: pointer; }
.pref-close:hover { color: var(--text-primary); }
@media (max-width: 768px) { .country-btn { margin-right: 0.5rem; padding: 3px 6px; font-size: 0.7rem; } }

/* Portada compacta: los productos se ven desde el primer vistazo */
@media (max-width: 768px) {
  .hero { height: calc(var(--nav-h, 110px) + 140px); padding-top: var(--nav-h, 110px); }
  .hero-content h1 { font-size: 1.7rem; margin-bottom: 1rem; }
  .hero .subtitle { font-size: 0.7rem; letter-spacing: 3px; margin-bottom: 0.5rem; }
  .hero .btn-primary { padding: 0.7rem 1.6rem; }
  .shop-section { padding-top: 2rem; }
  .section-header p { font-size: 0.9rem; }
  .filtros { margin-bottom: 1.5rem; }
  .grid-productos { grid-template-columns: repeat(2, 1fr); gap: 1.5rem 0.8rem; }
  .img-container { margin-bottom: 0.8rem; }
  .producto-info h3 { font-size: 0.85rem; }
  .producto-opciones { flex-direction: column; gap: 6px; }
  .btn-comprar { padding: 0.8rem 0.5rem; font-size: 0.7rem; }
}

/* Categorías dentro del encabezado (segunda fila de la barra superior) */
.navbar { flex-wrap: wrap; }
.navbar .filtros {
  flex: 0 0 100%; order: 3; justify-content: center; flex-wrap: wrap; gap: 1.5rem;
  margin: 0.7rem 0 0; padding: 0.7rem 0 0; border-top: 1px solid rgba(0,0,0,0.07);
}
.navbar.scrolled .filtros { margin-top: 0.4rem; padding-top: 0.5rem; }
.btn-filtro { white-space: nowrap; flex: 0 0 auto; }
@media (max-width: 768px) {
  .navbar .filtros {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; gap: 1.4rem;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .navbar .filtros::-webkit-scrollbar { display: none; }
}

/* Celular: 2 productos por fila, tarjetas ajustadas a media pantalla */
@media (max-width: 768px) {
  .shop-section { padding-left: 3%; padding-right: 3%; }
  .grid-productos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem 0.7rem; }
  .producto { min-width: 0; }
  .img-container { margin-bottom: 0.6rem; }
  .ref { font-size: 0.6rem; letter-spacing: 1px; margin-bottom: 3px; }
  .producto-info h3 { font-size: 0.78rem; line-height: 1.3; margin-bottom: 4px; min-height: 3.9em;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .precio { font-size: 0.95rem; margin-bottom: 0.6rem; }
  .producto-opciones { flex-direction: column; gap: 5px; margin-bottom: 0.7rem; }
  .select-variacion { width: 100%; min-width: 0; padding: 6px 4px; font-size: 0.75rem; }
  .btn-comprar { padding: 0.7rem 0.3rem; font-size: 0.65rem; letter-spacing: 0.5px; }
  .producto-links { flex-direction: column; gap: 0.3rem; margin-top: 0.6rem; }
  .link-sec { font-size: 0.7rem; }
}

/* ===== Lo nuevo: fila que se desliza sola ===== */
.nuevo-section { max-width: 1400px; margin: 0 auto; padding: 2rem 5% 0; scroll-margin-top: calc(var(--nav-h, 120px) + 8px); }
.nuevo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.nuevo-head h2 { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 400; }
.nuevo-flechas { display: flex; gap: 8px; }
.nuevo-flecha { width: 34px; height: 34px; border: 1px solid rgba(0,0,0,0.2); background: transparent; border-radius: 50%; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--text-primary); transition: all 0.2s; }
.nuevo-flecha:hover { background: var(--text-primary); color: #fff; }
.nuevo-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.nuevo-track::-webkit-scrollbar { display: none; }
.nv-card { flex: 0 0 calc((100% - 3 * 14px) / 4); min-width: 0; scroll-snap-align: start; text-decoration: none; color: inherit; display: block; }
.nv-img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #ece9e4; margin-bottom: 0.6rem; }
.nv-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.nv-card:hover .nv-img img { transform: scale(1.04); }
.nv-badge { position: absolute; top: 8px; left: 8px; background: var(--text-primary); color: #fff; font-size: 0.6rem; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 8px; }
.nv-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.85rem; line-height: 1.3; min-height: 2.6em; }
.nv-price { display: block; font-family: var(--font-heading); font-size: 1rem; color: var(--text-secondary); margin-top: 2px; }
@media (max-width: 1024px) { .nv-card { flex-basis: calc((100% - 2 * 14px) / 3); } }
@media (max-width: 768px) {
  .nuevo-section { padding-top: 1.2rem; }
  .nuevo-head h2 { font-size: 1.3rem; }
  .nuevo-flechas { display: none; }
  .nv-card { flex-basis: calc((100% - 14px) / 2.3); }
  .nv-name { font-size: 0.78rem; }
  .nv-price { font-size: 0.9rem; }
}
@keyframes resalte { 0%, 60% { box-shadow: 0 0 0 3px var(--accent); } 100% { box-shadow: 0 0 0 3px transparent; } }
.producto.resaltado { animation: resalte 2s ease; }

/* ===== Ver producto a lo grande ===== */
.img-container { cursor: zoom-in; }
.pv { position: fixed; inset: 0; z-index: 1500; background: rgba(10,10,10,0.72); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 1.5rem; }
.pv.open { display: flex; }
.pv-card { background: var(--bg-color); width: 100%; max-width: 1000px; max-height: 92vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.pv-media { position: relative; background: #ece9e4; display: flex; flex-direction: column; min-height: 0; }
.pv-zoom { flex: 1; min-height: 0; overflow: hidden; cursor: zoom-in; display: flex; align-items: center; justify-content: center; }
.pv-zoom img { width: 100%; height: 100%; max-height: 92vh; object-fit: contain; display: block; transition: transform 0.25s ease; }
.pv-zoom.zoom { cursor: zoom-out; }
.pv-zoom.zoom img { transform: scale(2.2); }
.pv-thumbs { display: flex; gap: 8px; justify-content: center; padding: 8px; }
.pv-thumbs:empty { display: none; }
.pv-thumbs img { width: 52px; height: 68px; object-fit: cover; opacity: 0.6; cursor: pointer; border: 1px solid transparent; }
.pv-thumbs img.on { opacity: 1; border-color: var(--text-primary); }
.pv-info { padding: 2rem 1.8rem; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
#pvName { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 400; line-height: 1.25; margin: 0.3rem 0 0.6rem; }
.pv-info .precio { font-size: 1.3rem; margin-bottom: 1.2rem; }
.pv-info .producto-opciones { margin-bottom: 1rem; }
.pv-btn { position: absolute; z-index: 2; border: 0; cursor: pointer; color: #fff; background: rgba(0,0,0,0.35); width: 42px; height: 42px; border-radius: 50%; font-size: 1.7rem; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.pv-btn:hover { background: rgba(0,0,0,0.6); }
.pv-close { top: 14px; right: 18px; font-size: 1.8rem; }
.pv-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.pv-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 768px) {
  .pv { padding: 0; align-items: flex-end; }
  .pv-card { display: block; max-height: 94vh; overflow-y: auto; }
  .pv-media { height: 58vh; }
  .pv-info { padding: 1.2rem 1.2rem 1.6rem; }
  #pvName { font-size: 1.2rem; }
  .pv-btn { width: 36px; height: 36px; font-size: 1.4rem; }
  .pv-prev { left: 8px; }
  .pv-next { right: 8px; }
  .pv-close { top: 10px; right: 10px; }
}


/* ===== Datos de envío (paso 2 del carrito) ===== */
.cart-modal { overflow: hidden; }
.ship-panel { position: absolute; inset: 0; z-index: 5; background: var(--bg-color); display: flex; flex-direction: column; transform: translateX(100%); visibility: hidden; transition: transform 0.35s ease, visibility 0s linear 0.35s; }
.ship-panel.open { transform: none; visibility: visible; transition: transform 0.35s ease; }
.ship-form { flex: 1; overflow-y: auto; padding: 1.5rem 2rem 2rem; -webkit-overflow-scrolling: touch; }
.ship-sub { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.2rem; }
.ship-field { display: block; margin-bottom: 1rem; min-width: 0; }
.ship-field span { display: block; font-size: 0.7rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-secondary); margin-bottom: 0.4rem; }
.ship-field input, .ship-field textarea { width: 100%; box-sizing: border-box; padding: 0.7rem 0.6rem; border: 1px solid #ccc; background: #fff; font-family: var(--font-body); font-size: 16px; color: var(--text-primary); border-radius: 0; resize: vertical; }
.ship-field input:focus, .ship-field textarea:focus { outline: none; border-color: var(--text-primary); }
.ship-form.tocado input:required:invalid { border-color: #b3261e; }
.ship-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.ship-saved { font-size: 0.75rem; color: var(--text-secondary); margin: 0.2rem 0 0.8rem; }
.ship-err { min-height: 1.2rem; font-size: 0.85rem; color: #b3261e; margin-bottom: 0.6rem; }
.ship-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.ship-back { background: none; border: none; font-family: var(--font-body); font-size: 0.85rem; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0.4rem; }
.ship-back:hover { color: var(--text-primary); }
@media (max-width: 480px) { .ship-form { padding: 1.2rem 1.2rem 2rem; } .ship-row { grid-template-columns: 1fr; gap: 0; } }
