/* =========================================================
   Brodats Moheamoo — estilos
   ========================================================= */
:root {
  --orange: #F26A21;
  --orange-600: #d9561a;
  --orange-50: #fff3ec;
  --ink: #16161a;
  --ink-2: #3b3b44;
  --muted: #6b6b76;
  --line: #e8e5e1;
  --bg: #ffffff;
  --tint: #faf7f4;
  --dark: #141417;
  --dark-2: #1e1e23;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 20, 25, .06), 0 8px 24px rgba(20, 20, 25, .06);
  --shadow-lg: 0 20px 50px rgba(20, 20, 25, .14);
  --header-h: 72px;
  --font: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-600); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--lg { width: 2rem; height: 2rem; }
.accent { color: var(--orange); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(242, 106, 33, .3); }
.btn--primary:hover { background: var(--orange-600); }
.btn--ghost { color: #fff; border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); backdrop-filter: blur(4px); }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--outline { color: var(--ink); border-color: var(--line); background: #fff; }
.btn--outline:hover { border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; }
.btn--sm { padding: .55em 1.1em; font-size: .9rem; }
.btn--lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--orange-600); text-decoration: none; background: none; border: 0; padding: 0; }
.link .ico { transition: transform .2s; }
.link:hover .ico { transform: translateX(4px); }
.link--sm { font-size: .85rem; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 900; letter-spacing: .14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: .8rem;
}
.eyebrow--light { color: #ffd2b8; }

.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  padding: .45em 1em; border-radius: 999px; font-size: .9rem; font-weight: 700;
  display: inline-flex; align-items: center; gap: .4em; transition: .2s;
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  background: rgba(255,255,255,.85); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(0,0,0,.06); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo__mark { width: 42px; height: 42px; flex: none; }
.logo__text { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); }
.logo__text strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.logo__text span { font-size: .72rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--orange); margin-top: 3px; }
.logo--light { color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: .95rem;
  padding: .5em .8em; border-radius: 8px; position: relative; transition: color .2s;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: .8em; right: .8em; bottom: .25em; height: 2px;
  background: var(--orange); transform: scaleX(0); transition: transform .25s; transform-origin: left;
}
.nav a:not(.btn):hover::after, .nav a.is-current::after { transform: scaleX(1); }
.nav__highlight { color: var(--orange-600) !important; }
.nav__cta { margin-left: 8px; }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: .3s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 860px); display: flex; align-items: center;
  padding: calc(var(--header-h) + 60px) 0 100px; color: #fff; overflow: hidden; isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(100deg, rgba(14,14,18,.92) 0%, rgba(14,14,18,.72) 45%, rgba(14,14,18,.25) 100%),
    url("https://www.esvitienda.es/assets/img/hero.jpeg") center / cover no-repeat;
  animation: heroZoom 18s ease-out both;
}
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
.hero__content { max-width: 720px; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.2rem); font-weight: 800; margin-bottom: .45em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: rgba(255,255,255,.85); max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 36px; }
.hero__badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .95rem; color: rgba(255,255,255,.85); }
.hero__badges li { display: inline-flex; align-items: center; gap: .45em; }
.hero__badges .ico { color: var(--orange); }
.hero__scroll { position: absolute; left: 50%; bottom: 28px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.6); border-radius: 20px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: scrollDot 1.8s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Franja ---------- */
.strip { background: var(--orange); color: #fff; overflow: hidden; padding: 16px 0; }
.strip__track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .05em; }
.strip__track span { display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.strip__track span::after { content: "✦"; opacity: .7; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Secciones ---------- */
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--dark); color: rgba(255,255,255,.75); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section__head p { color: var(--muted); font-size: 1.1rem; }
.section__head--light h2 { color: #fff; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--tint); }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.service:hover .service__img img { transform: scale(1.06); }
.service__body { padding: 24px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.service__body p { color: var(--muted); flex: 1; }
.service__num { font-family: var(--font-display); font-weight: 800; color: var(--orange); font-size: .9rem; margin-bottom: 6px; }

/* ---------- Proceso ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { background: var(--dark-2); border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); padding: 28px; position: relative; }
.step h3 { color: #fff; margin-top: 18px; }
.step p { margin: 0; font-size: .97rem; }
.step__n {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: rgba(242,106,33,.15); color: var(--orange); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem;
}
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 52px; right: -20px; width: 20px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--orange) 0 4px, transparent 4px 8px);
}

/* ---------- Configurador ---------- */
.configurator { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: 24px; align-items: start; }
.viewer {
  position: sticky; top: calc(var(--header-h) + 20px);
  aspect-ratio: 1 / 1; border-radius: 24px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 35%, #ffffff 0%, #efebe6 60%, #e2ddd6 100%);
  box-shadow: var(--shadow); border: 1px solid var(--line);
}
.viewer canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.viewer canvas:active { cursor: grabbing; }
.viewer__loading { position: absolute; inset: 0; display: grid; place-content: center; grid-auto-flow: column; gap: 10px; align-items: center; color: var(--muted); font-weight: 700; }
.viewer__loading.is-hidden { display: none; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--orange); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.viewer__toolbar { position: absolute; top: 16px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.viewer__toolbar .chip { background: rgba(255,255,255,.85); backdrop-filter: blur(6px); }
.viewer__toolbar .chip.is-active { background: var(--ink); }
.chip--icon { margin-left: auto; padding: .45em .6em; }
.viewer__hint { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; font-size: .82rem; color: var(--muted); pointer-events: none; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 8px 24px 24px; box-shadow: var(--shadow); }
.panel__group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.panel__group:last-of-type { border-bottom: 0; }
.panel__label { display: block; font-family: var(--font-display); font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.panel__label small { font-family: var(--font); font-weight: 400; color: var(--muted); }
.panel__actions { display: grid; gap: 10px; padding-top: 8px; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  padding: 22px 16px; border: 2px dashed #d8d2ca; border-radius: 14px; background: var(--tint);
  color: var(--muted); cursor: pointer; transition: .2s;
}
.dropzone .ico { color: var(--orange); margin-bottom: 4px; }
.dropzone:hover, .dropzone.is-over { border-color: var(--orange); background: var(--orange-50); }
.dropzone__title { font-weight: 700; color: var(--ink); }
.dropzone__sub { font-size: .85rem; }
.file-preview { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.file-preview[hidden] { display: none; }
.file-preview img { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; background: repeating-conic-gradient(#eee 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
.file-preview strong { display: block; font-size: .92rem; color: var(--ink); word-break: break-all; }

.switch { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: .95rem; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch__track { width: 40px; height: 22px; border-radius: 99px; background: #d6d1ca; position: relative; transition: .2s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + .switch__track { background: var(--orange); }
.switch input:checked + .switch__track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--orange); outline-offset: 2px; }

.swatches, .text-colors { display: flex; flex-wrap: wrap; gap: 10px; }
.text-colors { margin-top: 12px; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; background: var(--c); padding: 0;
  border: 1px solid rgba(0,0,0,.15); box-shadow: inset 0 -3px 6px rgba(0,0,0,.08); transition: transform .15s;
  position: relative;
}
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--orange); }
.swatch--sm { width: 26px; height: 26px; }

.segmented { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--tint); padding: 4px; border-radius: 12px; gap: 4px; margin-bottom: 14px; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: block; text-align: center; padding: .5em .3em; border-radius: 9px; font-weight: 700; font-size: .88rem; cursor: pointer; transition: .2s; }
.segmented input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.segmented input:focus-visible + span { outline: 3px solid var(--orange); }

.range { display: block; margin-top: 8px; }
.range span { display: flex; justify-content: space-between; font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.range output { color: var(--muted); font-weight: 400; }
input[type="range"] { width: 100%; accent-color: var(--orange); }

.row { display: flex; gap: 10px; }
.row input { flex: 1; min-width: 0; }
.row .row__short { flex: 0 0 80px; }

input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: .75em .9em; border: 1px solid #dcd7d0; border-radius: var(--radius-sm); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px rgba(242,106,33,.15); }
.note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 20px; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 16px; }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--radius); border: 0; padding: 0; background: var(--tint); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.gallery__item span {
  position: absolute; left: 14px; bottom: 14px; padding: .35em .9em; border-radius: 99px;
  background: rgba(255,255,255,.92); color: var(--ink); font-weight: 700; font-size: .85rem;
  transform: translateY(8px); opacity: 0; transition: .3s;
}
.gallery__item:hover img { transform: scale(1.07); }
.gallery__item:hover span, .gallery__item:focus-visible span { transform: none; opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(10,10,12,.9); display: grid; place-items: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.4rem; line-height: 1; }

/* ---------- Nosotros ---------- */
.about { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; box-shadow: var(--shadow-lg); }
.about__tag {
  position: absolute; right: -16px; bottom: 32px; background: var(--orange); color: #fff;
  padding: 18px 24px; border-radius: 16px; font-family: var(--font-display); font-size: 1.2rem; line-height: 1.25; box-shadow: var(--shadow-lg);
}
.about__text > p { color: var(--ink-2); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.feature { display: flex; gap: 14px; }
.feature h3 { font-size: 1.02rem; margin-bottom: .2em; }
.feature p { font-size: .93rem; color: var(--muted); margin: 0; }
.feature__ico { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--orange-50); color: var(--orange); }

/* ---------- Catálogo ---------- */
.filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.product.is-hidden { display: none; }
.product__img { position: relative; aspect-ratio: 1; background: var(--tint); overflow: hidden; }
.product__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; z-index: 1; top: 12px; left: 12px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 900; padding: .3em .8em; border-radius: 99px; text-transform: uppercase; letter-spacing: .06em; }
.product__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.product__body > p { color: var(--muted); font-size: .95rem; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; margin: 0 0 18px; font-size: .85rem; }
.specs dt { font-weight: 700; color: var(--ink); }
.specs dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.specs dd span { border: 1px solid var(--line); border-radius: 6px; padding: 0 .45em; font-weight: 700; font-size: .78rem; }
.specs dd i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0,0,0,.18); }
.product__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.product--cta { background: linear-gradient(150deg, var(--orange) 0%, #e2511a 100%); color: rgba(255,255,255,.9); padding: 32px 28px; justify-content: center; border: 0; }
.product--cta h3 { color: #fff; font-size: 1.5rem; }
.product--cta .btn { align-self: flex-start; margin-top: 8px; }

/* ---------- CTA ---------- */
.cta { background: var(--dark); padding: 56px 0; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 500px; height: 500px; right: -120px; top: -200px; border-radius: 50%; background: radial-gradient(circle, rgba(242,106,33,.35), transparent 70%); }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: .25em; }
.cta p { color: rgba(255,255,255,.7); margin: 0; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 22px; }
.info-list li { display: flex; gap: 16px; }
.info-list strong { color: var(--ink); font-family: var(--font-display); }
.info-list p { margin: 2px 0 0; color: var(--muted); }
.info-list a { color: var(--ink-2); text-decoration: none; }
.info-list a:hover { color: var(--orange-600); }
.info-list__ico { flex: none; width: 46px; height: 46px; display: grid; place-items: center; background: var(--orange-50); color: var(--orange); border-radius: 12px; }
.open-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-size: .82rem; font-weight: 700; padding: .25em .8em; border-radius: 99px; }
.open-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.open-status.is-open { background: #e6f6ec; color: #1d7a42; }
.open-status.is-closed { background: #f4f1ee; color: var(--muted); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); }
.form h3 { font-size: 1.5rem; margin-bottom: 20px; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field span { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 6px; }
.field--full { grid-column: 1 / -1; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #d33; }
textarea { resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 18px 0; }
.check input { margin-top: 4px; accent-color: var(--orange); }
.form__error { color: #c02a2a; font-weight: 700; margin: 12px 0 0; font-size: .92rem; }
.design-attached { display: flex; gap: 14px; align-items: center; margin-top: 16px; padding: 12px; border-radius: 14px; background: var(--orange-50); border: 1px solid #ffd7c1; }
.design-attached[hidden] { display: none; }
.design-attached img { width: 84px; height: 84px; object-fit: cover; border-radius: 10px; background: #fff; }
.design-attached strong { color: var(--ink); }
.design-attached p { margin: 2px 0 0; font-size: .85rem; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: rgba(255,255,255,.65); padding: 72px 0 0; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer .footer__logo { display: inline-flex; color: #fff; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer a { display: block; color: rgba(255,255,255,.65); text-decoration: none; margin-bottom: 8px; }
.footer a:hover { color: var(--orange); }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; margin: 0; }
.social a:hover { background: var(--orange); color: #fff; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 48px; padding: 22px 0; font-size: .85rem; }

/* ---------- Flotantes ---------- */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.4);
  transition: transform .2s;
}
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { transform: scale(1.08); }
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120; translate: -50% 150%; opacity: 0;
  display: flex; gap: 14px; align-items: center; background: var(--ink); color: rgba(255,255,255,.8);
  padding: 16px 22px; border-radius: 16px; box-shadow: var(--shadow-lg); transition: .4s; max-width: calc(100% - 32px);
}
.toast.show { translate: -50% 0; opacity: 1; }
.toast .ico { width: 32px; height: 32px; padding: 6px; border-radius: 50%; background: #25d366; color: #fff; }
.toast strong { color: #fff; }
.toast p { margin: 0; font-size: .9rem; }

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .configurator { grid-template-columns: 1fr; }
  .viewer { position: relative; top: 0; aspect-ratio: 4 / 3.4; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 12px 16px 24px; gap: 2px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s;
  }
  .nav.nav-open { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .8em .6em; font-size: 1.05rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin: 10px 0 0; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__tag { right: 16px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .services { grid-template-columns: 1fr; }
  .steps, .features, .form__grid, .footer__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 2; }
  .hero__actions .btn { width: 100%; }
  .viewer { aspect-ratio: 1 / 1.1; }
  .viewer__hint { display: none; }
  .panel { padding: 4px 18px 20px; }
  .cta__inner .btn { width: 100%; }
}
