/* ══════════════════════════════════════════════════════
   JESLY BEAUTY — STYLES
   Paleta: Negro #0a0a0a | Blanco #fafafa | Rosa #e8a0b0
   Fuentes: Cormorant Garamond (serif) + DM Sans (sans)
══════════════════════════════════════════════════════ */

/* ── VARIABLES ── */
:root {
  --black:        #0a0a0a;
  --white:        #fafafa;
  --rose:         #e8a0b0;
  --rose-light:   #f5d6de;
  --rose-dark:    #c4687e;
  --gray-light:   #f2f0ee;
  --gray-mid:     #d4d0cc;
  --gray-dark:    #6b6560;
  --serif:        'Cormorant Garamond', Georgia, serif;
  --sans:         'DM Sans', sans-serif;
  --transition:   0.25s ease;
  --shadow-soft:  0 4px 24px rgba(0,0,0,0.08);
}

/* ── RESET ── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
}
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: var(--sans); }

/* ══════════════════════════════════════════════════════
   PROMO BANNER
══════════════════════════════════════════════════════ */
#promo-banner {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 10px 48px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  position: relative;
  z-index: 200;
  transition: all var(--transition);
}
#promo-banner span { color: var(--rose); font-weight: 500; }
#close-banner {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--white);
  cursor: pointer; font-size: 16px; opacity: 0.5; line-height: 1;
  transition: opacity var(--transition);
}
#close-banner:hover { opacity: 1; }

/* ══════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════ */
#navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,250,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-mid);
  padding: 0 48px;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
  transition: box-shadow var(--transition);
}
#navbar.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.07); }

.nav-logo {
  font-family: var(--serif); font-size: 26px; font-weight: 300;
  letter-spacing: 0.06em; color: var(--black); white-space: nowrap;
}
.nav-logo em { font-style: italic; color: var(--rose-dark); }

.nav-links {
  display: flex; gap: 28px; list-style: none;
}
.nav-links a {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--black); font-weight: 400; position: relative; padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--rose-dark);
  transition: width 0.3s ease;
}
.nav-links a:hover { color: var(--rose-dark); }
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex; align-items: center; gap: 16px;
}

.nav-search {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--gray-mid); border-radius: 24px;
  padding: 7px 16px; transition: border-color var(--transition);
}
.nav-search:focus-within { border-color: var(--rose-dark); }
.nav-search input {
  border: none; outline: none; background: none;
  font-size: 12px; width: 130px; color: var(--black);
}
.nav-search input::placeholder { color: var(--gray-dark); }

.nav-icon-btn {
  background: none; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 4px;
  color: var(--black); position: relative;
  transition: color var(--transition);
}
.nav-icon-btn:hover { color: var(--rose-dark); }

.cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--rose-dark); color: white;
  font-size: 9px; font-weight: 500;
  width: 17px; height: 17px; border-radius: 50%;
  position: absolute; top: -8px; right: -8px;
}

/* Hamburger (mobile) */
.hamburger {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; background: none; border: none; cursor: pointer;
  padding: 4px; width: 28px;
}
.hamburger span {
  display: block; height: 1px; background: var(--black);
  transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed; inset: 0; top: 68px;
  background: var(--white); z-index: 90;
  padding: 40px; flex-direction: column;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { list-style: none; }
.mobile-menu li { border-bottom: 1px solid var(--gray-light); }
.mobile-link {
  display: block; padding: 18px 0;
  font-size: 22px; font-family: var(--serif); font-weight: 300;
  letter-spacing: 0.04em; color: var(--black);
  transition: color var(--transition);
}
.mobile-link:hover { color: var(--rose-dark); }

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
#inicio {
  position: relative; width: 100%; height: 100vh;
  min-height: 600px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

#hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(0.42);
}

.hero-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #111 0%, #2d1420 60%, #111 100%);
}
.hero-placeholder-pattern {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: repeating-linear-gradient(
    45deg, var(--rose) 0, var(--rose) 1px,
    transparent 0, transparent 50%
  );
  background-size: 40px 40px;
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: var(--white);
  padding: 0 20px; max-width: 700px;
  animation: heroIn 1.4s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 18px;
  animation: heroIn 1.2s 0.2s ease both;
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300; line-height: 1.05;
  margin-bottom: 20px;
  animation: heroIn 1.2s 0.35s ease both;
}
.hero-title em { font-style: italic; color: var(--rose); }

