@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700;800&display=swap');


:root {
  --bg: #080808;
  --panel: #111;
  --text: #f4f4f4;
  --muted: #999;
  --line: #252525;
}


* {
  box-sizing: border-box;
}


html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}


body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
}


body.modal-open {
  overflow: hidden;
}


/* =====================================================
   HEADER
===================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 50;

  height: 82px;

  background: rgba(8, 8, 8, 0.96);
  backdrop-filter: blur(14px);

  border-bottom: 1px solid var(--line);

  display: flex;
  align-items: center;

  padding: 0 clamp(18px, 5vw, 80px);

  gap: 35px;
}


.brand {
  display: block;

  width: 88px;
  height: 62px;

  overflow: hidden;

  flex-shrink: 0;
}


.brand img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}


nav {
  display: flex;
  gap: 28px;

  margin-left: auto;
}


nav a {
  color: #ddd;

  text-decoration: none;

  font-size: 13px;

  text-transform: uppercase;

  letter-spacing: 0.12em;

  transition: color 0.2s ease;
}


nav a:hover {
  color: #fff;
}


.cart-btn {
  background: #fff;

  color: #000;

  border: 0;

  border-radius: 3px;

  padding: 11px 15px;

  font-weight: 800;

  cursor: pointer;

  white-space: nowrap;
}


.cart-btn span {
  display: inline-grid;

  place-items: center;

  background: #000;

  color: #fff;

  border-radius: 50%;

  width: 20px;
  height: 20px;

  margin-left: 5px;
}


/* =====================================================
   HERO
===================================================== */

.hero {
  position: relative;

  min-height: calc(100vh - 82px);

  overflow: hidden;

  display: flex;
  align-items: center;

  padding:
    70px
    clamp(25px, 7vw, 120px);

  background:
    radial-gradient(
      circle at 72% 50%,
      #171717 0%,
      #0d0d0d 28%,
      #080808 62%,
      #050505 100%
    );
}


.hero-content {
  position: relative;

  z-index: 10;

  width: min(560px, 45vw);

  flex-shrink: 0;
}


.eyebrow {
  font-size: 11px;

  letter-spacing: 0.28em;

  color: #aaa;

  font-weight: 700;
}


h1,
h2 {
  font-family: Anton, Impact, sans-serif;

  letter-spacing: 0.025em;

  margin: 10px 0;
}


h1 {
  font-size: clamp(70px, 9vw, 150px);

  line-height: 0.82;
}


.hero h1 span {
  color: #777;
}


.hero-text {
  max-width: 460px;

  color: #aaa;

  line-height: 1.7;

  margin: 28px 0;
}


.primary-btn,
.checkout {
  display: inline-block;

  background: #fff;

  color: #000;

  text-decoration: none;

  border: 0;

  padding: 15px 24px;

  font-weight: 800;

  letter-spacing: 0.12em;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}


.primary-btn:hover,
.checkout:hover {
  background: #ddd;

  transform: translateY(-2px);
}


/* =====================================================
   HERO VISUAL
   IMAGEN ESTÁTICA
===================================================== */

.hero-visual {
  position: absolute;

  z-index: 2;

  top: 0;
  right: 0;

  width: 64%;
  height: 100%;

  pointer-events: none;

  overflow: hidden;
}


.hero-visual::before {
  content: "";

  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      90deg,
      #080808 0%,
      rgba(8, 8, 8, 0.75) 8%,
      rgba(8, 8, 8, 0) 35%
    );

  z-index: 2;
}


.hero-visual-image {
  position: absolute;
  inset: 0;

  background-image: url("assets/hero-jr-gang.png");
  background-repeat: no-repeat;

  background-position: center right;
  background-size: contain;

  filter:
    brightness(0.92)
    contrast(1.08);

  mix-blend-mode: lighten;

  transform: none;
  animation: none;
}


/* =====================================================
   COLECCIÓN
===================================================== */

.collection {
  padding:
    clamp(80px, 9vw, 130px)
    clamp(18px, 5vw, 80px);

  scroll-margin-top: 82px;
}


