:root {
  --black: #0d0d0d;
  --dark: #151515;
  --grey: #4a4a4a;
  --grey-light: #8a8a8a;
  --light: #f2f2f2;
  --white: #ffffff;
  --orange: #f15a1f;
  --orange-dark: #d44812;
  --line: rgba(255, 255, 255, 0.12);
  --font: "Inter Tight", system-ui, -apple-system, sans-serif;
  --side: 160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- BOTONES ---------- */
/* Mismo estilo de botón en todas las páginas */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  transition: background .25s, transform .25s;
}
.btn span { transition: transform .25s; }
.btn:hover span { transform: translateX(4px); }
.btn-orange { background: var(--orange); color: var(--white); }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }

.eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: .15em;
  color: var(--orange);
  font-weight: 600;
  margin-bottom: 10px;
}

/* ---------- LOGO ---------- */
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; letter-spacing: .02em; }
.logo-mark {
  width: 18px; height: 18px;
  border: 3px solid var(--white);
  border-right-color: transparent;
  border-radius: 3px 10px 3px 3px;
  transform: rotate(-10deg);
}
.logo-text { font-size: 17px; }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 78px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background .3s;
}
.header.scrolled { background: rgba(13, 13, 13, .92); backdrop-filter: blur(10px); }
.header .logo {
  width: var(--side);
  height: 100%;
  padding-left: 40px;
  border-right: 1px solid var(--line);
}
.nav { display: flex; gap: 48px; margin-left: 52px; flex: 1; }
.nav a { font-size: 14px; color: #ddd; position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--orange); transition: width .25s;
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-search { margin-right: 0; height: 100%; display: flex; align-items: center; }
.header-search input {
  width: 260px;
  height: 36px;
  background: #2b2b2b;
  border: none;
  color: var(--white);
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  outline: none;
}
.header-search input::placeholder { color: #ddd; }
.header-search input:focus { box-shadow: inset 0 -2px 0 var(--orange); }

.menu-toggle { display: none; background: none; border: none; width: 44px; height: 44px; margin-right: 12px; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 6px auto; transition: .3s; }
.menu-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  max-height: 960px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("../images/portada.png") center right / cover no-repeat;
  animation: zoom 18s ease-out forwards;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.35) 50%, rgba(10,10,10,.1) 100%),
    linear-gradient(0deg, rgba(10,10,10,.9) 0%, transparent 30%);
}
@keyframes zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

.grid-line { position: absolute; background: var(--line); z-index: 1; }
.grid-v { left: var(--side); top: 0; bottom: 0; width: 1px; }
.grid-h { left: 0; right: 0; top: 78px; height: 1px; }
.grid-dot {
  position: absolute; z-index: 2;
  left: calc(var(--side) - 20px); top: 58px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: conic-gradient(transparent 0 25%, var(--orange) 0 50%, transparent 0 75%, var(--orange) 0);
}

