:root {
  --bg: #eef2f8;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --ink: #101a2d;
  --muted: #5f6a7f;
  --line: #d8e0ef;
  --brand: #223f99;
  --brand-dark: #1a2f74;
  --success: #1e8e4e;
  --shadow: 0 18px 35px rgba(25, 35, 58, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, #dde7ff 0%, transparent 35%),
    radial-gradient(circle at 90% 0%, #ddf6ed 0%, transparent 28%),
    var(--bg);
}

a { color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px clamp(16px, 3vw, 34px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(216, 224, 239, 0.8);
}
.logo {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  display: block;
  height: clamp(44px, 4.2vw, 66px);
  width: auto;
}
.footer-logo {
  height: clamp(34px, 3.4vw, 52px);
}
.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 20px;
}
.main-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--ink); }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 9px 8px;
  cursor: pointer;
  justify-self: end;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #1b2948;
  margin: 5px 0;
}

.hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 56px) clamp(16px, 3vw, 24px) 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 22px;
}
.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  color: #2d77ed;
  font-weight: 800;
}
h1 {
  margin: 10px 0 10px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: .95;
  letter-spacing: -0.8px;
}
.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 30px);
  max-width: 760px;
}
.search {
  align-self: end;
  display: flex;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 16px;
  padding: 8px;
  gap: 8px;
  box-shadow: var(--shadow);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  font: inherit;
  padding: 10px;
}
.search button {
  border: 0;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.filters,
.grid,
.offers,
.payments,
.footer-grid,
.footer-bar {
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(16px, 3vw, 24px);
  padding-right: clamp(16px, 3vw, 24px);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  background: #fff;
}
.chip.active {
  color: #fff;
  border-color: var(--brand-dark);
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-dark) 100%);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 24px 38px rgba(25, 35, 58, 0.13); }
.card img {
  width: 100%;
  height: 360px;
  object-fit: contain;
  object-position: center top;
  background: #ebf0fb;
  padding: 10px;
}
.preview-trigger {
  padding: 0;
  border: 0;
  background: transparent;
  width: 100%;
  cursor: zoom-in;
}
.card-body { padding: 14px; }
.line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}
.line h2 { margin: 0; font-size: 24px; }
.line span { color: var(--muted); font-size: 12px; font-weight: 800; }
.code,.price,.desc { margin: 6px 0 0; }
.code { color: var(--muted); font-weight: 700; }
.price { color: var(--brand); font-size: 23px; font-weight: 800; letter-spacing: -0.4px; }
.desc { color: var(--muted); }

.bulk-price {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #becce8;
  border-radius: 12px;
  background: var(--surface-soft);
}
.bulk-price p { margin: 0 0 6px; color: var(--brand); font-size: 13px; font-weight: 800; text-transform: uppercase; }
.bulk-price span { display: block; margin: 0 0 3px; font-weight: 700; }
.bulk-price em { display: block; margin-top: 4px; font-style: normal; color: #3b4658; font-weight: 600; }
.size-chart {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #cfd8ea;
  border-radius: 12px;
  background: #ffffff;
}
.size-chart p {
  margin: 0 0 6px;
  color: #7a828f;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.size-chart span {
  display: block;
  margin: 0 0 4px;
  font-weight: 700;
  color: #202a3e;
  font-size: 14px;
}

.badges { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badges span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 12px;
  background: #f7faff;
}
.badges.colors span { display: inline-flex; align-items: center; gap: 6px; }
.badges.colors i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid #c3cfe5;
}
.wa {
  margin-top: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  background: var(--success);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 10px 14px;
}
.wa::before {
  content: "";
  width: 16px;
  height: 16px;
  display: inline-block;
  background: no-repeat center/contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath fill='%23fff' d='M19.1 17.2c-.3-.2-1.8-.9-2.1-1s-.5-.2-.8.2-.9 1-1.1 1.2-.4.2-.7.1c-.3-.2-1.4-.5-2.6-1.6-1-1-1.6-2.1-1.8-2.5-.2-.3 0-.5.1-.7l.5-.6c.2-.2.2-.4.3-.6.1-.2 0-.4 0-.6s-.8-2-1.1-2.7c-.3-.7-.6-.6-.8-.6h-.7c-.2 0-.6.1-.9.4-.3.3-1.2 1.1-1.2 2.7 0 1.6 1.2 3.1 1.3 3.4.2.2 2.3 3.5 5.5 4.9.8.3 1.4.5 1.9.6.8.3 1.5.2 2 .1.6-.1 1.8-.8 2-1.6.2-.8.2-1.4.1-1.6-.1-.2-.3-.3-.6-.4z'/%3E%3Cpath fill='%23fff' d='M27.3 4.7C24.3 1.7 20.3 0 16 0 7.2 0 0 7.2 0 16c0 2.8.7 5.4 2.1 7.7L0 32l8.5-2.2c2.2 1.2 4.7 1.9 7.5 1.9h.1C24.8 31.7 32 24.5 32 15.7c0-4.2-1.7-8.1-4.7-11zM16.1 29c-2.3 0-4.6-.6-6.6-1.8l-.5-.3-5 1.3 1.3-4.9-.3-.5c-1.3-2-1.9-4.3-1.9-6.7 0-7.1 5.8-12.9 12.9-12.9 3.4 0 6.7 1.3 9.1 3.8 2.4 2.4 3.8 5.7 3.8 9.1 0 7.1-5.8 12.9-12.9 12.9z'/%3E%3C/svg%3E");
}
.view-image-btn {
  margin-top: 8px;
  display: inline-block;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 700;
  cursor: pointer;
}
.table-btn {
  margin-left: 8px;
}

