/* ─── FUENTES ─────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;600;800&family=Noto+Sans:wght@400;500;700;900&display=swap');

/* ─── TOKENS — LIGHT MODE ────────────────────────────────── */
:root {
  --bg:          #f0f0f2;
  --bg2:         #e8e8ec;
  --bg3:         #dddde3;
  --border:      #c8c8d2;
  --text:        #1a1a22;
  --muted:       #6a6a82;
  --card-bg:     #ffffff;

  --accent:      #fdab11;
  --accent2:     #BB2D62;
  --accent3:     #2D5ABB;

  --accent-glow:  rgba(253,171,17,0.15);
  --accent2-glow: rgba(187,45,98,0.12);
  --accent3-glow: rgba(45,90,187,0.12);

  --radius:      10px;
  --font-head:   'Baloo 2', sans-serif;
  --font-body:   'Noto Sans', sans-serif;
  --nav-h:       68px;

  --btn-text-color:     #1a1a22;
  --btn-text-hover:     #fff;
  --btn-bg-start:       #fdab11;
  --btn-bg-end:         #ffcb6b;
  --btn-border:         rgb(160,104,0);
  --btn-hover-bg-start: #BB2D62;
  --btn-hover-bg-end:   #d94070;
  --btn-hover-border:   #9A1E3D;
  --btn-shadow:         0 2px 0 rgba(0,0,0,0.18);
  --btn-shadow-none:    0 0 0 rgba(0,0,0,0.18);
  --btn-padding-y:      0.85rem;
  --btn-padding-x:      1.6rem;
  --btn-radius:         0.5rem;
  --btn-font-size:      0.95rem;

  --hero-orb1: rgba(253,171,17,0.18);
  --hero-orb2: rgba(187,45,98,0.13);
  --hero-orb3: rgba(45,90,187,0.10);
  --hero-grid-color: rgba(0,0,0,0.04);
  --noise-opacity: 0.025;
}

/* ─── DARK MODE ───────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:          #0f0f14;
  --bg2:         #17171f;
  --bg3:         #1f1f2a;
  --border:      #2e2e40;
  --text:        #f0f0f5;
  --muted:       #8888a8;
  --card-bg:     #17171f;

  --accent2-glow: rgba(187,45,98,0.18);
  --accent3-glow: rgba(45,90,187,0.18);

  --btn-text-color: #0f0f14;
  --hero-orb1: rgba(253,171,17,0.10);
  --hero-orb2: rgba(187,45,98,0.08);
  --hero-orb3: rgba(45,90,187,0.08);
  --hero-grid-color: rgba(255,255,255,0.025);
  --noise-opacity: 0.04;
}

/* ─── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ─── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(240,240,242,0.88);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  transition: background 0.3s ease, border-color 0.3s ease;
}
[data-theme="dark"] .navbar {
  background: rgba(15,15,20,0.88);
}

.nav-left  { display: flex; align-items: center; gap: 2.5rem; }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }

.logo { display: flex; align-items: center; gap: 0.6rem; }
.logo img, .logo-img-nav {
  width: 82px; height: 82px; object-fit: contain;
  transition: transform .3s ease;
}
.logo:hover img, .logo:hover .logo-img-nav { transform: scale(1.08) rotate(-4deg); }

.nav-links { display: flex; gap: 0.25rem; }
.nav-links a {
  position: relative;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem; font-weight: 500;
  color: var(--muted); border-radius: 6px;
  transition: color .2s;
}
.nav-links a::after {
  content: "";
  position: absolute; bottom: 0; left: 0.9rem;
  width: calc(100% - 1.8rem); height: 2px;
  background: var(--accent2);
  transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent2); }

/* Theme toggle */
.theme-toggle { cursor: pointer; transition: transform .2s; }
.theme-toggle:hover { transform: rotate(20deg); }

/* ─── BOTONES ─────────────────────────────────────────────── */
.btn-donate {
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  background: linear-gradient(0deg, var(--btn-bg-start) 0%, var(--btn-bg-end) 100%);
  border-bottom: 2px solid var(--btn-border);
  box-shadow: var(--btn-shadow);
  font-size: var(--btn-font-size); font-weight: 800;
  color: var(--btn-text-color);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .2s, transform .2s ease-out, color .2s;
}
.btn-donate:hover {
  background: linear-gradient(0deg, var(--btn-hover-bg-start) 0%, var(--btn-hover-bg-end) 100%);
  border-bottom: 2px solid var(--btn-hover-border);
  color: var(--btn-text-hover); transform: translateY(3px);
}
.btn-donate:active { transform: translateY(5px); border-bottom: 0; box-shadow: var(--btn-shadow-none); }

