/* =========================================================
   LANDING DE PRODUCTO — Spectral Men's
   Tema oscuro con los colores de StoreShop (azul marino +
   degradado azul → verde del logo).
   Se carga DESPUÉS de styles.css y solo en spectral.html.
   Para una nueva landing: copia este archivo y cambia las
   variables de .lp
   ========================================================= */
.lp {
  --lp-bg: #0b1522;
  --lp-bg-2: #0f1c2c;
  --lp-card: #132438;
  --lp-line: rgba(88, 160, 240, .22);
  --lp-ink: #eef3f8;
  --lp-muted: #a3b3c5;
  --lp-accent: #4aa3ff;      /* azul de marca, aclarado para fondo oscuro */
  --lp-accent-2: #b5e45a;    /* verde de marca, aclarado */
  --lp-grad: linear-gradient(120deg, #2e8bff 0%, #3fb3a8 50%, #a6e22e 100%);
  --lp-on-grad: #0b1522;     /* texto sobre el degradado */
  background: var(--lp-bg);
  color: var(--lp-ink);
}
.lp .muted { color: var(--lp-muted); }
.lp .eyebrow { color: var(--lp-accent); }
.lp .grad-text { background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-brand { background: var(--lp-grad); color: var(--lp-on-grad); font-weight: 600; }
.btn-brand:hover { filter: brightness(1.08); }
.btn-outline-brand { border-color: var(--lp-accent); color: #cfe6ff; }
.btn-outline-brand:hover { background: rgba(74,163,255,.14); }
.lp .section { padding: clamp(56px, 8vw, 110px) 0; }
.lp .section.alt { background: var(--lp-bg-2); }
.lp-title { font-size: clamp(34px, 5vw, 60px); font-weight: 600; letter-spacing: -.02em; text-transform: uppercase; line-height: 1.02; }
.lp-sub { font-size: clamp(26px, 3.4vw, 40px); font-weight: 500; letter-spacing: -.01em; }
.center { text-align: center; }
.center .lead, .center p.muted { margin-left: auto; margin-right: auto; }

/* hero */
.lp-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(32px, 6vw, 72px)) 0 clamp(48px, 7vw, 96px);
  background:
    radial-gradient(700px 420px at 78% 40%, rgba(46,139,255,.30), transparent 65%),
    radial-gradient(600px 300px at 10% 100%, rgba(166,226,46,.12), transparent 70%),
    var(--lp-bg);
}
.lp-hero-grid > *, .split > *, .buy-box > *, .cards-4 > *, .ingr > * { min-width: 0; }
.lp-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.lp-hero .tag { display: inline-flex; gap: 8px; align-items: center; border: 1px solid var(--lp-line); border-radius: 99px; padding: 6px 14px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: #cfe6ff; margin-bottom: 22px; }
.lp-hero h1 { font-size: clamp(40px, 6.2vw, 80px); font-weight: 700; line-height: .98; letter-spacing: -.025em; text-transform: uppercase; }
.lp-hero .lead { color: var(--lp-muted); margin: 22px 0 28px; max-width: 520px; }
.price-block { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; }
.price-block .now { font-size: 36px; font-weight: 600; }
.price-block s { color: var(--lp-muted); font-size: 20px; }
.price-block small { color: var(--lp-muted); }
.lp-hero .hero-actions .btn { min-height: 54px; font-size: 16px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 22px; font-size: 14px; color: var(--lp-muted); }
.hero-checks span { display: inline-flex; gap: 6px; align-items: center; }
.hero-checks svg { width: 16px; height: 16px; color: var(--lp-accent-2); }
.product-stage { position: relative; }
.product-stage .frame {
  position: relative; border-radius: 22px; overflow: hidden; background: #f4f7fb;
  box-shadow: 0 40px 80px -30px rgba(46,139,255,.5), 0 0 0 1px var(--lp-line);
  aspect-ratio: 440 / 760; max-height: 620px; margin-left: auto;
}
.product-stage .frame img { width: 100%; height: 100%; object-fit: cover; }
.product-stage .float-badge {
  position: absolute; left: -18px; bottom: 36px;
  background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 14px;
  padding: 14px 18px; display: flex; gap: 12px; align-items: center; box-shadow: 0 20px 40px -20px #000;
  color: var(--lp-ink); transition: transform .2s;
}
.product-stage .float-badge:hover { transform: translateY(-2px); }
.float-badge .n { font-size: 30px; font-weight: 700; }
.float-badge span { font-size: 13px; color: var(--lp-muted); line-height: 1.3; }
@media (max-width: 860px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .product-stage { max-width: 340px; margin: 0 auto; }
  .product-stage .float-badge { left: -8px; }
}

/* franja de confianza */
.lp-strip { border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); background: var(--lp-bg-2); }
.lp-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.lp-strip .container > * { min-width: 0; }
.lp-strip .container > div { display: flex; gap: 12px; align-items: center; font-size: 14px; }
.lp-strip svg { width: 26px; height: 26px; color: var(--lp-accent); flex: none; }
.lp-strip strong { display: block; font-weight: 600; font-size: 15px; }
@media (max-width: 760px) { .lp-strip .container { grid-template-columns: 1fr 1fr; } }

/* tarjetas */
.cards-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.lp-card { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 16px; padding: 26px; }
.lp-card .ic { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--lp-accent); color: var(--lp-accent); display: grid; place-items: center; margin-bottom: 18px; }
.lp-card .ic svg { width: 26px; height: 26px; }
.lp-card h3 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.lp-card p { color: var(--lp-muted); font-size: 15px; }
@media (max-width: 960px) { .cards-4 { grid-template-columns: 1fr 1fr; } .cards-3 { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cards-4 { grid-template-columns: 1fr; } }

/* ingredientes */
.ingr { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.ingr .lp-card { display: flex; gap: 16px; align-items: flex-start; }
.ingr .dot { flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--lp-grad); color: var(--lp-on-grad); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.ingr h3 { color: #d7ebff; overflow-wrap: anywhere; }
.ingr .lp-card.is-main { border-color: rgba(166,226,46,.45); background: linear-gradient(160deg, rgba(46,139,255,.16), rgba(166,226,46,.08)), var(--lp-card); }
.ingr .lp-card.is-main h3 { color: var(--lp-accent-2); }

/* lista INCI desplegable */
details.inci { max-width: 860px; margin: 28px auto 0; text-align: left; background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 14px; padding: 0 22px; }
details.inci summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 500; position: relative; color: #d7ebff; }
details.inci summary::-webkit-details-marker { display: none; }
details.inci summary::after { content: "+"; position: absolute; right: 0; top: 11px; font-size: 26px; font-weight: 300; color: var(--lp-accent); transition: transform .25s; }
details.inci[open] summary::after { transform: rotate(45deg); }
details.inci p { color: var(--lp-muted); font-size: 14px; line-height: 1.75; padding-bottom: 16px; overflow-wrap: anywhere; }
details.inci p.small { font-size: 13px; border-top: 1px solid var(--lp-line); padding-top: 12px; }

/* estudios */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.stats > * { min-width: 0; }
.stat { background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 18px; padding: 30px 22px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.stat .ring { position: relative; flex: none; width: 132px; height: 132px; display: grid; place-items: center; }
.stat .ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #2e8bff, #3fb3a8 calc(var(--p) * 1.8deg), #a6e22e calc(var(--p) * 3.6deg), rgba(255,255,255,.09) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
          mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
}
.stat .ring span { position: relative; font-size: 34px; font-weight: 700; background: var(--lp-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .ring + p { font-size: 16px; color: var(--lp-muted); max-width: 220px; }
.stat .ring + p strong { color: var(--lp-ink); font-weight: 600; }
.footnotes { list-style: none; counter-reset: fn; max-width: 760px; margin: 28px auto 0; padding: 0; display: grid; gap: 4px; text-align: left; }
.footnotes li { counter-increment: fn; font-size: 12.5px; color: var(--lp-muted); padding-left: 18px; position: relative; }
.footnotes li::before { content: counter(fn); position: absolute; left: 0; top: -2px; font-size: 11px; color: var(--lp-accent); }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } .stat { flex-direction: row; text-align: left; padding: 20px; } .stat .ring { width: 96px; height: 96px; } .stat .ring span { font-size: 26px; } }

/* línea de tiempo */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; text-align: left; position: relative; }
.timeline > * { min-width: 0; }
.timeline .when { display: inline-block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; color: var(--lp-on-grad); background: var(--lp-grad); border-radius: 99px; padding: 4px 12px; margin-bottom: 14px; }
@media (max-width: 960px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .ingr { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ingr { grid-template-columns: 1fr; } }

/* cómo funciona */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.split img { border-radius: 18px; border: 1px solid var(--lp-line); }
.split ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.split li { display: flex; gap: 12px; }
.split li svg { width: 20px; height: 20px; color: var(--lp-accent-2); flex: none; margin-top: 3px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* resultados */
.results { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; }
.results figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--lp-line); background: var(--lp-card); }
.results img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; cursor: zoom-in; }
.disclaimer { font-size: 13px; color: var(--lp-muted); margin-top: 16px; text-align: center; }
@media (max-width: 640px) { .results { grid-template-columns: 1fr; } }

/* videos */
.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 44px auto 0; max-width: 900px; }
.video-card { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 9 / 16; background: #000; border: 1px solid var(--lp-line); }
.video-card video, .video-card img { width: 100%; height: 100%; object-fit: cover; }
.video-card button {
  position: absolute; inset: 0; border: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.6));
  display: flex; align-items: center; justify-content: center;
}
.video-card button span { width: 68px; height: 68px; border-radius: 50%; background: var(--lp-grad); color: var(--lp-on-grad); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.video-card button svg { width: 26px; height: 26px; margin-left: 4px; }
@media (max-width: 860px) {
  .videos { grid-template-columns: repeat(3, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .video-card { scroll-snap-align: center; }
}

/* pasos */
.steps { counter-reset: s; }
.steps .lp-card { position: relative; padding-top: 34px; }
.steps .lp-card::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: -18px; left: 26px;
  width: 38px; height: 38px; border-radius: 50%; background: var(--lp-grad); color: var(--lp-on-grad);
  display: grid; place-items: center; font-weight: 700;
}

/* compra */
.buy-box { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--lp-card); border: 1px solid var(--lp-line); border-radius: 22px; padding: clamp(20px, 4vw, 48px); }
.buy-box .img { background: #f4f7fb; border-radius: 16px; overflow: hidden; }
.buy-box .img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.buy-box .qty { background: transparent; border-color: var(--lp-line); color: var(--lp-ink); }
.buy-box .total-line { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--lp-line); padding-top: 16px; margin: 18px 0; }
.buy-box .total-line strong { font-size: 30px; }
.buy-box .actions { display: grid; gap: 10px; }
.buy-box .actions .btn { min-height: 54px; }
@media (max-width: 860px) { .buy-box { grid-template-columns: 1fr; } .buy-box .img { max-width: 320px; margin: 0 auto; } }

/* preguntas */
.faq { max-width: 820px; margin: 44px auto 0; }
.faq details { border-bottom: 1px solid var(--lp-line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 16px; font-size: 28px; font-weight: 300; color: var(--lp-accent); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--lp-muted); padding: 0 0 22px; }

/* barra fija inferior en móvil */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(11,21,34,.94); backdrop-filter: blur(8px); border-top: 1px solid var(--lp-line);
  padding: 10px var(--gutter); display: none; gap: 12px; align-items: center; justify-content: space-between;
  transform: translateY(100%); transition: transform .3s;
}
.sticky-buy.show { transform: none; }
.sticky-buy .p { font-weight: 600; font-size: 18px; }
.sticky-buy small { display: block; color: var(--lp-muted); font-size: 12px; }
@media (max-width: 860px) {
  .sticky-buy { display: flex; }
  body.lp-page .wa-float { bottom: 84px; }
}

/* visor de imagen */
.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.92); display: none; place-items: center; padding: 20px; }
.lightbox.open { display: grid; }
.lightbox img { max-height: 92vh; width: auto; border-radius: 10px; }
.lightbox button { position: absolute; top: 14px; right: 14px; color: #fff; }

/* encabezado sobre fondo oscuro */
body.lp-page .site-header.is-solid { background: rgba(11,21,34,.95); color: #fff; box-shadow: 0 1px 0 var(--lp-line, rgba(88,160,240,.22)); }
body.lp-page .main-nav { --bg: #0b1522; }
/* en la landing el logo siempre va en su versión clara */
body.lp-page .site-header .brand .logo-dark { display: none; }
body.lp-page .site-header .brand .logo-light { display: block; }
@media (max-width: 860px) { body.lp-page .main-nav { color: #fff; } }