.hero-sub {
  font-size: 14px; letter-spacing: 0.03em; line-height: 1.7;
  color: rgba(255,255,255,0.65); margin-bottom: 44px;
  animation: heroIn 1.2s 0.5s ease both;
}

.hero-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: heroIn 1.2s 0.65s ease both;
}

.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: rgba(255,255,255,0.4); font-size: 9px; letter-spacing: 0.25em;
  text-transform: uppercase; z-index: 2;
}

/* ══════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════ */
.btn-primary {
  background: var(--rose-dark); color: var(--white);
  border: none; padding: 13px 36px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; display: inline-block;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: #a8566a; transform: translateY(-2px); }

.btn-outline {
  background: transparent; color: var(--white);
  border: 1px solid rgba(255,255,255,0.45);
  padding: 13px 36px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; display: inline-block;
  transition: border-color var(--transition), color var(--transition);
}
.btn-outline:hover { border-color: var(--rose); color: var(--rose); }

.btn-dark {
  background: var(--black); color: var(--white);
  border: none; padding: 13px 40px;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-dark:hover { background: #222; }

.btn-rose {
  background: var(--rose-dark); color: var(--white);
  border: none; padding: 13px 36px;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; display: inline-block;
  transition: background var(--transition);
}
.btn-rose:hover { background: #a8566a; }

/* ══════════════════════════════════════════════════════
   SECTION UTILS
══════════════════════════════════════════════════════ */
.section-label {
  font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--rose-dark); margin-bottom: 10px; display: block;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 300; line-height: 1.1; margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--rose-dark); }

/* ══════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════ */
#about { padding: 100px 48px; background: var(--white); }

.about-inner {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 80px; align-items: center;
  max-width: 1200px; margin: 0 auto;
}

.about-image-wrap {
  position: relative; flex-shrink: 0;
}
.about-image-wrap::before {
  content: ''; position: absolute;
  top: 18px; left: 18px; right: -18px; bottom: -18px;
  border: 1px solid var(--rose-light); z-index: 0;
  pointer-events: none;
}
.about-img-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(160deg, var(--rose-light) 0%, var(--gray-light) 100%);
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px; color: var(--rose-dark);
  letter-spacing: 0.08em;
}

.about-text .section-title { margin-bottom: 16px; }
.about-text p {
  font-size: 15px; line-height: 1.85; color: var(--gray-dark);
  margin-bottom: 14px;
}
.about-signature {
  font-family: var(--serif); font-size: 28px; font-style: italic;
  color: var(--rose-dark); margin-top: 28px; margin-bottom: 40px;
}

.about-stats {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; margin-top: 0;
}
.about-stat { border-left: 2px solid var(--rose); padding-left: 16px; }
.about-stat-num {
  font-family: var(--serif); font-size: 38px; font-weight: 300;
  color: var(--black); line-height: 1;
}
.about-stat-label {
  font-size: 11px; color: var(--gray-dark);
  letter-spacing: 0.06em; margin-top: 4px;
}

/* ══════════════════════════════════════════════════════
   CATEGORÍAS
══════════════════════════════════════════════════════ */
#categorias { padding: 100px 48px; background: var(--gray-light); text-align: center; }

.categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2px; max-width: 1200px; margin: 56px auto 0;
}
.cat-card {
  background: var(--white); padding: 40px 24px;
  text-align: center; cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  border: 1px solid transparent;
}
.cat-card:hover {
  background: var(--black); transform: translateY(-4px);
  border-color: var(--black);
}
.cat-card:hover h3, .cat-card:hover p { color: var(--white); }
.cat-card:hover .cat-icon { filter: grayscale(0) brightness(1.2); }

.cat-icon { font-size: 36px; margin-bottom: 16px; display: block; }
.cat-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 400; margin-bottom: 6px; transition: color var(--transition); }
.cat-card p { font-size: 12px; color: var(--gray-dark); transition: color var(--transition); }

/* ══════════════════════════════════════════════════════
   TIENDA
══════════════════════════════════════════════════════ */
#tienda { padding: 100px 48px; background: var(--white); }