.hero-side {
  position: absolute; z-index: 2;
  left: 0; top: 200px;
  width: var(--side);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.side-icon {
  width: 28px; height: 28px; background: var(--white); color: var(--black);
  display: grid; place-items: center; margin-bottom: 10px;
}
.hero-side strong { font-size: 11px; letter-spacing: .04em; line-height: 1.4; }
.hero-side span { font-size: 12px; color: var(--grey-light); line-height: 1.4; }

.hero-content {
  position: relative; z-index: 2;
  margin-left: calc(var(--side) + 55px);
  padding-top: 60px;
}
.hero-title {
  font-size: clamp(54px, 7.5vw, 120px);
  font-weight: 300;
  line-height: .92;
  letter-spacing: -.02em;
  margin-bottom: 56px;
}
.hero-title span { display: block; opacity: 0; transform: translateY(40px); animation: rise .8s forwards; }
.hero-title span:nth-child(2) { animation-delay: .12s; }
.hero-title span:nth-child(3) { animation-delay: .24s; }
.hero-title span:nth-child(4) { animation-delay: .36s; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-callout {
  position: absolute; z-index: 2;
  right: 48px; bottom: 90px;
  width: 230px;
  text-shadow: 0 1px 12px rgba(0,0,0,.8);
}
.callout-line {
  position: absolute; right: calc(100% + 10px); top: 4px;
  width: 80px; height: 1px; background: var(--grey-light);
}
.callout-line::before {
  content: ""; position: absolute; right: -4px; top: -3px;
  width: 7px; height: 7px; background: var(--orange);
}
.hero-callout h3 { font-size: 20px; font-weight: 400; line-height: 1.1; margin-bottom: 18px; }
.hero-callout p { font-size: 13px; color: #bbb; line-height: 1.5; margin-bottom: 32px; }
.link-arrow { font-size: 14px; font-weight: 600; border-bottom: 1px solid var(--white); padding-bottom: 6px; }
.link-arrow:hover { color: var(--orange); border-color: var(--orange); }

.coord { position: absolute; z-index: 2; font-size: 10px; color: var(--grey-light); }
.coord::after {
  content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 4px;
  border: 1px solid var(--grey-light); border-radius: 50%; vertical-align: super;
}
.coord-1 { left: 60px; bottom: 140px; }
.coord-2 { left: 48%; bottom: 120px; }

/* ---------- MOSAICO ---------- */
.mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr 1fr;
  background: var(--black);
}
.tile {
  position: relative;
  min-height: 300px;
  padding: 24px;
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.tile small { font-size: 11px; letter-spacing: .08em; font-weight: 600; color: #bbb; }
.tile h4 { font-size: 26px; font-weight: 300; line-height: 1; margin-top: 6px; }

.tile-product { background: #e4e4e4; color: var(--black); }
.tile-product small { color: var(--grey); }
.tile-product img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 20px 20px 90px;
  mix-blend-mode: multiply;
  transition: transform .5s;
}
.tile-product .tile-arrow { background: var(--black); color: var(--white); }
.tile-product:hover img { transform: scale(1.06); }
.tile-info { position: relative; }
.tile-arrow {
  position: absolute; right: 24px; bottom: 24px;
  width: 28px; height: 28px; background: var(--white); color: var(--black);
  display: grid; place-items: center; font-size: 16px; font-weight: 800;
}

/* Fotos de trabajo ampliadas (detalle recortado) */
.tile-zoom { background: #222; }
.tile-zoom img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(var(--z, 2.2));
  transform-origin: var(--fx, 50%) var(--fy, 50%);
  transition: transform .6s ease;
}
.tile-zoom:hover img { transform: scale(calc(var(--z, 2.2) * 1.08)); }
.tile-zoom::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.1) 55%, transparent 100%);
}
.tile-zoom .tile-info, .tile-zoom .tile-arrow { z-index: 1; }
.tile-zoom small { color: #ddd; }
.zoom-camisa { --z: 2.2; --fx: 60%; --fy: 38%; }
.zoom-pantalon { --z: 2; --fx: 62%; --fy: 45%; }

.tile-dark { background: #111; border-left: 1px solid var(--line); }
.tile-dark p { font-size: 13px; color: var(--grey-light); margin-top: 14px; line-height: 1.5; max-width: 240px; }

.tile-grey {
  background: linear-gradient(135deg, #6b6b6b, #3c3c3c);
  justify-content: space-between;
}
.tile-grey h4 { font-size: 30px; }
.tile-bottom { display: flex; justify-content: space-between; align-items: flex-end; }

.tile-orange {
  background:
    radial-gradient(circle, rgba(255,255,255,.18) 2px, transparent 2.5px) 0 0 / 14px 14px,
    var(--orange);
}
.tile-orange img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; padding: 30px 20px 80px;
  mix-blend-mode: multiply;
  transition: transform .5s;
}
.tile-orange:hover img { transform: scale(1.06) rotate(-3deg); }
.tile-orange small { color: rgba(255,255,255,.85); }

/* ---------- BANNER ---------- */
.banner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 350px;
  height: 460px;
  background: #121212;
  overflow: hidden;
}
.banner-orange {
  position: relative; z-index: 1;
  background: var(--orange);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  padding: 60px 80px 50px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.banner-orange::before {
  content: ""; position: absolute; left: 0; top: 0;
  width: 0; height: 0;
  border-top: 140px solid #2b2b2b;
  border-right: 140px solid transparent;
}
.banner-orange h2 {
  font-size: clamp(48px, 6vw, 92px);
  font-weight: 900;
  line-height: .95;
  letter-spacing: -.01em;
}
.banner-orange p { font-size: 13px; font-weight: 800; letter-spacing: .03em; max-width: 280px; }
.banner-img { background: #121212; }
.banner-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- CATÁLOGO ---------- */
.catalog {
  background: var(--light);
  color: var(--black);
  padding: 90px 60px 100px;
}
.catalog-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 30px; flex-wrap: wrap;
  margin-bottom: 30px;
}
.catalog-head h2 { font-size: 44px; font-weight: 800; letter-spacing: -.02em; }
.catalog-meta { display: flex; gap: 40px; }
.catalog-meta div { display: flex; flex-direction: column; gap: 6px; }
.catalog-meta span { font-size: 11px; letter-spacing: .08em; color: var(--grey-light); font-weight: 600; }
.catalog-meta strong {
  background: var(--white); padding: 8px 16px; min-width: 120px;
  font-size: 15px; border: 1px solid #ddd;
}

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip {
  border-radius: 6px;
  background: #e3e3e3; border: 1px solid #d3d3d3;
  padding: 9px 16px; font-size: 13px; font-weight: 500;
  color: #333; transition: .2s;
}
.chip:hover:not(:disabled) { border-color: var(--orange); color: var(--orange); }
.chip.active { background: #2b2b2b; color: var(--white); border-color: #2b2b2b; }
.chip:disabled { opacity: .45; cursor: not-allowed; }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 20px;
}
.card {
  background: var(--white);
  border: 1px solid #e2e2e2;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
  display: flex; flex-direction: column;
  animation: fadeIn .4s both;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } }
.card-img { aspect-ratio: 1; padding: 22px; background: var(--white); position: relative; }
.card-img img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  padding: inherit; box-sizing: border-box;
  object-fit: contain; transition: transform .4s;
}
.card:hover .card-img img { transform: scale(1.05); }
.card-tag {
  position: absolute; top: 12px; left: 12px; z-index: 1;
  background: var(--black); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; padding: 4px 8px;
}
.card-body { padding: 14px 16px 18px; border-top: 1px solid #eee; }
.swatches { display: flex; gap: 6px; margin-bottom: 10px; }
.swatch { width: 14px; height: 14px; border: 1px solid #ccc; }
.card-body h4 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.card-body small { font-size: 12px; color: var(--grey-light); }
.empty { text-align: center; padding: 40px; color: var(--grey); }

/* ---------- NOSOTROS ---------- */
.about {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px;
  align-items: center;
  padding: 110px 60px;
  border-bottom: 1px solid var(--line);
}
.about h2 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 300; line-height: 1; margin-bottom: 26px; }
.about p { color: #aaa; line-height: 1.7; max-width: 520px; }
.about-stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.about-stats div { padding: 30px 20px; border-right: 1px solid var(--line); }
.about-stats div:last-child { border-right: none; }
.about-stats strong { display: block; font-size: 36px; font-weight: 300; color: var(--orange); }
.about-stats span { font-size: 12px; color: var(--grey-light); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- FOOTER ---------- */
.footer-top {
  display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap;
  padding: 90px 60px;
}
.footer-top h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 300; line-height: 1.05; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 26px 60px;
  border-top: 1px solid var(--line);
}
.footer-bottom nav { display: flex; gap: 28px; font-size: 14px; color: #bbb; }
.footer-bottom nav a:hover { color: var(--orange); }
.footer-bottom small { color: var(--grey-light); }

/* ---------- MODAL ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.75);
  display: grid; place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-box {
  position: relative;
  background: var(--white); color: var(--black);
  width: min(900px, 100%);
  max-height: 90vh; overflow: auto;
  display: grid; grid-template-columns: 1.1fr 1fr;
  animation: fadeIn .3s;
}
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 32px; line-height: 1; color: var(--black);
}
.modal-gallery { padding: 30px; background: #f6f6f6; }
.modal-gallery > img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.modal-thumbs { display: flex; gap: 10px; margin-top: 16px; }
.modal-thumbs img {
  width: 64px; height: 64px; object-fit: contain; background: var(--white);
  border: 2px solid transparent; padding: 4px; cursor: pointer;
}
.modal-thumbs img.active { border-color: var(--orange); }
.modal-info { padding: 50px 36px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.modal-info small { font-size: 12px; letter-spacing: .1em; color: var(--orange); font-weight: 700; }
.modal-info h3 { font-size: 32px; font-weight: 800; line-height: 1.05; }
.modal-info p { white-space: pre-line; color: var(--grey); line-height: 1.6; font-size: 15px; }
.modal-info .sku { font-size: 13px; letter-spacing: .06em; color: var(--grey-light); font-weight: 500; margin-top: auto; padding-top: 24px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .nav { gap: 28px; margin-left: 32px; }
  .header-search input { width: 180px; }
  .mosaic { grid-template-columns: 1fr 1fr; }
  .hero-callout { display: none; }
}

@media (max-width: 820px) {
  :root { --side: 0px; }
  .header { height: 64px; justify-content: space-between; }
  .header .logo { width: auto; border-right: none; padding-left: 16px; }
  .header-search { display: none; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    background: var(--black);
    border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .35s;
  }
  .nav.open { max-height: 320px; }
  .nav a { padding: 18px 16px; border-top: 1px solid var(--line); }
  .nav a::after { display: none; }

  .grid-v, .grid-dot, .hero-side, .coord { display: none; }
  .grid-h { top: 64px; }
  .hero { align-items: flex-end; padding-bottom: 70px; }
  .hero-bg { background-position: 70% center; }
  .hero-bg::after {
    background: linear-gradient(0deg, rgba(10,10,10,.95) 10%, rgba(10,10,10,.3) 60%, rgba(10,10,10,.5) 100%);
  }
  .hero-content { margin-left: 16px; margin-right: 16px; }
  .hero-title { margin-bottom: 32px; }

  .tile { min-height: 240px; padding: 18px; }

  .banner { grid-template-columns: 1fr; height: auto; }
  .banner-orange { clip-path: none; padding: 70px 16px 40px; gap: 30px; }
  .banner-orange::before { border-top-width: 70px; border-right-width: 70px; }
  .banner-img { width: 100%; max-width: 310px; margin: 0 auto; aspect-ratio: 207 / 273; }

  .catalog { padding: 64px 16px 70px; }
  .catalog-meta { gap: 16px; }
  .catalog-meta strong { min-width: 100px; }
  .products { grid-template-columns: repeat(2, 1fr); gap: 12px; }

  .about { grid-template-columns: 1fr; padding: 70px 16px; gap: 36px; }
  .footer-top, .footer-bottom { padding-left: 16px; padding-right: 16px; }
  .footer-top { padding-top: 64px; padding-bottom: 64px; }

  .modal-box { grid-template-columns: 1fr; }
  .modal-info { padding: 26px 20px 30px; }
}

@media (max-width: 480px) {
  .mosaic { grid-template-columns: 1fr; }
  .about-stats strong { font-size: 26px; }
  .card-img { padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-title span { opacity: 1; transform: none; }
}

/* ---------- EFECTO DE ENTRADA DE TEXTOS ---------- */
.reveal.reveal {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1), filter .9s ease;
}
.reveal.reveal.reveal-left { transform: translateX(-40px); }
.reveal.reveal.in { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal.reveal { opacity: 1; transform: none; filter: none; }
}

/* Foto "PortadaPequena": se esfuma del lado izquierdo */
.banner-img img {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 18%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.6) 18%, #000 40%);
}

/* Fotos con fondo propio: llenan toda la tarjeta */
.card-img.con-fondo { overflow: hidden; }
.card-img.con-fondo img { padding: 0; object-fit: cover; }
