:root {
  --navy: #12345b;
  --navy-2: #0d2747;
  --teal: #20b9b9;
  --teal-soft: #dff7f5;
  --coral: #ff7164;
  --yellow: #f7bd3f;
  --purple: #9a6ee8;
  --bg: #fffdfb;
  --surface: #ffffff;
  --text: #19314c;
  --muted: #68788b;
  --border: #e8edf2;
  --shadow: 0 14px 40px rgba(18, 52, 91, 0.09);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: var(--bg);
}
button, select { font: inherit; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(18,52,91,.06);
}
.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 235px; }
.brand-mark {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center;
  font-family: "Quicksand", sans-serif;
  font-weight: 800; font-size: 26px; color: white;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  box-shadow: var(--shadow);
}
.brand strong { display: block; font-size: 24px; line-height: 1; color: var(--navy); }
.brand span { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); max-width: 155px; }
.main-nav { display: flex; justify-content: center; gap: 28px; }
.main-nav a { font-weight: 800; font-size: 14px; padding: 28px 2px 18px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { color: var(--teal); border-color: var(--teal); }
.header-actions { display: flex; gap: 8px; }
.header-actions button, .menu-toggle {
  border: 0; background: transparent; color: var(--navy); cursor: pointer;
  width: 40px; height: 40px; border-radius: 50%; font-size: 20px;
}
.header-actions button:hover { background: var(--teal-soft); }
.cart-btn { position: relative; }
.cart-btn span {
  position: absolute; top: -1px; right: -1px; width: 17px; height: 17px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--coral); color: white; font-size: 10px; font-weight: 800;
}
.menu-toggle { display: none; }

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 50px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255,113,100,.20), transparent 18%),
    radial-gradient(circle at 95% 55%, rgba(32,185,185,.18), transparent 20%),
    linear-gradient(180deg, #fff, #fffdfa);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 45% 55% 60% 40%; z-index: 0;
}
.hero::before { width: 240px; height: 180px; background: var(--coral); opacity: .9; left: -135px; top: -85px; }
.hero::after { width: 250px; height: 220px; background: var(--teal); opacity: .95; right: -145px; bottom: -70px; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 50px; align-items: center; }
.eyebrow { display: inline-block; color: var(--teal); font-weight: 800; letter-spacing: .02em; }
h1, h2, h3 { font-family: "Quicksand", sans-serif; color: var(--navy); }
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.02; margin: 12px 0 18px; }
.hero-subtitle { font-size: 20px; line-height: 1.6; color: var(--muted); max-width: 670px; }
.hero-highlight { color: var(--teal); font-size: 24px; font-weight: 800; font-style: italic; }
.benefits-inline { margin-top: 32px; display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.benefits-inline div, .quality-grid div { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.benefits-inline span, .quality-grid span {
  grid-row: 1 / 3; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-weight: 900;
}
.benefits-inline b, .quality-grid b { font-size: 13px; }
.benefits-inline small, .quality-grid small { color: var(--muted); font-size: 11px; }
.hero-visual { position: relative; }
.image-placeholder {
  display: grid; place-items: center; text-align: center;
  border: 2px dashed rgba(18,52,91,.18); color: var(--muted);
  background: linear-gradient(135deg,#f5fbfb,#fff3ef);
  border-radius: 32px;
}
.image-placeholder.large { min-height: 350px; box-shadow: var(--shadow); }
.image-placeholder.compact { min-height: 180px; }

.catalog-section { padding: 58px 0; }
.catalog-layout { display: grid; grid-template-columns: 255px 1fr; gap: 24px; }
.sidebar, .catalog-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.sidebar { padding: 24px; align-self: start; position: sticky; top: 105px; }
.sidebar h2, .catalog-toolbar h2 { margin-top: 0; }
.category-list { display: grid; gap: 7px; }
.category {
  text-align: left; border: 0; cursor: pointer; color: var(--text); background: transparent;
  padding: 12px 13px; border-radius: 12px; font-weight: 700;
}
.category:hover, .category.active { color: var(--navy); background: var(--teal-soft); }
.shipping-box { margin-top: 24px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg,var(--teal-soft),#eefbff); }
.shipping-box strong, .shipping-box span { display: block; }
.shipping-box span { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.catalog-content { padding: 26px; }
.catalog-toolbar { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 24px; }
.catalog-toolbar h2 { font-size: 28px; margin-bottom: 8px; }
.catalog-toolbar p { margin: 0; color: var(--muted); }
.catalog-toolbar label { display: flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 700; }
.catalog-toolbar select { border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px; background: white; color: var(--text); }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.product-card { border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: white; transition: .2s ease; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(18,52,91,.10); }
.product-image { height: 180px; border-bottom: 1px solid var(--border); border-radius: 0; }
.product-body { padding: 16px; }
.product-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800; color: var(--teal); margin-bottom: 8px; }
.product-card h3 { margin: 0 0 7px; font-size: 17px; }
.product-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.card-link { margin-top: 14px; display: inline-flex; color: var(--navy); font-weight: 800; font-size: 13px; }
.custom-banner { margin-top: 26px; display: grid; grid-template-columns: 1.4fr .6fr; gap: 26px; align-items: center; padding: 28px; border: 1px solid #d8eee9; border-radius: 22px; background: linear-gradient(135deg,#fff9f6,#f3fffe); }
.custom-banner h3 { font-size: 27px; margin: 8px 0; }
.custom-banner p { color: var(--muted); line-height: 1.6; }
.primary-btn { display: inline-block; margin-top: 10px; background: var(--teal); color: white; padding: 12px 19px; border-radius: 12px; font-weight: 800; }

.quality-section { padding: 0 0 60px; }
.quality-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; padding: 22px; background: white; border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow); }
.site-footer { background: var(--navy-2); color: white; padding: 42px 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 30px; }
.footer-grid strong { font-size: 18px; }
.footer-grid p { color: rgba(255,255,255,.72); margin: 8px 0; }

@media (max-width: 1024px) {
  .main-nav { display: none; position: absolute; top: 82px; left: 16px; right: 16px; padding: 18px; background: white; border-radius: 18px; box-shadow: var(--shadow); flex-direction: column; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 4px; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .header-inner { grid-template-columns: auto auto 1fr; }
  .header-actions { justify-self: end; }
  .hero-grid { grid-template-columns: 1fr; }
  .benefits-inline { grid-template-columns: repeat(2,1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .category-list { grid-template-columns: repeat(2,1fr); }
  .product-grid { grid-template-columns: repeat(2,1fr); }
  .quality-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 640px) {
  .container { width: min(100% - 20px, 1180px); }
  .brand { min-width: auto; }
  .brand span { display: none; }
  .brand-mark { width: 52px; height: 52px; font-size: 22px; }
  .brand strong { font-size: 19px; }
  .header-actions button:nth-child(1), .header-actions button:nth-child(2) { display: none; }
  .hero { padding-top: 48px; }
  .benefits-inline, .quality-grid, .category-list, .product-grid, .footer-grid { grid-template-columns: 1fr; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; }
  .catalog-toolbar label { justify-content: space-between; }
  .custom-banner { grid-template-columns: 1fr; }
  .catalog-content, .sidebar { padding: 18px; }
}

/* Imágenes reales */
.hero-product-image,.custom-product-image{width:100%;display:block;object-fit:cover;border-radius:28px;box-shadow:0 18px 50px rgba(20,47,78,.14)}
.hero-product-image{height:430px}.custom-product-image{height:240px}
.product-image-wrap{aspect-ratio:1/1;overflow:hidden;background:#f6f8fa}
.product-image-real{width:100%;height:100%;display:block;object-fit:cover;transition:transform .35s ease}
.product-card:hover .product-image-real{transform:scale(1.035)}
.empty-state{grid-column:1/-1;padding:48px 24px;text-align:center;background:#fff;border:1px dashed rgba(18,52,86,.18);border-radius:22px}
@media(max-width:760px){.hero-product-image{height:320px}.custom-product-image{height:210px}}
