:root {
  --ink: #111111;
  --muted: #6d6d6d;
  --paper: #f7f5f0;
  --white: #ffffff;
  --denim: #163a68;
  --denim-dark: #0a2343;
  --line: #dedbd3;
  --accent: #c59052;
  --whatsapp: #188b4b;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.12);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(16px, 3vw, 56px);
}
.section { padding: 96px 0; }
.section-sm { padding: 32px 0 72px; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  background: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 999;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: 78px;
  z-index: 100;
  color: var(--white);
  transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: rgba(17,17,17,.96); box-shadow: 0 8px 25px rgba(0,0,0,.18); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .18em; font-weight: 800; white-space: nowrap; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid currentColor; font-family: "Barlow Condensed", sans-serif; font-size: 15px; letter-spacing: .06em; }
.main-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.main-nav a { font-size: 14px; font-weight: 600; opacity: .88; }
.main-nav a:hover { opacity: 1; }
.header-cta { border: 1px solid rgba(255,255,255,.45); padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.header-cta:hover { background: var(--white); color: var(--ink); }
.menu-toggle { display: none; background: transparent; border: 0; padding: 8px; }
.menu-toggle span { display: block; width: 25px; height: 2px; background: currentColor; margin: 5px 0; }

.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  align-items: center;
  color: var(--white);
  background-image: url("https://images.unsplash.com/photo-1542272604-787c3835535d?auto=format&fit=crop&w=1800&q=85");
  background-size: cover;
  background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,12,24,.88) 0%, rgba(4,12,24,.62) 45%, rgba(4,12,24,.14) 100%); }
.hero-content { position: relative; z-index: 1; padding-top: 90px; }
.eyebrow, .section-kicker { text-transform: uppercase; letter-spacing: .18em; font-size: 12px; font-weight: 800; color: var(--accent); margin: 0 0 16px; }
.hero h1 { margin: 0; font-family: "Barlow Condensed", sans-serif; font-size: clamp(3.2rem, 7vw, 6.8rem); line-height: .98; max-width: 900px; letter-spacing: -.015em; font-weight: 700; }
.hero h1 em { color: #d8d2c7; font-weight: 600; }
.hero-text { max-width: 600px; font-size: 18px; color: rgba(255,255,255,.82); margin: 26px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 25px; border-radius: 999px; border: 1px solid transparent; font-weight: 800; font-size: 14px; transition: transform .25s ease, background .25s ease, color .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--white); color: var(--ink); box-shadow: 0 10px 28px rgba(0,0,0,.15); }
.btn-ghost { border-color: rgba(255,255,255,.48); color: var(--white); }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 36px; color: rgba(255,255,255,.75); font-size: 13px; }
.scroll-cue { position: absolute; z-index: 2; right: 30px; bottom: 28px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; animation: float 1.8s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(8px); } }

