/* 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 { position: relative; padding-top: var(--nav-h, 120px); background: #0d0a16; color: white; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: var(--nav-h, 120px) 0 0 0; background: url('img/portada.jpg') center / cover no-repeat; filter: blur(24px) brightness(0.55) saturate(1.1); transform: scale(1.15); }
.hero-img { position: relative; display: block; height: clamp(300px, 58vh, 600px); }
.hero-img img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.subtitle { font-size: 0.9rem; letter-spacing: 4px; text-transform: uppercase; margin-bottom: 1rem; font-weight: 300; }
.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; }

.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.destacado .img-container { outline: 2px solid var(--text-primary); outline-offset: 6px; }
.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; } }

@media (max-width: 768px) {
  .hero::before { background-image: url('img/portada-movil.jpg'); }
  .hero-img { height: clamp(380px, 64vh, 560px); }
  .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; }
}

.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; }
}

@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: safe 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; } }

/* ===== Sugerencias dentro del visor de producto ===== */
.pv-sug { margin-top: 1.8rem; padding-top: 1.2rem; border-top: 1px solid #ddd; min-width: 0; }
.pv-sug h4 { font-family: var(--font-heading); font-weight: 400; font-style: italic; font-size: 1.05rem; margin-bottom: 0.8rem; }
.pv-sug-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.pv-sug-item { flex: 0 0 104px; scroll-snap-align: start; background: none; border: 0; padding: 0; text-align: left; cursor: pointer; font-family: var(--font-body); color: var(--text-primary); }
.pv-sug-img { display: block; aspect-ratio: 3/4; background: #ece9e4; overflow: hidden; }
.pv-sug-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.pv-sug-item:hover .pv-sug-img img { transform: scale(1.05); }
.pv-sug-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.75rem; line-height: 1.3; margin-top: 6px; min-height: 2.6em; }
.pv-sug-price { display: block; font-size: 0.75rem; color: var(--text-secondary); margin-top: 2px; }
@media (max-width: 768px) { .pv-sug-item { flex-basis: 38%; } }

.ship-accept { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.8rem; line-height: 1.5; color: var(--text-secondary); margin: 0.4rem 0 1rem; cursor: pointer; }
.ship-accept input { margin-top: 0.2rem; flex: 0 0 auto; width: 16px; height: 16px; accent-color: #1a1a1a; }
.ship-accept a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 2px; }

/* ===== Página de políticas ===== */
.legal-nav a { scroll-margin-top: 90px; }
.legal-index { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; margin-top: 1.5rem; }
.legal-index a { color: var(--text-secondary); text-decoration: none; font-size: 0.8rem; letter-spacing: 1.5px; text-transform: uppercase; border-bottom: 1px solid transparent; padding-bottom: 2px; }
.legal-index a:hover { color: var(--text-primary); border-color: var(--text-primary); }
.legal { max-width: 820px; margin: 0 auto; padding: 4rem 6% 5rem; }
.legal section { scroll-margin-top: 110px; padding-bottom: 2.5rem; margin-bottom: 2.5rem; border-bottom: 1px solid #e3e0db; }
.legal section:last-child { border-bottom: 0; margin-bottom: 0; }
.legal h2 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 1.4rem; }
.legal p { font-size: 0.98rem; line-height: 1.85; color: var(--text-secondary); margin-bottom: 1rem; }
.legal p strong { color: var(--text-primary); font-weight: 500; }
.legal a { color: var(--text-primary); text-underline-offset: 3px; }

.pv-desc { font-size: 0.92rem; line-height: 1.75; color: var(--text-secondary); margin: -0.2rem 0 1.3rem; }

/* ===== Guía de tallas ===== */
.size-guide-link { align-self: flex-start; background: none; border: 0; padding: 0; margin: -0.4rem 0 1.2rem; font-family: var(--font-body); font-size: 0.8rem; color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.size-guide-link:hover { color: var(--text-primary); }
.sg-overlay { position: fixed; inset: 0; z-index: 3500; background: rgba(10,10,10,0.6); backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center; padding: 1rem; }
.sg-overlay.open { display: flex; }
.sg-card { position: relative; background: var(--bg-color); width: 100%; max-width: 880px; max-height: 90vh; overflow-y: auto; padding: 2rem 2rem 1.8rem; -webkit-overflow-scrolling: touch; }
.sg-card h2 { font-family: var(--font-heading); font-weight: 400; font-size: 1.7rem; margin-bottom: 1rem; padding-right: 2.5rem; }
.sg-close { position: absolute; top: 12px; right: 16px; background: none; border: 0; font-size: 2rem; line-height: 1; cursor: pointer; color: var(--text-primary); }
.sg-h { font-family: var(--font-heading); font-weight: 400; font-style: italic; font-size: 1.15rem; margin: 1.4rem 0 0.6rem; }
.sg-wrap { overflow-x: auto; border: 1px solid #e3e0db; }
.sg-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; background: #fff; }
.sg-table th, .sg-table td { padding: 0.65rem 0.8rem; text-align: left; border-bottom: 1px solid #ece9e4; white-space: nowrap; }
.sg-table thead th { font-weight: 500; font-size: 0.7rem; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text-secondary); background: #f3f1ed; }
.sg-table tbody th { font-weight: 500; position: sticky; left: 0; background: #faf9f7; }
.sg-table tbody tr:last-child th, .sg-table tbody tr:last-child td { border-bottom: 0; }
.sg-table td small { display: block; font-size: 0.72rem; color: var(--text-secondary); margin-top: 1px; }
.sg-how { margin: 0 0 0.6rem 1.1rem; padding: 0; color: var(--text-secondary); font-size: 0.9rem; line-height: 1.8; }
.sg-note { font-size: 0.85rem; line-height: 1.7; color: var(--text-secondary); margin-top: 0.8rem; }
#tablaTallas .sg-h:first-child { margin-top: 0; }
@media (max-width: 480px) { .sg-card { padding: 1.5rem 1.1rem 1.4rem; } }

/* ===== Favoritos y Compartir ===== */
.fav-btn, .share-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.88); color: #1a1a1a; cursor: pointer; padding: 0; transition: transform 0.2s ease, background 0.2s ease; -webkit-tap-highlight-color: transparent; }
.fav-btn svg, .share-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fav-btn:hover, .share-btn:hover { transform: scale(1.08); background: #fff; }
.fav-btn.on { color: #c0394b; }
.fav-btn.on svg { fill: currentColor; }
.img-container { position: relative; }
.img-container .fav-btn { position: absolute; top: 10px; right: 10px; z-index: 3; }
.img-container .share-btn { position: absolute; top: 54px; right: 10px; z-index: 3; }
.pv-fav { top: 14px; left: 18px; right: auto; width: 42px; height: 42px; background: rgba(255,255,255,0.88); color: #1a1a1a; }
.pv-share { top: 14px; left: 68px; right: auto; width: 42px; height: 42px; background: rgba(255,255,255,0.88); color: #1a1a1a; }
.pv-fav:hover, .pv-share:hover { background: #fff; }
.pv-fav.on { color: #c0394b; }

/* Notificación flotante (Toast) al copiar enlace */
.share-toast {
    position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 16px);
    background: var(--text-primary); color: #fff; padding: 0.7rem 1.4rem;
    font-family: var(--font-body); font-size: 0.82rem; letter-spacing: 1px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.28); z-index: 5000;
    opacity: 0; pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease;
}
.share-toast.show { opacity: 1; transform: translate(-50%, 0); }

.fav-nav { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; display: inline-flex; align-items: center; gap: 2px; position: relative; }
.fav-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav-nav .cart-badge:not(.has) { opacity: 0.45; }
.fav-items { flex: 1; overflow-y: auto; padding: 1rem 1.6rem; }
.fav-item { display: flex; align-items: center; gap: 0.9rem; padding: 0.8rem 0; border-bottom: 1px solid #e3e0db; }
.fav-thumb { flex: 0 0 64px; width: 64px; aspect-ratio: 3/4; padding: 0; border: 0; background: #ece9e4; cursor: pointer; overflow: hidden; }
.fav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fav-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fav-name { background: none; border: 0; padding: 0; text-align: left; font-family: var(--font-body); font-size: 0.9rem; line-height: 1.4; color: var(--text-primary); cursor: pointer; }
.fav-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.fav-price { font-size: 0.82rem; color: var(--text-secondary); }
.fav-remove { flex: 0 0 auto; background: transparent; }
#favWa:disabled { opacity: 0.4; cursor: default; }
@media (hover: none) { .fav-btn:hover, .share-btn:hover { transform: none; } }
@media (max-width: 768px) {
  .img-container .fav-btn, .img-container .share-btn { width: 32px; height: 32px; right: 7px; }
  .img-container .fav-btn { top: 7px; }
  .img-container .share-btn { top: 44px; }
  .fav-btn svg, .share-btn svg { width: 16px; height: 16px; }
  .pv-fav { top: 10px; left: 10px; width: 36px; height: 36px; }
  .pv-share { top: 10px; left: 52px; width: 36px; height: 36px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== Carruseles laterales de la portada ===== */
.hero { --hero-h: clamp(300px, 58vh, 600px); }
.hero-img { height: var(--hero-h); }
.hero-side {
  position: absolute; top: var(--nav-h, 120px); height: var(--hero-h); z-index: 2; box-sizing: border-box;
  width: calc((100% - var(--hero-h) * 1920 / 1072) / 2); padding: 14px clamp(10px, 1.2vw, 20px) 0;
  display: flex; flex-direction: column; align-items: center;
}
.hero-side[hidden] { display: none; }
.hero-side-l { left: 0; }
.hero-side-r { right: 0; }
.hs-label { color: #fff; font-size: 0.72rem; letter-spacing: 3px; text-transform: uppercase; opacity: 0.85; margin-bottom: 10px; white-space: nowrap; }
.hs-viewport {
  flex: 1; width: 100%; max-width: 300px; overflow: hidden; min-height: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}
.hs-track { display: flex; flex-direction: column; animation: hsUp var(--hs-dur, 30s) linear infinite; will-change: transform; }
.hero-side-r .hs-track { animation-name: hsDown; }
.hero-side:hover .hs-track, .hero-side:focus-within .hs-track { animation-play-state: paused; }
.hs-group { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; }
@keyframes hsUp   { from { transform: translateY(0); }    to { transform: translateY(-50%); } }
@keyframes hsDown { from { transform: translateY(-50%); } to { transform: translateY(0); } }
.hs-card { display: block; text-decoration: none; color: #fff; }
.hs-img { aspect-ratio: 3 / 4; overflow: hidden; background: rgba(255,255,255,0.08); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.hs-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.hs-card:hover .hs-img img { transform: scale(1.05); }
.hs-name { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; margin-top: 8px; font-size: 0.9rem; line-height: 1.3; }
.hs-price { display: block; font-family: var(--font-heading); font-size: 0.95rem; opacity: 0.8; }
@media (max-width: 768px) { .hero-side { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hs-track { animation: none; }
  .hs-viewport { overflow-y: auto; scrollbar-width: none; }
  .hs-group[aria-hidden="true"] { display: none; }
}

/* ===== Reseñas de clientas ===== */
.resenas-section { padding: 5rem 5% 4rem; max-width: 1400px; margin: 0 auto; }
.resenas-section[hidden] { display: none; }
.res-resumen { color: var(--text-secondary); font-size: 0.95rem; }
.res-stars { color: #C9A24B; letter-spacing: 2px; }
.res-wrap { display: flex; align-items: center; gap: 12px; margin-top: 2rem; }
.res-track { flex: 1; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 14px; }
.res-track::-webkit-scrollbar { display: none; }
.res-card { flex: 0 0 min(340px, 82%); scroll-snap-align: start; box-sizing: border-box; background: #fff; border: 1px solid rgba(0,0,0,0.06); padding: 1.4rem; display: flex; flex-direction: column; gap: 0.8rem; }
.res-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.res-text { font-size: 0.95rem; line-height: 1.7; color: var(--text-primary); }
.res-meta { margin-top: auto; font-size: 0.8rem; color: var(--text-secondary); }
.res-meta strong { display: block; color: var(--text-primary); font-size: 0.9rem; font-weight: 500; }
.res-prod { display: block; margin-top: 4px; background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; cursor: pointer; text-align: left; }
.res-cta { text-align: center; margin-top: 2rem; }
@media (max-width: 768px) { .res-flecha { display: none; } .resenas-section { padding: 3.5rem 5% 3rem; } }

/* ===== Reseñas por prenda ===== */
.rating { display: inline-flex; align-items: center; gap: 5px; margin: 2px 0 8px; font-size: 0.85rem; color: var(--text-secondary); }
.rating b { color: var(--text-primary); font-weight: 500; }
.rating small { opacity: 0.75; }
.pv-res { margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid rgba(0,0,0,0.08); }
.pv-res h4 { font-family: var(--font-heading); font-size: 1.05rem; margin: 0 0 4px; }
.pv-res-sum { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 10px; }
.pv-res-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 10px; }
.pv-res-item { display: flex; flex-direction: column; gap: 6px; padding-bottom: 14px; border-bottom: 1px dashed rgba(0,0,0,0.1); }
.pv-res-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pv-res-item img { width: 100%; max-width: 220px; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.pv-res-item p { font-size: 0.9rem; line-height: 1.6; margin: 0; }
.pv-res-by { font-size: 0.78rem; color: var(--text-secondary); }

.stars { display: inline-block; font-size: 1.05rem; letter-spacing: 2px; line-height: 1; background: linear-gradient(90deg, #C9A24B var(--p, 0%), #D9D5CF var(--p, 0%)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.pv-rating { display: block; background: none; border: 0; padding: 0; margin: 2px 0 6px; font: inherit; cursor: pointer; text-align: left; }
.pv-rating .rating { margin: 0; }
.pv-res-top { display: flex; align-items: center; gap: 14px; margin: 6px 0 10px; }
.pv-res-avg { font-family: var(--font-heading); font-size: 2.6rem; line-height: 1; }
.pv-res-count { font-size: 0.85rem; color: var(--text-secondary); margin-top: 4px; }
.pv-res-bars { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; max-width: 320px; }
.pv-res-bars .bar { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: var(--text-secondary); }
.pv-res-bars .bar span { width: 22px; }
.pv-res-bars .bar i { flex: 1; height: 6px; background: #E6E2DC; border-radius: 3px; overflow: hidden; }
.pv-res-bars .bar b { display: block; height: 100%; background: #C9A24B; }
.pv-res-bars .bar em { width: 18px; text-align: right; font-style: normal; }

/* ===== Menú lateral (celular) ===== */
.menu-btn { display: none; width: 40px; height: 40px; padding: 0; background: none; border: 0; cursor: pointer; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }
.menu-btn span:nth-child(2) { width: 15px; }
.drawer-overlay { position: fixed; inset: 0; z-index: 2100; background: rgba(10,10,10,0.5); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 340px); z-index: 2101; background: var(--bg-color); display: flex; flex-direction: column; box-shadow: 8px 0 30px rgba(0,0,0,0.15); transform: translateX(-100%); visibility: hidden; transition: transform 0.35s ease, visibility 0s linear 0.35s; }
.drawer.open { transform: none; visibility: visible; transition: transform 0.35s ease, visibility 0s; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 0.9rem 1.2rem; border-bottom: 1px solid rgba(0,0,0,0.07); }
.drawer-head .logo { font-size: 1.5rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1.2rem 1.2rem calc(1.4rem + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 1.5rem; }
.drawer-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.drawer-links { display: flex; flex-direction: column; }
.drawer-links a { font-family: var(--font-heading); font-size: 1.35rem; color: var(--text-primary); text-decoration: none; padding: 0.75rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.drawer-group a { display: block; padding: 0.45rem 0; font-size: 0.92rem; color: var(--text-secondary); text-decoration: none; }
.drawer .search-input { width: 100%; margin: 0; box-sizing: border-box; padding: 0.7rem 0.8rem; font-size: 1rem; border: 1px solid rgba(0,0,0,0.2); background: #fff; }
.drawer .search-input:focus { width: 100%; border-color: var(--text-primary); }
.drawer .lang-select { width: 100%; margin: 0; padding: 0.7rem 0.6rem; font-size: 0.95rem; border: 1px solid rgba(0,0,0,0.2); background: #fff; color: var(--text-primary); }
.drawer .country-btn { width: 100%; margin: 0; text-align: left; padding: 0.7rem 0.8rem; font-size: 0.9rem; background: #fff; }
@media (min-width: 769px) { .drawer, .drawer-overlay { display: none; } }
@media (max-width: 768px) {
  .has-drawer .navbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0.7rem 4%; }
  .has-drawer .navbar.scrolled { padding: 0.5rem 4%; }
  .has-drawer .nav-links { display: none; }
  .has-drawer .menu-btn { display: flex; grid-column: 1; grid-row: 1; justify-self: start; }
  .has-drawer .navbar .logo { grid-column: 2; grid-row: 1; font-size: 1.5rem; letter-spacing: 2px; }
  .has-drawer .nav-icons { grid-column: 3; grid-row: 1; justify-self: end; display: flex; align-items: center; gap: 1.1rem; }
  .has-drawer .nav-icons a, .has-drawer .nav-icons .fav-nav, .has-drawer .nav-icons .user-nav { margin: 0; }
  .has-drawer .navbar .filtros { grid-column: 1 / -1; grid-row: 2; }
}

/* ===== Botón de Usuario y Modal de Firebase Auth ===== */
.user-nav {
    background: none; border: 0; padding: 0; cursor: pointer; color: var(--text-secondary);
    display: inline-flex; align-items: center; justify-content: center; position: relative;
    margin-right: 0.8rem; transition: color 0.3s;
}
.user-nav:hover { color: var(--text-primary); }
.user-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.user-nav.logged-in { color: var(--text-primary); }
.user-nav.logged-in svg { fill: var(--text-primary); }
.user-nav.logged-in::after {
    content: ''; position: absolute; top: -2px; right: -3px;
    width: 7px; height: 7px; background: #25D366; border-radius: 50%;
}

.auth-overlay {
    position: fixed; inset: 0; z-index: 3600; background: rgba(10,10,10,0.62);
    backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: 1rem;
}
.auth-overlay.open { display: flex; }
.auth-card {
    position: relative; background: var(--bg-color); width: 100%; max-width: 440px;
    max-height: 92vh; overflow-y: auto; padding: 2.4rem 2rem 2rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.auth-close { position: absolute; top: 0.8rem; right: 1rem; }
.auth-card h2 { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 400; margin-bottom: 0.5rem; padding-right: 2rem; }
.auth-sub { color: var(--text-secondary); font-size: 0.9rem; line-height: 1.6; margin-bottom: 1.4rem; }

.btn-google {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 0.85rem 1rem; background: #fff; border: 1px solid #ccc; color: var(--text-primary);
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; cursor: pointer;
    transition: border-color 0.25s, background 0.25s;
}
.btn-google:hover { border-color: var(--text-primary); background: #fdfdfc; }

.auth-divider {
    display: flex; align-items: center; text-align: center; color: var(--text-secondary);
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; margin: 1.2rem 0;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; border-bottom: 1px solid rgba(0,0,0,0.1);
}
.auth-divider span { padding: 0 10px; }

.auth-forgot {
    background: none; border: 0; padding: 0; margin: -0.2rem 0 0.6rem;
    font-family: var(--font-body); font-size: 0.78rem; color: var(--text-secondary);
    text-decoration: underline; cursor: pointer;
}
.auth-forgot:hover { color: var(--text-primary); }
.auth-err { min-height: 1.2rem; font-size: 0.82rem; color: #b3261e; margin: 0.3rem 0; }
.auth-ok { min-height: 1.2rem; font-size: 0.82rem; color: #1b7e3c; margin: 0.3rem 0; }
.auth-footer { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid rgba(0,0,0,0.08); text-align: center; }
.auth-switch {
    background: none; border: 0; font-family: var(--font-body); font-size: 0.85rem;
    color: var(--text-secondary); cursor: pointer; padding: 0.3rem;
}
.auth-switch b { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }