* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0;
  background:#090b0d;
  color:#f4f5f6;
  font:16px Arial,sans-serif
}

header,section,footer {
  padding:32px max(5%,calc((100% - 1200px)/2))
}

header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-bottom:1px solid #ffffff20;
  gap:20px;
  flex-wrap:wrap
}

nav {
  display:flex;
  gap:22px;
  flex-wrap:wrap
}

a {
  color:inherit;
  text-decoration:none
}

a:hover {
  color:#b4f66b
}

b.logo {
  font-size:26px;
  letter-spacing:-1px
}

i {
  color:#b4f66b;
  font-style:normal
}

.hero {
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center;
  min-height:580px;
  background:radial-gradient(ellipse at 75% 50%,#253027,#090b0d 65%);
  gap:40px
}

small {
  color:#b4f66b;
  letter-spacing:2px
}

h1 {
  font-size:clamp(38px,5vw,72px);
  line-height:1.04;
  letter-spacing:-3px;
  margin:20px 0
}

h2 {
  font-size:36px;
  letter-spacing:-1px
}

p {
  color:#aab2b9;
  line-height:1.7
}

button,.cta {
  display:inline-block;
  background:#b4f66b;
  color:#10180b;
  border:0;
  border-radius:6px;
  padding:14px 20px;
  font-weight:bold;
  cursor:pointer
}

button:hover,.cta:hover {
  background:#d1ffa0;
  color:#10180b
}

.stage {
  position:relative;
  height:370px;
  perspective:1000px
}

.floating {
  position:absolute;
  width:78%;
  border-radius:12px;
  box-shadow:0 25px 50px #000b;
  animation:float 7s ease-in-out infinite;
  transform:rotate(var(--r));
  border:1px solid #a4a4a4
}

.back {
  top:5%;
  left:18%;
  --r:12deg;
  animation-delay:-3s
}

.front {
  top:36%;
  left:0;
  --r:-10deg
}

.tag {
  position:absolute;
  bottom:0;
  right:0;
  color:#b4f66b;
  font-size:11px;
  letter-spacing:2px
}

@keyframes float {
  50% {
    transform:translateY(-12px) rotate(calc(var(--r) + 2deg))
  }
}

.filters {
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:25px 0
}

.filters button,.secondary {
  background:#171c20;
  color:#ddd;
  border:1px solid #ffffff25
}

.filters button.active {
  color:#b4f66b;
  border-color:#b4f66b
}

.grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:18px
}

.product {
  border:1px solid #ffffff18;
  background:#111519;
  border-radius:12px;
  padding:20px
}

.product h3 {
  margin-bottom:0
}

