@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --primary: #1e3a8a;
  --primary-light: #3b82f6;
  --accent: #ef4444;
  --success: #10b981;
  --dark: #0d1117;
  --dark-2: #0f172a;
  --dark-3: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --card-radius: 18px;
  --whatsapp: #25d366;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  line-height: 1.6;
  color: #1e293b;
}

html { scroll-behavior: smooth; }

/* ── NAVBAR ── */
.navbar {
  transition: all 0.3s ease;
  padding: 0.85rem 0;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%) !important;
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-family: 'Outfit', sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: transform 0.3s ease;
}
.navbar-brand:hover { transform: scale(1.04); }

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  margin: 0 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 2px;
  background: var(--primary-light);
  transition: width 0.3s ease;
}
.nav-link:hover::after, .nav-link.active::after { width: 80%; }
.nav-link:hover { color: var(--primary-light) !important; }

/* ── HERO ── */
.hero-section {
  min-height: 100vh;
  background: url("/images/hero.jpg") center / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  padding-top: 80px;
}
.hero-overlay {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(135deg,
    rgba(13,17,23,0.93) 0%,
    rgba(30,58,138,0.86) 55%,
    rgba(59,130,246,0.72) 100%
  );
}
.hero-section .container { position: relative; z-index: 2; }
.hero-section h1 {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  letter-spacing: -2.5px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.35);
}
.hero-section .lead {
  font-size: 1.25rem;
  font-weight: 400;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  max-width: 680px;
  margin: 0 auto;
}

/* ── ANIMATIONS ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-in         { animation: fadeInUp 0.9s ease-out both; }
.animate-fade-in-delay   { animation: fadeInUp 0.9s ease-out 0.25s both; }
.animate-fade-in-delay-2 { animation: fadeInUp 0.9s ease-out 0.5s both; }

/* ── SECTIONS ── */
section { scroll-margin-top: 80px; padding: 4.5rem 0; }
.bg-light { background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important; }
section h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--primary);
}

/* ── CARDS ── */
.card {
  transition: all 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: var(--card-radius);
  overflow: hidden;
  border: none;
  background: white;
}
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 38px rgba(59,130,246,0.18) !important;
}
.card i { transition: transform 0.3s ease; }
.card:hover i { transform: scale(1.1) rotate(4deg); }

/* ── PRODUCT CARDS ── */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1.5px solid var(--border);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0.04), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
  pointer-events: none;
}
.product-card:hover { border-color: var(--primary-light); }
.product-card:hover::before { opacity: 1; }

/* Click hint overlay */
.product-card .click-hint {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(30,58,138,0.85);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(6px);
}
.product-card:hover .click-hint { opacity: 1; transform: translateY(0); }

.product-card .card-img-top {
  height: 260px;
  object-fit: contain;
  padding: 1.25rem;
  background: #fafbfc;
  transition: transform 0.4s ease;
  width: 100%;
  position: relative; z-index: 1;
}
.product-card:hover .card-img-top { transform: scale(1.06); }

.product-card .card-body {
  display: flex; flex-direction: column; flex-grow: 1;
  padding: 1.25rem;
  position: relative; z-index: 1;
}

.product-card .card-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  line-height: 1.35;
}
.product-card .product-price {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent) 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
}
.product-card .product-description {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

/* ── WHATSAPP BUTTON ── */
.btn-whatsapp {
  background: linear-gradient(135deg, var(--whatsapp) 0%, #128c7e 100%);
  border: none;
  color: white !important;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  padding: 0.7rem 1.25rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(37,211,102,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(37,211,102,0.38);
  color: white !important;
}

/* ── FILTER BUTTONS ── */
.btn-outline-primary {
  border: 2px solid var(--primary-light);
  color: var(--primary-light);
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border-radius: 25px;
  padding: 0.55rem 1.6rem;
  font-size: 0.92rem;
  transition: all 0.3s ease;
}
.btn-outline-primary:hover,
.btn-outline-primary.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 14px rgba(59,130,246,0.28);
}

/* ── GENERAL BUTTONS ── */
.btn {
  font-family: 'Outfit', sans-serif;
  border-radius: 12px;
  font-weight: 700;
  padding: 0.85rem 2.4rem;
  transition: all 0.3s ease;
  letter-spacing: 0.2px;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  box-shadow: 0 4px 14px rgba(59,130,246,0.28);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(59,130,246,0.38); }

.btn-outline-light {
  border: 2px solid white !important;
  color: white;
  background: transparent;
}
.btn-outline-light:hover { background: white; color: var(--primary); transform: translateY(-3px); }

.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
  box-shadow: 0 4px 14px rgba(16,185,129,0.28);
}
.btn-success:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(16,185,129,0.38); }

.btn-danger {
  background: linear-gradient(135deg, #e11d48 0%, #dc2626 100%);
  box-shadow: 0 4px 14px rgba(239,68,68,0.28);
}
.btn-danger:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(239,68,68,0.38); }

/* ── BADGES ── */
.badge {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  padding: 0.5rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
  border: 2px solid transparent;
  transition: all 0.3s ease;
}
.badge:hover {
  transform: scale(1.06) translateY(-2px);
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(59,130,246,0.28);
}

/* ── OFFER BADGE ── */
.offer-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(239,68,68,0.38);
  z-index: 3;
  text-transform: uppercase;
}