.section-head {
  width: 100%;

  max-width: 1500px;

  margin: 0 auto 45px;

  display: flex;

  justify-content: space-between;

  align-items: end;

  gap: 30px;
}


.section-head h2,
.brand-section h2,
.contact h2 {
  font-size: clamp(45px, 7vw, 90px);

  line-height: 0.9;
}


.section-head > p {
  color: #888;

  max-width: 320px;
}


/* =====================================================
   PRODUCTOS
===================================================== */

.products {
  width: 100%;

  max-width: 1500px;

  margin: 0 auto;

  display: grid;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  gap: 18px;
}


.product {
  background: #111;

  border: 1px solid #1d1d1d;

  padding: 12px;

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;

  min-width: 0;
}


.product:hover {
  transform: translateY(-4px);

  border-color: #444;
}


.product-open {
  display: block;

  width: 100%;

  padding: 0;

  border: 0;

  background: none;

  color: inherit;

  cursor: pointer;

  text-align: left;
}


/* =====================================================
   FOTO TARJETA
===================================================== */

.product-image {
  position: relative;

  width: 100%;

  aspect-ratio: 1 / 1;

  background: #f5f5f5;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  padding: 28px;
}


.product-image img {
  display: block;

  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

  object-position: center;

  margin: auto;
}


.photo-count {
  position: absolute;

  right: 10px;
  bottom: 10px;

  background: rgba(8, 8, 8, 0.92);

  color: #fff;

  padding: 6px 8px;

  font-size: 10px;

  font-weight: 800;

  letter-spacing: 0.08em;
}


.product-info {
  padding: 17px 4px 5px;
}


.product h3 {
  font-size: 14px;

  line-height: 1.35;

  margin: 0 0 9px;
}


.price {
  font-weight: 800;

  margin-bottom: 14px;
}


.add {
  width: 100%;

  padding: 11px;

  background: transparent;

  color: #fff;

  border: 1px solid #777;

  cursor: pointer;

  font-weight: 700;

  transition:
    background 0.2s ease,
    color 0.2s ease;
}


.add:hover {
  background: #fff;

  color: #000;
}


/* =====================================================
   MARCA
===================================================== */

.brand-section {
  padding:
    clamp(80px, 10vw, 140px)
    clamp(20px, 10vw, 160px);

  border-top: 1px solid var(--line);

  border-bottom: 1px solid var(--line);

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 80px;

  align-items: center;

  scroll-margin-top: 82px;
}


.brand-section p:last-child {
  color: #999;

  line-height: 1.9;

  font-size: 18px;
}


/* =====================================================
   CONTACTO
===================================================== */

.contact {
  padding:
    clamp(80px, 10vw, 140px)
    clamp(20px, 10vw, 160px);

  scroll-margin-top: 82px;
}


.contact a {
  color: #fff;

  font-size: 20px;
}


/* =====================================================
   FOOTER
===================================================== */

footer {
  border-top: 1px solid var(--line);

  padding:
    28px
    clamp(20px, 5vw, 80px);

  display: flex;

  gap: 30px;

  color: #777;

  font-size: 11px;

  letter-spacing: 0.15em;
}


footer strong {
  color: #fff;

  margin-right: auto;
}


/* =====================================================
   CARRITO
===================================================== */

.cart {
  position: fixed;

  right: -430px;

  top: 0;

  width: 430px;

  max-width: 100%;

  height: 100vh;

  background: #111;

  z-index: 100;

  padding: 28px;

  transition: right 0.25s ease;

  box-shadow: -20px 0 60px #000;
}


.cart.open {
  right: 0;
}


.cart-head {
  display: flex;

  justify-content: space-between;

  align-items: center;

  border-bottom: 1px solid var(--line);

  padding-bottom: 15px;
}


.cart-head h3 {
  margin: 0;
}


.cart-head button {
  background: none;

  color: #fff;

  border: 0;

  font-size: 30px;

  cursor: pointer;
}


.cart-items {
  padding: 20px 0;

  display: grid;

  gap: 12px;
}


.cart-row {
  display: flex;

  justify-content: space-between;

  gap: 15px;

  border-bottom: 1px solid var(--line);

  padding-bottom: 12px;
}


.remove {
  background: none;

  border: 0;

  color: #999;

  cursor: pointer;
}


.cart-total {
  display: flex;

  justify-content: space-between;

  font-size: 20px;

  border-top: 1px solid var(--line);

  padding: 20px 0;
}


.checkout {
  width: 100%;
}


.cart-note {
  color: #777;

  font-size: 12px;

  line-height: 1.6;
}


.overlay {
  position: fixed;

  inset: 0;

  background: rgba(0, 0, 0, 0.55);

  z-index: 90;

  display: none;
}


.overlay.show {
  display: block;
}


/* =====================================================
   MODAL PRODUCTO
===================================================== */

.product-modal {
  position: fixed;

  inset: 0;

  z-index: 200;

  background: rgba(0, 0, 0, 0.88);

  display: none;

  align-items: center;

  justify-content: center;

  padding: 20px;
}


.product-modal.open {
  display: flex;
}


.product-modal-inner {
  position: relative;

  width: min(1250px, 94vw);

  height: min(88vh, 820px);

  background: #111;

  border: 1px solid #292929;

  display: grid;

  grid-template-columns:
    minmax(0, 1.15fr)
    minmax(320px, 0.85fr);

  gap: clamp(25px, 4vw, 55px);

  padding: clamp(20px, 3vw, 38px);

  overflow: hidden;

  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.9);
}


.modal-close {
  position: absolute;

  right: 15px;
  top: 10px;

  background: rgba(0, 0, 0, 0.65);

  border: 0;

  color: #fff;

  width: 40px;
  height: 40px;

  font-size: 28px;

  cursor: pointer;

  z-index: 10;

  line-height: 1;
}


/* =====================================================
   GALERÍA
===================================================== */

.modal-gallery {
  min-width: 0;
  min-height: 0;

  display: flex;

  flex-direction: column;
}


.modal-main {
  width: 100%;

  height: min(60vh, 610px);

  min-height: 300px;

  background: #f5f5f5;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  padding: 40px;
}


.modal-main img {
  width: auto;
  height: auto;

  max-width: 100%;
  max-height: 100%;

  object-fit: contain;

  object-position: center;

  display: block;

  margin: auto;
}


/* =====================================================
   MINIATURAS
===================================================== */

.modal-thumbs {
  display: flex;

  gap: 9px;

  overflow-x: auto;

  margin-top: 12px;

  padding: 2px 2px 8px;

  scrollbar-width: thin;
}


.modal-thumb {
  flex:
    0 0 76px;

  width: 76px;
  height: 76px;

  padding: 0;

  background: #f5f5f5;

  border: 1px solid #333;

  cursor: pointer;
}


.modal-thumb.active {
  border-color: #fff;
}


.modal-thumb:hover {
  border-color: #aaa;
}


.modal-thumb img {
  width: 100%;
  height: 100%;

  object-fit: contain;
}


/* =====================================================
   INFORMACIÓN MODAL
===================================================== */

.modal-details {
  align-self: center;

  min-width: 0;

  padding: 20px 25px 20px 0;
}


.modal-details h2 {
  font-size: clamp(36px, 3.5vw, 62px);

  line-height: 0.92;

  margin: 15px 0;

  overflow-wrap: anywhere;
}


.modal-price {
  font-size: 24px;

  font-weight: 800;

  margin: 22px 0;
}


.modal-description {
  color: #999;

  line-height: 1.7;

  margin-bottom: 30px;

  max-width: 430px;
}


.modal-add {
  border: 0;
}


/* =====================================================
   PANTALLAS GRANDES
===================================================== */

