/* ============================================
   CLUDY SHOP — capa "pro" (se carga DESPUÉS de styles.css)
   ============================================ */

:root {
  --black: #060912;
  --black-soft: #0a0f1d;
  --black-card: #0e1424;
  --black-elevated: #141b30;
  --line: rgba(148, 163, 255, 0.1);
  --line-strong: rgba(120, 150, 255, 0.28);
  --gray-100: #e9ecf6;
  --gray-300: #a3abc2;
  --gray-500: #6b7391;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --radius: 10px;
  --radius-lg: 16px;
}

body { font-feature-settings: "ss01", "cv11"; -webkit-font-smoothing: antialiased; }
.noise-overlay { opacity: 0.018; }

/* ---- Accesibilidad ---- */
.skip-link {
  position: absolute; left: 12px; top: -48px; z-index: 5000;
  background: var(--blue-strong); color: #fff; padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--blue-bright); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Cabecera ---- */
.header { background: rgba(6, 9, 18, 0.72); border-bottom: 1px solid var(--line); }
.header.scrolled { background: rgba(6, 9, 18, 0.92); }
.logo-text { font-weight: 800; letter-spacing: -0.03em; }
.nav-link { font-weight: 600; border-radius: 8px; }
.nav-link:hover, .nav-link.active { background: rgba(80, 120, 255, 0.12); }
.search-box input { background: var(--black-card); border-color: var(--line); border-radius: 10px; }
.search-box input:focus { box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.18); }

