@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;1,400&family=Inter:wght@300;400;500&display=swap');

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

:root {
  --rose:       #c9818f;
  --rose-dark:  #a35f6d;
  --rose-light: #f5e6e8;
  --nude:       #edddd4;
  --nude-dark:  #d4c4b8;
  --cream:      #faf7f5;
  --miel:       #c8956c;
  --black:      #1a1210;
  --gray:       #6b5a5f;
  --gray-light: #e8dede;
  --white:      #ffffff;
  --wa:         #25D366;
  --font-display: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;
  --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--black); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TOPBAR TICKER ─────────────────────────────── */
.topbar {
  background: var(--black);
  color: #d4b8bc;
  height: 38px;
  overflow: hidden;
  position: relative;
}
.ticker-track {
  display: flex;
  align-items: center;
  height: 100%;
  white-space: nowrap;
  animation: ticker 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  font-size: 11px;
  letter-spacing: 2px;
  padding: 0 48px;
  flex-shrink: 0;
}
.ticker-sep { color: var(--rose); font-size: 16px; }
@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── NAVBAR ────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid var(--gray-light);
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  transition: box-shadow 0.3s var(--ease);
}
.navbar.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.06); }

.nav-logo { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: 3px; color: var(--black); font-style: italic; }
.nav-logo span { color: var(--rose); }

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links > a, .nav-dropdown > a {
  font-size: 11px; letter-spacing: 2px; color: var(--black);
  transition: color 0.2s; position: relative; padding-bottom: 2px;
}
.nav-links > a::after, .nav-dropdown > a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: var(--rose); transition: width 0.25s var(--ease);
}
.nav-links > a:hover::after, .nav-links > a.active::after,
.nav-dropdown > a:hover::after { width: 100%; }
.nav-links > a:hover, .nav-dropdown > a:hover, .nav-links > a.active { color: var(--rose); }

/* Dropdown CORREGIDO — con área de cobertura */
.nav-dropdown { position: relative; }
.nav-dropdown > a { display: flex; align-items: center; gap: 4px; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 0.5px solid var(--gray-light);
  min-width: 200px;
  padding: 8px 0;
  z-index: 300;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
/* Puente invisible para no perder el hover al moverse al menú */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block; padding: 10px 20px;
  font-size: 11px; letter-spacing: 1.5px; color: var(--gray);
  transition: all 0.15s;
}
.dropdown-menu a:hover { background: var(--rose-light); color: var(--rose-dark); padding-left: 26px; }

.nav-icons { display: flex; gap: 18px; align-items: center; }
.nav-icons a { font-size: 18px; color: var(--black); transition: color 0.2s; position: relative; }
.nav-icons a:hover { color: var(--rose); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--rose); color: var(--white);
  font-size: 9px; width: 16px; height: 16px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 500;
}