@media (min-width: 1600px) {

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

  .product-image {
    padding: 35px;
  }

  .product h3 {
    font-size: 15px;
  }

  .product-modal-inner {
    width: min(1300px, 92vw);

    height: min(86vh, 850px);
  }

  .modal-main {
    height: min(60vh, 660px);
  }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 1100px) {

  .hero-content {
    width: 48vw;
  }

  .hero-visual {
    width: 67%;
  }

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

  .product-image {
    padding: 24px;
  }

  .product-modal-inner {
    width: 94vw;

    grid-template-columns:
      minmax(0, 1.1fr)
      minmax(280px, 0.9fr);

    gap: 25px;
  }

  .modal-main {
    height: min(55vh, 520px);

    padding: 30px;
  }

}


/* =====================================================
   TABLET PEQUEÑA
===================================================== */

@media (max-width: 800px) {

  nav {
    display: none;
  }

  .header {
    padding: 0 20px;
  }

  .cart-btn {
    margin-left: auto;
  }


  .hero {
    min-height: calc(100vh - 70px);

    padding:
      70px
      25px
      360px;
  }


  .hero-content {
    width: 100%;
  }


  .hero-visual {
    width: 100%;

    height: 48%;

    top: auto;
    bottom: 0;

    right: 0;
  }


  .hero-visual::before {
    background:
      linear-gradient(
        180deg,
        #080808 0%,
        rgba(8, 8, 8, 0) 40%
      );
  }


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


  .brand-section {
    grid-template-columns: 1fr;

    gap: 25px;
  }


  .product-modal {
    padding: 12px;

    align-items: center;
  }


  .product-modal-inner {
    width: 100%;

    height: 94vh;

    max-height: 94vh;

    grid-template-columns: 1fr;

    gap: 18px;

    padding: 18px;

    overflow-y: auto;
  }


  .modal-main {
    height: 48vh;

    min-height: 240px;

    padding: 20px;
  }


  .modal-details {
    padding: 0 5px 10px;
  }


  .modal-details h2 {
    font-size: clamp(34px, 8vw, 48px);
  }


  .modal-price {
    margin: 15px 0;
  }


  .modal-description {
    margin-bottom: 20px;
  }

}


/* =====================================================
   MÓVIL
===================================================== */

@media (max-width: 560px) {

  .header {
    height: 70px;

    padding: 0 15px;
  }


  .brand {
    width: 65px;

    height: 55px;
  }


  .hero {
    padding:
      55px
      18px
      300px;
  }


  h1 {
    font-size: clamp(64px, 18vw, 100px);
  }


  .hero-text {
    font-size: 14px;
  }


  .hero-visual {
    height: 43%;
  }


  .collection {
    padding: 70px 14px;
  }


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

    gap: 8px;
  }


  .product {
    padding: 8px;
  }


  .product-image {
    aspect-ratio: 1 / 1;

    padding: 15px;
  }


  .product-info {
    padding: 12px 2px 4px;
  }


  .product h3 {
    font-size: 11px;

    line-height: 1.3;
  }


  .price {
    font-size: 12px;

    margin-bottom: 10px;
  }


  .add {
    padding: 9px 4px;

    font-size: 10px;
  }


  .photo-count {
    right: 6px;

    bottom: 6px;

    padding: 5px 6px;

    font-size: 8px;
  }


  .section-head {
    display: block;

    margin-bottom: 30px;
  }


  .section-head > p {
    margin-top: 20px;
  }


  .brand-section,
  .contact {
    padding: 80px 18px;
  }


  .brand-section p:last-child {
    font-size: 16px;
  }


  footer {
    padding: 25px 18px;

    flex-wrap: wrap;
  }


  /* MODAL MÓVIL */

  .product-modal {
    padding: 8px;
  }


  .product-modal-inner {
    max-height: 96vh;

    height: 96vh;

    padding: 12px;

    gap: 14px;
  }


  .modal-close {
    right: 8px;

    top: 7px;

    width: 38px;

    height: 38px;
  }


  .modal-main {
    height: 42vh;

    min-height: 220px;

    padding: 15px;
  }


  .modal-thumb {
    flex-basis: 62px;

    width: 62px;

    height: 62px;
  }


  .modal-details h2 {
    font-size: 34px;
  }


  .modal-price {
    font-size: 20px;
  }


  .modal-description {
    font-size: 14px;
  }


  .modal-add {
    width: 100%;
  }

}