/*
 * FilmJX Tienda — cinematic storefront without a UI framework.
 * The visual layer is static CSS: no third-party fonts, trackers, page builders or runtime bundles.
 */

:root {
  --background: #f6f4f0;
  --surface: #ffffff;
  --surface-muted: #ede9e3;
  --foreground: #171820;
  --night: #080a12;
  --night-soft: #111522;
  --primary: #3559f6;
  --primary-hover: #2446d7;
  --primary-foreground: #ffffff;
  --accent: #9156ff;
  --electric: #5ec8ff;
  --text-secondary: #60616b;
  --text-on-dark: #f8f8fc;
  --text-on-dark-muted: #b7b9c7;
  --border: #ded9d1;
  --border-dark: rgb(255 255 255 / 14%);
  --danger: #b42318;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 18px 50px rgb(21 24 37 / 10%);
  --shadow-hover: 0 28px 70px rgb(21 24 37 / 17%);
  --maxw: 1160px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--electric);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--foreground);
  padding: 0.75rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.75rem;
  top: 0.75rem;
}

.wrap {
  width: min(100% - 2.5rem, var(--maxw));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: relative;
  z-index: 20;
  background: rgb(255 255 255 / 92%);
  border-bottom: 1px solid rgb(222 217 209 / 80%);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--foreground);
  font-weight: 780;
  font-size: 1.05rem;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 7px 18px rgb(53 89 246 / 28%);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 850;
}

.brand-accent {
  background: linear-gradient(100deg, var(--primary), var(--accent));
  background-clip: text;
  color: transparent;
}

.brand-section {
  font-weight: 540;
  color: var(--text-secondary);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-size: 0.9rem;
  font-weight: 610;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:not(.nav-contact):hover {
  color: var(--primary);
}

.nav-contact {
  padding: 0.52rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.nav-contact:hover {
  border-color: var(--foreground);
  background: var(--foreground);
  color: #fff;
}

/* ---------- Hero ---------- */

.hero-shell {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 12% 10%, rgb(77 102 255 / 28%), transparent 32%),
    radial-gradient(circle at 88% 83%, rgb(145 86 255 / 26%), transparent 34%), var(--night);
  color: var(--text-on-dark);
}

.hero-shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 3%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 3%) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  content: '';
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  min-height: 600px;
  padding-block: clamp(4.5rem, 9vw, 7rem);
}

.hero-copy {
  max-width: 650px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: #c8ccff;
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 16px var(--electric);
}

.eyebrow-dark {
  color: var(--primary);
}

.hero-copy h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3.2rem, 7.2vw, 6.2rem);
  font-weight: 780;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.hero-copy h1 strong {
  display: block;
  background: linear-gradient(100deg, #77d8ff 3%, #9384ff 48%, #dc79ff 96%);
  background-clip: text;
  color: transparent;
  font-weight: inherit;
}

.hero-lede {
  max-width: 57ch;
  margin: 1.8rem 0 0;
  color: var(--text-on-dark-muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.1rem;
}

.text-link {
  color: #fff;
  font-weight: 660;
  text-decoration: none;
}

.text-link span {
  display: inline-block;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translate(3px, -3px);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 2rem;
  color: #9093a5;
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

.hero-meta span:not(:last-child)::after {
  margin-left: 1.2rem;
  color: #464958;
  content: '•';
}

.hero-art {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 470px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 90px rgb(0 0 0 / 38%);
  color: #fff;
  text-decoration: none;
  transform: rotate(1.3deg);
  transition:
    transform 260ms ease,
    box-shadow 260ms ease;
}

.hero-art:hover {
  box-shadow: 0 40px 110px rgb(52 61 136 / 42%);
  transform: rotate(0deg) translateY(-5px);
}

.hero-art::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(4 5 10 / 94%), transparent 58%);
  content: '';
}

.hero-art img {
  width: 100%;
  height: 100%;
  min-height: 470px;
  object-fit: cover;
  transition: transform 600ms ease;
}

.hero-art:hover img {
  transform: scale(1.035);
}

.hero-art-caption {
  position: absolute;
  z-index: 2;
  right: 1.75rem;
  bottom: 1.6rem;
  left: 1.75rem;
  display: grid;
  gap: 0.15rem;
}

.hero-art-caption small {
  color: #a8abbb;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-art-caption strong {
  font-size: 1.25rem;
  line-height: 1.3;
}

.hero-art-caption > span {
  color: #d4d5dd;
  font-size: 0.88rem;
}

/* ---------- Trust and collection ---------- */

.trust-strip {
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.trust-strip .wrap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
  padding-block: 1.25rem;
}

.trust-strip p {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.78rem;
}

.trust-strip p > span {
  color: var(--primary);
  font-size: 1rem;
}

.trust-strip strong {
  color: var(--foreground);
}

.collection {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(18rem, 0.55fr);
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.25rem;
}

.section-heading h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.section-heading > p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 26px rgb(21 24 37 / 5%);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.card:hover {
  border-color: #cbc3e9;
  box-shadow: var(--shadow-hover);
  transform: translateY(-7px);
}

.card-media {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--surface-muted);
}