.shop-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  max-width: 1200px; margin: 0 auto 40px;
}
.shop-header .section-title { margin-bottom: 0; }

.shop-sort select {
  border: 1px solid var(--gray-mid); padding: 8px 16px;
  font-size: 12px; color: var(--black); background: var(--white);
  cursor: pointer; outline: none;
  transition: border-color var(--transition);
}
.shop-sort select:focus { border-color: var(--rose-dark); }

.category-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  max-width: 1200px; margin: 0 auto 40px;
}
.cat-pill {
  padding: 8px 20px; border: 1px solid var(--gray-mid);
  background: var(--white); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer;
  transition: all var(--transition); color: var(--black);
}
.cat-pill:hover, .cat-pill.active {
  background: var(--black); color: var(--white); border-color: var(--black);
}

.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px; max-width: 1200px; margin: 0 auto;
}

/* Product card */
.product-card {
  background: var(--white); position: relative;
  overflow: hidden; cursor: pointer;
  border: 1px solid var(--gray-light);
  transition: box-shadow var(--transition), transform var(--transition);
}
.product-card:hover {
  box-shadow: var(--shadow-soft); transform: translateY(-4px);
}
.product-card:hover .product-overlay { opacity: 1; }
.product-card:hover .product-img img { transform: scale(1.06); }

.product-img {
  aspect-ratio: 1/1.1; overflow: hidden; position: relative;
  background: var(--gray-light);
}
.product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.product-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; aspect-ratio: 1/1.1;
  background: var(--gray-light);
}

.product-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--rose-dark); color: white;
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 10px; z-index: 1;
}
.badge-new { background: var(--black) !important; }
.badge-sale { background: var(--rose-dark); }

.product-overlay {
  position: absolute; inset: 0; background: rgba(10,10,10,0.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--transition); z-index: 2;
}
.add-quick {
  background: var(--white); color: var(--black);
  border: none; padding: 11px 26px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; transition: background var(--transition), color var(--transition);
}
.add-quick:hover { background: var(--rose-dark); color: white; }

.product-info { padding: 16px; }
.product-name { font-size: 14px; font-weight: 400; margin-bottom: 4px; }
.product-cat {
  font-size: 10px; color: var(--gray-dark);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px;
}
.price-row { display: flex; align-items: baseline; gap: 8px; }
.price { font-family: var(--serif); font-size: 20px; color: var(--black); }
.price-old { font-size: 12px; color: var(--gray-dark); text-decoration: line-through; }
.price-sale { color: var(--rose-dark) !important; }

/* No results */
.no-results {
  grid-column: 1/-1; text-align: center;
  padding: 60px; color: var(--gray-dark); font-family: var(--serif);
  font-size: 22px; font-style: italic;
}

/* ══════════════════════════════════════════════════════
   OFERTAS
══════════════════════════════════════════════════════ */
#ofertas { padding: 100px 48px; background: var(--black); }

.offers-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: #1e1e1e;
  max-width: 960px; margin: 56px auto 0;
}
.offer-card {
  background: var(--black); padding: 52px 32px; text-align: center;
  transition: background var(--transition);
  border: 1px solid #1e1e1e;
}
.offer-card:hover, .offer-card.highlight { background: #111; }
.offer-card.highlight { border: 1px solid var(--rose-dark); }

.offer-pct {
  font-family: var(--serif); font-size: 80px; font-weight: 300;
  color: var(--rose); line-height: 1;
}
.offer-title {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--white); margin-top: 12px;
}
.offer-sub { font-size: 12px; color: rgba(255,255,255,0.35); margin-top: 6px; }

/* ══════════════════════════════════════════════════════
   TESTIMONIOS
══════════════════════════════════════════════════════ */
#testimonios { padding: 100px 48px; background: var(--gray-light); }

.testimonios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2px; max-width: 1100px; margin: 56px auto 0;
}
.testimonio-card {
  background: var(--white); padding: 44px 36px;
  transition: border-color var(--transition);
  border: 1px solid var(--gray-mid);
}
.testimonio-card:hover, .testimonio-card.featured {
  border-color: var(--rose);
}
.stars {
  color: var(--rose); font-size: 14px; letter-spacing: 4px; margin-bottom: 20px;
}
.testimonio-text {
  font-family: var(--serif); font-style: italic;
  font-size: 17px; line-height: 1.65; color: var(--black); margin-bottom: 24px;
}
.testimonio-author {
  font-size: 10px; letter-spacing: 0.12em; color: var(--gray-dark);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════
   GALERÍA
══════════════════════════════════════════════════════ */
#galeria { padding: 80px 0 100px; background: var(--white); text-align: center; }
#galeria .section-label, #galeria .section-title {
  padding: 0 48px;
}

