/* ==========================================================================
   El secreto de los minerales — hoja de estilos principal
   Paleta: negro · blanco · amatista · dorado/pirita
   Mobile-first
   ========================================================================== */

:root {
  --ink: #0a0810;
  --ink-2: #14101f;
  --ink-3: #1d1730;
  --white: #ffffff;
  --mist: #f4f1fa;
  --line: rgba(255, 255, 255, 0.1);
  --line-dark: rgba(10, 8, 16, 0.12);

  --violet: #7b4bd6;
  --violet-soft: #a98ae8;
  --violet-deep: #4a2796;
  --violet-wash: #efe9fb;

  --gold: #c9a227;
  --gold-soft: #e8cd6a;
  --gold-deep: #8f7112;

  --wa: #25d366;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 2px 12px rgba(10, 8, 16, 0.08);
  --shadow: 0 14px 40px rgba(10, 8, 16, 0.14);
  --shadow-lg: 0 28px 70px rgba(10, 8, 16, 0.26);

  --maxw: 1180px;
  --header-h: 64px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 4.6vw, 2.4rem); }
h3 { font-size: clamp(1.05rem, 3.4vw, 1.3rem); }

p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 18px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

/* ---------- Tipografía decorativa ---------- */
.eyebrow {
  font-size: 0.72rem; letter-spacing: 0.24em; text-transform: uppercase;
  font-weight: 600; color: var(--gold-deep); margin: 0 0 0.9rem;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold-soft); }

.serif { font-family: var(--serif); font-weight: 300; letter-spacing: 0.01em; }

.section { padding: 68px 0; position: relative; }
.section--tight { padding: 46px 0; }
.section--dark { background: var(--ink); color: var(--white); }
.section--paper { background: var(--mist); }

.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head p { color: #5e5772; }
.section--dark .section-head p { color: var(--violet-soft); }

/* ---------- Brillo dorado ---------- */
.shine { position: relative; overflow: hidden; }
.shine::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(232, 205, 106, 0.42) 50%, transparent 62%);
  transform: translateX(-120%);
  animation: shine 7s ease-in-out infinite;
}
@keyframes shine {
  0%, 62% { transform: translateX(-120%); }
  84%, 100% { transform: translateX(120%); }
}

.gold-rule {
  width: 68px; height: 2px; margin: 0 0 22px;
  background: linear-gradient(90deg, var(--gold), transparent);
}
.section--dark .gold-rule { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(10, 8, 16, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.site-header.is-scrolled { background: rgba(10, 8, 16, 0.95); box-shadow: var(--shadow); }

.site-header .wrap { display: flex; align-items: center; gap: 14px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; min-width: 0; }
.brand__mark {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px;
  background: linear-gradient(150deg, var(--violet-deep), var(--violet) 55%, var(--gold));
  display: grid; place-items: center; color: #fff; font-size: 1.05rem;
  box-shadow: 0 0 0 1px rgba(232, 205, 106, 0.45), 0 6px 18px rgba(74, 39, 150, 0.5);
}
.brand__text { min-width: 0; }
.brand__name {
  color: var(--white); font-size: 0.94rem; font-weight: 700; line-height: 1.15;
  display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand__tag {
  display: none; font-size: 0.66rem; color: var(--gold-soft);
  letter-spacing: 0.08em; text-transform: uppercase;
}

.main-nav { display: none; }
.main-nav a {
  color: rgba(255, 255, 255, 0.82); font-size: 0.85rem; font-weight: 500;
  padding: 8px 11px; border-radius: var(--radius-pill); transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--white); background: rgba(123, 75, 214, 0.28); }

.header-tools { display: flex; align-items: center; gap: 6px; }

.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center; cursor: pointer;
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line);
  color: var(--white); transition: background 0.2s, transform 0.15s, border-color 0.2s;
}
.icon-btn:hover { background: rgba(123, 75, 214, 0.42); border-color: rgba(232, 205, 106, 0.5); }
.icon-btn:active { transform: scale(0.94); }