.card-media::after {
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, rgb(8 10 18 / 25%), transparent);
  content: '';
  pointer-events: none;
}

.card-media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 480ms ease;
}

.card:hover .card-media img {
  transform: scale(1.045);
}

.product-badge {
  position: absolute;
  z-index: 2;
  top: 0.85rem;
  left: 0.85rem;
  padding: 0.35rem 0.62rem;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 999px;
  background: rgb(12 14 24 / 78%);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 740;
  letter-spacing: 0.03em;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.card-kicker {
  margin: 0 0 0.5rem;
  color: var(--primary);
  font-size: 0.66rem;
  font-weight: 760;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-body h3 {
  margin: 0;
  font-size: 1.12rem;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

.card-body h3 a {
  text-decoration: none;
}

.card-body h3 a:hover {
  color: var(--primary);
}

.card-copy {
  min-height: 3rem;
  margin: 0.65rem 0 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.card-price-row {
  margin-top: 1rem;
}

.price {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

.price small {
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 570;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.card-actions {
  margin-top: auto;
  padding-top: 1.2rem;
}

.card-actions .btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0.78rem 1.2rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.btn-primary {
  background: linear-gradient(110deg, var(--primary), #664be8);
  box-shadow: 0 10px 28px rgb(53 89 246 / 28%);
  color: var(--primary-foreground);
}

.btn-primary:hover:not([disabled]) {
  box-shadow: 0 14px 34px rgb(53 89 246 / 38%);
  color: var(--primary-foreground);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}

.btn-secondary:hover {
  border-color: var(--foreground);
  background: var(--foreground);
  color: #fff;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Product detail ---------- */

.product-shell {
  min-height: 70vh;
  padding-block: 1.5rem clamp(4rem, 8vw, 7rem);
  background:
    radial-gradient(circle at 92% 9%, rgb(97 107 255 / 12%), transparent 25%), var(--background);
}

.breadcrumb {
  display: flex;
  overflow: hidden;
  align-items: center;
  gap: 0.6rem;
  padding-block: 0.9rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  white-space: nowrap;
}

.breadcrumb a {
  color: var(--primary);
  font-weight: 650;
  text-decoration: none;
}

.breadcrumb span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
}

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.product-visual {
  position: sticky;
  top: 1.5rem;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-muted);
  box-shadow: var(--shadow);
}

.product-visual img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.product-visual figcaption {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.42rem 0.72rem;
  border: 1px solid rgb(255 255 255 / 50%);
  border-radius: 999px;
  background: rgb(8 10 18 / 80%);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 730;
}

.product-info {
  padding-top: 0.35rem;
}

.product-info h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.8vw, 4.3rem);
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.product-info .lede {
  margin: 1.2rem 0 0;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.buy-box {
  margin: 1.8rem 0 0;
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 36px rgb(21 24 37 / 7%);
}

.buy-price {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.buy-price > small {
  color: var(--text-secondary);
  font-size: 0.68rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.buy-box .price {
  font-size: 1.8rem;
}

.buy-note {
  margin: 0.8rem 0 0;
  color: var(--text-secondary);
  font-size: 0.75rem;
  text-align: center;
}

.unavailable,
.checkout-paused {
  margin: 0;
  padding: 1rem;
  border: 1px solid #d9d2c7;
  border-radius: var(--radius-sm);
  background: #f3f0ea;
  color: var(--foreground);
}

.unavailable {
  font-size: 0.88rem;
  font-weight: 620;
}

.checkout-paused p {
  margin: 0 0 0.85rem;
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.55;
}

.product-assurances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.product-assurances span {
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 0.72rem;
  line-height: 1.45;
}

.product-assurances strong {
  display: block;
  color: var(--foreground);
}

.product-details {
  margin-top: 2rem;
}

.product-details h2 {
  margin: 1.8rem 0 0.8rem;
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.feature-list,
.notes {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.notes li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.feature-list li::before,
.notes li::before {
  position: absolute;
  top: 0.46rem;
  left: 0.15rem;
  display: grid;
  width: 0.9rem;
  height: 0.9rem;
  place-items: center;
  border-radius: 50%;
  background: rgb(53 89 246 / 12%);
  color: var(--primary);
  content: '✓';
  font-size: 0.58rem;
  font-weight: 850;
}

.notes li::before {
  background: rgb(145 86 255 / 12%);
  color: var(--accent);
  content: '•';
}

/* ---------- Status and simple pages ---------- */

.alert {
  margin-top: 0.875rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--danger);
  border-radius: var(--radius-sm);
  background: #fef3f2;
  color: var(--danger);
  font-size: 0.88rem;
}

.alert:empty {
  display: none;
}

.panel {
  max-width: 46rem;
  margin: clamp(3.5rem, 10vw, 7rem) auto;
  padding: clamp(1.5rem, 5vw, 3rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.panel p {
  color: var(--text-secondary);
}

.panel .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--text-on-dark-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.7fr 0.8fr;
  gap: 3rem;
  padding-block: 4rem 3rem;
}

.brand-footer {
  color: #fff;
}

.footer-grid > div:first-child > p {
  max-width: 38ch;
  margin: 1rem 0 0;
  font-size: 0.86rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  font-size: 0.82rem;
}

.footer-links strong {
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 1.2rem;
  border-top: 1px solid var(--border-dark);
  color: #777a89;
  font-size: 0.7rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 62rem) {
  .hero-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-art {
    min-height: 360px;
    transform: none;
  }

  .hero-art img {
    min-height: 360px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card:last-child {
    grid-column: span 2;
  }

  .card:last-child {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .card:last-child .card-media img {
    height: 100%;
  }

  .product {
    grid-template-columns: 1fr;
  }

  .product-visual {
    position: relative;
    top: auto;
  }
}

@media (max-width: 42rem) {
  .wrap {
    width: min(100% - 1.5rem, var(--maxw));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-section,
  .site-nav > a:first-child {
    display: none;
  }

  .site-nav {
    gap: 0.9rem;
    font-size: 0.78rem;
  }

  .nav-contact {
    padding: 0.42rem 0.7rem;
  }

  .hero-grid {
    gap: 3rem;
    padding-block: 4rem;
  }

  .hero-copy h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .hero-actions .text-link {
    text-align: center;
  }

  .hero-meta {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-meta span::after {
    display: none;
  }

  .hero-art,
  .hero-art img {
    min-height: 300px;
  }

  .trust-strip .wrap {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .card:last-child {
    display: flex;
    grid-column: auto;
  }

  .product-shell {
    padding-top: 0.5rem;
  }

  .product {
    gap: 2rem;
  }

  .product-info h1 {
    font-size: clamp(2.35rem, 12vw, 3.2rem);
  }

  .product-assurances {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.2rem 1rem;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
