/* =========================================================
   ZOLAR — estilos
   Paleta: cielo de verano limeño + sol + azul mar.
   El fondo "estudio" coincide con el gris de las fotos de producto.
   ========================================================= */

:root {
  --ink: #13294B;        /* azul marino, textos */
  --ink-soft: #4A5A75;
  --sun: #FFC531;        /* amarillo sol, acento principal */
  --sea: #1D6FE0;        /* azul mar */
  --sky: #CFE9F5;        /* cielo del hero */
  --studio: #EDEFF2;     /* mismo gris que el fondo de las fotos */
  --paper: #FFFFFF;
  --wa: #1FA855;         /* verde WhatsApp */
  --line: rgba(19, 41, 75, .14);

  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", system-ui, sans-serif;

  --r-lg: 28px;
  --r-md: 16px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--studio);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 3px; border-radius: 6px; }

/* ---------- Placeholder para fotos que aún no existen ---------- */
.ph {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 6px;
  padding: 16px; text-align: center;
  background:
    repeating-linear-gradient(45deg, transparent 0 14px, rgba(19,41,75,.05) 14px 28px),
    var(--studio);
  color: var(--ink-soft);
  font-size: 13px;
  border: 2px dashed rgba(19,41,75,.25);
  border-radius: inherit;
}
.ph b { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.case .ph { font-size: 11px; padding: 8px; border-width: 1px; }
.case .ph b { font-size: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 0; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none;
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--sun:hover { background: #ffd35c; }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #1c3a68; }
.btn--wa { background: var(--wa); color: #fff; width: 100%; }
.btn--wa:hover { background: #19944a; }
.btn--ghost {
  background: transparent; color: var(--ink); width: 100%;
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--ghost:hover { background: rgba(19,41,75,.06); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 14px var(--gutter);
  transition: background-color .25s ease, box-shadow .25s ease;
}
.nav.is-solid { background: rgba(237,239,242,.92); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav__logo {
  font-family: var(--display); font-weight: 900; font-size: 30px;
  letter-spacing: .04em; text-decoration: none;
}
.nav__links { display: flex; gap: 28px; margin-left: auto; }
.nav__links a { text-decoration: none; font-weight: 600; font-size: 15px; }
.nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.nav__cta {
  background: var(--ink); color: #fff; text-decoration: none;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  background:
    radial-gradient(60% 50% at 78% 18%, #FFF4C9 0%, rgba(255,244,201,0) 60%),
    linear-gradient(180deg, var(--sky) 0%, #E4F2F8 60%, var(--studio) 100%);
}
.hero__banner img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero::after {   /* oscurece la base del banner para que el texto se lea */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(19,41,75,0) 45%, rgba(19,41,75,.55) 100%);
  pointer-events: none;
}
.hero__fallback { display: none; }

/* Sin banner todavía: cielo + foto de producto flotando */
.hero.no-banner::after { display: none; }
.hero.no-banner .hero__banner { display: none; }
.hero.no-banner .hero__fallback {
  display: block; position: absolute;
  width: min(62vw, 620px); right: 4vw; top: 50%;
  transform: translateY(-58%) rotate(-6deg);
  mix-blend-mode: multiply;
  /* difumina los bordes del fondo gris de la foto */
  -webkit-mask-image: radial-gradient(ellipse 48% 34% at 50% 50%, #000 55%, transparent 100%);
          mask-image: radial-gradient(ellipse 48% 34% at 50% 50%, #000 55%, transparent 100%);
  animation: float 7s ease-in-out infinite;
}

.hero__inner {
  position: relative; z-index: 2; width: 100%;
  padding: 0 var(--gutter) clamp(28px, 5vw, 56px);
  color: #fff;
}
.hero.no-banner .hero__inner { color: var(--ink); }

.hero__word {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(120px, 27vw, 420px);
  line-height: .8; letter-spacing: -.01em;
  display: flex;
  margin-left: -.04em;
}
.hero__word span {
  display: inline-block;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}
.hero__word span:nth-child(2) { animation-delay: .06s; }
.hero__word span:nth-child(3) { animation-delay: .12s; }
.hero__word span:nth-child(4) { animation-delay: .18s; }
.hero__word span:nth-child(5) { animation-delay: .24s; }

.hero__copy {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 20px 40px; margin-top: 18px;
  animation: fadeIn .8s .45s both;
}
.hero__lead { max-width: 30ch; font-size: clamp(18px, 2vw, 22px); font-weight: 500; }
.hero__actions { display: flex; align-items: center; gap: 22px; }
.hero__price { font-family: var(--display); font-weight: 700; font-size: 28px; }
.hero__price strong { font-size: 52px; font-weight: 900; }

@keyframes rise { from { transform: translateY(105%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes float {
  0%, 100% { transform: translateY(-58%) rotate(-6deg); }
  50% { transform: translateY(-62%) rotate(-4deg); }
}

/* ---------- Ticker ---------- */
.ticker { background: var(--sun); overflow: hidden; border-block: 2px solid var(--ink); }
.ticker__track {
  display: flex; width: max-content;
  animation: marquee 28s linear infinite;
}
.ticker span {
  font-family: var(--display); font-weight: 900; font-size: 26px;
  padding: 10px 28px; white-space: nowrap;
}
.ticker span::after { content: "☀"; margin-left: 56px; font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Configurador ---------- */
.shop {
  max-width: var(--max); margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) var(--gutter);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px);
  align-items: start;
  scroll-margin-top: 40px;
}
.shop__stage { position: sticky; top: 90px; }

.stage {
  position: relative; aspect-ratio: 3 / 4;
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--studio);
  box-shadow: inset 0 0 0 1px var(--line);
}
.stage::before {   /* halo de color según el lente elegido */
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(55% 40% at 50% 52%, var(--tint, transparent), transparent 70%);
  transition: background .5s ease;
}
.stage__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  z-index: 1; opacity: 0; transform: scale(1.03);
  transition: opacity .45s ease, transform .6s cubic-bezier(.2,.8,.2,1);
  mix-blend-mode: multiply;
}
.stage__img.is-on { opacity: 1; transform: none; }
.stage .ph { z-index: 1; }

.views { display: flex; gap: 12px; margin-top: 14px; }
.view {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px;
  background: var(--paper); border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 600; font-size: 15px;
  opacity: .6; transition: opacity .2s ease, box-shadow .2s ease;
}
.view.is-active { opacity: 1; box-shadow: inset 0 0 0 2px var(--ink); }
.view__thumb {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--studio) center / cover no-repeat;
}

.shop__title {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(48px, 6vw, 76px); letter-spacing: .005em;
}
.shop__price {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  font-family: var(--display); font-weight: 900; font-size: 44px; margin-top: 8px;
}
.shop__price small {
  font-family: var(--body); font-size: 15px; font-weight: 700;
  background: var(--sun); padding: 4px 12px; border-radius: 999px;
}
.shop__ship { color: var(--ink-soft); margin-top: 6px; }

.opt { border: 0; padding: 0; margin: 34px 0 0; }
.opt__label { padding: 0; font-size: 16px; color: var(--ink-soft); margin-bottom: 14px; }
.opt__label strong { color: var(--ink); }
.opt__detail { color: var(--ink-soft); font-size: 15px; margin-top: 12px; min-height: 1.5em; }

/* Círculos de color estilo "elige tu iPhone" */
.swatches { display: flex; flex-wrap: wrap; gap: 18px; }
.swatch {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  border: 3px solid var(--frame, #c9ced6);
  background: var(--lens);
  padding: 0;
  transition: transform .2s ease, filter .25s ease, opacity .25s ease;
  filter: grayscale(.75) brightness(1.05);
  opacity: .5;
}
.swatch::after {   /* anillo de selección */
  content: ""; position: absolute; inset: -9px; border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink);
  opacity: 0; transform: scale(.85);
  transition: opacity .2s ease, transform .25s ease;
}
.swatch:hover { filter: none; opacity: .9; }
.swatch.is-active { filter: none; opacity: 1; transform: scale(1.06); }
.swatch.is-active::after { opacity: 1; transform: none; }
.swatch[disabled] { cursor: not-allowed; opacity: .25; }
.swatch[disabled]::before {
  content: ""; position: absolute; left: 50%; top: -6px; bottom: -6px; width: 2px;
  background: var(--ink); transform: rotate(45deg);
}
.swatch__tag {
  position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%);
  font-size: 11px; font-weight: 700; white-space: nowrap;
  background: var(--ink); color: #fff; padding: 2px 8px; border-radius: 999px;
}
.swatches:has(.swatch__tag) { padding-bottom: 26px; }

/* Tarjetas de estuche */
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.case {
  position: relative; text-align: left;
  border: 0; border-radius: var(--r-md); padding: 10px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s ease, opacity .25s ease, filter .25s ease;
  filter: grayscale(1); opacity: .55;
}
.case:hover { opacity: .85; filter: grayscale(.4); }
.case.is-active { filter: none; opacity: 1; box-shadow: inset 0 0 0 2px var(--ink); }
.case__img {
  display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: var(--studio);
}
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__name { display: block; font-weight: 700; margin: 10px 4px 0; }
.case__desc { display: block; font-size: 14px; color: var(--ink-soft); margin: 2px 4px 4px; line-height: 1.35; }
.case__check {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center;
  font-size: 14px; opacity: 0; transform: scale(.6); transition: .2s ease;
}
.case.is-active .case__check { opacity: 1; transform: none; }

/* Pedido */
.order {
  margin-top: 30px; padding: 18px 20px; border-radius: var(--r-md);
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line);
}
.order__title { font-size: 16px; }
.order__list { list-style: none; padding: 0; margin: 10px 0 0; }
.order__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.order__dot { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--lens); border: 2px solid var(--frame); }
.order__list li span:nth-child(2) { flex: 1; }
.order__remove {
  border: 0; background: none; color: var(--ink-soft);
  font-size: 14px; text-decoration: underline; padding: 4px;
}
.order__total { display: flex; justify-content: space-between; margin-top: 12px; font-weight: 600; }
.order__total strong { font-family: var(--display); font-size: 28px; font-weight: 900; }

.buy { display: grid; gap: 12px; margin-top: 30px; }
.buy__hint { text-align: center; font-size: 14px; color: var(--ink-soft); }

.order__list li.is-new { animation: pop .35s ease; }
@keyframes pop { from { background: #FFF2C2; } to { background: transparent; } }

/* ---------- Beneficios ---------- */
.perks {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 100px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 2px solid var(--ink);
}
.perk { padding: 24px 24px 0 0; }
.perk h3 { font-family: var(--display); font-weight: 900; font-size: 28px; }
.perk p { color: var(--ink-soft); margin-top: 6px; font-size: 15px; max-width: 26ch; }

/* ---------- Lifestyle ---------- */
.looks {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 14px;
}
.look { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--sky); }
.look img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.look:hover img { transform: scale(1.04); }
.look--tall { grid-row: span 2; }
.look--wide { grid-column: span 2; }

/* ---------- Promo ---------- */
.promo {
  max-width: var(--max); margin: clamp(56px, 8vw, 110px) auto 0; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; align-items: stretch;
}
.promo__img {
  position: relative; margin: 0; min-height: 420px;
  border-radius: var(--r-lg) 0 0 var(--r-lg); overflow: hidden; background: var(--sky);
}
.promo__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.promo__copy {
  background: var(--sun); border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: clamp(28px, 5vw, 56px);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.promo__copy h2 { font-family: var(--display); font-weight: 900; font-size: clamp(56px, 7vw, 96px); line-height: .9; }
.promo__copy p { max-width: 34ch; }
.promo__copy .btn { align-self: flex-start; }

/* ---------- Cómo comprar ---------- */
.section-title { font-family: var(--display); font-weight: 900; font-size: clamp(44px, 6vw, 72px); }
.steps { max-width: var(--max); margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter) 0; scroll-margin-top: 70px; }
.steps__list {
  list-style: none; counter-reset: paso; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.steps__list li {
  counter-increment: paso; background: var(--paper); border-radius: var(--r-md);
  padding: 22px; box-shadow: inset 0 0 0 1px var(--line);
}
.steps__list li::before {
  content: counter(paso);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--sea); color: #fff; font-family: var(--display); font-weight: 900; font-size: 22px;
  margin-bottom: 16px;
}
.steps__list h3 { font-size: 18px; }
.steps__list p { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }

/* ---------- Preguntas ---------- */
.faq { max-width: 820px; margin: 0 auto; padding: clamp(56px, 8vw, 110px) var(--gutter); scroll-margin-top: 70px; }
.faq .section-title { margin-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- Footer ---------- */
.foot {
  background: var(--ink); color: #DCE4F0;
  padding: 48px var(--gutter) 90px; text-align: center;
  display: grid; gap: 8px; justify-items: center;
}
.foot__logo { font-family: var(--display); font-weight: 900; font-size: 64px; color: var(--sun); letter-spacing: .04em; }
.foot__small { font-size: 13px; opacity: .7; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(31,168,85,.4);
}
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .shop { grid-template-columns: 1fr; }
  .shop__stage { position: static; }
  .stage { aspect-ratio: 4 / 4.4; }
  .perks { grid-template-columns: 1fr 1fr; }
  .steps__list { grid-template-columns: 1fr 1fr; }
  .promo { grid-template-columns: 1fr; }
  .promo__img { border-radius: var(--r-lg) var(--r-lg) 0 0; min-height: 300px; }
  .promo__copy { border-radius: 0 0 var(--r-lg) var(--r-lg); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero.no-banner .hero__fallback { width: 92vw; right: -6vw; top: 36%; }
  .hero__copy { flex-direction: column; align-items: flex-start; }
  .looks { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .look--tall { grid-row: span 2; }
  .look--wide { grid-column: span 2; }
  .ticker span { font-size: 22px; padding: 8px 18px; }
  .ticker span::after { margin-left: 36px; }
}
@media (max-width: 520px) {
  .perks, .steps__list { grid-template-columns: 1fr; }
  .perk { padding-right: 0; }
  .swatch { width: 52px; height: 52px; }
  .cases { gap: 10px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