/* ── BOTONES ────────────────────────────────────── */
.btn { display: inline-block; font-family: var(--font-body); font-size: 11px; letter-spacing: 2px; padding: 13px 32px; transition: all 0.25s var(--ease); cursor: pointer; }
.btn-dark  { background: var(--black); color: var(--white); border: 1px solid var(--black); }
.btn-dark:hover { background: #333; border-color: #333; }
.btn-rose  { background: var(--rose); color: var(--white); border: 1px solid var(--rose); }
.btn-rose:hover { background: var(--rose-dark); border-color: var(--rose-dark); }
.btn-outline { background: transparent; color: var(--black); border: 1px solid var(--black); }
.btn-outline:hover { background: var(--black); color: var(--white); }
.btn-outline-rose { background: transparent; color: var(--rose-dark); border: 1px solid var(--rose); }
.btn-outline-rose:hover { background: var(--rose); color: var(--white); }
.btn-outline-white { background: transparent; color: var(--white); border: 1px solid var(--white); }
.btn-outline-white:hover { background: var(--white); color: var(--black); }

/* ── APPLE-STYLE SCROLL ZOOM ───────────────────── */
/* Patrón único: .zoom-host recorta, .zoom-apple es el contenido que se desplaza */
.zoom-host {
  overflow: hidden;
  position: relative;
}
/* zoom-apple ocupa 116% del contenedor (inset:-8%) — siempre más grande */
/* JS mueve translateY entre +8px y -8px según posición en scroll */
.zoom-apple {
  position: absolute;
  inset: -8%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: var(--rose);
  background: var(--rose-light);
  transform: translateY(8px);
  will-change: transform;
}

/* ── SECTION LABELS ────────────────────────────── */
.section-label { font-size: 11px; letter-spacing: 3px; color: var(--rose); text-align: center; margin-bottom: 8px; }
.section-title { font-family: var(--font-display); font-size: 28px; font-weight: 400; text-align: center; color: var(--black); margin-bottom: 8px; }
.section-sub { font-size: 13px; color: var(--gray); text-align: center; max-width: 480px; margin: 0 auto 40px; line-height: 1.7; }

/* ── PRODUCT CARD ──────────────────────────────── */
.product-card { cursor: pointer; transition: transform 0.3s var(--ease); }
.product-card:hover { transform: translateY(-2px); }
.product-img-wrap {
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--nude);
  margin-bottom: 14px;
  position: relative;
}
/* product-placeholder = alias de zoom-apple para tarjetas de producto */
.product-placeholder {
  position: absolute;
  inset: -8%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  color: var(--rose);
  background: var(--rose-light);
  transform: translateY(8px);
  will-change: transform;
}
.product-badge { position: absolute; top: 10px; left: 10px; background: var(--rose); color: var(--white); font-size: 9px; letter-spacing: 1.5px; padding: 4px 10px; }
.badge-agotado { background: var(--gray); }
.badge-oferta  { background: var(--miel); }
.product-brand { font-size: 10px; letter-spacing: 2px; color: var(--rose); margin-bottom: 4px; }
.product-name  { font-size: 13px; color: var(--black); margin-bottom: 6px; line-height: 1.4; }
.product-price { font-size: 13px; color: var(--gray); font-weight: 500; }
.product-quick {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: rgba(26,18,16,0.82); color: var(--white);
  text-align: center; font-size: 10px; letter-spacing: 2px; padding: 12px;
  transform: translateY(100%); transition: transform 0.3s var(--ease);
}
.product-img-wrap:hover .product-quick { transform: translateY(0); }

/* ── BUSCADOR MODAL ────────────────────────────── */
.search-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(26,18,16,0.7);
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
}
.search-overlay.open { display: flex; }
.search-box {
  background: var(--white);
  width: 100%; max-width: 640px;
  padding: 32px;
  margin: 0 20px;
}
.search-input-row { display: flex; gap: 0; border-bottom: 1.5px solid var(--black); padding-bottom: 8px; margin-bottom: 24px; }
.search-input-row input {
  flex: 1; border: none; outline: none; font-size: 22px;
  font-family: var(--font-display); color: var(--black); background: transparent; font-style: italic;
}
.search-input-row input::placeholder { color: var(--nude-dark); }
.search-input-row button { font-size: 22px; color: var(--gray); background: none; border: none; cursor: pointer; }
.search-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-height: 400px; overflow-y: auto; }
.search-empty { color: var(--gray); font-size: 13px; text-align: center; padding: 24px 0; }
.search-hint { font-size: 11px; letter-spacing: 1px; color: var(--nude-dark); text-align: center; }
.search-close-btn { position: absolute; top: 24px; right: 24px; font-size: 24px; color: var(--white); cursor: pointer; background: none; border: none; }