.gallery-grid {
  display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 3px; margin-top: 48px;
}
.gallery-item {
  aspect-ratio: 1/1; overflow: hidden; cursor: pointer; position: relative;
  background: var(--gray-light);
}
.gallery-item:hover .gallery-placeholder { transform: scale(1.06); }

.gallery-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; transition: transform 0.4s;
  background: var(--gray-light);
}

/* ══════════════════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════════════════ */
#contacto { padding: 100px 48px; background: var(--white); }

.contact-inner {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 80px; max-width: 1100px; margin: 0 auto;
  align-items: start;
}

.contact-item {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px; font-size: 14px; color: var(--black);
}
.contact-item svg { color: var(--rose-dark); flex-shrink: 0; }

.social-links { display: flex; gap: 10px; margin-top: 32px; }
.social-btn {
  width: 40px; height: 40px; border: 1px solid var(--gray-mid);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; letter-spacing: 0.05em;
  color: var(--black); transition: all var(--transition);
}
.social-btn:hover { background: var(--black); color: white; border-color: var(--black); }

/* Contact Form */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-dark); }
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid var(--gray-mid); padding: 12px 16px;
  font-size: 14px; color: var(--black); background: var(--white);
  outline: none; resize: vertical;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--rose-dark); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-mid); }

.form-success {
  text-align: center; padding: 14px;
  background: #f0faf4; color: #2d7a4f;
  font-size: 13px; border: 1px solid #b6dfc9;
}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
footer {
  background: var(--black); color: var(--white); padding: 80px 48px 0;
}
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; max-width: 1200px; margin: 0 auto;
  padding-bottom: 60px;
  border-bottom: 1px solid #222;
}
.footer-brand .nav-logo { display: block; color: var(--white); margin-bottom: 16px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.7; }

.footer-links h4 {
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 20px;
}
.footer-links a {
  display: block; font-size: 14px; color: rgba(255,255,255,0.7);
  margin-bottom: 10px; transition: color var(--transition);
}
.footer-links a:hover { color: var(--rose); }

.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding: 20px 0; text-align: center;
  font-size: 11px; color: rgba(255,255,255,0.25);
  letter-spacing: 0.06em;
}