.btn-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 7px; cursor: pointer; color: var(--muted);
  font-size: 1rem; transition: color .2s, border-color .2s, background .3s;
}
.btn-icon:hover { color: var(--text); border-color: var(--accent2); }

.btn-primary {
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  background: linear-gradient(0deg, var(--btn-bg-start) 0%, var(--btn-bg-end) 100%);
  border-bottom: 2px solid var(--btn-border);
  box-shadow: var(--btn-shadow);
  font-size: var(--btn-font-size); font-weight: 800;
  color: var(--btn-text-color);
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
  transition: background .2s, transform .2s ease-out, color .2s;
}
.btn-primary:hover {
  background: linear-gradient(0deg, var(--btn-hover-bg-start) 0%, var(--btn-hover-bg-end) 100%);
  border-bottom: 2px solid var(--btn-hover-border);
  color: var(--btn-text-hover); transform: translateY(3px);
}
.btn-primary:active { transform: translateY(5px); border-bottom: 0; box-shadow: var(--btn-shadow-none); }
.btn-primary .fa-chevron-right { font-size: .8em; transition: transform .15s ease; }
.btn-primary:hover .fa-chevron-right { transform: translateX(3px); }

.btn-secondary {
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  background: transparent;
  border: 2px solid var(--border);
  font-size: var(--btn-font-size); font-weight: 700;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.btn-secondary:hover { color: var(--text); border-color: var(--muted); background: var(--bg2); }

.btn-on-pink {
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  background: rgba(255,255,255,0.18);
  border: 2px solid rgba(255,255,255,0.55);
  font-size: var(--btn-font-size); font-weight: 800; color: #fff;
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.btn-on-pink:hover { background: rgba(255,255,255,0.3); border-color: #fff; transform: translateY(-2px); }

.btn-on-blue {
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  font-size: var(--btn-font-size); font-weight: 800; color: #fff;
  display: inline-flex; align-items: center; gap: 0.5rem;
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.btn-on-blue:hover { background: rgba(255,255,255,0.25); border-color: #fff; transform: translateY(-2px); }

.btn-coming {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: var(--btn-padding-y) var(--btn-padding-x);
  border-radius: var(--btn-radius);
  background: var(--bg3); border: 1px solid var(--border);
  font-size: var(--btn-font-size); font-weight: 700;
  color: var(--muted); cursor: default;
}

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  text-align: center;
  padding: 7rem 2rem 6rem;
  display: flex; flex-direction: column;
  align-items: center; gap: 0;
  overflow: hidden;
  min-height: 92vh;
  justify-content: center;
}

/* Background orbs */
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
  overflow: hidden;
}
.hero-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px);
}
.hero-orb--1 {
  width: 600px; height: 600px;
  background: var(--hero-orb1);
  top: -100px; left: -120px;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero-orb--2 {
  width: 500px; height: 500px;
  background: var(--hero-orb2);
  top: -80px; right: -80px;
  animation: orbFloat 15s ease-in-out infinite reverse;
}
.hero-orb--3 {
  width: 400px; height: 400px;
  background: var(--hero-orb3);
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 10s ease-in-out infinite 2s;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(30px, -20px) scale(1.05); }
  66%       { transform: translate(-20px, 15px) scale(0.97); }
}
.hero-orb--3 {
  animation: orbFloat3 10s ease-in-out infinite 2s;
}
@keyframes orbFloat3 {
  0%, 100% { transform: translateX(-50%) translate(0,0) scale(1); }
  33%       { transform: translateX(-50%) translate(20px,-15px) scale(1.03); }
  66%       { transform: translateX(-50%) translate(-15px,10px) scale(0.98); }
}

/* Grid overlay */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--hero-grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--hero-grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

/* Hero content above orbs */
.hero > *:not(.hero-bg):not(.hero-floating-cards) {
  position: relative; z-index: 1;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem; font-weight: 600; color: var(--muted);
  margin-bottom: 1.8rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.hero-badge .fa-bolt { color: var(--accent); }

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6.5vw, 5rem);
  font-weight: 800; color: var(--text);
  line-height: 1.05; margin-bottom: 1.2rem;
  letter-spacing: -0.02em;
}
.hero-gradient-text {
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent) 50%, var(--accent3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted); max-width: 520px;
  margin: 0 auto 2.4rem; line-height: 1.75; font-weight: 500;
}