/* ── LOGIN MODAL ───────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 600;
  background: rgba(26,18,16,0.7);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--white);
  width: 100%; max-width: 420px;
  padding: 48px 40px;
  margin: 20px;
  position: relative;
}
.modal-close { position: absolute; top: 16px; right: 20px; font-size: 22px; color: var(--gray); cursor: pointer; }
.modal-logo { font-family: var(--font-display); font-size: 20px; font-style: italic; text-align: center; margin-bottom: 4px; }
.modal-logo span { color: var(--rose); }
.modal-tabs { display: flex; border-bottom: 0.5px solid var(--gray-light); margin-bottom: 28px; }
.modal-tab {
  flex: 1; padding: 12px; text-align: center; font-size: 11px; letter-spacing: 2px;
  color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.2s;
}
.modal-tab.active { color: var(--rose); border-bottom-color: var(--rose); }
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 10px; letter-spacing: 2px; color: var(--gray); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px; border: 0.5px solid var(--gray-light);
  background: var(--cream); font-family: var(--font-body); font-size: 14px; color: var(--black);
  outline: none; transition: border-color 0.2s;
}
.form-input:focus { border-color: var(--rose); background: var(--white); }
.form-error { font-size: 12px; color: #c0392b; margin-top: 12px; display: none; }
.form-error.show { display: block; }

/* ── CARRITO LATERAL ───────────────────────────── */
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100vw;
  background: var(--white); z-index: 700; transform: translateX(100%);
  transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: -4px 0 32px rgba(0,0,0,0.08);
}
.cart-sidebar.open { transform: translateX(0); }
.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 699; }
.cart-overlay.open { display: block; }
.cart-header { padding: 24px; border-bottom: 0.5px solid var(--gray-light); display: flex; align-items: center; justify-content: space-between; }
.cart-header h2 { font-family: var(--font-display); font-size: 20px; font-weight: 400; }
.cart-header button { font-size: 22px; color: var(--gray); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 0.5px solid var(--gray-light); align-items: center; }
.cart-item-img { width: 72px; height: 72px; background: var(--rose-light); display: flex; align-items: center; justify-content: center; font-size: 28px; color: var(--rose); flex-shrink: 0; }
.cart-item-info { flex: 1; }
.cart-item-brand { font-size: 10px; letter-spacing: 2px; color: var(--rose); }
.cart-item-name { font-size: 13px; margin: 2px 0 6px; }
.cart-item-price { font-size: 13px; color: var(--gray); }
.cart-item-qty { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.cart-item-qty button { width: 24px; height: 24px; border: 0.5px solid var(--gray-light); font-size: 14px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.cart-item-qty button:hover { border-color: var(--rose); color: var(--rose); }
.cart-item-qty span { font-size: 13px; min-width: 20px; text-align: center; }
.cart-item-remove { color: var(--gray); font-size: 16px; cursor: pointer; padding: 4px; }
.cart-item-remove:hover { color: #c0392b; }
.cart-footer { padding: 20px 24px; border-top: 0.5px solid var(--gray-light); }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 6px; }
.cart-subtotal-val { font-weight: 500; }
.cart-note { font-size: 11px; color: var(--gray); margin-bottom: 20px; }
.cart-empty { text-align: center; padding: 48px 24px; color: var(--gray); }
.cart-empty i { font-size: 48px; color: var(--nude-dark); margin-bottom: 16px; display: block; }

/* ── WHATSAPP FLOTANTE ──────────────────────────── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 400;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
  cursor: pointer;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,0.5); }
.wa-tooltip {
  position: fixed; bottom: 96px; right: 28px; z-index: 400;
  background: var(--black); color: var(--white);
  font-size: 12px; padding: 10px 16px; white-space: nowrap;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: all 0.25s var(--ease);
}
.wa-float:hover ~ .wa-tooltip, .wa-tooltip:hover { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ── MODAL CHECKOUT WHATSAPP ───────────────────── */
.checkout-modal {
  display: none; position: fixed; inset: 0; z-index: 800;
  background: rgba(26,18,16,0.75);
  align-items: center; justify-content: center; padding: 20px;
}
.checkout-modal.open { display: flex; }
.checkout-box {
  background: var(--white); width: 100%; max-width: 480px;
  padding: 40px; position: relative; max-height: 90vh; overflow-y: auto;
}
.checkout-wa-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.checkout-wa-icon { width: 48px; height: 48px; background: var(--wa); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; color: var(--white); }
.checkout-wa-header h2 { font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.checkout-wa-header p { font-size: 12px; color: var(--gray); }
.checkout-items { background: var(--cream); padding: 16px; margin-bottom: 20px; }
.checkout-item-row { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; border-bottom: 0.5px solid var(--gray-light); }
.checkout-item-row:last-child { border-bottom: none; font-weight: 500; }
.checkout-methods { margin-bottom: 20px; }
.checkout-methods h4 { font-size: 11px; letter-spacing: 2px; margin-bottom: 12px; color: var(--black); }
.payment-method { display: flex; align-items: center; gap: 10px; padding: 12px; border: 0.5px solid var(--gray-light); margin-bottom: 8px; cursor: pointer; transition: all 0.2s; }
.payment-method:hover { border-color: var(--rose); background: var(--rose-light); }
.payment-method input[type=radio] { accent-color: var(--rose); }
.payment-method label { font-size: 13px; cursor: pointer; flex: 1; }
.payment-method .pm-detail { font-size: 11px; color: var(--gray); }
.checkout-send-btn { width: 100%; padding: 16px; background: var(--wa); color: var(--white); font-size: 13px; letter-spacing: 2px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: background 0.2s; font-family: var(--font-body); }
.checkout-send-btn:hover { background: #1da851; }
.checkout-send-btn i { font-size: 20px; }
.checkout-validation { font-size: 11px; color: var(--gray); text-align: center; margin-top: 12px; line-height: 1.6; }

/* ── FOOTER ─────────────────────────────────────── */
footer { background: var(--black); color: #c0b0b3; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 56px 60px 40px; }
.footer-logo { font-family: var(--font-display); font-size: 24px; color: var(--white); font-style: italic; letter-spacing: 3px; margin-bottom: 16px; }
.footer-logo span { color: var(--rose); }
.footer-desc { font-size: 13px; line-height: 1.8; color: #a09098; max-width: 280px; margin-bottom: 24px; }
.footer-social { display: flex; gap: 14px; }
.footer-social a { width: 36px; height: 36px; border: 0.5px solid #444; display: flex; align-items: center; justify-content: center; color: #a09098; font-size: 16px; transition: all 0.2s; }
.footer-social a:hover { border-color: var(--rose); color: var(--rose); }
.footer-col h4 { font-size: 10px; letter-spacing: 3px; color: var(--white); margin-bottom: 20px; font-weight: 500; }
.footer-col ul li { margin-bottom: 10px; font-size: 13px; }
.footer-col ul li a { color: #a09098; transition: color 0.2s; }
.footer-col ul li a:hover { color: var(--rose-light); }
.footer-col p { font-size: 13px; color: #a09098; line-height: 2; }
.footer-bottom { border-top: 0.5px solid #2e2020; padding: 18px 60px; display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: #5a4a4f; letter-spacing: 1px; }
.newsletter-wrap { display: flex; gap: 0; margin-top: 20px; max-width: 320px; }
.newsletter-wrap input { flex: 1; padding: 11px 14px; border: 0.5px solid #333; background: transparent; color: var(--white); font-size: 12px; font-family: inherit; outline: none; }
.newsletter-wrap input::placeholder { color: #666; }
.newsletter-wrap button { background: var(--rose); color: var(--white); padding: 11px 18px; font-size: 10px; letter-spacing: 1.5px; transition: background 0.2s; font-family: inherit; }
.newsletter-wrap button:hover { background: var(--rose-dark); }

/* ── PAGE HERO ──────────────────────────────────── */
.page-hero { background: var(--rose-light); padding: 60px 40px; text-align: center; }
.page-hero h1 { font-family: var(--font-display); font-size: 36px; font-weight: 400; color: var(--black); margin-bottom: 8px; }
.page-hero p { font-size: 13px; color: var(--gray); letter-spacing: 1px; }
.breadcrumb { padding: 12px 40px; font-size: 11px; color: var(--gray); letter-spacing: 1px; border-bottom: 0.5px solid var(--gray-light); }
.breadcrumb a { color: var(--gray); } .breadcrumb a:hover { color: var(--rose); } .breadcrumb span { color: var(--rose); }

/* ── UTILS ──────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section { padding: 72px 40px; }
.text-center { text-align: center; }
.mt-8{margin-top:8px} .mt-16{margin-top:16px} .mt-24{margin-top:24px} .mt-32{margin-top:32px}

/* ── MOBILE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; padding: 40px 24px; }
  .footer-bottom { padding: 16px 24px; flex-direction: column; gap: 8px; text-align: center; }
  .section { padding: 48px 20px; }
  .cart-sidebar { width: 100vw; }
}