/* ══════════════════════════════════════════════════════
   CARRITO SIDEBAR
══════════════════════════════════════════════════════ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.4);
  z-index: 300; opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.cart-overlay.active { opacity: 1; pointer-events: all; }

.cart-sidebar {
  position: fixed; top: 0; right: -420px; width: 420px; height: 100%;
  background: var(--white); z-index: 301;
  display: flex; flex-direction: column;
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  transition: right 0.4s cubic-bezier(0.4,0,0.2,1);
}
.cart-sidebar.open { right: 0; }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 28px; border-bottom: 1px solid var(--gray-mid);
}
.cart-header h3 { font-family: var(--serif); font-size: 22px; font-weight: 400; }
.cart-close {
  background: none; border: none; cursor: pointer; font-size: 18px;
  color: var(--gray-dark); transition: color var(--transition);
}
.cart-close:hover { color: var(--black); }

.cart-items { flex: 1; overflow-y: auto; padding: 24px 28px; }
.cart-empty { font-size: 14px; color: var(--gray-dark); text-align: center; padding: 40px 0; }

.cart-item {
  display: flex; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--gray-light); align-items: center;
}
.cart-item-img {
  width: 64px; height: 72px; object-fit: cover;
  background: var(--gray-light); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13px; margin-bottom: 4px; }
.cart-item-price { font-family: var(--serif); font-size: 18px; color: var(--rose-dark); }
.cart-item-controls { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-btn {
  width: 26px; height: 26px; border: 1px solid var(--gray-mid);
  background: none; cursor: pointer; font-size: 14px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.qty-btn:hover { background: var(--gray-light); }
.qty-num { font-size: 13px; min-width: 20px; text-align: center; }
.remove-item {
  background: none; border: none; cursor: pointer;
  color: var(--gray-dark); font-size: 12px; margin-left: auto;
  transition: color var(--transition);
}
.remove-item:hover { color: var(--rose-dark); }

.cart-footer { padding: 20px 28px 32px; border-top: 1px solid var(--gray-mid); }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px; font-size: 14px;
}
#cart-total-price { font-family: var(--serif); font-size: 24px; color: var(--rose-dark); }

/* ══════════════════════════════════════════════════════
   LOGIN MODAL
══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 400; display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }

.modal {
  background: var(--white); width: 100%; max-width: 420px;
  padding: 48px 40px; position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(-10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 18px; color: var(--gray-dark);
  transition: color var(--transition);
}
.modal-close:hover { color: var(--black); }

.modal-title {
  font-family: var(--serif); font-size: 28px; font-weight: 300;
  text-align: center; margin-bottom: 32px;
}
.modal-title em { font-style: italic; color: var(--rose-dark); }

.modal-tabs {
  display: flex; border-bottom: 1px solid var(--gray-mid); margin-bottom: 28px;
}
.modal-tab {
  flex: 1; padding: 10px; background: none; border: none;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; color: var(--gray-dark);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  transition: color var(--transition), border-color var(--transition);
}
.modal-tab.active { color: var(--black); border-bottom-color: var(--rose-dark); }

.modal-form { display: flex; flex-direction: column; gap: 18px; }
.modal-link { text-align: center; font-size: 12px; color: var(--gray-dark); }
.modal-link a { color: var(--rose-dark); }

/* ══════════════════════════════════════════════════════
   WHATSAPP FAB
══════════════════════════════════════════════════════ */
.whatsapp-fab {
  position: fixed; bottom: 28px; right: 28px;
  background: #25d366; color: white;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 250; transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.whatsapp-tooltip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--black); color: white;
  font-size: 11px; white-space: nowrap; padding: 7px 14px;
  pointer-events: none; opacity: 0;
  transition: opacity var(--transition);
}
.whatsapp-fab:hover .whatsapp-tooltip { opacity: 1; }

/* ══════════════════════════════════════════════════════
   TOAST NOTIFICATION
══════════════════════════════════════════════════════ */
.toast {
  position: fixed; bottom: 100px; right: 28px;
  background: var(--black); color: white;
  padding: 14px 24px; font-size: 13px;
  z-index: 500; pointer-events: none;
  opacity: 0; transform: translateY(10px);
  transition: opacity 0.3s, transform 0.3s;
  max-width: 300px;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast span { color: var(--rose); }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-image-wrap { max-width: 400px; }
  .about-image-wrap::before { display: none; }
  .offers-grid { grid-template-columns: 1fr; gap: 2px; }
  .testimonios-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .nav-search { display: none; }
  .hamburger { display: flex; }

  section { padding: 60px 20px; }
  #tienda { padding: 60px 20px; }
  #ofertas { padding: 60px 20px; }
  #contacto { padding: 60px 20px; }
  #about { padding: 60px 20px; }
  #categorias { padding: 60px 20px; }
  footer { padding: 60px 20px 0; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }

  .cart-sidebar { width: 100%; right: -100%; }
  .shop-header { flex-direction: column; align-items: flex-start; gap: 16px; }

  .hero-title { font-size: clamp(40px, 10vw, 70px); }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .offers-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}

