/* ============================================================
   Perfume Primitive — style.css
   Paleta: fondo #0f0f0f | texto #f5f5f5 | dorado #c9a84c
   Google Fonts: Playfair Display + Inter
   ============================================================ */

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

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #0f0f0f;
  --bg2:         #161616;
  --bg3:         #1e1e1e;
  --bg4:         #252525;
  --text:        #f5f5f5;
  --text2:       #b0b0b0;
  --text3:       #707070;
  --gold:        #c9a84c;
  --gold-light:  #d4b56a;
  --gold-dim:    rgba(201,168,76,.18);
  --border:      #2a2a2a;
  --border-gold: rgba(201,168,76,.30);
  --red:         #e05c5c;
  --green:       #5ce08a;
  --radius:      10px;
  --radius-sm:   6px;
  --shadow:      0 4px 24px rgba(0,0,0,.55);
  --shadow-gold: 0 4px 20px rgba(201,168,76,.20);
  --trans:       .22s ease;
  --max:         1200px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  min-height: 100vh;
}
a { color: var(--gold); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--gold-light); }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; }

/* ── Tipografía ─────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: 'Playfair Display', Georgia, serif; line-height: 1.25; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p  { margin-bottom: .9rem; }

/* ── Layout ─────────────────────────────────────────────────── */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 4rem 0; }
.section--sm { padding: 2.5rem 0; }