/* ── PRODUCT MODAL ── */
.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,0.72);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.product-modal {
  background: white;
  border-radius: 24px;
  max-width: 820px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  transform: scale(0.9) translateY(20px);
  transition: all 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 40px 80px rgba(0,0,0,0.3);
  position: relative;
}
.product-modal-overlay.active .product-modal {
  transform: scale(1) translateY(0);
}

/* scrollbar */
.product-modal::-webkit-scrollbar { width: 6px; }
.product-modal::-webkit-scrollbar-track { background: #f1f5f9; }
.product-modal::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.modal-close-btn {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(15,23,42,0.08);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  color: #475569;
  transition: all 0.25s ease;
  z-index: 10;
  line-height: 1;
}
.modal-close-btn:hover {
  background: rgba(239,68,68,0.12);
  color: #ef4444;
  transform: rotate(90deg);
}

.modal-img-wrap {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.modal-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(59,130,246,0.08), transparent 65%);
}
.modal-img-wrap img {
  max-height: 320px;
  max-width: 100%;
  object-fit: contain;
  position: relative; z-index: 1;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.12));
  transition: transform 0.5s ease;
}
.product-modal-overlay.active .modal-img-wrap img {
  transform: scale(1) translateY(0);
}

.modal-body-content {
  padding: 2rem 2.25rem 2.5rem;
}

.modal-category-tag {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary-light);
  background: rgba(59,130,246,0.1);
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.modal-product-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.5px;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.modal-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.modal-price {
  font-family: 'Outfit', sans-serif;
  font-size: 2.25rem;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.modal-price-old {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #94a3b8;
  text-decoration: line-through;
}

.modal-offer-pill {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.modal-divider {
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  margin: 1.25rem 0;
}

.modal-description {
  font-size: 0.97rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.modal-specs-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.75rem;
}

.modal-spec-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.modal-spec-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #334155;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.modal-spec-list li i {
  color: var(--primary-light);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.modal-guarantees {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}
.guarantee-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #475569;
  background: #f1f5f9;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
}
.guarantee-chip i { color: var(--success); }

.modal-cta-btn {
  width: 100%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  color: white;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 6px 18px rgba(37,211,102,0.32);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}
.modal-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37,211,102,0.42);
  color: white;
}

/* ── FOOTER ── */
.footer-modern {
  background: var(--dark);
  padding: 4rem 0 2rem;
  color: #dce3ec;
  border-top: 1px solid #1f2937;
}
.footer-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.85rem;
  letter-spacing: -0.5px;
}
.footer-column { display: flex; flex-direction: column; align-items: flex-start; }
.footer-subtitle {
  font-family: 'Outfit', sans-serif;
  color: #f8fafc;
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.05rem;
}
.footer-text { color: #cbd5e1; font-size: 0.94rem; line-height: 1.65; }
.footer-list li, .footer-info li { margin-bottom: 0.6rem; list-style: none; }
.footer-list a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.94rem;
  transition: 0.25s;
  display: inline-block;
}
.footer-list a:hover { color: #60a5fa; padding-left: 5px; }
.footer-info li {
  color: #cbd5e1;
  font-size: 0.94rem;
  display: flex; align-items: center; gap: 8px;
}
.footer-info i { color: #60a5fa; font-size: 1.05rem; }
.footer-socials a {
  color: #e2e8f0;
  margin-right: 16px;
  font-size: 1.65rem;
  transition: 0.3s;
  display: inline-block;
}
.footer-socials a:hover { color: #60a5fa; transform: translateY(-3px); }
.footer-divider { border-color: #1f2937; margin: 2rem 0; }
.footer-bottom p { color: #94a3b8; font-size: 0.88rem; margin: 0; }
.footer-bottom a { color: #60a5fa; font-weight: 600; text-decoration: none; }
.footer-bottom a:hover { text-shadow: 0 0 10px rgba(96,165,250,0.5); }

/* ── PERFUMES PAGE ── */
.product-card.perfume-card { border-color: #ff69b4; }
.product-card.perfume-card:hover { border-color: #ff1493; box-shadow: 0 18px 38px rgba(255,105,180,0.2) !important; }

/* ── EMPTY STATE ── */
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state i { font-size: 4.5rem; color: #cbd5e1; }
.empty-state h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  color: #94a3b8;
  margin-top: 1.25rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hero-section { min-height: 88vh; }
  .hero-section h1 { font-size: 2.6rem; letter-spacing: -1.5px; }
  .hero-section .lead { font-size: 1rem; }
  .product-card .card-img-top { height: 200px; }
  .modal-spec-list { grid-template-columns: 1fr; }
  .modal-body-content { padding: 1.5rem; }
  .modal-img-wrap { min-height: 240px; padding: 1.75rem; }
  .modal-product-name { font-size: 1.35rem; }
  .modal-price { font-size: 1.85rem; }
  .btn { padding: 0.78rem 1.8rem; font-size: 0.92rem; }
}

@media (max-width: 480px) {
  .product-modal { border-radius: 20px 20px 0 0; max-height: 92vh; }
  .product-modal-overlay { align-items: flex-end; padding: 0; }
  .modal-guarantees { gap: 0.5rem; }
}

img { transition: opacity 0.3s ease; }
img:not([src]) { opacity: 0; }