/* ══════════════════════════════════════════════════════
   CHECKOUT MODAL
══════════════════════════════════════════════════════ */
.checkout-modal {
  background: var(--white);
  width: 100%; max-width: 900px;
  max-height: 92vh; overflow-y: auto;
  position: relative; animation: modalIn 0.3s ease;
  display: flex; flex-direction: column;
}
.checkout-layout {
  display: grid; grid-template-columns: 1fr 340px;
  min-height: 0;
}
.checkout-form-side {
  padding: 48px 40px; border-right: 1px solid var(--gray-mid);
  overflow-y: auto;
}
.checkout-summary-side {
  padding: 48px 32px; background: var(--gray-light);
  position: sticky; top: 0; align-self: start;
}
.checkout-title {
  font-family: var(--serif); font-size: 28px; font-weight: 300;
  margin-bottom: 28px;
}
.checkout-section-label {
  font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rose-dark); margin-bottom: 20px; padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-mid);
}
.checkout-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Payment options */
.payment-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.payment-option {
  display: flex; align-items: center; cursor: pointer;
  border: 1px solid var(--gray-mid); padding: 14px 16px;
  transition: border-color var(--transition), background var(--transition);
}
.payment-option input { display: none; }
.payment-option.selected { border-color: var(--rose-dark); background: #fff8f9; }
.payment-option.disabled { opacity: 0.4; cursor: not-allowed; }
.payment-option-inner { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.payment-icon { font-size: 18px; }

/* Transfer info */
.transfer-info {
  background: var(--gray-light); padding: 20px;
  margin-bottom: 24px; border: 1px solid var(--gray-mid);
}
.transfer-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-dark); margin-bottom: 12px; }
.bank-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.bank-option {
  display: flex; cursor: pointer;
  border: 1px solid var(--gray-mid); padding: 14px 16px;
  background: var(--white);
  transition: border-color var(--transition);
}
.bank-option input { display: none; }
.bank-option.selected { border-color: var(--rose-dark); }
.bank-inner { display: flex; align-items: center; gap: 12px; }
.bank-emoji { font-size: 24px; }
.bank-name  { font-size: 13px; font-weight: 500; }
.bank-account, .bank-titular { font-size: 11px; color: var(--gray-dark); margin-top: 2px; }
.transfer-note { font-size: 12px; color: var(--gray-dark); line-height: 1.6; }

.btn-checkout {
  width: 100%; background: var(--black); color: var(--white);
  border: none; padding: 16px; font-family: var(--sans);
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; margin-top: 8px;
  transition: background var(--transition);
}
.btn-checkout:hover { background: var(--rose-dark); }