.visual {
  height:190px;
  display:grid;
  place-items:center;
  background:radial-gradient(ellipse,#303a32,transparent 75%);
  overflow:hidden
}

.visual img {
  width:90%;
  border-radius:7px;
  box-shadow:0 12px 20px #0008
}

.visual svg {
  width:85%;
  height:95%
}

.product a {
  color:#b4f66b;
  font-size:14px
}

.steps {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:25px
}

.steps div {
  border-top:1px solid #b4f66b66;
  padding-top:20px
}

.custom {
  background:#151a1c
}

.wa {
  position:fixed;
  bottom:20px;
  right:20px;
  background:#b4f66b;
  color:#111;
  padding:15px;
  border-radius:50px;
  font-weight:bold;
  box-shadow:0 4px 20px #0008
}

footer {
  border-top:1px solid #ffffff20
}

input,select,textarea {
  width:100%;
  padding:12px;
  background:#101417;
  color:white;
  border:1px solid #555;
  border-radius:5px;
  margin:8px 0 16px
}

form {
  max-width:600px
}

label {
  display:block
}

@media(max-width:750px) {
  .hero {
    grid-template-columns:1fr;
    min-height:auto
  }
  .stage {
    height:300px
  }
  .grid {
    grid-template-columns:repeat(2,1fr)
  }
  .steps {
    grid-template-columns:1fr
  }
  header,section,footer {
    padding:25px 5%
  }
}

@media(max-width:420px) {
  .grid {
    grid-template-columns:1fr
  }
}

@media(prefers-reduced-motion:reduce) {
  * {
    animation:none!important;
    scroll-behavior:auto!important
  }
}

.hero {
  gap:65px
}

.stage {
  height:430px;
  isolation:isolate
}

.stage:before {
  content:'';
  position:absolute;
  inset:8%;
  background:radial-gradient(ellipse,#b58a4e30,transparent 70%);
  filter:blur(20px)
}

.floating {
  width:72%;
  max-width:410px;
  aspect-ratio:1.57;
  object-fit:cover;
  border-radius:13px
}

.back {
  top:5%;
  left:25%;
  --r:8deg
}

.front {
  top:43%;
  left:1%;
  --r:-7deg
}

.tag {
  bottom:-8px
}

.visual {
  height:230px;
  background:radial-gradient(ellipse at 50% 40%,#343c3c,#101417 72%);
  border-radius:8px
}

.visual svg {
  width:100%;
  height:100%
}

.steps {
  position:relative;
  gap:12px
}

.steps div {
  border:1px solid #ffffff20;
  border-radius:16px;
  padding:20px;
  background:#101519
}

.steps svg {
  width:100%;
  height:170px
}

.wave {
  animation:pulse 2s infinite;
  transform-origin:center;
  transform-box:fill-box
}

@keyframes pulse {
  50% {
    opacity:.25;
    transform:scale(1.12)
  }
}

.custom-layout,.studio {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:35px;
  align-items:center
}

.brand-scene {
  background:radial-gradient(ellipse,#39443b,#101416 75%);
  border-radius:20px;
  min-height:310px;
  display:grid;
  grid-template-columns:1fr 1fr;
  align-items:center
}

.brand-scene svg {
  width:100%;
  height:155px
}

.studio {
  align-items:start
}

.preview {
  position:sticky;
  top:20px;
  background:radial-gradient(ellipse at 50% 40%,#344139,#111619 70%);
  border:1px solid #ffffff20;
  border-radius:16px;
  padding:20px;
  text-align:center
}

.preview svg {
  width:100%;
  max-height:390px
}

.preview p {
  font-size:13px
}

.controls {
  background:#111519;
  border:1px solid #ffffff20;
  padding:24px;
  border-radius:16px
}

.controls form {
  max-width:none
}

.controls input[type=color] {
  height:44px;
  padding:4px
}

.controls input[type=range] {
  padding:0
}

.actions {
  display:flex;
  gap:10px;
  flex-wrap:wrap
}

.product button {
  margin-top:10px
}

.hint {
  font-size:12px;
  color:#aab2b9
}

.wa {
  z-index:10
}

@media(max-width:750px) {
  .stage {
    height:340px
  }
  .custom-layout,.studio {
    grid-template-columns:1fr
  }
  .preview {
    position:static
  }
  .steps svg {
    height:150px
  }
  .steps {
    grid-template-columns:1fr
  }
  .hero {
    gap:20px
  }
}

@media(max-width:420px) {
  .stage {
    height:260px
  }
  .floating {
    width:76%
  }
  .back {
    left:22%
  }
}

.simple .controls {
  padding:24px
}

.simple .preview {
  min-height:380px;
  display:flex;
  flex-direction:column;
  justify-content:center
}

.simple .preview svg {
  max-height:330px
}

.swatches {
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin:12px 0 22px
}

.swatch {
  background:transparent!important;
  color:#ddd!important;
  padding:4px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-size:11px;
  flex:1
}

.swatch span {
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid #777
}

.swatch[aria-pressed=true] span {
  outline:2px solid #b4f66b;
  outline-offset:3px
}

.upload {
  border:1px dashed #777;
  padding:12px;
  border-radius:8px;
  color:#b4f66b
}

.upload input {
  margin:6px 0 0;
  font-size:12px
}

.quote {
  width:100%
}

.simple [hidden] {
  display:none
}

.simple .controls label {
  font-size:14px
}

.simple .controls input,.simple .controls select {
  margin-bottom:12px
}

@media(max-width:750px) {
  .simple .preview {
    min-height:240px
  }
  .simple .preview svg {
    max-height:210px
  }
}

.customer-details {
  border-top:1px solid #ffffff22;
  margin-top:20px;
  padding-top:20px
}

.customer-details h3 {
  margin:8px 0 15px
}

.customer-details label {
  display:block;
  margin-top:12px
}

.design-options {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px
}

.design-options button {
  padding:9px;
  text-align:left;
  border:1px solid #46504d;
  background:#1b2225;
  color:#fff;
  border-radius:10px;
  cursor:pointer
}

.design-options button[aria-pressed=true] {
  border-color:#b4f66b;
  box-shadow:0 0 0 1px #b4f66b
}

.design-options svg {
  display:block;
  width:100%;
  height:65px
}

.design-options small {
  font-size:11px;
  color:#fff
}

.design-options button:last-child {
  grid-column:1/-1
}

.design-options button:last-child svg {
  height:75px
}

#cardDesign[hidden] {
  display:none
}

/* V8: theme switch and coordinated light palette. Product art retains its own colors. */
:root {
  color-scheme:dark;
  --page:#090b0d;
  --fg:#f4f5f6;
  --muted:#aab2b9;
  --accent:#b4f66b;
  --line:#ffffff25;
  --panel:#111519;
  --field:#101417;
  --field-border:#555;
  --custom:#151a1c;
  --chip:#171c20;
  --hero-glow:#253027;
  --visual-center:#343c3c;
  --visual-edge:#101417;
  --preview-center:#344139;
  --preview-edge:#111619;
  --brand-center:#39443b;
  --brand-edge:#101416;
  --step:#101519;
  --design:#1b2225;
  --shadow:#0008;
  --theme-hover:#242c29
}

:root[data-theme="light"] {
  color-scheme:light;
  --page:#fff;
  --fg:#17221c;
  --muted:#4d5b53;
  --accent:#356a23;
  --line:#d8e0d9;
  --panel:#fff;
  --field:#f6f8f6;
  --field-border:#a2afa5;
  --custom:#f2f5f2;
  --chip:#f4f7f4;
  --hero-glow:#e4efde;
  --visual-center:#e5ece6;
  --visual-edge:#f6f8f6;
  --preview-center:#e2ebe2;
  --preview-edge:#f8faf8;
  --brand-center:#dce9de;
  --brand-edge:#f7f9f7;
  --step:#fff;
  --design:#f5f8f5;
  --shadow:#17221c30;
  --theme-hover:#e4eee3
}

body {
  background:var(--page);
  color:var(--fg);
  transition:background-color .25s,color .25s
}

header,footer {
  border-color:var(--line)
}

p,.hint {
  color:var(--muted)
}

i,small,.tag,.product a,a:hover {
  color:var(--accent)
}

.hero {
  background:radial-gradient(ellipse at 75% 50%,var(--hero-glow),var(--page) 65%)
}

.filters button,.secondary {
  background:var(--chip);
  color:var(--fg);
  border-color:var(--line)
}

.filters button.active {
  color:var(--accent);
  border-color:var(--accent)
}

.filters button:hover,.secondary:hover {
  background:var(--theme-hover);
  color:var(--fg)
}

.product,.controls {
  background:var(--panel);
  border-color:var(--line)
}

.visual {
  background:radial-gradient(ellipse at 50% 40%,var(--visual-center),var(--visual-edge) 72%)
}

.visual img {
  box-shadow:0 12px 20px var(--shadow)
}

.floating {
  box-shadow:0 25px 50px var(--shadow)
}

.steps div {
  border-color:var(--line);
  background:var(--step)
}

.custom {
  background:var(--custom)
}

.brand-scene {
  background:radial-gradient(ellipse,var(--brand-center),var(--brand-edge) 75%)
}

.preview {
  background:radial-gradient(ellipse at 50% 40%,var(--preview-center),var(--preview-edge) 70%);
  border-color:var(--line)
}

input,select,textarea {
  background:var(--field);
  color:var(--fg);
  border-color:var(--field-border)
}

input::placeholder,textarea::placeholder {
  color:var(--muted);
  opacity:1
}

.swatch {
  color:var(--fg)!important
}

.swatch[aria-pressed=true] span {
  outline-color:var(--accent)
}

.upload {
  color:var(--accent);
  border-color:var(--field-border)
}

.customer-details {
  border-color:var(--line)
}

.design-options button {
  background:var(--design);
  color:var(--fg);
  border-color:var(--field-border)
}

.design-options small {
  color:var(--fg)
}

.design-options button[aria-pressed=true] {
  border-color:var(--accent);
  box-shadow:0 0 0 1px var(--accent)
}

.design-options button:hover {
  background:var(--theme-hover);
  color:var(--fg)
}

.header-tools {
  display:flex;
  align-items:center;
  gap:20px;
  flex-wrap:wrap
}

.theme-toggle {
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:4px;
  background:var(--chip);
  color:var(--fg);
  border:1px solid var(--line);
  border-radius:30px;
  white-space:nowrap;
  min-height:42px
}

.theme-toggle:hover {
  background:var(--theme-hover);
  color:var(--fg)
}

.theme-toggle .theme-option {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:7px 9px;
  border-radius:24px;
  font-size:12px;
  font-weight:bold;
  color:var(--muted)
}

.theme-toggle .theme-option svg {
  width:15px;
  height:15px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round
}

.theme-toggle .theme-dark {
  background:#b4f66b;
  color:#10180b
}

:root[data-theme="light"] .theme-toggle .theme-dark {
  background:transparent;
  color:var(--muted)
}

:root[data-theme="light"] .theme-toggle .theme-light {
  background:#356a23;
  color:white
}

.theme-toggle:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:4px
}

.theme-status {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0
}

@media(max-width:750px) {
  header {
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:15px
  }
  .header-tools {
    display:contents
  }
  .theme-toggle {
    grid-column:2;
    grid-row:1;
    justify-self:end
  }
  header nav {
    grid-column:1/-1;
    grid-row:2;
    gap:10px 18px;
    font-size:14px
  }
  b.logo {
    font-size:22px
  }
}

@media(max-width:360px) {
  .theme-toggle .theme-option {
    padding:7px 6px;
    font-size:11px
  }
  b.logo {
    font-size:19px
  }
}

@media(prefers-reduced-motion:reduce) {
  body {
    transition:none
  }
}

/* V9 / editorial theme and signature studio */
:root[data-theme="dark"] {
  --page:#0b0d10;
  --panel:#15191e;
  --step:#14191e;
  --custom:#151b1d;
  --line:#30383a;
  --fg:#f0f4f1;
  --muted:#b1bcb9;
  --accent:#b4f66b;
  --design:#1d2328;
  --field:#10151a
}

section:not(.hero) {
  border-top:1px solid var(--line)
}

section>small,.custom-layout>div>small {
  display:inline-flex;
  align-items:center;
  gap:10px;
  font-weight:700
}

section>small:before,.custom-layout>div>small:before {
  content:'';
  width:24px;
  height:2px;
  background:var(--accent)
}

section h2 {
  margin:12px 0 18px;
  line-height:1.12;
  letter-spacing:-1.5px
}

:root[data-theme="dark"] #tecnologia {
  background:#101419
}

:root[data-theme="dark"] #contacto {
  background:#0f1317
}

:root[data-theme="dark"] section h2 {
  color:#f0f4f1
}

:root[data-theme="dark"] .product h3,:root[data-theme="dark"] .steps h3,:root[data-theme="dark"] .customer-details h3 {
  color:#d2e6c7
}

:root[data-theme="dark"] .product,:root[data-theme="dark"] .steps div {
  box-shadow:0 1px 0 #ffffff08 inset
}

.design-options {
  gap:10px;
  margin-top:9px
}

.design-options button,.design-options button:last-child {
  grid-column:auto;
  padding:8px 9px 11px;
  position:relative;
  overflow:hidden
}

.design-options svg,.design-options button:last-child svg {
  height:auto;
  aspect-ratio:240/158
}

.design-options small {
  font-size:12px;
  letter-spacing:.1px;
  font-weight:700;
  display:block;
  line-height:1.2;
  margin:3px 0 0
}

.design-options .style-sub {
  font-size:10px;
  display:block;
  font-weight:400;
  color:var(--muted);
  margin-top:4px
}

.design-options button[aria-pressed=true]:after {
  content:'✓';
  position:absolute;
  right:7px;
  top:7px;
  border-radius:50%;
  background:var(--accent);
  color:var(--page);
  width:19px;
  height:19px;
  display:grid;
  place-items:center;
  font-size:12px
}

.simple .preview {
  padding:25px 18px
}

.simple .preview #live svg {
  max-height:none;
  display:block
}

