/* ============================================================
   Aphrodite — Velas artesanales de lujo
   Hoja de estilos única para todo el sitio público
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* Color */
  --ink: #3e2a16;
  --ink-soft: #5b4126;
  --muted: #8a7359;
  --bg: #fdf9f4;
  --surface: #ffffff;
  --sand: #f3e6d6;
  --sand-deep: #d7bb9d;
  --line: #ddc3a4;
  --gold: #bf8b5e;          /* rellenos y detalles decorativos */
  --gold-deep: #8b5e2b66;   /* sombras doradas */
  --gold-ink: #8b5e2b;      /* dorado con contraste para texto */
  --gold-hover: #a97748;
  --wa: #25d366;
  --ok: #2e7d52;
  --err: #c0392b;
  --info: #35699e;

  /* Tipografía */
  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Lora', Georgia, serif;
  --fs-xs: .74rem;
  --fs-sm: .86rem;
  --fs-base: 1rem;
  --fs-lg: 1.09rem;
  --fs-h3: clamp(1.3rem, 1.05rem + .8vw, 1.6rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.2vw, 3.1rem);
  --fs-h1: clamp(2.6rem, 1.6rem + 4vw, 4.2rem);
  --tracking-wide: .16em;
  --tracking-ultra: .3em;

  /* Ritmo */
  --s1: 8px;  --s2: 14px; --s3: 22px; --s4: 34px;
  --s5: 52px; --s6: 76px; --s7: clamp(72px, 9vw, 122px);
  --measure: 62ch;

  /* Superficie */
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(62, 42, 22, .05), 0 4px 14px rgba(62, 42, 22, .045);
  --shadow-md: 0 14px 34px rgba(62, 42, 22, .11);
  --shadow-lg: 0 26px 60px rgba(62, 42, 22, .17);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. Reset y base ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  color-scheme: light;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  color: var(--ink-soft);
  background: var(--bg);
  line-height: 1.75;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button, a, input, textarea, select {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  color: inherit;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  color: var(--ink);
  text-wrap: balance;
  letter-spacing: .005em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }

::selection { background: var(--gold); color: #fff; }

:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--gold-ink);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute; top: -200%; left: 12px; z-index: 9999;
  background: var(--ink); color: #fff; padding: 12px 22px;
  font-size: var(--fs-sm); letter-spacing: .06em;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: clamp(20px, 5vw, 32px); }
.section { padding-block: var(--s7); }
.section--tight { padding-block: clamp(52px, 6vw, 78px); }
.alt-bg { background: var(--sand); }
.center { text-align: center; margin-top: var(--s5); }

.divider {
  height: 1px; border: 0; margin: 0;
  background: linear-gradient(to right, transparent, var(--line) 22%, var(--line) 78%, transparent);
}

/* ---------- 4. Tipografía de apoyo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--tracking-ultra); text-transform: uppercase;
  color: var(--gold-ink); margin-bottom: var(--s2);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; flex: none; background: var(--gold);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.eyebrow--center { justify-content: center; }

.section-head {
  max-width: 640px; margin: 0 auto var(--s6); text-align: center;
}
.section-head h2 { margin-bottom: var(--s2); }
.section-head p { color: var(--muted); font-size: var(--fs-lg); }

.lede { color: var(--muted); font-size: var(--fs-lg); max-width: var(--measure); }

/* ---------- 5. Header ---------- */
header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 26px rgba(62, 42, 22, .07); }

.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); height: 78px; }

.logo { display: inline-flex; align-items: center; }
.logo img { width: auto; height: 54px; }

.nav-links { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav-links a {
  position: relative; display: inline-block; padding-block: 4px;
  font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  color: var(--ink-soft); transition: color .25s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px; background: var(--gold); transition: width .3s var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--gold-ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: var(--s2); }

.cart-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; color: var(--ink); border-radius: 50%;
  transition: background .25s var(--ease);
}
.cart-btn:hover { background: var(--sand); }
.cart-btn .material-icons { font-size: 24px; }
.cart-badge {
  position: absolute; top: 3px; right: 2px;
  min-width: 19px; height: 19px; padding: 0 5px;
  display: grid; place-items: center;
  background: var(--gold-ink); color: #fff; border-radius: 999px;
  font-family: var(--font-body); font-size: .66rem; font-weight: 600; line-height: 1;
}
.cart-badge.bounce { animation: bounce .45s var(--ease); }
@keyframes bounce { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.35); } }