.cart-count {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px;
  border-radius: var(--radius-pill); background: var(--gold); color: var(--ink);
  font-size: 0.68rem; font-weight: 800; display: grid; place-items: center;
  padding: 0 5px; border: 2px solid var(--ink);
  transform: scale(0); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-count.is-on { transform: scale(1); }
.cart-count.is-bump { animation: bump 0.45s ease; }
@keyframes bump {
  0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); }
}

.lang-toggle {
  display: flex; border: 1px solid var(--line); border-radius: var(--radius-pill);
  overflow: hidden; background: rgba(255, 255, 255, 0.08);
}
.lang-toggle button {
  border: 0; background: transparent; color: rgba(255, 255, 255, 0.7);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 9px 10px; cursor: pointer; transition: all 0.2s;
}
.lang-toggle button.is-active { background: var(--gold); color: var(--ink); }

.social-row { display: none; gap: 6px; }
.social-btn {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  color: var(--white); font-size: 1rem; transition: transform 0.18s, filter 0.18s;
  border: 1px solid var(--line);
}
.social-btn:hover { transform: translateY(-2px); }
.social-btn--ig { background: linear-gradient(45deg, #f09433, #dc2743 45%, #bc1888); }
.social-btn--fb { background: #1877f2; }
.social-btn--wa { background: var(--wa); }

/* Iconos de marca oficiales (SVG embebidos) */
.brand-svg { width: 1.05em; height: 1.05em; display: block; flex: 0 0 auto; }
.social-btn .brand-svg { width: 1.1em; height: 1.1em; }
.wa-float .brand-svg { width: 1em; height: 1em; }
.btn .brand-svg { width: 1em; height: 1em; }
.footer-col a .brand-svg, .dev-credit .brand-svg { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 92svh; display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 56px) 0 44px;
  background: var(--ink); color: var(--white); overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 15% 10%, rgba(74, 39, 150, 0.55), transparent 60%),
    linear-gradient(180deg, rgba(10, 8, 16, 0.5) 0%, rgba(10, 8, 16, 0.72) 55%, rgba(10, 8, 16, 0.97) 100%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 20ch; }
.hero h1 .accent {
  background: linear-gradient(100deg, var(--gold-soft), var(--violet-soft));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__lead { font-size: clamp(1rem, 3.4vw, 1.18rem); color: rgba(255, 255, 255, 0.9); max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(232, 205, 106, 0.5); background: rgba(201, 162, 39, 0.14);
  color: var(--gold-soft); border-radius: var(--radius-pill);
  padding: 7px 15px; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px;
}

.hero__stats {
  display: flex; flex-wrap: wrap; gap: 24px 34px; margin-top: 34px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero__stat strong { display: block; font-size: 1.5rem; color: var(--gold-soft); }
.hero__stat span { font-size: 0.76rem; color: rgba(255, 255, 255, 0.68); letter-spacing: 0.04em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--radius-pill); border: 1px solid transparent;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; text-align: center;
  transition: transform 0.16s ease, box-shadow 0.2s ease, background 0.2s, color 0.2s, border-color 0.2s;
  line-height: 1.2;
}
.btn:active { transform: scale(0.97); }
.btn--gold {
  background: linear-gradient(120deg, var(--gold-soft), var(--gold));
  color: var(--ink); box-shadow: 0 10px 26px rgba(201, 162, 39, 0.32);
}
.btn--gold:hover { box-shadow: 0 14px 34px rgba(201, 162, 39, 0.46); }
.btn--violet {
  background: linear-gradient(120deg, var(--violet), var(--violet-deep));
  color: #fff; box-shadow: 0 10px 26px rgba(74, 39, 150, 0.36);
}
.btn--violet:hover { box-shadow: 0 14px 34px rgba(74, 39, 150, 0.5); }
.btn--ghost { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.34); }
.btn--ghost:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-dark); }
.btn--outline:hover { border-color: var(--violet); color: var(--violet-deep); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 16px; font-size: 0.83rem; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ==========================================================================
   Galaxia (destacado de la entrada)
   ========================================================================== */
.galaxia {
  background:
    radial-gradient(80% 60% at 80% 20%, rgba(74, 39, 150, 0.5), transparent 65%),
    var(--ink-2);
  color: var(--white);
}
.galaxia__grid { display: grid; gap: 26px; align-items: center; }
.galaxia__figure {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); aspect-ratio: 4 / 3;
}
.galaxia__figure img { width: 100%; height: 100%; object-fit: cover; }
.galaxia__figure::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(232, 205, 106, 0.28), transparent 55%);
  mix-blend-mode: screen;
}
.galaxia__quote {
  font-family: var(--serif); font-size: clamp(1.05rem, 3.4vw, 1.35rem);
  color: var(--violet-soft); border-left: 2px solid var(--gold); padding-left: 16px;
}