.intro { background: var(--paper); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 80px; }
h2 { font-family: "Barlow Condensed", sans-serif; font-size: clamp(2.2rem, 4.8vw, 4.6rem); line-height: 1.06; letter-spacing: -.015em; margin: 0; font-weight: 700; }
.intro-grid > p { font-size: 18px; color: var(--muted); margin: 0; max-width: 570px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 34px; }
.section-heading > p { color: var(--muted); max-width: 420px; margin: 0; }
.section-heading.centered { text-align: center; display: block; max-width: 760px; margin-inline: auto; margin-bottom: 46px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.filter-btn { border: 1px solid var(--line); background: var(--white); padding: 10px 18px; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 13px; }
.filter-btn.active, .filter-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 2vw, 32px); }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: transform .3s ease, box-shadow .3s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 4/5; overflow: hidden; background: #e8e6df; position: relative; }
.product-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.product-card:hover .product-image img { transform: scale(1.045); }
.badge { position: absolute; left: 16px; top: 16px; z-index: 1; padding: 7px 10px; border-radius: 999px; background: rgba(17,17,17,.88); color: var(--white); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.product-body { padding: 22px; }
.product-code { margin: 0 0 5px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.product-title { font-size: 25px; margin: 0; font-family: "Barlow Condensed", sans-serif; font-weight: 700; letter-spacing: .01em; }
.product-copy { color: var(--muted); font-size: 14px; margin: 10px 0 18px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.product-price { font-size: 21px; font-weight: 800; color: var(--denim-dark); }
.product-old-price { color: #929292; text-decoration: line-through; font-size: 13px; margin-left: 6px; }
.product-actions { display: flex; align-items: center; gap: 9px; }
.product-more-btn {
  min-height: 43px;
  padding: 0 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .035em;
  white-space: nowrap;
  transition: background .22s ease, color .22s ease, transform .22s ease;
}
.product-more-btn:hover { background: var(--ink); color: var(--white); transform: translateY(-2px); }
.product-whatsapp-btn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--whatsapp);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(24,139,75,.24);
  transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}
.product-whatsapp-btn svg { width: 21px; height: 21px; fill: currentColor; }
.product-whatsapp-btn:hover { transform: translateY(-2px) scale(1.04); filter: brightness(.94); box-shadow: 0 11px 24px rgba(24,139,75,.32); }
.product-more-btn:focus-visible,
.product-whatsapp-btn:focus-visible { outline: 3px solid rgba(22,58,104,.28); outline-offset: 3px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 42px;
}
.pagination-pages { display: flex; align-items: center; gap: 8px; }
.pagination-ellipsis {
  min-width: 18px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}
.pagination-number,
.pagination-arrow {
  min-width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.pagination-number:hover,
.pagination-arrow:hover:not(:disabled) {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.pagination-number.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.pagination-arrow {
  min-width: 118px;
  padding-inline: 18px;
}
.pagination-arrow:disabled {
  cursor: not-allowed;
  opacity: .42;
}
.pagination-number:focus-visible,
.pagination-arrow:focus-visible {
  outline: 3px solid rgba(22,58,104,.28);
  outline-offset: 3px;
}

.banner-card { background: linear-gradient(135deg, var(--denim-dark), var(--denim)); color: var(--white); border-radius: 28px; padding: 54px; display: flex; align-items: center; justify-content: space-between; gap: 50px; overflow: hidden; position: relative; }
.banner-card::after { content: "DENIM"; position: absolute; right: 22px; bottom: -30px; font-size: 110px; font-weight: 800; opacity: .06; line-height: 1; }
.banner-card h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.banner-card p { max-width: 650px; color: rgba(255,255,255,.75); margin-bottom: 0; }
.section-kicker.light { color: #e7b16f; }
.btn-light { background: var(--white); color: var(--denim-dark); flex: 0 0 auto; }

.benefits { background: var(--paper); }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit-card { background: var(--white); padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); }
.benefit-icon { font-weight: 800; color: var(--accent); letter-spacing: .16em; }
.benefit-card h3 { font-size: 21px; margin: 25px 0 10px; }
.benefit-card p { color: var(--muted); margin: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr auto; gap: 50px; align-items: center; }
.contact-grid p:not(.section-kicker) { color: var(--muted); max-width: 700px; font-size: 17px; }
.btn-whatsapp { background: var(--whatsapp); color: var(--white); box-shadow: 0 12px 30px rgba(24,139,75,.22); }

.site-footer { background: #0e0e0e; color: var(--white); padding: 68px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .7fr .8fr; gap: 60px; }
.footer-brand { margin-bottom: 18px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.62); font-size: 14px; }
.footer-grid h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .15em; margin-top: 0; }
.footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 46px; padding-top: 20px; display: flex; justify-content: space-between; color: rgba(255,255,255,.45); font-size: 12px; }

.floating-whatsapp { position: fixed; z-index: 90; right: 22px; bottom: 22px; background: var(--whatsapp); color: var(--white); border-radius: 999px; padding: 13px 18px; font-size: 13px; font-weight: 800; box-shadow: 0 12px 32px rgba(0,0,0,.22); }

.product-modal { position: fixed; inset: 0; z-index: 200; display: none; }
.product-modal.open { display: grid; place-items: center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.68); backdrop-filter: blur(6px); }
.modal-card { position: relative; z-index: 1; width: min(930px, calc(100% - 28px)); max-height: calc(100vh - 30px); overflow: auto; background: var(--white); border-radius: 22px; display: grid; grid-template-columns: 1fr 1fr; box-shadow: var(--shadow); }
.modal-image-wrap { min-height: 570px; background: #ece9e1; }
.modal-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-content { padding: 46px; display: flex; flex-direction: column; justify-content: center; }
.modal-content h2 { font-size: clamp(2.2rem, 4vw, 3.7rem); }
.modal-content > p:not(.product-code) { color: var(--muted); }
.modal-meta { display: grid; gap: 8px; margin: 12px 0 22px; color: #3d3d3d; }
.modal-price { font-size: 28px; font-weight: 800; margin-bottom: 22px; }
.modal-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 27px; cursor: pointer; z-index: 2; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .header-cta { display: none; }
  .menu-toggle { display: block; color: var(--white); z-index: 102; }
  .main-nav { position: fixed; inset: 0 0 auto auto; width: min(80vw, 340px); min-height: 100vh; background: #111; padding: 110px 32px; flex-direction: column; align-items: flex-start; transform: translateX(100%); transition: transform .3s ease; }
  .main-nav.open { transform: translateX(0); }
  .hero h1 { font-size: clamp(3.1rem, 12vw, 5.6rem); }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .product-grid, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .banner-card { padding: 42px 32px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .modal-card { grid-template-columns: 1fr; }
  .modal-image-wrap { min-height: auto; aspect-ratio: 4/3; }
}

@media (max-width: 620px) {
  .section { padding: 72px 0; }
  .hero { background-position: 62% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(4,12,24,.92), rgba(4,12,24,.56)); }
  .hero-content { padding-top: 105px; padding-bottom: 40px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .hero-text { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { display: grid; gap: 8px; }
  .scroll-cue { display: none; }
  .product-grid, .benefit-grid, .footer-grid { grid-template-columns: 1fr; }
  .product-grid { gap: 18px; }
  .filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 8px; }
  .filter-btn { white-space: nowrap; }
  .catalog-pagination { gap: 8px; margin-top: 30px; }
  .pagination-pages { gap: 6px; }
  .pagination-number { min-width: 40px; height: 40px; }
  .pagination-arrow { min-width: 44px; width: 44px; height: 44px; padding: 0; }
  .pagination-arrow span { display: none; }
  .banner-card { border-radius: 20px; padding: 34px 24px; }
  .contact-grid .btn { width: 100%; }
  .footer-bottom { flex-direction: column; gap: 7px; }
  .floating-whatsapp span { display: none; }
  .floating-whatsapp { width: 54px; height: 54px; padding: 0; display: grid; place-items: center; }
  .floating-whatsapp::before { content: "WA"; }
  .modal-content { padding: 32px 24px; }
  .product-footer { align-items: flex-end; }
  .product-more-btn { min-height: 42px; padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Galería de productos y datos administrables */
.gallery-count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  backdrop-filter: blur(8px);
}
.catalog-empty {
  grid-column: 1 / -1;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}
.catalog-empty strong { color: var(--ink); font-size: 18px; }
.modal-card { width: min(1080px, calc(100% - 28px)); grid-template-columns: 1.08fr .92fr; }
.modal-gallery { min-width: 0; padding: 18px; background: #ece9e1; display: flex; flex-direction: column; gap: 12px; }
.modal-image-wrap { min-height: 0; height: min(620px, calc(100vh - 155px)); border-radius: 15px; overflow: hidden; background: #dedbd2; }
.modal-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.modal-thumbnails { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.modal-thumb { aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #d8d4ca; cursor: pointer; opacity: .72; transition: opacity .2s ease, border-color .2s ease, transform .2s ease; }
.modal-thumb:hover { opacity: 1; transform: translateY(-2px); }
.modal-thumb.active { opacity: 1; border-color: var(--denim); }
.modal-thumb img { width: 100%; height: 100%; object-fit: cover; }
.modal-features { margin: 0 0 22px; padding: 17px 18px; border-radius: 13px; background: var(--paper); }
.modal-features > strong { display: block; margin-bottom: 7px; font-size: 13px; }
.modal-features ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 13px; display: grid; gap: 3px; }
.modal-features[hidden], .modal-thumbnails[hidden] { display: none; }

@media (max-width: 900px) {
  .modal-card { grid-template-columns: 1fr; }
  .modal-gallery { padding: 14px; }
  .modal-image-wrap { height: auto; aspect-ratio: 4 / 3; }
}

@media (max-width: 620px) {
  .modal-card { width: min(100% - 16px, 620px); max-height: calc(100vh - 16px); border-radius: 18px; }
  .modal-gallery { padding: 10px; }
  .modal-image-wrap { aspect-ratio: 1 / 1; border-radius: 12px; }
  .modal-thumbnails { gap: 6px; }
  .modal-thumb { border-radius: 8px; }
}