.hero-actions {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: flex; align-items: center; gap: 0;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 14px; padding: 1rem 2rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
  margin-bottom: 3rem;
}
.stat { display: flex; flex-direction: column; align-items: center; padding: 0 1.5rem; }
.stat strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--text); }
.stat span { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Floating cards decoration */
.hero-floating-cards {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.fcard {
  position: absolute;
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.6rem 1rem;
  font-size: 0.82rem; font-weight: 600; color: var(--muted);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  opacity: 0.7;
}
.fcard i { font-size: 1rem; }
.fcard--1 {
  top: 22%; left: 8%;
  animation: fcardFloat 8s ease-in-out infinite;
}
.fcard--1 i { color: var(--accent2); }
.fcard--2 {
  top: 55%; right: 6%;
  animation: fcardFloat 10s ease-in-out infinite 1s;
}
.fcard--2 i { color: var(--accent3); }
.fcard--3 {
  bottom: 20%; left: 12%;
  animation: fcardFloat 9s ease-in-out infinite 0.5s;
}
.fcard--3 i { color: var(--accent); }
@keyframes fcardFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-12px); }
}

/* ─── REVEAL ANIMATIONS ───────────────────────────────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  animation: revealUp 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-left, .reveal-right {
  opacity: 0;
  transition: opacity 0.65s cubic-bezier(0.22,1,0.36,1), transform 0.65s cubic-bezier(0.22,1,0.36,1);
}
.reveal-left  { transform: translateX(-36px); }
.reveal-right { transform: translateX(36px); }
.reveal-left.in-view, .reveal-right.in-view {
  opacity: 1; transform: translateX(0);
}

/* ─── STRIPES ─────────────────────────────────────────────── */
.stripe {
  position: relative;
  padding: 9rem 2.5rem;
  overflow: visible;
}
.stripe--light { background: var(--bg); }
.stripe--pink  { background: var(--accent2); }
.stripe--blue  { background: var(--accent3); }

.stripe--pink {
  clip-path: polygon(0 5%, 100% 0%, 100% 95%, 0% 100%);
  margin-top: -4rem; margin-bottom: -4rem;
  z-index: 2;
}
.stripe--blue {
  clip-path: polygon(0 0%, 100% 5%, 100% 100%, 0% 95%);
  margin-top: -4rem; margin-bottom: -4rem;
  z-index: 1;
}
.stripe--light:last-of-type { padding-top: 10rem; }

.stripe-inner {
  max-width: 1080px; margin: 0 auto;
  display: flex; align-items: center;
  gap: 5rem; flex-wrap: wrap;
}
.stripe-inner--reverse { flex-direction: row-reverse; }

.stripe-img { flex: 1 1 320px; display: flex; justify-content: center; }