/* ==========================================================================
   Sobre Valeria
   ========================================================================== */
.about__grid { display: grid; gap: 30px; }
.about__figure { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about__figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.about__values { display: grid; gap: 12px; margin-top: 22px; }
.value-card {
  display: flex; gap: 13px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm); padding: 15px 17px; box-shadow: var(--shadow-sm);
}
.value-card i { color: var(--violet); font-size: 1.05rem; margin-top: 3px; }
.value-card strong { display: block; font-size: 0.9rem; }
.value-card span { font-size: 0.84rem; color: #5e5772; }

/* ==========================================================================
   Catálogo
   ========================================================================== */
.filters {
  display: flex; gap: 9px; overflow-x: auto; padding: 4px 0 18px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; border: 1px solid var(--line-dark); background: var(--white);
  color: #45405c; border-radius: var(--radius-pill); padding: 9px 16px;
  font-size: 0.82rem; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--violet); color: var(--violet-deep); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }

.product-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
.product-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s;
  position: relative;
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(123, 75, 214, 0.44); }
.product-card__media { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--mist); }
.product-card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.product-card:hover .product-card__media img { transform: scale(1.08); }
.product-card__flag {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  background: rgba(10, 8, 16, 0.82); color: var(--gold-soft);
  border: 1px solid rgba(232, 205, 106, 0.42);
  font-size: 0.6rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius-pill);
  backdrop-filter: blur(6px);
}
.product-card__body { padding: 14px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.product-card__name { font-size: 0.98rem; margin: 0; }
.product-card__tag { font-size: 0.8rem; color: #6b6382; margin: 0; flex: 1; }
.product-card__price { display: flex; align-items: baseline; gap: 6px; margin: 8px 0 10px; }
.product-card__price strong { font-size: 1.16rem; color: var(--violet-deep); }
.product-card__price span { font-size: 0.72rem; color: #7d7694; }
.product-card__actions { display: flex; gap: 8px; align-items: center; }

.qty {
  display: inline-flex; align-items: center; border: 1px solid var(--line-dark);
  border-radius: var(--radius-pill); overflow: hidden; flex: 0 0 auto;
}
.qty button {
  width: 32px; height: 34px; border: 0; background: transparent; cursor: pointer;
  color: var(--ink); font-size: 1rem; line-height: 1; transition: background 0.16s;
}
.qty button:hover { background: var(--violet-wash); }
.qty input {
  width: 34px; height: 34px; border: 0; text-align: center; font-size: 0.86rem;
  font-weight: 600; background: transparent; -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.grid-empty { text-align: center; color: #6b6382; padding: 40px 0; }

/* ==========================================================================
   Mayorista
   ========================================================================== */
.wholesale { background: var(--ink); color: var(--white); }
.ws-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ws-card {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, background 0.25s;
}
.ws-card:hover { border-color: rgba(232, 205, 106, 0.5); transform: translateY(-4px); background: rgba(123, 75, 214, 0.1); }
.ws-card__media { aspect-ratio: 16 / 10; overflow: hidden; }
.ws-card__media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.ws-card__body { padding: 13px; display: flex; flex-direction: column; flex: 1; }
.ws-card__name { font-size: 0.94rem; margin: 0 0 2px; }
.ws-card__tag { font-size: 0.78rem; color: var(--violet-soft); margin: 0 0 9px; flex: 1; }
.ws-card__price { font-size: 0.92rem; color: var(--gold-soft); font-weight: 700; margin: 0 0 2px; }
.ws-card__unit { font-size: 0.7rem; color: rgba(255, 255, 255, 0.6); margin: 0 0 11px; }

.ws-form {
  margin-top: 34px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.ws-form__grid { display: grid; gap: 12px; }

/* ==========================================================================
   Formularios
   ========================================================================== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: #6b6382; }
.on-dark .field label, .section--dark .field label { color: rgba(255, 255, 255, 0.72); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--line-dark); background: var(--white); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s; font-size: 0.92rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(123, 75, 214, 0.18);
}
.field textarea { min-height: 96px; resize: vertical; }
.section--dark .field input, .section--dark .field select, .section--dark .field textarea {
  background: rgba(255, 255, 255, 0.07); border-color: var(--line); color: var(--white);
}
.section--dark .field input::placeholder, .section--dark .field textarea::placeholder { color: rgba(255, 255, 255, 0.42); }
.field--error input, .field--error select { border-color: #c0392b; }
.field__error { font-size: 0.74rem; color: #c0392b; min-height: 0; }
.section--dark .field__error { color: #ff9c8f; }
.form-row { display: grid; gap: 12px; }

/* ==========================================================================
   Opiniones
   ========================================================================== */
.reviews__head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.rating-box {
  display: flex; align-items: center; gap: 16px; background: var(--white);
  border: 1px solid var(--line-dark); border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow-sm);
}
.rating-box__score { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--violet-deep); }
.rating-box__meta { font-size: 0.82rem; color: #5e5772; }
.stars { color: var(--gold); letter-spacing: 0.08em; }
.google-g { font-weight: 700; letter-spacing: -0.02em; }
.google-g span:nth-child(1) { color: #4285f4; }
.google-g span:nth-child(2) { color: #ea4335; }
.google-g span:nth-child(3) { color: #fbbc05; }
.google-g span:nth-child(4) { color: #4285f4; }
.google-g span:nth-child(5) { color: #34a853; }
.google-g span:nth-child(6) { color: #ea4335; }

.reviews-grid { display: grid; gap: 14px; margin-top: 26px; }
.review-card {
  background: var(--white); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 8px;
}
.review-card__top { display: flex; align-items: center; gap: 11px; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 40px; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 0.9rem;
}
.review-card__name { font-weight: 600; font-size: 0.9rem; margin: 0; }
.review-card__date { font-size: 0.74rem; color: #7d7694; }
.review-card__text { font-size: 0.88rem; color: #45405c; margin: 0; }

/* ==========================================================================
   Ubicación
   ========================================================================== */
.location__grid { display: grid; gap: 24px; }
.map-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-dark);
  box-shadow: var(--shadow); min-height: 300px; background: var(--mist);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 300px; border: 0; display: block; }
.info-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 15px; }
.info-list li { display: flex; gap: 13px; align-items: flex-start; }
.info-list i {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center;
  background: var(--violet-wash); color: var(--violet-deep);
}
.info-list strong { display: block; font-size: 0.92rem; }
.info-list span { font-size: 0.85rem; color: #5e5772; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.76); padding: 52px 0 26px; }
.footer-grid { display: grid; gap: 30px; }
.footer-brand__name { color: var(--white); font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; }
.footer-col h3 {
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 0.87rem; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-social { display: flex; gap: 9px; margin-top: 4px; }
.footer-bottom {
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between;
  font-size: 0.79rem;
}
.dev-credit { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.dev-credit a { color: var(--gold-soft); font-weight: 600; }
.dev-credit a:hover { text-decoration: underline; }
.dev-credit .wa-mini { color: var(--wa); }
.footer-legal { font-size: 0.76rem; color: rgba(255, 255, 255, 0.55); }

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */
.wa-float {
  position: fixed; right: 16px; bottom: 18px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  font-size: 1.7rem; box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.22s ease, box-shadow 0.22s;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 16px 40px rgba(37, 211, 102, 0.6); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--wa); animation: wa-pulse 2.6s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.7; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}
.wa-float__label {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; font-size: 0.78rem; font-weight: 600;
  padding: 8px 13px; border-radius: var(--radius-pill); white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
  border: 1px solid var(--line);
}
.wa-float:hover .wa-float__label { opacity: 1; }

/* ==========================================================================
   Carrito (drawer)
   ========================================================================== */
.overlay {
  position: fixed; inset: 0; background: rgba(10, 8, 16, 0.62);
  backdrop-filter: blur(3px); z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.overlay.is-open { opacity: 1; pointer-events: auto; }

.cart-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 110;
  width: min(430px, 100%); background: var(--white);
  display: flex; flex-direction: column;
  transform: translateX(102%); transition: transform 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: var(--shadow-lg);
}
.cart-panel.is-open { transform: translateX(0); }
.cart-panel__head {
  display: flex; align-items: center; gap: 12px; padding: 18px 20px;
  border-bottom: 1px solid var(--line-dark);
}
.cart-panel__head h2 { margin: 0; font-size: 1.1rem; }
.cart-panel__head .icon-btn {
  margin-left: auto; background: var(--mist); border-color: var(--line-dark); color: var(--ink);
}
.cart-panel__body { flex: 1; overflow-y: auto; padding: 16px 20px; -webkit-overflow-scrolling: touch; }
.cart-panel__foot { border-top: 1px solid var(--line-dark); padding: 16px 20px 20px; background: var(--mist); }

.cart-line {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line-dark); align-items: start;
}
.cart-line:last-child { border-bottom: 0; }
.cart-line__thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--mist); }
.cart-line__name { font-size: 0.9rem; font-weight: 600; margin: 0 0 2px; }
.cart-line__unit { font-size: 0.74rem; color: #7d7694; margin: 0 0 8px; }
.cart-line__controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cart-line__remove {
  border: 0; background: transparent; color: #a4361f; font-size: 0.76rem;
  cursor: pointer; padding: 2px 0; text-decoration: underline; text-underline-offset: 2px;
}
.cart-line__price { font-weight: 700; font-size: 0.88rem; color: var(--violet-deep); white-space: nowrap; }

.cart-summary { display: grid; gap: 7px; font-size: 0.88rem; margin-bottom: 14px; }
.cart-summary__row { display: flex; justify-content: space-between; gap: 12px; }
.cart-summary__row--total {
  border-top: 2px solid var(--ink); padding-top: 9px; margin-top: 5px;
  font-size: 1.1rem; font-weight: 800;
}
.cart-empty { text-align: center; padding: 46px 10px; color: #6b6382; }
.cart-empty i { font-size: 2.4rem; color: var(--violet-soft); margin-bottom: 12px; display: block; }

/* ==========================================================================
   Checkout
   ========================================================================== */
.view { display: none; }
.view.is-active { display: block; }

.checkout { padding: calc(var(--header-h) + 34px) 0 60px; background: var(--mist); min-height: 100svh; }
.checkout__grid { display: grid; gap: 24px; }
.panel {
  background: var(--white); border: 1px solid var(--line-dark);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm);
}
.panel__title {
  display: flex; align-items: center; gap: 10px; font-size: 1.02rem; margin: 0 0 16px;
}
.panel__title .step {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--violet); color: #fff; font-size: 0.78rem; font-weight: 700;
}
.panel + .panel { margin-top: 18px; }

.ship-option, .pay-option {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line-dark); border-radius: var(--radius-sm);
  padding: 14px; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.ship-option + .ship-option, .pay-option + .pay-option { margin-top: 10px; }
.ship-option:hover, .pay-option:hover { border-color: var(--violet-soft); }
.ship-option.is-selected, .pay-option.is-selected {
  border-color: var(--violet); background: var(--violet-wash);
  box-shadow: 0 0 0 3px rgba(123, 75, 214, 0.12);
}
.ship-option input, .pay-option input { margin-top: 4px; accent-color: var(--violet); }
.ship-option__body { flex: 1; }
.ship-option__name { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 0.92rem; }
.ship-option__desc { font-size: 0.8rem; color: #5e5772; margin: 2px 0 0; }
.pay-option__name { font-weight: 600; font-size: 0.92rem; }
.pay-option__desc { font-size: 0.79rem; color: #5e5772; margin: 2px 0 0; }
.pay-logos { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.pay-logos span {
  font-size: 0.65rem; font-weight: 700; padding: 3px 9px; border-radius: var(--radius-pill);
  background: var(--ink); color: var(--gold-soft); letter-spacing: 0.04em;
}
.pay-logos span.pix { background: #32bcad; color: #fff; }
.pay-logos span.bille { background: var(--violet); color: #fff; }

.summary-line {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--line-dark); font-size: 0.86rem;
}
.summary-line:last-of-type { border-bottom: 0; }
.summary-line__thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; flex: 0 0 46px; }
.summary-line__name { flex: 1; }
.summary-line__name small { display: block; color: #7d7694; font-size: 0.74rem; }

.secure-note {
  display: flex; gap: 9px; align-items: flex-start; font-size: 0.78rem;
  color: #5e5772; background: var(--violet-wash); border-radius: var(--radius-sm);
  padding: 11px 13px; margin-top: 14px;
}
.secure-note i { color: var(--violet-deep); margin-top: 2px; }

.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.8rem; color: #6b6382; margin-bottom: 18px; }
.breadcrumb button { border: 0; background: transparent; cursor: pointer; color: var(--violet-deep); font-weight: 600; }

/* ==========================================================================
   Éxito
   ========================================================================== */
.success { padding: calc(var(--header-h) + 30px) 0 60px; background: var(--mist); min-height: 100svh; }
.success__card {
  background: var(--white); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 26px 20px; box-shadow: var(--shadow); max-width: 720px; margin: 0 auto;
}
.success__icon {
  width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--violet), var(--gold)); color: #fff;
  font-size: 1.7rem; margin: 0 auto 18px;
  animation: pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { 0% { transform: scale(0.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.success__card h1 { text-align: center; font-size: clamp(1.4rem, 5vw, 2rem); }
.success__sub { text-align: center; color: #5e5772; max-width: 46ch; margin: 0 auto 22px; }
.receipt-box {
  background: var(--mist); border: 1px dashed var(--violet-soft);
  border-radius: var(--radius-sm); padding: 16px; margin-bottom: 18px;
}
.receipt-box__num { font-size: 1.05rem; font-weight: 800; color: var(--violet-deep); word-break: break-all; }
.receipt-grid { display: grid; gap: 10px; font-size: 0.86rem; }
.receipt-grid div { display: flex; justify-content: space-between; gap: 14px; }
.receipt-grid dt { color: #6b6382; }
.receipt-grid dd { margin: 0; font-weight: 600; text-align: right; }
.success__actions { display: flex; flex-wrap: wrap; gap: 11px; justify-content: center; margin-top: 22px; }

/* ==========================================================================
   Toast
   ========================================================================== */
.toast-stack {
  position: fixed; left: 16px; right: 16px; bottom: 88px; z-index: 130;
  display: grid; gap: 9px; justify-items: center; pointer-events: none;
}
.toast {
  background: var(--ink); color: #fff; border: 1px solid var(--line);
  border-left: 3px solid var(--gold); border-radius: var(--radius-sm);
  padding: 12px 17px; font-size: 0.86rem; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px;
  animation: toast-in 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  max-width: 420px;
}
.toast i { color: var(--gold-soft); }
.toast.is-out { animation: toast-out 0.28s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(15px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px); } }

/* ==========================================================================
   Animación al scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }

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

/* ==========================================================================
   Escritorio / tablet
   ========================================================================== */
@media (min-width: 640px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .ws-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-row--2 { grid-template-columns: 1fr 1fr; }
  .form-row--3 { grid-template-columns: repeat(3, 1fr); }
  .ws-form__grid { grid-template-columns: 1fr 1fr; }
  .ws-form__grid .field--full { grid-column: 1 / -1; }
  .brand__tag { display: block; }
  .social-row { display: flex; }
  .toast-stack { bottom: 26px; }
}

@media (min-width: 900px) {
  .section { padding: 92px 0; }
  .main-nav { display: flex; align-items: center; gap: 2px; }
  .social-row { display: flex; }
  .galaxia__grid { grid-template-columns: 1.1fr 1fr; gap: 46px; }
  .about__grid { grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
  .location__grid { grid-template-columns: 1fr 1.25fr; gap: 34px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .checkout__grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .checkout__aside { position: sticky; top: calc(var(--header-h) + 24px); }
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero__lead { font-size: 1.22rem; }
}

@media (min-width: 1100px) {
  .ws-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