.offers { margin-bottom: 22px; }
.offers-head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.offers-head p { margin: 6px 0 12px; color: var(--muted); }
.offers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.offer-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.offer-card img { width: 100%; height: 180px; object-fit: cover; }
.offer-card div { padding: 12px; }
.offer-card h3 { margin: 0 0 6px; }
.offer-card p { margin: 0 0 4px; font-weight: 700; }
.offer-card small { color: var(--muted); }

.payments { margin-bottom: 22px; }
.payments h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 38px); letter-spacing: -0.4px; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 12px; }
.pay {
  min-width: 130px;
  padding: 12px 14px;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  text-align: center;
  box-shadow: var(--shadow);
}
.visa { background: #1b3fa0; }
.mc { background: linear-gradient(90deg, #d11b1b 0 50%, #f59f0d 50%); }
.yape { background: #7c2ac9; }
.plin { background: #00acd8; }

.footer-content {
  background: #f3f4f7;
  border-top: 1px solid var(--line);
}
.page-hero,
.contact-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 46px) clamp(16px, 3vw, 24px);
}
.page-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.page-hero p,
.contact-hero p {
  color: #4f596c;
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.5;
}
.page-hero h1,
.contact-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  margin: 8px 0 14px;
}
.signature { font-weight: 700; color: #263349; }
.cta-btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  background: #20a0d8;
  color: #fff;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
}
.cta-btn.ghost {
  background: #edf4ff;
  color: #1f3f9b;
}
.about-gallery {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  box-shadow: var(--shadow);
}
.about-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  background: #e8eef9;
}
.about-gallery img:first-child {
  grid-row: 1 / 3;
}
.about-gallery.single-image {
  grid-template-columns: 1fr;
  grid-template-rows: auto;
}
.about-gallery.single-image img:first-child {
  grid-row: auto;
  min-height: 420px;
}

.contact-grid {
  max-width: 1240px;
  margin: 0 auto 26px;
  padding: 0 clamp(16px, 3vw, 24px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.contact-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
}
.contact-card p { margin: 0 0 8px; color: #4f596c; }
.contact-main {
  font-size: 24px;
  font-weight: 800;
  color: #0f1d34;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr 1fr;
  gap: 20px;
  padding-top: 34px;
  padding-bottom: 28px;
}
.footer-brand {
  margin: 0;
  display: inline-flex;
  align-items: center;
}
.footer-grid h3 { margin: 0 0 10px; font-size: 24px; }
.footer-grid p { margin: 0 0 9px; color: #4f596c; }
.footer-grid ul { margin: 0; padding-left: 16px; color: #4f596c; }
.social-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.social-links a {
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
}
.footer-bar {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  padding-bottom: 16px;
  background: #0d1321;
  color: #d9deea;
}
.footer-bar p { margin: 0; }
.wa-float {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  text-decoration: none;
  background: #25d366;
  color: #fff;
  font-weight: 800;
  border-radius: 999px;
  padding: 12px 15px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

.modal-open { overflow: hidden; }
.image-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.image-modal[aria-hidden="false"] { display: block; }
.image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 12, 24, 0.72);
}
.image-modal-content {
  position: relative;
  z-index: 1;
  width: min(92vw, 1000px);
  margin: 5vh auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 40px rgba(8, 14, 29, 0.38);
}
.image-modal-content p {
  margin: 0;
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.image-modal-content img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #f2f5fb;
}
.size-modal-content img {
  max-height: 54vh;
}
.size-chart-popup {
  border-top: 1px solid var(--line);
  padding: 10px 14px 14px;
  background: #fbfcff;
}
.size-chart-popup span {
  display: block;
  font-weight: 700;
  color: #202a3e;
  margin-bottom: 5px;
}
.image-modal-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(16, 26, 45, 0.72);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .topbar { grid-template-columns: auto auto; }
  .menu-toggle { display: inline-block; }
  .main-nav {
    display: none;
    grid-column: 1 / -1;
    justify-self: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    margin-top: 8px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .main-nav.is-open { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .page-hero { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .topbar {
    padding-right: 12px;
  }
  .page-hero p,
  .contact-hero p { font-size: 17px; }
  .about-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .about-gallery img:first-child { grid-row: auto; }
  .about-gallery img { height: 220px; }
  .contact-grid { grid-template-columns: 1fr; }
  .main-nav { gap: 12px; }
  .main-nav a { font-size: 14px; }
  .card img { height: 320px; }
  .wa,
  .view-image-btn {
    width: 100%;
    justify-content: center;
  }
  .table-btn {
    margin-left: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 14px;
  }
  .footer-brand { font-size: 28px; }
  .footer-grid h3 { font-size: 18px; margin-bottom: 6px; }
  .footer-grid p { margin-bottom: 6px; font-size: 14px; }
  .social-links a { padding: 6px 10px; }
  .footer-bar {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .footer-bar p { font-size: 13px; }
  .wa-float {
    right: 12px;
    bottom: 12px;
    padding: 11px 13px;
    font-size: 14px;
  }
  .image-modal-content { width: 94vw; margin: 8vh auto; }
}
.list-title {
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: #6a7280;
  text-transform: uppercase;
}