.stripe-img-placeholder {
  width: 300px; height: 240px;
  background: rgba(255,255,255,0.12);
  border-radius: 24px;
  border: 2px dashed rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; color: rgba(255,255,255,0.65);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stripe-img-placeholder:hover { transform: scale(1.03); box-shadow: 0 20px 50px rgba(0,0,0,0.12); }
.stripe--light .stripe-img-placeholder {
  background: var(--bg2); border-color: var(--border);
  color: var(--accent2);
}
.stripe-img img { max-width: 100%; filter: drop-shadow(0 16px 40px rgba(0,0,0,0.18)); }

.stripe-text { flex: 1 1 300px; }

.stripe-eyebrow {
  font-size: 0.75rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.6rem;
}
.stripe--light .stripe-eyebrow { color: var(--accent2); }

.stripe-text h2 {
  font-family: var(--font-head);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800; line-height: 1.1;
  margin-bottom: 1rem; color: #fff;
  letter-spacing: -0.02em;
}
.stripe--light .stripe-text h2 { color: var(--text); }

.stripe-text p {
  font-size: 1.05rem; line-height: 1.75;
  margin-bottom: 1.6rem; max-width: 420px;
  color: rgba(255,255,255,0.78);
}
.stripe--light .stripe-text p { color: var(--muted); }

.feature-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.5rem;
  margin-bottom: 2rem;
}
.feature-list li {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 0.9rem; font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.feature-list li i {
  width: 18px; height: 18px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.65rem; flex-shrink: 0;
}
.stripe--light .feature-list li { color: var(--muted); }
.stripe--light .feature-list li i { background: var(--accent2-glow); color: var(--accent2); }

/* ─── PAGE HEADER ─────────────────────────────────────────── */
.page-header {
  padding: 3rem 2rem 0;
  max-width: 1200px; margin: 0 auto;
}
.page-header h2 {
  font-family: var(--font-head);
  font-size: 2rem; font-weight: 800;
  color: var(--text); margin-bottom: 0.5rem;
}
.page-header p { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }

/* ─── SEARCH & FILTERS ────────────────────────────────────── */
.search-area { max-width: 1200px; margin: 0 auto; padding: 1.5rem 2rem 0; }
.search-bar-wrap { position: relative; max-width: 600px; margin: 0 auto 1.25rem; }
.search-bar-wrap i {
  position: absolute; left: 1rem; top: 50%;
  transform: translateY(-50%); color: var(--muted); font-size: 0.9rem;
}
#search-bar {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-family: var(--font-body); font-size: 0.95rem;
  outline: none; box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: border-color .2s, box-shadow .2s;
}
#search-bar::placeholder { color: var(--muted); }
#search-bar:focus { border-color: var(--accent2); box-shadow: 0 0 0 3px rgba(187,45,98,0.1); }

.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.75rem;
  padding: 1rem 0; border-bottom: 1px solid var(--border); margin-bottom: 1.5rem;
}
.filter-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag-btn {
  padding: 0.35rem 0.85rem; font-size: 0.82rem; font-weight: 600;
  color: var(--muted); background: var(--bg3);
  border: 1px solid var(--border); border-radius: 6px;
  cursor: pointer; transition: all .2s; font-family: var(--font-body);
}
.tag-btn:hover { color: var(--text); border-color: var(--muted); }
.tag-btn.active {
  color: #fff; background: var(--accent2);
  border-color: #9A1E3D;
  box-shadow: 0 2px 0 rgba(0,0,0,0.18);
}
.sort-wrap { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--muted); }
#sort-select {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text); font-family: var(--font-body);
  font-size: 0.85rem; padding: 0.35rem 0.7rem; cursor: pointer; outline: none;
}