/* Summary */
.summary-title { font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 24px; }
.summary-items { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.summary-item { display: flex; align-items: center; gap: 12px; }
.summary-item-emoji {
  width: 48px; height: 48px; background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.summary-item-info { flex: 1; }
.summary-item-name { font-size: 13px; }
.summary-item-qty  { font-size: 11px; color: var(--gray-dark); margin-top: 2px; }
.summary-item-price { font-family: var(--serif); font-size: 16px; }

.summary-totals { border-top: 1px solid var(--gray-mid); padding-top: 16px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.summary-row.total { font-weight: 500; font-size: 16px; border-top: 1px solid var(--gray-mid); margin-top: 8px; padding-top: 12px; }
.summary-row.total span:last-child { font-family: var(--serif); font-size: 22px; color: var(--rose-dark); }
.envio-gratis { color: #2d7a4f; font-size: 12px; letter-spacing: 0.08em; }

/* ── CONFIRMATION ── */
.confirmation-modal {
  background: var(--white); width: 100%; max-width: 520px;
  padding: 52px 44px; text-align: center;
  animation: modalIn 0.3s ease; max-height: 92vh; overflow-y: auto;
}
.confirm-icon { font-size: 52px; margin-bottom: 16px; }
.confirm-title { font-family: var(--serif); font-size: 32px; font-weight: 300; margin-bottom: 10px; }
.confirm-subtitle { font-size: 14px; color: var(--gray-dark); margin-bottom: 24px; }
.confirm-id {
  display: inline-block; background: var(--gray-light);
  padding: 8px 20px; font-size: 12px; letter-spacing: 0.12em;
  color: var(--gray-dark); margin-bottom: 24px;
}
.confirm-details {
  border: 1px solid var(--gray-mid); padding: 20px;
  margin-bottom: 24px; text-align: left;
}
.confirm-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--gray-light); }
.confirm-row:last-child { border-bottom: none; }

.confirm-bank {
  background: var(--gray-light); padding: 20px;
  margin-bottom: 24px; text-align: left;
}
.confirm-bank-title { font-size: 13px; font-weight: 500; margin-bottom: 12px; }
.confirm-bank-data { display: flex; flex-direction: column; gap: 6px; font-size: 13px; margin-bottom: 12px; }
.confirm-bank-note { font-size: 12px; color: var(--gray-dark); }
.confirm-contraentrega { background: var(--gray-light); padding: 16px; font-size: 14px; margin-bottom: 24px; }

.confirm-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-outline-dark {
  background: none; border: 1px solid var(--gray-mid);
  padding: 12px 28px; font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; color: var(--black);
  transition: border-color var(--transition);
}
.btn-outline-dark:hover { border-color: var(--black); }

/* ── LOGIN FORM IDs ── */
#login-form, #register-form { display: flex; flex-direction: column; gap: 16px; }

/* Responsive checkout */
@media (max-width: 768px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary-side { position: static; order: -1; border-right: none; border-bottom: 1px solid var(--gray-mid); }
  .checkout-form-side { padding: 28px 20px; }
  .checkout-row { grid-template-columns: 1fr; }
  .confirmation-modal { padding: 36px 24px; }
}

/* ══════════════════════════════════════════════════════
   MOBILE PRODUCT GRID — Estilo compacto tipo Temu
══════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Barra de búsqueda móvil prominente */
  #navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    gap: 10px;
  }
  .nav-search {
    display: flex !important;
    order: 3;
    width: 100%;
    border-radius: 24px;
    padding: 9px 16px;
    background: var(--gray-light);
    border-color: transparent;
  }
  .nav-search input { width: 100%; font-size: 13px; }

  /* Productos destacados en index — 2 columnas compactas */
  #destacados { padding: 40px 10px; }
  #destacados .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    margin-top: 24px;
  }

  /* Tienda — 2 columnas compactas */
  .shop-main .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Product card compacta */
  .product-card {
    border-radius: 6px;
    border: 1px solid #ece9e6;
  }
  .product-img,
  .product-img-placeholder {
    aspect-ratio: 1/1 !important;
  }
  .product-img-placeholder { font-size: 32px !important; }

  .product-info {
    padding: 8px 10px 10px;
  }
  .product-name {
    font-size: 12px !important;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
  line-clamp: 2;   /* ← agrega esta línea */
  -webkit-box-orient: vertical;
  overflow: hidden;
  }
  .product-cat {
    font-size: 9px !important;
    margin-bottom: 4px;
  }
  .price {
    font-size: 15px !important;
  }
  .price-old { font-size: 10px !important; }

  .product-badge {
    font-size: 8px !important;
    padding: 3px 7px !important;
    top: 8px; left: 8px;
  }

  /* Add to cart quick button más pequeño */
  .add-quick {
    font-size: 9px !important;
    padding: 8px 14px !important;
  }

  /* Stars en tienda */
  .product-stars { font-size: 10px !important; }
  .product-reviews { font-size: 9px !important; }

  /* Price row */
  .price-row { gap: 4px; flex-wrap: wrap; }

  /* Categorías en index — 3 columnas en móvil */
  .categories-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
  }
  .cat-card {
    padding: 20px 10px !important;
  }
  .cat-icon { font-size: 26px !important; margin-bottom: 8px !important; }
  .cat-card h3 { font-size: 12px !important; }
  .cat-card p  { font-size: 10px !important; }

  /* Gallery — 3 columnas en móvil */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 400px) {
  #destacados .products-grid,
  .shop-main .products-grid {
    gap: 6px !important;
  }
  .product-name { font-size: 11px !important; }
  .price { font-size: 14px !important; }
}

/* ══════════════════════════════════════════════════════
   PRODUCT CARDS — Botón siempre visible + Modal info
══════════════════════════════════════════════════════ */

/* Ocultar overlay de hover */
.product-overlay { display: none !important; }

/* Botón siempre visible */
.product-card .add-to-cart-visible {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: calc(100% - 32px); margin: 0 16px 14px;
  background: var(--black); color: var(--white);
  border: none; padding: 10px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; transition: background .2s;
}
.product-card .add-to-cart-visible:hover { background: var(--rose-dark); }

/* Imagen clickeable */
.product-img, .product-img-placeholder {
  cursor: pointer;
}
.product-name-link {
  cursor: pointer; transition: color .2s;
}
.product-name-link:hover { color: var(--rose-dark); }