.hamburger {
  display: none; width: 44px; height: 44px; place-items: center;
  background: none; border: none; cursor: pointer; color: var(--ink);
}
.hamburger .material-icons { font-size: 26px; }

/* ---------- 6. Botones ---------- */
.btn, .btn-sm {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600;
  letter-spacing: var(--tracking-wide); text-transform: uppercase;
  cursor: pointer; border: 1px solid transparent; border-radius: var(--radius);
  transition: background .28s var(--ease), color .28s var(--ease),
              border-color .28s var(--ease), transform .28s var(--ease), box-shadow .28s var(--ease);
}
.btn { padding: 16px 36px; font-size: var(--fs-xs); min-height: 52px; }
.btn-sm { padding: 12px 22px; font-size: var(--fs-xs); min-height: 44px; }

.btn-gold { background: var(--gold-ink); color: #fff; }
.btn-gold:hover { background: #6f5017; transform: translateY(-2px); box-shadow: 0 12px 26px var(--gold-deep); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-white { background: #fff; color: var(--gold-ink); }
.btn-white:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--gold-ink); border-color: var(--gold); }
.btn-outline:hover { background: var(--gold-ink); color: #fff; border-color: var(--gold-ink); }

.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-wa { background: var(--wa); color: #0b3d20; }
.btn-wa:hover { background: #1fbd5b; transform: translateY(-2px); }

.btn:disabled, .btn-sm:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; display: grid; place-items: center; text-align: center;
  min-height: min(88svh, 780px); padding-block: var(--s6); overflow: hidden;
}
.hero-img { position: absolute; inset: -8% 0; z-index: 0; will-change: transform; }
.hero-slide {
  position: absolute; inset: 0; background: center/cover no-repeat;
  opacity: 0; transition: opacity 1s var(--ease);
}
.hero-slide.is-active { opacity: 1; }
.hero-nav {
  position: absolute; top: 50%; translate: 0 -50%; z-index: 3;
  display: grid; place-items: center; width: 52px; height: 52px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .45); border-radius: 50%;
  background: rgba(62, 42, 22, .38); color: #fff; backdrop-filter: blur(4px);
  transition: background .25s var(--ease), border-color .25s var(--ease);
}
.hero-nav:hover { background: var(--gold); border-color: var(--gold); }
.hero-nav--prev { left: clamp(10px, 3vw, 30px); }
.hero-nav--next { right: clamp(10px, 3vw, 30px); }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(62, 42, 22, .28) 0%, rgba(62, 42, 22, .72) 78%),
    linear-gradient(180deg, rgba(62, 42, 22, .55) 0%, rgba(62, 42, 22, .3) 42%, rgba(62, 42, 22, .82) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 820px; padding-inline: 8px; color: #fff; }
.hero .eyebrow { color: #d7bb9d; }
.hero .eyebrow::before { background: #d7bb9d; }
.hero h1 {
  color: #fff; letter-spacing: .18em; margin-bottom: var(--s3);
  text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
  animation: fadeUp .9s var(--ease) both;
}
.hero p {
  max-width: 34rem; margin: 0 auto var(--s4); font-size: var(--fs-lg);
  color: rgba(255, 255, 255, .9); animation: fadeUp .9s var(--ease) .15s both;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; animation: fadeUp .9s var(--ease) .3s both; }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5); justify-content: center;
  margin-top: var(--s5); animation: fadeUp .9s var(--ease) .45s both;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: var(--fs-sm); letter-spacing: .06em; color: rgba(255, 255, 255, .88);
}
.hero-badge .material-icons { font-size: 19px; color: #d7bb9d; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* ---------- 8. Encabezado de página interior ---------- */
.page-head {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink); color: #fff; padding-block: clamp(56px, 8vw, 92px);
}
.page-head::before {
  content: ""; position: absolute; inset: 0; opacity: .07;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1px);
  background-size: 26px 26px;
}
.page-head .inner { position: relative; z-index: 1; }
.page-head .eyebrow { color: #d7bb9d; justify-content: center; }
.page-head .eyebrow::before { background: #d7bb9d; }
.page-head h1 { color: #fff; letter-spacing: .1em; }
.page-head p { margin-top: var(--s2); color: rgba(255, 255, 255, .78); }

.breadcrumb {
  padding-block: var(--s3); font-size: var(--fs-sm); color: var(--muted);
}
.breadcrumb a:hover { color: var(--gold-ink); text-decoration: underline; }

/* ---------- 9. Tarjetas de producto ---------- */
.products-grid {
  display: grid; gap: clamp(18px, 2.4vw, 32px);
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
}
.product-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.product-media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(62, 42, 22, .86); color: #d7bb9d; backdrop-filter: blur(4px);
  font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
}
.product-info {
  display: flex; flex-direction: column; flex: 1; gap: 6px;
  padding: var(--s3) var(--s3) var(--s4); text-align: center;
}
.product-info h3 { font-size: var(--fs-h3); }
.product-info .desc {
  font-size: var(--fs-sm); color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.9em;
}
.product-price {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 700;
  color: var(--gold-ink); font-variant-numeric: tabular-nums; margin-block: 4px var(--s2);
}
.product-price.consult {
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}
.card-actions { display: flex; flex-direction: column; gap: var(--s1); margin-top: auto; }

/* ---------- 10. Categorías ---------- */
.cats-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.cat-card {
  display: block; text-align: center; padding: var(--s5) var(--s3);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.cat-icon {
  width: 68px; height: 68px; margin: 0 auto var(--s3); display: grid; place-items: center;
  background: var(--sand); transition: background .3s var(--ease);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.cat-card:hover .cat-icon { background: var(--gold); }
.cat-icon .material-icons { font-size: 30px; color: var(--gold-ink); transition: color .3s var(--ease); }
.cat-card:hover .cat-icon .material-icons { color: #fff; }
.cat-card h3 { font-size: 1.35rem; }
.cat-card .cat-count { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 11. Banda "La esencia" ---------- */
.about-band { position: relative; overflow: hidden; background: var(--ink); color: rgba(255, 255, 255, .82); }
.about-band::before {
  content: ""; position: absolute; inset: 0; opacity: .06;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1px);
  background-size: 26px 26px;
}
.about-inner {
  position: relative; z-index: 1; display: grid; align-items: center;
  gap: clamp(32px, 5vw, 70px); grid-template-columns: 1fr 1fr;
}
.about-inner .eyebrow { color: #d7bb9d; }
.about-inner .eyebrow::before { background: #d7bb9d; }
.about-inner h2 { color: #fff; margin-bottom: var(--s3); }
.about-inner p { margin-bottom: var(--s2); max-width: var(--measure); }
.about-img {
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); outline: 1px solid rgba(215, 187, 157, .18); outline-offset: -1px;
}
.about-img img { width: 100%; height: 100%; object-fit: cover; }

.stats { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
.stat { flex: 1 1 120px; }
.stat .num {
  font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 2.9rem);
  font-weight: 700; color: var(--gold); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat .lbl {
  margin-top: 6px; font-size: var(--fs-xs); letter-spacing: .12em;
  text-transform: uppercase; color: rgba(255, 255, 255, .62);
}

/* ---------- 12. Testimonios ---------- */
.testimonials-grid { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(285px, 1fr)); }
.tcard {
  display: flex; flex-direction: column; padding: var(--s4);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.tstars { color: var(--gold); letter-spacing: .22em; margin-bottom: var(--s2); }
.tcard blockquote { flex: 1; font-style: italic; font-size: var(--fs-lg); color: var(--ink-soft); margin-bottom: var(--s3); }
.tauthor { display: flex; align-items: center; gap: 13px; }
.tavatar {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--sand); border: 1px solid var(--gold);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  color: var(--gold-ink); letter-spacing: .04em;
}
.tauthor .an { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.tauthor .ar { font-size: var(--fs-xs); color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- 13b. Curso ---------- */
.course-inner {
  display: grid; align-items: center; gap: clamp(32px, 5vw, 64px);
  grid-template-columns: 1fr 1fr; margin-top: var(--s5);
}
.course-img {
  overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); border: 1px solid var(--line);
}
.course-img img { width: 100%; height: auto; }
.course-inner p { margin-bottom: var(--s2); max-width: var(--measure); }
.course-feats {
  display: grid; gap: 10px var(--s3); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  margin-block: var(--s3) var(--s4);
}
.course-feats li { display: flex; align-items: center; gap: 10px; font-size: var(--fs-sm); letter-spacing: .03em; }
.course-feats .material-icons { font-size: 20px; color: var(--gold-ink); }

/* ---------- 13c. Preguntas frecuentes ---------- */
.faq-inner { display: grid; gap: clamp(28px, 4vw, 60px); grid-template-columns: 1fr 1.35fr; align-items: start; }
.faq-intro h2 { margin-bottom: var(--s3); }
.faq-intro p { margin-bottom: var(--s2); color: var(--muted); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  padding-block: var(--s3); cursor: pointer; list-style: none;
  font-family: var(--font-display); font-size: var(--fs-h3); color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .material-icons { flex: none; color: var(--gold-ink); transition: rotate .3s var(--ease); }
.faq-item[open] summary .material-icons { rotate: 45deg; }
.faq-item > p { padding-bottom: var(--s3); max-width: var(--measure); color: var(--ink-soft); }

/* ---------- 13. Promo ---------- */
.promo {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(135deg, #8b5e2b 0%, #bf8b5e 50%, #6f4620 100%);
}
.promo::before {
  content: ""; position: absolute; inset: 0; opacity: .16;
  background-image: radial-gradient(circle, #fff 1px, transparent 1px);
  background-size: 24px 24px;
}
.promo-inner { position: relative; z-index: 1; }
.promo .eyebrow { color: #fff; justify-content: center; }
.promo .eyebrow::before { background: #fff; }
.promo h2 { color: #fff; margin-bottom: var(--s2); }
.promo p { max-width: 34rem; margin: 0 auto var(--s4); color: rgba(255, 255, 255, .93); font-size: var(--fs-lg); }

/* ---------- 13d. Selector de aroma ---------- */
.frag-row { margin-block: var(--s3) var(--s4); }
.frag-label {
  display: block; margin-bottom: 10px; font-size: var(--fs-xs);
  letter-spacing: var(--tracking-wide); text-transform: uppercase; color: var(--muted);
}
.frag-opts { display: flex; flex-wrap: wrap; gap: 10px; }
.frag-opt { cursor: pointer; }
.frag-opt input { position: absolute; opacity: 0; pointer-events: none; }
.frag-opt span {
  display: inline-block; padding: 9px 18px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-size: var(--fs-sm); color: var(--ink-soft);
  transition: border-color .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.frag-opt:hover span { border-color: var(--gold); }
.frag-opt input:checked + span { background: var(--gold); border-color: var(--gold); color: #fff; }
.frag-opt input:focus-visible + span { outline: 2px solid var(--gold-ink); outline-offset: 3px; }
.ci-frag { font-size: var(--fs-xs); color: var(--gold-ink); letter-spacing: .04em; margin-top: 2px; }

/* ---------- 14. Footer ---------- */
footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding-block: var(--s6) var(--s3); }
.footer-grid {
  display: grid; gap: var(--s5) var(--s4); margin-bottom: var(--s5);
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
}
.footer-col h4 {
  font-family: var(--font-display); font-size: 1.3rem; color: #fff;
  letter-spacing: .16em; margin-bottom: var(--s3);
}
.footer-col.brand p { font-size: var(--fs-sm); line-height: 1.8; max-width: 30ch; }
.footer-col li + li { margin-top: 11px; }
.footer-col a { font-size: var(--fs-sm); transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--gold); }
.footer-contact li { display: flex; gap: 10px; font-size: var(--fs-sm); line-height: 1.6; }
.footer-contact .material-icons { font-size: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.footer-social { display: flex; gap: 11px; margin-top: var(--s3); }
.footer-social a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2); color: #fff; font-size: 18px;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.footer-social a:hover { background: var(--wa); border-color: var(--wa); transform: translateY(-2px); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: var(--s3);
  text-align: center; font-size: var(--fs-sm); color: rgba(255, 255, 255, .55);
}
.footer-bottom .dev { margin-top: 6px; font-size: var(--fs-xs); letter-spacing: .1em; }
.footer-bottom .dev a:hover { color: var(--gold); }

/* ---------- 15. WhatsApp flotante + toasts ---------- */
.whatsapp-float {
  position: fixed; right: clamp(16px, 3vw, 26px); bottom: clamp(16px, 3vw, 26px); z-index: 900;
  width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%;
  background: var(--wa); color: #fff; font-size: 29px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, .38);
  animation: pulseWa 2.6s infinite;
}
.whatsapp-float:hover { background: #1fbd5b; }
@keyframes pulseWa {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, .38), 0 0 0 0 rgba(37, 211, 102, .45); }
  55% { box-shadow: 0 8px 24px rgba(37, 211, 102, .38), 0 0 0 14px rgba(37, 211, 102, 0); }
}

.toast-wrap {
  position: fixed; top: 18px; right: 18px; z-index: 2000;
  display: flex; flex-direction: column; gap: 10px; max-width: min(340px, calc(100vw - 36px));
}
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-left: 3px solid var(--gold);
  padding: 14px 18px; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  font-size: var(--fs-sm); animation: slideIn .3s var(--ease);
}
.toast.success { border-left-color: var(--ok); }
.toast.success .material-icons { color: var(--ok); }
.toast.error { border-left-color: var(--err); }
.toast.error .material-icons { color: var(--err); }
.toast.info { border-left-color: var(--info); }
.toast.info .material-icons { color: var(--info); }
.toast .material-icons { font-size: 20px; flex: none; }
.toast.out { animation: slideOut .3s var(--ease) forwards; }
@keyframes slideIn { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes slideOut { to { opacity: 0; transform: translateX(34px); } }

/* ---------- 16. Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- 17. Catálogo ---------- */
.toolbar { padding-block: var(--s5) var(--s3); }
.search-box { position: relative; max-width: 460px; margin: 0 auto var(--s3); }
.search-box .material-icons {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 21px; pointer-events: none;
}
.search-box input {
  width: 100%; padding: 15px 16px 15px 46px; min-height: 52px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--fs-base); transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.search-box input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191, 139, 94, .16); }
.search-box input::placeholder { color: var(--muted); }

.filters { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: var(--s2); }
.filter-btn {
  padding: 11px 22px; min-height: 44px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.filter-btn:hover { border-color: var(--gold); color: var(--gold-ink); }
.filter-btn.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.result-count { text-align: center; color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s4); }

.no-results { text-align: center; padding-block: var(--s7); color: var(--muted); }
.no-results .material-icons { font-size: 54px; color: var(--sand-deep); margin-bottom: var(--s2); }
.no-results h3 { margin-bottom: 6px; }

/* ---------- 18. Detalle de producto ---------- */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px); padding-bottom: var(--s6); }
.detail-img {
  aspect-ratio: 1; overflow: hidden; background: var(--sand);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.detail-img img { width: 100%; height: 100%; object-fit: cover; }
.detail-info h1 { margin-bottom: var(--s2); font-size: clamp(2rem, 1.4rem + 2.4vw, 3rem); }
.detail-price {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.5rem); font-weight: 700;
  color: var(--gold-ink); font-variant-numeric: tabular-nums; margin-bottom: var(--s2);
}
.detail-price.consult { font-family: var(--font-body); font-size: 1.2rem; letter-spacing: .1em; text-transform: uppercase; }
.detail-desc { max-width: var(--measure); margin-bottom: var(--s3); }
.stock {
  display: inline-flex; align-items: center; gap: 7px; margin-bottom: var(--s4);
  font-size: var(--fs-sm); font-weight: 600; color: var(--ok);
}
.stock.out { color: var(--err); }
.stock .material-icons { font-size: 18px; }

.qty-row { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s3); flex-wrap: wrap; }
.qty-row label { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.qty-ctrl { display: flex; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.qty-ctrl button {
  width: 46px; height: 46px; border: none; background: none; cursor: pointer;
  font-size: 1.25rem; color: var(--ink); transition: background .2s var(--ease);
}
.qty-ctrl button:hover { background: var(--sand); }
.qty-ctrl input {
  width: 58px; height: 46px; text-align: center; border: none;
  border-inline: 1px solid var(--line); font-size: var(--fs-base);
  -moz-appearance: textfield; appearance: textfield;
}
.qty-ctrl input::-webkit-outer-spin-button, .qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.actions { display: flex; flex-direction: column; gap: 12px; max-width: 420px; }

.related { border-top: 1px solid var(--line); padding-block: var(--s6) var(--s7); }
.related h2 { text-align: center; margin-bottom: var(--s5); }
.rel-grid { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }
.rel-grid .product-info { padding: var(--s3) var(--s2); }
.rel-grid .product-info .p { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--gold-ink); }

.error-box { text-align: center; padding-block: var(--s7); }
.error-box .material-icons { font-size: 62px; color: var(--sand-deep); }
.error-box h1 { margin: var(--s3) 0 10px; }
.error-box p { color: var(--muted); margin-bottom: var(--s4); }

/* ---------- 19. Carrito ---------- */
.cart-layout { display: grid; grid-template-columns: 1.55fr 1fr; gap: clamp(24px, 3vw, 46px); align-items: start; padding-bottom: var(--s6); }
.cart-items { display: flex; flex-direction: column; gap: var(--s2); }
.cart-item {
  display: grid; grid-template-columns: 84px 1fr auto; gap: var(--s3); align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s2);
}
.cart-item img { width: 84px; height: 84px; object-fit: cover; border-radius: var(--radius); background: var(--sand); }
.ci-name { font-family: var(--font-display); font-size: 1.28rem; font-weight: 600; color: var(--ink); line-height: 1.25; }
.ci-price { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 8px; }
.ci-ctrl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ci-ctrl .qty-ctrl button { width: 38px; height: 38px; font-size: 1.1rem; }
.ci-ctrl .qty-ctrl span { min-width: 38px; height: 38px; display: grid; place-items: center; border-inline: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.del-btn {
  width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted);
  transition: color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.del-btn:hover { color: var(--err); border-color: var(--err); background: #fdf0ef; }
.del-btn .material-icons { font-size: 19px; }
.ci-subtotal { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--gold-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s4); position: sticky; top: 98px; }
.summary h2 { font-size: 1.75rem; margin-bottom: var(--s3); }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-sm); color: var(--muted); margin-bottom: 10px; }
.sum-total {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  border-top: 1px solid var(--line); margin-top: var(--s2); padding-top: var(--s2);
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink);
}
.sum-total .gold { color: var(--gold-ink); font-size: 1.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.checkout-form { margin-top: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s3); }
.checkout-form h3 { font-size: 1.4rem; margin-bottom: var(--s2); }
.checkout-form .btn-wa { width: 100%; margin-top: 6px; }

.empty { text-align: center; padding-block: var(--s7); }
.empty .material-icons { font-size: 64px; color: var(--sand-deep); }
.empty h2 { margin: var(--s3) 0 8px; }
.empty p { color: var(--muted); margin-bottom: var(--s4); }

/* ---------- 20. Formularios ---------- */
.field { margin-bottom: var(--s3); }
.field label {
  display: block; margin-bottom: 7px; font-size: var(--fs-xs); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; min-height: 50px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: var(--fs-base); color: var(--ink-soft);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(191, 139, 94, .16);
}
.field input::placeholder, .field textarea::placeholder { color: #b3aa9b; }
.field.error input, .field.error textarea { border-color: var(--err); background: #fdf7f6; }
.field .err-msg { display: none; margin-top: 6px; font-size: var(--fs-xs); color: var(--err); letter-spacing: 0; text-transform: none; }
.field.error .err-msg { display: block; }

.success-msg, .confirm-msg {
  display: none; margin-top: var(--s3); padding: 14px 18px; border-radius: var(--radius-lg);
  background: #eef7f1; border-left: 3px solid var(--ok); color: #1f5c3b; font-size: var(--fs-sm);
}
.success-msg.show, .confirm-msg.show { display: block; }

/* ---------- 21. Contacto ---------- */
.contact-layout { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 4vw, 60px); padding-block: var(--s6); align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 42px); }
.contact-form h2 { font-size: 2rem; margin-bottom: 6px; }
.contact-form .form-note { color: var(--muted); font-size: var(--fs-sm); margin-bottom: var(--s4); }
.contact-form .btn-wa { width: 100%; }
.contact-logo { width: auto; max-width: 260px; height: auto; margin-bottom: var(--s3); }
.contact-info h2 { font-size: 2rem; margin-bottom: var(--s4); }
.info-item { display: flex; gap: var(--s2); align-items: flex-start; margin-bottom: var(--s4); }
.info-icon {
  width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--sand); color: var(--gold-ink);
}
.info-icon .material-icons { font-size: 21px; }
.info-item h3 { font-size: 1.25rem; margin-bottom: 2px; }
.info-item p, .info-item a { font-size: var(--fs-sm); color: var(--muted); word-break: break-word; }
.info-item a:hover { color: var(--gold-ink); text-decoration: underline; }
.map-wrap {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg);
  margin-bottom: var(--s7); box-shadow: var(--shadow-sm);
}
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- 22. Login ---------- */
body.login-page {
  display: grid; place-items: center; min-height: 100svh; padding: var(--s3);
  background: linear-gradient(140deg, #3e2a16 0%, #5b4126 100%);
  position: relative; overflow: hidden;
}
body.login-page::before {
  content: ""; position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(circle, var(--gold) 1px, transparent 1px);
  background-size: 28px 28px;
}
.login-card {
  position: relative; z-index: 1; width: 100%; max-width: 420px;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: clamp(30px, 5vw, 48px); box-shadow: var(--shadow-lg);
  animation: fadeUp .5s var(--ease) both;
}
.login-card .brand { text-align: center; margin-bottom: var(--s1); }
.login-card .brand img { width: auto; height: 62px; margin: 0 auto var(--s1); }
.login-card h1 { font-size: 1.35rem; text-align: center; color: var(--gold-ink); letter-spacing: .08em; margin-bottom: var(--s4); }
.login-card .btn-gold { width: 100%; margin-top: 4px; }
.err-box {
  display: none; margin-bottom: var(--s3); padding: 12px 16px; border-radius: var(--radius-lg);
  background: #fdecec; border-left: 3px solid var(--err); color: #8f2b20; font-size: var(--fs-sm);
}
.err-box.show { display: block; }
.hint {
  margin-top: var(--s3); padding: 12px; border-radius: var(--radius-lg);
  background: var(--sand); text-align: center; font-size: var(--fs-sm); color: var(--muted);
}
.back-link { display: block; margin-top: var(--s3); text-align: center; font-size: var(--fs-sm); color: var(--gold-ink); }
.back-link:hover { text-decoration: underline; }

/* ---------- 23. Responsive ---------- */
@media (max-width: 900px) {
  .about-inner, .contact-layout, .detail, .cart-layout,
  .course-inner, .faq-inner { grid-template-columns: 1fr; }
  .about-img { max-width: 460px; margin-inline: auto; }
  .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav { height: 68px; }
  .logo img { height: 42px; }
  .hamburger { display: grid; }
  .nav-links {
    position: fixed; inset: 68px 0 auto; flex-direction: column; gap: 0;
    background: var(--surface); padding-block: 6px; border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 30px rgba(62, 42, 22, .12);
    transform: translateY(-150%); transition: transform .35s var(--ease);
    overscroll-behavior: contain; max-height: calc(100svh - 68px); overflow-y: auto;
  }
  .nav-links.open { transform: none; }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links a { display: block; padding: 15px; }
  .nav-links a::after { display: none; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .product-info { padding: var(--s2) 14px var(--s3); }
  .product-info h3 { font-size: 1.15rem; }
  .product-info .desc { -webkit-line-clamp: 3; min-height: 0; }
  .cart-item { grid-template-columns: 64px 1fr; }
  .cart-item img { width: 64px; height: 64px; }
  .ci-right { grid-column: 2; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--s4); }
  .footer-col.brand p { max-width: none; }
  .hero { min-height: 78svh; }
  .hero-badges { gap: var(--s2) var(--s3); }
  /* Bajan al pie del hero: centradas verticalmente caían sobre el CTA
     y, al tener z-index mayor, se quedaban con el toque del botón. */
  .hero-nav { width: 42px; height: 42px; top: auto; bottom: 16px; translate: none; }
}

@media (max-width: 420px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-img { transform: none !important; }
}

@media print {
  header, footer, .whatsapp-float, .toast-wrap, .hero-img, .hero-overlay { display: none !important; }
}
