/* JERSEY LEVIATAN 2026 — estilos landing */

@font-face {
  font-family: 'Majesty';
  src: url('../fonts/majesty-bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'CalibriWeb';
  src: url('../fonts/calibri.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

:root {
  --bg: #050608;
  --panel: #131519;
  --panel-2: #17191f;
  --border: #1e2127;
  --border-2: #2a2e36;
  --text: #f2f3f5;
  --muted: #a7abb3;
  --muted-2: #7c818a;
  --cyan: #35d6f4;
  --cyan-strong: #29c7e8;
  --radius: 14px;
  --radius-lg: 24px;
  --font-display: 'Majesty', Georgia, 'Times New Roman', serif;
  --font-body: 'CalibriWeb', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header {
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--border);
}
.site-header .logo {
  height: 22px;
  width: auto;
  margin: 0 auto;
  filter: brightness(0) invert(1);
}

/* ---------- Hero banner ---------- */
.hero { padding: 34px 0 10px; }
.hero .banner {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(23, 111, 160, .12);
}

/* ---------- Producto ---------- */
.product { padding: 64px 0 40px; }
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* Carousel */
.gallery {
  background: linear-gradient(160deg, #1a1d23 0%, #121419 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}
.gallery .slides { position: absolute; inset: 0; }
.gallery .slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
  padding: 34px;
}
.gallery .slide.active { opacity: 1; pointer-events: auto; }
.gallery .slide img {
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.gallery .nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: rgba(10, 12, 15, .65);
  color: var(--text);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  z-index: 3;
  transition: background .15s ease, border-color .15s ease;
}
.gallery .nav:hover { background: rgba(30, 34, 41, .9); border-color: #3a3f49; }
.gallery .nav.prev { left: 14px; }
.gallery .nav.next { right: 14px; }
.gallery .dots {
  position: absolute;
  bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 7px;
  z-index: 3;
}
.gallery .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  border: 0;
  background: #3a3f49;
  cursor: pointer;
  padding: 0;
  transition: background .15s ease, transform .15s ease;
}
.gallery .dot.active { background: var(--cyan); transform: scale(1.25); }

/* Panel de compra */
.buy-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.2vw, 46px);
  line-height: 1.04;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.buy-price {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: .5px;
  margin-top: 10px;
  min-height: 1.4em;
}
.buy-price .intl-note { color: var(--muted); font-family: var(--font-body); font-size: 16px; }

.field-label {
  color: var(--muted-2);
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 30px 0 12px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.field-label .size-guide-link {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  background: none; border: 0; padding: 0;
  font-family: var(--font-body);
}
.field-label .size-guide-link:hover { color: var(--text); }

.pill-row { display: flex; flex-wrap: wrap; gap: 12px; }

.pill {
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 26px;
  font-size: 15px;
  font-family: var(--font-body);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
  user-select: none;
}
.pill:hover { border-color: #454b56; }
.pill.selected { background: #fff; border-color: #fff; color: #0b0c0f; font-weight: 700; }
.pill.soldout {
  color: #565b64;
  border-color: var(--border);
  text-decoration: line-through;
  cursor: not-allowed;
}
.pill:disabled { cursor: not-allowed; }

.country-pill { display: inline-flex; align-items: center; gap: 9px; }
.country-pill.selected { background: var(--panel-2); border-color: #fff; color: #fff; font-weight: 700; }
.pill-flag {
  width: 21px;
  height: 14px;
  border-radius: 2.5px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14);
  flex: none;
}

.size-pill { min-width: 64px; text-align: center; padding: 12px 0; }

.ship-pill { padding: 12px 18px; }
.ship-pill .ship-cost { color: var(--muted); font-size: 13px; margin-left: 6px; }
.ship-pill.selected .ship-cost { color: #3a3f48; }

.ship-hint { margin-top: 10px; color: var(--muted-2); font-size: 13.5px; min-height: 1.3em; }

.buy-total { margin-top: 26px; }
.buy-total .bd-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  color: var(--muted);
  font-size: 14.5px;
}
.buy-total .bd-row + .bd-row { border-top: 1px solid var(--border); }
.buy-total .bd-row .bd-val { color: var(--text); white-space: nowrap; }
.buy-total .bd-row.bd-total {
  border-top: 1px solid var(--border-2);
  margin-top: 2px;
  padding-top: 11px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(17px, 1.8vw, 21px);
  letter-spacing: .5px;
}
.buy-total .bd-row.bd-total .bd-val { color: var(--cyan); }

/* Cantidad + botón */
.buy-actions {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  align-items: stretch;
}
.qty-box {
  display: flex;
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
}
.qty-box button {
  width: 42px; height: 48px;
  background: none; border: 0;
  color: var(--muted);
  font-size: 19px;
  cursor: pointer;
  transition: color .15s ease;
}
.qty-box button:hover:not(:disabled) { color: #fff; }
.qty-box button:disabled { color: #444952; cursor: not-allowed; }
.qty-box .qty-value {
  min-width: 34px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
}
.btn-buy {
  flex: 1;
  min-height: 52px;
  padding: 14px 22px;
  background: var(--cyan);
  color: #04222b;
  border: 0;
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: .02em;
  cursor: pointer;
  height: 48px;
  transition: background .15s ease, transform .1s ease;
}
.btn-buy:hover:not(:disabled) { background: #5ee0f8; }
.btn-buy:active:not(:disabled) { transform: translateY(1px); }
.btn-buy:disabled { opacity: .55; cursor: wait; }

.buy-error {
  color: #ff8f8f;
  font-size: 14.5px;
}
.buy-error:not(:empty) { margin-top: 12px; }
.buy-disclaimers { margin-top: 7px; display: flex; flex-direction: column; gap: 5px; }
.buy-disclaimers p {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
  letter-spacing: .01em;
}
.stock-hint { margin-top: 10px; color: var(--muted-2); font-size: 13.5px; min-height: 1.3em; }

.is-disabled { opacity: .35; pointer-events: none; }

/* ---------- Sección detalle ---------- */
.detail {
  border-top: 1px solid var(--border);
  padding: 76px 0;
  text-align: center;
}
.detail .logo-campaign { width: min(340px, 70vw); margin: 0 auto; }
.detail .stars { width: 74px; margin: 26px auto 34px; }
.detail h2 {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 26px);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 26px;
}
.detail p {
  max-width: 780px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 16.5px;
}
.detail p strong { color: var(--text); }

/* ---------- Características ---------- */
.features {
  border-top: 1px solid var(--border);
  padding: 70px 0 84px;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  max-width: 900px;
  margin: 0 auto;
}
.features h3 {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.features ul { list-style: none; }
.features li {
  color: var(--muted);
  font-size: 15.5px;
  padding: 4px 0;
}
.features li::before { content: '-  '; white-space: pre; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 34px;
}
.site-footer .inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.site-footer .socials { display: flex; align-items: center; gap: 18px; }
.site-footer a { color: #9aa0a9; transition: color .15s ease; }
.site-footer .socials a { display: inline-flex; }
.site-footer a:hover { color: #fff; }
.site-footer svg { width: 17px; height: 17px; fill: currentColor; }
.site-footer .credit {
  color: #9aa0a9;
  font-size: 13px;
  text-decoration: none;
  letter-spacing: .02em;
}
.site-footer .credit strong { color: var(--text); font-weight: 600; }
.site-footer .credit:hover strong { color: var(--cyan); }
@media (max-width: 560px) {
  .site-footer .inner { flex-direction: column; align-items: center; gap: 14px; }
}

/* ---------- Modal guía de talles ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(3, 4, 6, .82);
  display: none;
  align-items: center; justify-content: center;
  z-index: 50;
  padding: 24px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  position: relative;
  max-width: 860px;
  width: 100%;
  max-height: 90vh;
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: auto;
  padding: 18px;
}
.modal-box img { border-radius: 12px; margin: 0 auto; }

/* ---------- Modal de datos de entrega ---------- */
.form-box { max-width: 560px; padding: 28px 30px 26px; }
.form-title {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.form-summary {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field.span2 { grid-column: span 2; }
.f-field span {
  color: var(--muted-2);
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.f-field input {
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 15px;
  font-family: var(--font-body);
  width: 100%;
}
.f-field input:focus { outline: none; border-color: #5a616d; }
.f-field input[readonly] { color: var(--muted); cursor: default; }
#address-fields { margin-top: 14px; }
.form-pickup-note {
  display: none;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 13px 15px;
}
.form-submit { width: 100%; margin-top: 20px; }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .f-field.span2 { grid-column: auto; }
}
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  background: rgba(10, 12, 15, .8);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  z-index: 2;
}

/* ---------- Páginas success / cancel ---------- */
.result-page {
  min-height: calc(100vh - 220px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}
.result-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 54px 44px;
  max-width: 560px;
  width: 100%;
}
.result-card .icon { font-size: 44px; margin-bottom: 18px; }
.result-card h1 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.result-card p { color: var(--muted); margin-bottom: 10px; }
.result-card .order-ref {
  display: inline-block;
  margin: 14px 0 22px;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--border-2);
  color: var(--cyan);
  font-size: 14px;
}
.result-card .btn-buy { display: inline-block; text-decoration: none; line-height: 48px; padding: 0 34px; flex: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .product-grid { grid-template-columns: 1fr; gap: 36px; }
  .features-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 24px; }
  .product { padding-top: 44px; }
}
@media (max-width: 520px) {
  .buy-actions { flex-direction: column; }
  .qty-box { justify-content: center; }
  .pill { padding: 11px 18px; }
  .size-pill { min-width: 56px; }
}
