:root {
  --bg: #f4f5f4;
  --panel: #ffffff;
  --line: #d5e4e3;
  --accent: #63b7b6;
  --ink: #1a1c1c;
  --muted: #5c6b6b;
  --gutter: 1.25rem;
  --nav-h: 5.8rem;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: light; background: var(--bg); }
body {
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
  font-size: 1rem;
  padding-top: var(--nav-h);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
.wrap { width: min(100% - (var(--gutter) * 2), 1080px); margin-inline: auto; }
.eyebrow {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.display {
  font-size: clamp(1.9rem, 5.4vw, 3rem);
  line-height: .98;
  letter-spacing: -.03em;
  font-weight: 600;
}
.muted { color: var(--muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .85rem 1.25rem;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
}
.btn-accent { background: var(--accent); color: #123838; }
.btn-line { border-color: var(--accent); color: #1a6e6d; }
.btn:focus-visible,
.nav-links a:focus-visible,
.float:focus-visible,
.feat a:focus-visible,
.redes-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  width: 100%;
  background: rgba(244, 245, 244, .55);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: none;
  transform: translateY(0);
  transition: transform .28s ease, background .25s ease;
  will-change: transform;
}
.nav.is-scrolled { background: rgba(244, 245, 244, .88); }
.nav.is-away { transform: translateY(-110%); pointer-events: none; }
.nav.is-open {
  transform: none;
  pointer-events: auto;
  background: rgba(244, 245, 244, .96);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .8rem;
  min-height: var(--nav-h);
}
.nav-end { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; }
.brand {
  display: flex; align-items: center;
  min-width: 0; flex: 0 1 auto;
}
.brand img {
  height: 78px; width: auto;
  max-width: min(70vw, 420px);
  display: block;
  object-fit: contain;
  object-position: left center;
}
.nav-links { display: flex; gap: 1.1rem; }
.nav-links a {
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-toggle {
  display: none;
  width: 2.7rem; height: 2.7rem;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: 1px solid rgb(99 183 182 / .45); border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 1.15rem; height: 2px; background: var(--accent); }
@media (max-width: 799px) {
  :root { --nav-h: 5.2rem; }
  .brand img { height: 64px; max-width: min(72vw, 300px); }
  .nav-toggle { display: flex; }
  .nav-end .btn { display: none; }
  .nav-links {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; gap: 0;
    background: rgba(244, 245, 244, .96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: .4rem 1.25rem 1rem;
  }
  .nav.is-open .nav-links { display: flex; }
  .nav-links a {
    font-size: 1.05rem;
    padding: .9rem 0;
    border-bottom: 1px solid rgb(99 183 182 / .2);
  }
}

.hero {
  position: relative;
  min-height: min(86svh, 760px);
  overflow: hidden;
  background: var(--bg);
}
.hero-media { position: absolute; inset: 0; background: var(--bg); }
.hero-media .ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    repeating-linear-gradient(-45deg, #eceeee, #eceeee 14px, #e4e8e8 14px, #e4e8e8 28px);
  color: rgb(92 107 107 / .7);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-copy {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end;
  min-height: inherit;
  padding: 2.2rem 0 2rem;
}
.hero-copy .eyebrow {
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  margin-bottom: .45rem;
}
.hero-copy h1 {
  font-size: clamp(1.7rem, 5vw, 2.9rem);
  line-height: 1.1;
  font-weight: 600;
  max-width: 16ch;
  color: var(--ink);
}
.hero-copy .lead {
  margin: .7rem 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-weight: 500;
}
.hero-copy .btn { margin-top: .85rem; }
.hero-copy .proof {
  margin-top: .85rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 500;
}

.servicios { padding: 3rem 0 2.4rem; }
.servicios .display { margin: .2rem 0 .4rem; }
.feat-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .feat-grid { grid-template-columns: 1fr 1fr; } }
.feat {
  background: var(--panel);
  border: 1px solid var(--line);
}
.feat .shot { height: 180px; }
@media (min-width: 800px) { .feat .shot { height: 210px; } }
.feat-body { padding: 1rem 1rem 1.15rem; display: grid; gap: .35rem; }
.feat h3 { font-size: 1.05rem; letter-spacing: -.01em; }
.feat p { color: var(--muted); font-size: .95rem; }
.feat .btn { justify-self: start; margin-top: .4rem; padding: .5rem 1rem; }

.productos { padding: 2.4rem 0 3.2rem; }
.productos .display { margin: .2rem 0 .4rem; }
.prod-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .prod-grid { grid-template-columns: 1fr 1fr 1fr; } }
.prod {
  background: var(--panel);
  border: 1px solid var(--line);
}
.prod .shot {
  height: 200px;
  background: #fff;
  background-image: none;
}
@media (min-width: 800px) { .prod .shot { height: 230px; } }
.prod .shot picture,
.prod .shot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.prod .shot img {
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.prod .feat-body { padding: 1rem 1rem 1.15rem; display: grid; gap: .35rem; }
.prod h3 { font-size: 1.05rem; }
.prod p { color: var(--muted); font-size: .95rem; }
.prod .btn { justify-self: start; margin-top: .4rem; padding: .5rem 1rem; }
.prod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .4rem;
}
.prod-actions .btn { margin-top: 0; }

.tryon {
  position: fixed; inset: 0; z-index: 80;
  width: 100%;
  max-width: 100%;
  background: #111;
  display: grid;
  place-items: stretch;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
}
.tryon[hidden] { display: none; }
.tryon-box {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100dvh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 0;
  padding:
    max(.4rem, env(safe-area-inset-top, 0px))
    max(.5rem, env(safe-area-inset-right, 0px))
    max(.4rem, env(safe-area-inset-bottom, 0px))
    max(.5rem, env(safe-area-inset-left, 0px));
  position: relative;
  box-sizing: border-box;
}
.tryon-close {
  position: absolute; top: .4rem; right: .5rem;
  width: 2.7rem; height: 2.7rem;
  border: 0; background: none;
  font-size: 1.8rem; line-height: 1;
  cursor: pointer; color: var(--ink);
}
.tryon-name {
  flex-shrink: 0;
  font-weight: 700;
  margin: 0 2.6rem .4rem 0;
}
.tryon-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  background: #111;
  overflow: hidden;
  border-radius: 10px;
}
.tryon-carousel {
  display: flex;
  align-items: center;
  gap: .15rem;
  flex-shrink: 0;
  margin-top: .5rem;
}
.tryon-nav {
  flex-shrink: 0;
  width: 1.8rem;
  height: 2.6rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 1.7rem;
  line-height: 1;
  opacity: .4;
  cursor: pointer;
  padding: 0;
}
.tryon-nav:hover { opacity: .9; color: var(--ink); }
.tryon-rail {
  display: flex;
  flex-direction: row;
  gap: .45rem;
  flex: 1;
  justify-content: center;
  min-width: 0;
  touch-action: pan-x;
}
.tryon-thumb {
  display: block;
  width: 4.1rem;
  flex: 0 0 4.1rem;
  padding: 0;
  border: 2px solid var(--line);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}
.tryon-thumb.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent);
}
.tryon-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tryon-more {
  flex-shrink: 0;
  margin-top: .35rem;
  border-top: 1px solid var(--line);
  padding-top: .3rem;
  max-height: 38dvh;
  overflow: auto;
}
.tryon-more summary {
  cursor: pointer;
  color: var(--muted);
  font-size: .82rem;
  list-style: none;
}
.tryon-more summary::-webkit-details-marker { display: none; }
.tryon-more summary::before {
  content: "▸ ";
  opacity: .7;
}
.tryon-more[open] summary::before { content: "▾ "; }
.tryon-stage video,
.tryon-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.tryon-stage canvas { pointer-events: none; }
#tryonDbg { pointer-events: auto; cursor: pointer; z-index: 7; }
.tryon-debug {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: .4rem 0 0;
  padding: .4rem .5rem;
  resize: none;
  border: 1px solid var(--line);
  background: #111;
  color: #b8ffce;
  font: 10px/1.3 ui-monospace, Consolas, monospace;
}
.tryon-status {
  margin: .7rem 0 0;
  font-size: .95rem;
  color: var(--muted);
}
.tryon-tools {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: .55rem;
}
.tryon-tools .btn { margin-top: 0; padding: .45rem .9rem; font-size: .9rem; }
.tryon-note { margin-top: .35rem; font-size: .85rem; }
body.is-tryon { overflow: hidden; }
@media (min-width: 720px) {
  .tryon {
    place-items: center;
    padding: .6rem;
    background: rgb(26 28 28 / .55);
  }
  .tryon-box {
    width: min(100%, 520px);
    height: min(94dvh, 980px);
    max-height: 94dvh;
    border: 1px solid var(--line);
    border-radius: 12px;
  }
}

.shot {
  position: relative;
  overflow: hidden;
  background:
    repeating-linear-gradient(-45deg, #eceeee, #eceeee 12px, #e4e8e8 12px, #e4e8e8 24px);
}
.shot-ph {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgb(92 107 107 / .7);
}

.contacto { padding: 3.8rem 0 4.2rem; background: #e8f3f2; }
.contacto-grid { display: grid; gap: 2.2rem; }
@media (min-width: 860px) { .contacto-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.contacto-copy { display: grid; gap: 1.15rem; align-content: start; }
.contacto-copy .display { line-height: 1.12; max-width: none; }
.contacto-copy .muted { margin: 0; max-width: 32ch; }
.form {
  display: grid; gap: .7rem;
  border: 1px solid var(--line);
  padding: 1.2rem;
  background: var(--bg);
}
.form label { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.form input, .form select {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: .55rem 0;
  border-radius: 0;
}
.form .row { display: grid; gap: .7rem; }
@media (min-width: 600px) { .form .row { grid-template-columns: 1fr 1fr; } }
.form .btn { margin-top: .4rem; justify-self: start; }

.visitar { padding: 3.2rem 0 2.4rem; }
.visit { display: grid; gap: 1.2rem; }
@media (min-width: 860px) { .visit { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.visit-title {
  font-size: clamp(1.05rem, 3.2vw, 1.35rem);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
}
.visit-copy { display: grid; gap: .7rem; }
.nap { line-height: 1.45; }
.visit-copy .btn { justify-self: start; }
.map { width: 100%; min-height: 320px; border: 0; background: #e8f3f2; }
.visit-shots { display: grid; gap: 10px; grid-column: 1 / -1; }
@media (min-width: 860px) { .visit-shots { grid-template-columns: 1fr 1fr; } }
.visit-shots .shot { min-height: 180px; }

.redes { padding: 2.4rem 0 3.4rem; border-top: 1px solid var(--line); }
.redes .muted { margin-top: .5rem; }
.redes-list { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.redes-item {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7rem 1rem;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}
.redes-item.is-soon { cursor: default; }
.redes-item[href^="http"],
.redes-item[data-wa] { color: var(--ink); border-color: var(--accent); }

footer { padding: 2.4rem 0 5.5rem; border-top: 1px solid var(--line); }
.foot-top { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-links { display: flex; gap: 1rem; font-size: .72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.wordmark {
  text-align: center;
  padding: 2.4rem 0 1.2rem;
}
.wordmark img {
  width: min(420px, 88%);
  height: auto;
  margin-inline: auto;
}
.foot-note { text-align: center; font-size: .85rem; opacity: .7; }
.foot-note a { text-decoration: underline; }

.float {
  position: fixed;
  right: max(.85rem, env(safe-area-inset-right));
  bottom: max(.85rem, env(safe-area-inset-bottom));
  z-index: 50;
  width: 3.4rem; height: 3.4rem;
  display: inline-flex; align-items: center; justify-content: center;
  background: #25D366; color: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.float svg { width: 1.7rem; height: 1.7rem; fill: currentColor; }

#servicios, #productos, #contacto, #visitar, #redes { scroll-margin-top: 6.2rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav { transition: none; }
}