/* ── Header / Nav ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(15,15,15,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: .9rem 1.25rem;
  gap: 1.5rem;
}
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  color: var(--gold); letter-spacing: .03em;
}
.nav-links { display: flex; gap: 1.75rem; flex-wrap: wrap; }
.nav-links a {
  font-size: .875rem; font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: var(--text2);
}
.nav-links a:hover { color: var(--gold); }
.nav-search-btn {
  background: none; color: var(--text2); font-size: 1.1rem;
  padding: .35rem; border-radius: 50%;
  transition: color var(--trans);
}
.nav-search-btn:hover { color: var(--gold); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; padding: 6rem 1.25rem 5rem;
  text-align: center; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,.10) 0%, transparent 70%);
}
.hero__kicker {
  font-size: .8rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1rem;
}
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #f5f5f5 30%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__subtitle {
  font-size: 1.1rem; color: var(--text2); max-width: 560px; margin: 0 auto 2.5rem;
}
.search-wrapper {
  position: relative; max-width: 600px; margin: 0 auto;
}
.search-input {
  width: 100%; padding: 1rem 1.25rem 1rem 3.25rem;
  background: var(--bg3); border: 1px solid var(--border-gold);
  border-radius: 50px; color: var(--text); font-size: 1rem; font-family: inherit;
  outline: none; transition: border-color var(--trans), box-shadow var(--trans);
}
.search-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.15); }
.search-input::placeholder { color: var(--text3); }
.search-icon {
  position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%);
  color: var(--text3); pointer-events: none; font-size: 1.1rem;
}
.search-results {
  position: absolute; top: calc(100% + .5rem); left: 0; right: 0;
  background: var(--bg3); border: 1px solid var(--border-gold);
  border-radius: var(--radius); box-shadow: var(--shadow);
  max-height: 420px; overflow-y: auto; z-index: 200; display: none;
}
.search-results.active { display: block; }
.search-result-item {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  transition: background var(--trans); text-decoration: none; color: var(--text);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--bg4); }
.result-icon { font-size: 1.4rem; }
.result-info { flex: 1; }
.result-name { font-weight: 600; font-size: .95rem; }
.result-meta { font-size: .8rem; color: var(--text2); }
.search-empty { padding: 1.5rem; text-align: center; color: var(--text3); }

/* ── Cards Grid ─────────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.5rem; }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

.card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: transform var(--trans), border-color var(--trans), box-shadow var(--trans);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-gold); box-shadow: var(--shadow-gold); }

.card__img {
  aspect-ratio: 4/3; background: var(--bg4);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.card__img svg { width: 60px; height: 60px; opacity: .35; }

.card__body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.card__brand { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); margin-bottom: .3rem; }
.card__title { font-family: 'Playfair Display', serif; font-size: 1.05rem; margin-bottom: .5rem; line-height: 1.35; }
.card__meta { font-size: .82rem; color: var(--text2); margin-bottom: auto; }
.card__badges { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .9rem; }
.badge {
  display: inline-block; padding: .2rem .65rem;
  border-radius: 50px; font-size: .72rem; font-weight: 500; letter-spacing: .04em;
  background: var(--bg4); border: 1px solid var(--border);
  color: var(--text2);
}
.badge--gold { background: var(--gold-dim); border-color: var(--border-gold); color: var(--gold); }
.badge--masc { background: rgba(92,185,224,.12); border-color: rgba(92,185,224,.3); color: #5cb9e0; }
.badge--fem  { background: rgba(224,92,145,.12); border-color: rgba(224,92,145,.3); color: #e05c91; }
.badge--mix  { background: rgba(150,92,224,.12); border-color: rgba(150,92,224,.3); color: #965ce0; }

.card__link {
  display: block; text-align: center; margin-top: 1rem;
  padding: .6rem; background: var(--gold-dim);
  border: 1px solid var(--border-gold); border-radius: var(--radius-sm);
  font-size: .85rem; font-weight: 500; color: var(--gold);
  transition: background var(--trans);
}
.card__link:hover { background: rgba(201,168,76,.28); color: var(--gold-light); }

/* ── Section Headers ────────────────────────────────────────── */
.section-header { margin-bottom: 2.5rem; }
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  margin-bottom: .5rem;
  background: linear-gradient(90deg, var(--text) 60%, var(--gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.section-subtitle { color: var(--text2); font-size: .95rem; }
.section-divider {
  width: 48px; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin: .75rem 0 0;
}

/* ── Season / Family Chips ──────────────────────────────────── */
.chips-row { display: flex; flex-wrap: wrap; gap: .75rem; }
.chip {
  display: flex; align-items: center; gap: .5rem;
  padding: .6rem 1.1rem; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 50px; font-size: .875rem; color: var(--text2); text-decoration: none;
  transition: border-color var(--trans), color var(--trans), background var(--trans);
}
.chip:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.chip-icon { font-size: 1.1rem; }

/* ── Perfume Page ───────────────────────────────────────────── */
.perfume-page { max-width: 860px; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }

.perfume-header { margin-bottom: 2rem; }
.perfume-brand { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.perfume-title { margin-bottom: 1rem; }
.perfume-badges { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Perfume SVG Placeholder */
.perfume-image-wrap {
  display: flex; justify-content: center; align-items: center;
  background: linear-gradient(135deg, var(--bg3), var(--bg4));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2.5rem; margin-bottom: 2rem; min-height: 260px;
}
.perfume-bottle-svg { width: 120px; opacity: .65; }

/* Description */
.perfume-section { margin-bottom: 2.5rem; }
.perfume-section-title {
  font-size: 1.1rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 1rem; padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-gold);
}
.perfume-description { color: var(--text2); line-height: 1.8; }

/* Pyramid */
.pyramid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.pyramid-col { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.pyramid-col-title {
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .75rem; font-weight: 600;
}
.pyramid-col-subtitle { font-size: .75rem; color: var(--text3); margin-bottom: .75rem; }
.notes-pills { display: flex; flex-wrap: wrap; gap: .4rem; }
.note-pill {
  padding: .3rem .7rem; background: var(--bg4); border: 1px solid var(--border);
  border-radius: 50px; font-size: .78rem; color: var(--text2);
}
.note-pill:hover { border-color: var(--border-gold); color: var(--gold); }
.pyramid-col--salida   { border-top: 2px solid #5cb9e0; }
.pyramid-col--corazon  { border-top: 2px solid var(--gold); }
.pyramid-col--fondo    { border-top: 2px solid #965ce0; }

/* Sensory Profile Bars */
.sensory-bars { display: flex; flex-direction: column; gap: 1.25rem; }
.sensory-bar-row { display: flex; flex-direction: column; gap: .4rem; }
.sensory-bar-labels { display: flex; justify-content: space-between; font-size: .8rem; color: var(--text2); }
.sensory-bar-track {
  height: 8px; background: var(--bg4); border-radius: 50px; overflow: hidden;
  position: relative;
}
.sensory-bar-fill {
  position: absolute; top: 0; left: 0; height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, #5cb9e0, var(--gold), #965ce0);
  transition: width .6s ease;
}
.sensory-bar-indicator {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 14px; height: 14px; background: var(--text); border-radius: 50%;
  border: 2px solid var(--bg); box-shadow: 0 0 8px rgba(201,168,76,.5);
  transition: left .6s ease;
}

/* Occasion / Season Cards */
.use-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: .75rem; }
.use-card {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
  display: flex; flex-direction: column; align-items: center; gap: .5rem; text-align: center;
}
.use-card-icon { font-size: 1.6rem; }
.use-card-label { font-size: .8rem; font-weight: 500; color: var(--text2); }

/* Progress Bars */
.progress-bars { display: flex; flex-direction: column; gap: 1rem; }
.progress-row { display: flex; flex-direction: column; gap: .35rem; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; }
.progress-label span:first-child { font-weight: 500; }
.progress-label span:last-child { color: var(--gold); }
.progress-track {
  height: 10px; background: var(--bg4); border-radius: 50px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold));
  transition: width .8s ease;
}

/* Similar / Dupes */
.similar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px,1fr)); gap: .75rem; }
.similar-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: .9rem 1rem; display: flex; align-items: center; gap: .75rem;
  text-decoration: none; color: var(--text); transition: border-color var(--trans), background var(--trans);
}
.similar-card:hover { border-color: var(--border-gold); background: var(--bg4); color: var(--text); }
.similar-icon { font-size: 1.5rem; }
.similar-name { font-size: .88rem; font-weight: 500; }