.simple .preview #live {
  margin:0 auto;
  width:100%;
  max-width:530px
}

.simple .preview>small {
  font-weight:bold
}

.simple .preview h3 {
  font-size:24px;
  margin:10px 0 0
}

.preview-caption {
  margin-top:0
}

.controls button:focus-visible,.share-panel button:focus-visible {
  outline:2px solid var(--accent);
  outline-offset:3px
}

.quote:disabled {
  opacity:.6;
  cursor:wait
}

.share-panel {
  border:1px solid var(--line);
  border-radius:12px;
  margin-top:15px;
  padding:15px;
  background:var(--custom)
}

.share-panel[hidden] {
  display:none
}

.share-panel h3 {
  margin:0 0 8px;
  font-size:18px
}

.share-panel img {
  display:block;
  width:100%;
  max-width:420px;
  margin:10px auto;
  border:1px solid var(--line);
  border-radius:8px
}

.share-panel button,.share-panel a {
  display:block;
  width:100%;
  margin:8px 0;
  text-align:center;
  font-size:13px
}

.share-panel p {
  font-size:12px;
  margin:7px 0
}

.share-panel a.secondary {
  padding:12px;
  border-radius:6px;
  font-weight:bold;
  display:block
}

.share-panel button[hidden] {
  display:none
}