/* ─── GRID ────────────────────────────────────────────────── */
.grid-section { max-width: 1200px; margin: 0 auto; padding: 0 2rem 4rem; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

/* ─── CARD ────────────────────────────────────────────────── */
.card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .22s cubic-bezier(.22,1,.36,1), border-color .2s, box-shadow .22s;
  animation: fadeUp .35s ease both;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: var(--accent2);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(187,45,98,0.2);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.card-thumb {
  width: 100%; aspect-ratio: 16/9;
  background: var(--bg3);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; user-select: none; overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-thumb.no-img {
  background: linear-gradient(135deg, var(--bg3) 0%, var(--bg2) 100%);
  color: var(--border);
}
.card-body { padding: 0.9rem 1rem 1rem; }
.card-title {
  font-family: var(--font-head); font-size: 1rem; font-weight: 700;
  margin-bottom: 0.35rem; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.5rem; }
.card-tag {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  background: var(--bg3); border-radius: 4px; padding: 0.15rem 0.5rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.card-tag.accent { color: var(--accent2); background: rgba(187,45,98,0.1); }
.card-meta { font-size: 0.78rem; color: var(--muted); }
.price-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--accent2); color: #fff;
  font-weight: 800; font-size: 0.78rem;
  padding: 0.2rem 0.55rem; border-radius: 5px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.card-thumb-wrap { position: relative; }
.platform-links { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.4rem; }
.platform-link {
  font-size: 0.72rem; font-weight: 600; color: var(--muted);
  background: var(--bg3); padding: 0.15rem 0.5rem;
  border-radius: 4px; transition: color .15s;
}
.platform-link:hover { color: var(--accent2); }

/* ─── STATES ──────────────────────────────────────────────── */
.state-msg {
  grid-column: 1 / -1; text-align: center;
  padding: 4rem 2rem; color: var(--muted); font-size: 0.95rem;
}
.state-msg .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border); border-top-color: var(--accent2);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 0.75rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.result-count { font-size: 0.82rem; color: var(--muted); margin-bottom: 1rem; }

/* ─── MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(6px);
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: 16px; max-width: 560px; width: 100%;
  overflow: hidden; transform: translateY(20px) scale(0.97);
  transition: transform .25s cubic-bezier(.22,1,.36,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: var(--bg3); }
.modal-content { padding: 1.5rem; }
.modal-title { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; margin-bottom: 0.5rem; color: var(--text); }
.modal-desc { font-size: 0.9rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.modal-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 1rem; transition: border-color .2s, background .2s;
}
.modal-close:hover { border-color: var(--accent2); background: var(--bg2); }

/* ─── FOOTER ──────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
  padding: 3.5rem 2.5rem 2rem;
}
.footer-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand {}
.footer-logo {
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-head); font-weight: 800;
  font-size: 1.1rem; color: var(--text);
  margin-bottom: 0.75rem;
}
.footer-brand p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; max-width: 260px; margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: 0.5rem; }
.footer-links-group { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links-group h4 {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 800;
  color: var(--text); text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.footer-links-group a {
  font-size: 0.88rem; color: var(--muted);
  transition: color .2s;
}
.footer-links-group a:hover { color: var(--accent2); }
.footer-bottom {
  max-width: 1080px; margin: 1.5rem auto 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: var(--muted);
}
.footer-donate {
  color: var(--accent2); font-weight: 700;
  transition: opacity .2s;
}
.footer-donate:hover { opacity: 0.8; }

/* ── DETAIL: imagen a la izquierda ───────────────── */

.detail-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

#detail-img {
  width: 320px;
  max-width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  flex-shrink: 0;
}

.detail-main {
  flex: 1;
}

.detail-hero {
  display: block;
  padding: 0;
  background: none;
}

@media (max-width: 768px) {
  .detail-content {
    flex-direction: column;
  }

  #detail-img {
    width: 100%;
  }
}

/* ── DETALLE: Layout con imagen a la derecha ───────────────── */
.detail-content {
  display: flex;
  flex-direction: row-reverse; /* Mueve la imagen a la derecha */
  gap: 3rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.detail-body {
  flex: 1; /* El texto ocupa el espacio restante a la izquierda */
}

/* Contenedor de imágenes (Derecha) */
.detail-media-side {
  width: 625px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Imagen Principal (625x350) */
#detail-img {
  width: 625px;
  height: 350px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Contenedor de las 2 imágenes de abajo (mitad de tamaño) */
.detail-extra-imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.detail-extra-imgs img {
  width: 100%;
  height: 165px; /* Aproximadamente la mitad del alto principal */
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg3);
}

/* ── RELACIONADOS: Corrección de tamaño ───────────────────── */
.related-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.related-section h3 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  margin-bottom: 2rem;
}

#related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); /* Evita que sean gigantes */
  gap: 1.5rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .stripe-inner { flex-direction: column !important; gap: 3rem; text-align: center; }
  .stripe-text p { max-width: 100%; }
  .stripe { padding: 7rem 1.5rem; }
  .stripe--pink  { clip-path: polygon(0 3%, 100% 0%, 100% 97%, 0% 100%); margin-top: -2.5rem; margin-bottom: -2.5rem; }
  .stripe--blue  { clip-path: polygon(0 0%, 100% 3%, 100% 100%, 0% 97%); margin-top: -2.5rem; margin-bottom: -2.5rem; }
  .stripe--light:last-of-type { padding-top: 7rem; }
  .feature-list { align-items: center; }
  .hero-floating-cards { display: none; }
  .hero-stats { padding: 0.75rem 1rem; }
  .stat { padding: 0 0.85rem; }
  .fcard { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .logo img, .logo-img-nav { width: 52px; height: 52px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; }
  .hero { padding: 4rem 1.5rem 3.5rem; min-height: auto; }
  .hero-stats { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 1100px) {
  .detail-content {
    flex-direction: column; /* En móviles vuelve a ser vertical */
    align-items: center;
  }
  .detail-media-side, #detail-img {
    width: 100%;
    height: auto;
  }
}