/* ── PRODUCT MODAL ── */
.product-modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.55);
  z-index: 400; display: flex; align-items: center;
  justify-content: center; padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .3s;
}
.product-modal-overlay.active {
  opacity: 1; pointer-events: all;
}
.product-modal {
  background: var(--white); width: 100%; max-width: 680px;
  max-height: 90vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr 1fr;
  animation: modalIn .3s ease;
  position: relative;
}
.product-modal-img {
  aspect-ratio: 1/1; background: var(--gray-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 80px; position: relative;
}
.product-modal-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-modal-body {
  padding: 32px 28px; display: flex; flex-direction: column; gap: 12px;
  overflow-y: auto;
}
.product-modal-close {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.5); color: white; border: none;
  width: 30px; height: 30px; border-radius: 50%;
  cursor: pointer; font-size: 14px; display: flex;
  align-items: center; justify-content: center; z-index: 1;
  transition: background .2s;
}
.product-modal-close:hover { background: var(--rose-dark); }

.product-modal-cat {
  font-size: 10px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--rose-dark);
}
.product-modal-name {
  font-family: var(--serif); font-size: 26px; font-weight: 300;
  line-height: 1.2;
}
.product-modal-stars { color: var(--rose); font-size: 14px; letter-spacing: 3px; }
.product-modal-price {
  font-family: var(--serif); font-size: 28px; color: var(--black);
}
.product-modal-price .old {
  font-size: 14px; color: var(--gray-dark);
  text-decoration: line-through; margin-left: 8px;
}
.product-modal-price.sale { color: var(--rose-dark); }
.product-modal-desc {
  font-size: 13px; color: var(--gray-dark); line-height: 1.7;
  border-top: 1px solid var(--gray-light); padding-top: 12px;
}
.product-modal-add {
  background: var(--black); color: var(--white);
  border: none; padding: 14px;
  font-family: var(--sans); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; margin-top: auto;
  transition: background .2s;
}
.product-modal-add:hover { background: var(--rose-dark); }

/* Mobile modal */
@media (max-width: 600px) {
  .product-modal { grid-template-columns: 1fr; max-width: 100%; }
  .product-modal-img { aspect-ratio: 4/3; font-size: 60px; }
  .product-modal-body { padding: 20px; }
  .product-modal-name { font-size: 22px; }

  /* Botón carrito móvil más compacto */
  .product-card .add-to-cart-visible {
    font-size: 9px; padding: 8px; margin: 0 10px 10px;
    width: calc(100% - 20px);
  }
}

@media (max-width: 768px) {
  .hamburger span {
    background: var(--black) !important;
    height: 2px !important;
    width: 22px !important;
    display: block !important;
  }
}

/* ══════════════════════════════════════════════════════
   FIX RESPONSIVE MÓVIL — añadir al final del style.css
   Corrige el desbordamiento horizontal y el navbar
══════════════════════════════════════════════════════ */

/* 1. Evitar desbordamiento horizontal en TODA la página */
html, body {
  overflow-x: hidden !important;
  max-width: 100%;
  width: 100%;
}
*, *::before, *::after { max-width: 100%; }

@media (max-width: 768px) {
  /* Navbar: una sola línea limpia */
  #navbar {
    flex-wrap: nowrap !important;
    height: 60px !important;
    padding: 0 16px !important;
    gap: 0 !important;
  }
  .nav-links  { display: none !important; }
  .nav-search { display: none !important; }
  .hamburger  { display: none !important; }
  .mobile-menu, .mobile-menu.open { display: none !important; }

  /* Banner: padding reducido para que no desborde */
  #promo-banner {
    padding: 8px 36px 8px 12px !important;
    font-size: 10px !important;
    line-height: 1.5;
  }
  #close-banner { right: 10px !important; }

  /* Hero ocupa todo el ancho real */
  #inicio { width: 100%; min-height: 88vh; }
  #hero-video { width: 100%; height: 100%; }

  /* Secciones sin desbordar */
  section { width: 100%; }

  /* WhatsApp no tapa el bottom nav */
  .whatsapp-fab {
    bottom: 78px !important;
    right: 16px !important;
    width: 52px !important;
    height: 52px !important;
  }

  /* Modal login/registro entra bien en pantalla */
  .modal-overlay { padding: 12px !important; }
  .modal {
    padding: 32px 22px !important;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  #promo-banner { font-size: 9px !important; letter-spacing: 0.05em; }
  .hero-title  { font-size: clamp(34px, 9vw, 56px) !important; }
  .hero-sub    { font-size: 13px !important; }
}