.share-panel .hint {
  overflow-wrap:anywhere
}

#quoteStatus {
  min-height:1em;
  margin-bottom:0
}

.secondary {
  cursor:pointer
}

.visual {
  overflow:hidden
}

.preview .hint {
  margin:6px 0
}

@media(max-width:750px) {
  .simple .preview #live {
    max-width:420px
  }
  .simple .preview {
    padding:16px
  }
  .design-options {
    gap:8px
  }
  section h2 {
    font-size:30px
  }
}

.simple .controls .control-label {
  color: inherit;
  font-size: 14px;
  line-height: normal;
  margin: 0;
}

.studio-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 0 0 16px;
  min-width: 0;
}

.studio-panel summary {
  cursor: pointer;
  font-weight: 700;
}

.studio-panel[open] summary { margin-bottom: 12px; }
.studio-fieldset { border: 1px solid var(--line); border-radius: 8px; min-width: 0; margin: 0 0 14px; padding: 8px 12px; }
.studio-fieldset legend { padding: 0 4px; font-size: .85rem; font-weight: 700; }
.studio-selection { display: grid; gap: 6px; max-height: 200px; overflow: auto; }
.studio-selection label { min-width: 0; overflow-wrap: anywhere; }
.studio-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0 14px; }
.studio-actions button { white-space: normal; min-height: 40px; }
.studio-actions button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.studio-actions button:disabled { opacity: .5; cursor: default; }
.studio-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 10px; }
.studio-fields > * { min-width: 0; }
.studio-fields input[type="color"] { min-height: 42px; padding: 4px; cursor: pointer; }
.studio-fields input[type="range"] { padding-inline: 0; accent-color: var(--accent); }
.studio-fields output { display: block; }
.simple .studio-check:not([hidden]) { display: inline-flex; align-items: center; gap: 6px; }
.simple .studio-check input { width: auto; margin: 0; }
.layer-draggable { cursor: grab; touch-action: none; }
#live svg:has(.layer-draggable) { touch-action: none; }
.simple .preview #live[data-zoom] { overflow: auto; max-height: 440px; }
.simple .preview #live[data-zoom] svg { width: calc(100% * var(--studio-zoom)); max-width: none; }
.simple .preview .studio-actions { justify-content: center; }