/* ---- Botones ---- */
.btn { border-radius: 10px; font-weight: 650; letter-spacing: -0.005em; }
.btn-primary { background: linear-gradient(180deg, #2a6bff, #0a4fe6); box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 8px 24px rgba(0, 82, 255, .32); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.22) inset, 0 12px 30px rgba(0, 82, 255, .45); }
.btn-outline { border-color: var(--line-strong); }
.btn-lg { padding: 16px 30px; font-size: 1rem; }

/* ---- Hero ---- */
.hero { min-height: auto; padding-top: 72px; }
.hero-split {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 64px; align-items: center; padding: 96px 0 88px;
}
.hero-title { font-size: clamp(2.6rem, 5.6vw, 4.5rem); line-height: 1.02; letter-spacing: -0.04em; font-weight: 800; }
.hero-desc { font-size: 1.1rem; max-width: 520px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; border-radius: 8px; background: rgba(0, 82, 255, .1); }
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(46, 213, 115, .18); }
.hero-cta { margin-bottom: 44px; }
.hero-stats { gap: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat-value { font-size: 1.7rem; letter-spacing: -0.03em; }

/* Recibo de pedido: lo memorable del hero */
.receipt {
  position: relative; background: linear-gradient(180deg, var(--black-elevated), var(--black-card));
  border: 1px solid var(--line-strong); border-radius: 18px; padding: 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255,255,255,.02) inset;
  transform: rotate(1.2deg);
}
.receipt::before {
  content: ""; position: absolute; inset: -40px -30px auto auto; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(0, 82, 255, .35), transparent 65%); filter: blur(30px); z-index: -1;
}
.receipt-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.receipt-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .95rem; color: var(--white); }
.receipt-note { font-size: .78rem; color: var(--gray-500); }
.receipt-lines { list-style: none; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); padding: 14px 0; margin-bottom: 14px; }
.receipt-lines li { display: flex; justify-content: space-between; padding: 5px 0; font-size: .92rem; color: var(--gray-100); }
.receipt-lines li span:last-child { color: var(--gray-300); font-variant-numeric: tabular-nums; }
.receipt-steps { list-style: none; display: grid; gap: 12px; margin-bottom: 18px; }
.receipt-steps li { display: flex; align-items: center; gap: 12px; font-size: .92rem; color: var(--gray-300); opacity: 0; transform: translateY(6px); animation: stepIn .5s ease forwards; }
.receipt-steps li:nth-child(1) { animation-delay: .5s; }
.receipt-steps li:nth-child(2) { animation-delay: 1.2s; }
.receipt-steps li:nth-child(3) { animation-delay: 1.9s; }
.receipt-steps i {
  flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(46, 213, 115, .16);
  border: 1px solid rgba(46, 213, 115, .5); position: relative;
}
.receipt-steps i::after {
  content: ""; position: absolute; left: 7px; top: 3.5px; width: 5px; height: 9px;
  border: solid var(--success); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.receipt-total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.receipt-total strong { font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -0.02em; }
@keyframes stepIn { to { opacity: 1; transform: none; } }

/* ---- Banda de confianza ---- */
.trust-bar { background: var(--black-soft); border-block: 1px solid var(--line); padding: 22px 0; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.trust-item { display: flex; align-items: center; gap: 10px; color: var(--gray-300); font-size: .92rem; font-weight: 500; }
.trust-item svg { color: var(--blue-bright); flex: none; }
.trust-pay { display: flex; gap: 10px; align-items: center; }
.trust-pay .payment-icon { width: 30px; height: 30px; border-radius: 7px; }

/* ---- Secciones ---- */
.section { padding: 96px 0; }
.section-header { margin-bottom: 44px; }
.section-title { letter-spacing: -0.035em; }
.section-desc { font-size: 1.02rem; }

/* ---- Productos ---- */
.products-section { background: var(--black); }
.filter-btn { border-radius: 8px; background: var(--black-card); border-color: var(--line); font-weight: 600; }
.filter-btn:hover, .filter-btn.active { background: rgba(0, 82, 255, .16); border-color: var(--line-strong); }
.product-card { border-color: var(--line); border-radius: 14px; background: var(--black-card); }
.product-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.product-image { height: 190px; background: radial-gradient(120% 120% at 50% 0%, rgba(0, 82, 255, .14), var(--black-elevated) 70%); }
.product-info { padding: 18px 20px 20px; }
.product-category { font-size: .72rem; letter-spacing: .06em; }
.product-name { letter-spacing: -0.02em; }
.add-to-cart { border-radius: 9px; font-weight: 600; }
.offer-tag { border-radius: 6px; }
.product-meta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.product-meta-row .product-meta { font-size: .74rem; padding: 3px 10px; border-radius: 6px; background: rgba(0, 82, 255, .1); color: var(--blue-bright); }

/* ---- Cómo funciona (secuencia real) ---- */
.steps-section { background: var(--black-soft); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: step; position: relative; }
.step { padding: 8px 32px 8px 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step::before {
  counter-increment: step; content: counter(step); display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%; margin-bottom: 18px;
  background: rgba(0, 82, 255, .14); border: 1px solid var(--line-strong);
  font-family: var(--font-display); font-weight: 800; color: var(--blue-bright);
}
.step h3 { font-family: var(--font-display); font-size: 1.2rem; letter-spacing: -0.02em; margin-bottom: 8px; }
.step p { color: var(--gray-300); font-size: .96rem; max-width: 34ch; }

/* ---- Soporte ---- */
.about-section { background: var(--black); }
.about-card { border-radius: 14px; border-color: var(--line); background: var(--black-card); }
.about-card h4 { color: var(--white); }
.discord-btn { border-radius: 10px; }

/* ---- FAQ ---- */
.faq-section { background: var(--black-soft); border-top: 1px solid var(--line); }
.faq-item { border-color: var(--line); border-radius: 12px; background: var(--black-card); }
.faq-item.open { border-color: var(--line-strong); }
.faq-question { font-size: 1rem; }

/* ---- Reseñas ---- */
.reviews-section { background: var(--black); }
.review-card { border-color: var(--line); border-radius: 14px; }
.review-card::after { content: "Compra verificada"; display: block; margin-top: 14px; font-size: .74rem; color: var(--success); }
.reviews-summary { border-color: var(--line); border-radius: 14px; }

/* ---- Footer profesional ---- */
.footer { background: var(--black-soft); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px; margin-bottom: 44px; }
.footer-grid h4 { font-size: .9rem; color: var(--white); margin-bottom: 14px; font-weight: 700; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid a { color: var(--gray-300); text-decoration: none; font-size: .92rem; transition: color .2s; }
.footer-grid a:hover { color: var(--white); }
.footer-brand { align-items: flex-start; flex-wrap: wrap; }
.footer-brand p { flex-basis: 100%; max-width: 32ch; font-size: .92rem; color: var(--gray-300); margin-top: 6px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--gray-500); }
.footer-pay { display: flex; gap: 8px; align-items: center; }
.footer-pay .payment-icon { width: 26px; height: 26px; font-size: .75rem; border-radius: 6px; }

/* ---- Volver arriba ---- */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 44px; height: 44px; border-radius: 10px;
  background: var(--black-elevated); border: 1px solid var(--line-strong); color: var(--white); cursor: pointer;
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-strong); }

/* ---- Modales / toast ---- */
.modal { border-radius: 16px; border-color: var(--line-strong); background: var(--black-card); }
.toast { border-radius: 12px; }
.payment-option-card { border-radius: 12px; }

/* ---- Páginas legales / 404 ---- */
.legal { padding: 130px 0 90px; }
.legal-wrap { max-width: 760px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.035em; margin-bottom: 8px; }
.legal .updated { color: var(--gray-500); font-size: .9rem; margin-bottom: 36px; }
.legal h2 { font-family: var(--font-display); font-size: 1.25rem; margin: 34px 0 10px; letter-spacing: -0.02em; }
.legal p, .legal li { color: var(--gray-300); line-height: 1.8; margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--blue-bright); }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.notfound h1 { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 9rem); line-height: 1; letter-spacing: -0.06em; background: linear-gradient(135deg, var(--blue-bright), var(--blue-strong)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--gray-300); margin: 8px 0 28px; }

/* ---- Responsive ---- */
@media (max-width: 960px) {
  .hero-split { grid-template-columns: 1fr; gap: 48px; padding: 64px 0; }
  .receipt { transform: none; max-width: 460px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step, .step + .step { padding: 0; border: 0; }
}
@media (max-width: 560px) {
  .section { padding: 68px 0; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-inner { justify-content: flex-start; }
}