.dupe-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.dupe-tag {
  padding: .35rem .85rem; background: var(--bg4); border: 1px solid var(--border);
  border-radius: 50px; font-size: .82rem; color: var(--text2);
}

/* FAQ Accordion */
.faq-list { display: flex; flex-direction: column; gap: .5rem; }
.faq-item {
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem; background: none; color: var(--text);
  font-size: .95rem; font-weight: 500; text-align: left; gap: 1rem;
  transition: color var(--trans);
}
.faq-question:hover { color: var(--gold); }
.faq-question[aria-expanded="true"] { color: var(--gold); }
.faq-icon {
  flex-shrink: 0; width: 22px; height: 22px;
  border: 1px solid var(--border-gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--gold); transition: transform var(--trans);
}
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .35s ease, padding var(--trans);
  padding: 0 1.25rem;
}
.faq-answer.open { max-height: 600px; padding: 0 1.25rem 1.1rem; }
.faq-answer p { color: var(--text2); font-size: .92rem; line-height: 1.75; margin: 0; }

/* Buy Buttons */
.buy-section {
  background: var(--bg3); border: 1px solid var(--border-gold);
  border-radius: var(--radius); padding: 1.75rem; text-align: center;
  margin-bottom: 2rem;
}
.buy-price { font-size: 1.5rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }
.buy-price span { font-size: .9rem; font-weight: 400; color: var(--text2); margin-left: .4rem; }
.buy-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.75rem; border-radius: var(--radius-sm);
  font-size: .95rem; font-weight: 600; text-decoration: none;
  transition: filter var(--trans), transform var(--trans);
}
.btn:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }
.btn-ml  { background: #ffe600; color: #333; }
.btn-ml:hover { color: #333; }
.btn-amz { background: #ff9900; color: #111; }
.btn-amz:hover { color: #111; }
.btn-icon { font-size: 1.1rem; }
.buy-disclaimer { font-size: .75rem; color: var(--text3); margin-top: .9rem; }

/* AdSense Placeholder */
.adsense-block {
  background: var(--bg3); border: 1px dashed var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  text-align: center; color: var(--text3); font-size: .82rem;
  margin-bottom: 2rem;
}

/* ── Category Page ──────────────────────────────────────────── */
.category-hero {
  padding: 3rem 1.25rem;
  background: linear-gradient(135deg, var(--bg2), var(--bg));
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.category-kicker { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.category-title { margin-bottom: .75rem; }
.category-description { color: var(--text2); max-width: 560px; margin: 0 auto; }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 3rem 1.25rem 2rem; margin-top: auto;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 2rem; max-width: var(--max); margin: 0 auto 2rem;
}
.footer-brand { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--gold); margin-bottom: .6rem; }
.footer-tagline { font-size: .85rem; color: var(--text3); line-height: 1.6; }
.footer-col-title { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.footer-links { display: flex; flex-direction: column; gap: .45rem; }
.footer-links a { font-size: .875rem; color: var(--text3); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  max-width: var(--max); margin: 0 auto;
  border-top: 1px solid var(--border); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between;
}
.footer-copy { font-size: .8rem; color: var(--text3); }
.footer-affiliate { font-size: .75rem; color: var(--text3); max-width: 520px; }

/* ── Breadcrumb ─────────────────────────────────────────────── */
.breadcrumb {
  display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  font-size: .8rem; color: var(--text3); padding: 1rem 0 0;
}
.breadcrumb a { color: var(--text3); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--border); }

/* ── Utilities ──────────────────────────────────────────────── */
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text2); }
.text-center  { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.hidden { display: none !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .pyramid { grid-template-columns: 1fr; }
  .buy-buttons { flex-direction: column; }
  .btn { justify-content: center; }
  .similar-grid { grid-template-columns: repeat(2,1fr); }
  .hero { padding: 4rem 1.25rem 3rem; }
}
@media (max-width: 480px) {
  .grid { grid-template-columns: 1fr; }
  .similar-grid { grid-template-columns: 1fr; }
  .use-grid { grid-template-columns: repeat(2,1fr); }
  .chips-row { gap: .5rem; }
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Animations ─────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .5s ease both; }
.fade-up-d1 { animation-delay: .1s; }
.fade-up-d2 { animation-delay: .2s; }
.fade-up-d3 { animation-delay: .3s; }
