:root {
  color-scheme: light;
  --paper: #faf7f4;
  --ink: #302729;
  --muted: #685a60;
  --rose: #dfa6b8;
  --rose-dark: #8d405b;
  --line: #e9dfdd;
  --surface: #ffffff;
  --header: rgba(250, 247, 244, .96);
  --accent-soft: #efc8d8;
  --media: #f0e8e6;
  --app-surface: #eee0f6;
  --app-card: #faf4ff;
  --app-line: #d9c0e9;
  --pill: #dfc7f0;
  --pill-text: #674485;
  --about: #f1c6d7;
  --contact: #f4dce6;
  --hero-panel: #f2c7d8;
  --models-surface: #f8e7ee;
  --models-line: #e6bacb;
  --renders-surface: #eae3f7;
  --renders-line: #d6c6ec;
  --field: #fffcfa;
  --field-line: #d9c7ca;
  --button: #302729;
  --button-text: #ffffff;
  --button-hover: #8d405b;
  --icon-filter: none;
  --selection: #eed0db;
  --radius: 24px;
  --width: 1180px;
}

/* This also follows the browser preference when JavaScript is disabled. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #17171b;
    --ink: #efecef;
    --muted: #bbb2b8;
    --rose-dark: #e5aabe;
    --line: #393239;
    --surface: #222126;
    --header: rgba(23, 23, 27, .96);
    --accent-soft: #533346;
    --media: #29262c;
    --app-surface: #30233e;
    --app-card: #251e30;
    --app-line: #593d70;
    --pill: #583c70;
    --pill-text: #dcc0ee;
    --about: #4b2c3d;
    --contact: #362430;
    --hero-panel: #402b39;
    --models-surface: #30232c;
    --models-line: #59384a;
    --renders-surface: #282333;
    --renders-line: #49395f;
    --field: #1d1b20;
    --field-line: #5e4c58;
    --button: #e3adc0;
    --button-text: #241c20;
    --button-hover: #efc6d4;
    --icon-filter: invert(1);
    --selection: #603b4c;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #17171b;
  --ink: #efecef;
  --muted: #bbb2b8;
  --rose-dark: #e5aabe;
  --line: #393239;
  --surface: #222126;
  --header: rgba(23, 23, 27, .96);
  --accent-soft: #533346;
  --media: #29262c;
  --app-surface: #30233e;
  --app-card: #251e30;
  --app-line: #593d70;
  --pill: #583c70;
  --pill-text: #dcc0ee;
  --about: #4b2c3d;
  --contact: #362430;
  --hero-panel: #402b39;
  --models-surface: #30232c;
  --models-line: #59384a;
  --renders-surface: #282333;
  --renders-line: #49395f;
  --field: #1d1b20;
  --field-line: #5e4c58;
  --button: #e3adc0;
  --button-text: #241c20;
  --button-hover: #efc6d4;
  --icon-filter: invert(1);
  --selection: #603b4c;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--rose-dark); outline-offset: 5px; }
::selection { background: var(--selection); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); }
em { color: var(--rose-dark); font-family: Georgia, serif; font-style: italic; font-weight: 400; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--button); color: var(--button-text); padding: 12px 20px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  max-width: calc(var(--width) + 64px);
  margin: auto;
  padding: 20px 32px;
}
.logo-left { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo-left img:first-child { width: 43px; height: 43px; }
.logo-left img:last-child { width: 110px; height: auto; filter: var(--icon-filter); }
.site-nav { display: flex; gap: 32px; align-items: center; }
.site-nav a { text-decoration: none; font-size: .9rem; font-weight: 600; transition: color .2s; }
.site-nav a:hover, .site-footer a:hover { color: var(--rose-dark); }
.site-nav a:last-child { padding: 9px 17px; background: var(--accent-soft); border-radius: 50px; }
.social { display: flex; align-items: center; gap: 8px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; transition: background .2s; }
.social a:hover { background: var(--accent-soft); }
.social img { width: 20px; height: 20px; object-fit: contain; filter: var(--icon-filter); }
.theme-control { display: flex; align-items: center; gap: 8px; margin-right: 6px; font-size: .75rem; color: var(--muted); }
.theme-control select { border: 1px solid var(--line); border-radius: 9px; padding: 8px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.logo-center { display: none; }

.hero, .section-intro, .module, .about-section, .contact-section, .product-view, .site-footer {
  width: calc(100% - 64px);
  max-width: var(--width);
  margin-left: auto;
  margin-right: auto;
}
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .71rem; font-weight: 700; color: var(--rose-dark); margin: 0 0 16px; }
.hero { display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 54px; padding: 64px 0; }
.hero h1 { font-size: clamp(3rem, 5.3vw, 4.8rem); font-weight: 650; margin: 22px 0; max-width: 600px; }
.hero-description { color: var(--muted); font-size: 1.08rem; max-width: 440px; margin-bottom: 28px; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.button, .buy-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
  transition: background .2s, transform .2s;
}
.button-primary, .buy-btn { background: var(--button); color: var(--button-text); }
.button-primary:hover, .buy-btn:hover { background: var(--button-hover); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 12px; font-size: .9rem; font-weight: 600; text-decoration: none; }
.text-link:hover { color: var(--rose-dark); }
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.hero-tags span { font-size: .73rem; border: 1px solid var(--line); color: var(--muted); border-radius: 50px; padding: 6px 13px; }
.hero-art { min-width: 0; }
.hero-brand { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; width: 100%; aspect-ratio: 4 / 3; background: var(--hero-panel); border-radius: 20px; overflow: hidden; }
.hero-brand img { position: relative; z-index: 1; }
.hero-brand-mark { width: 44%; max-width: 240px; height: auto; }
.hero-brand-name { width: 29%; max-width: 160px; height: auto; filter: var(--icon-filter); }
.section-intro { padding: 35px 0 10px; border-top: 1px solid var(--line); }
.section-intro h2 { margin: 0 0 14px; }
.section-intro > p:last-child { color: var(--muted); margin: 0; }

.module { margin-top: 42px; margin-bottom: 64px; }
#modelos, #renders { padding: 32px; border-radius: var(--radius); border: 1px solid; }
#modelos { background: var(--models-surface); border-color: var(--models-line); }
#renders { background: var(--models-surface); border-color: var(--models-line); }
.module-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 25px; }
.module-header .eyebrow { margin-bottom: 9px; }
.module-header h2 { margin: 0; font-size: clamp(1.5rem, 2.5vw, 2rem); }
.module-header > .text-link { flex-shrink: 0; }
.section-note { color: var(--muted); font-size: .85rem; }
.module-header button { background: none; border: 0; color: var(--rose-dark); }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.module-grid.full-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.module-grid.render-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  transition: transform .25s, box-shadow .25s;
}
.module-card:hover { transform: translateY(-5px); box-shadow: 0 12px 30px #3027290c; }
.module-card > img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: opacity .25s; background: var(--media); }
.module-card:hover > img { opacity: .92; }
.overlay { display: block; padding: 17px 20px; font-size: .88rem; font-weight: 600; line-height: 1.5; }
.render-description { margin: -5px 0 0; padding: 0 20px 20px; color: var(--muted); font-size: .8rem; line-height: 1.6; }
.applications-module { background: var(--app-surface); border: 1px solid var(--app-line); border-radius: var(--radius); padding: 32px; }
.applications-module .module-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); align-items: center; gap: 48px; }
.application-card { background: var(--app-card); border-color: var(--app-line); }
.application-card img { object-fit: contain; padding: 24px; aspect-ratio: 16 / 9; }
.application-card .overlay { border-top: 1px solid var(--app-line); }
.application-intro h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin: 17px 0; }
.application-intro p { color: var(--muted); font-size: .93rem; max-width: 490px; }
.pill { display: inline-block; padding: 5px 12px; background: var(--pill); border-radius: 30px; color: var(--pill-text); font-size: .72rem; font-weight: 600; }

.about-section { display: grid; grid-template-columns: .85fr 1fr; align-items: center; gap: 80px; padding: 55px 0 75px; border-top: 1px solid var(--line); }
.about-art { display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--about); border-radius: 24px 120px 24px 24px; padding: 45px 25px; min-height: 390px; }
.about-art .eyebrow { color: var(--rose-dark); }
.about-art img { margin: 20px 0 30px; width: 200px; height: 200px; }
.about-art-caption { font-family: Georgia, serif; font-style: italic; font-size: 1.25rem; }
.about-copy h2, .contact-copy h2 { font-size: clamp(2.4rem, 4vw, 3.8rem); margin: 0 0 25px; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.about-copy .hero-tags { margin: 24px 0; }
.contact-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; padding: 50px; background: var(--contact); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 70px; }
.contact-copy > p:not(.eyebrow) { color: var(--muted); max-width: 340px; }
.contact-email { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: clamp(.95rem, 1.7vw, 1.25rem); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--rose-dark); padding-bottom: 7px; margin-top: 12px; overflow-wrap: anywhere; }
.contact-copy .contact-note { font-size: .8rem; margin-top: 18px; }
.contact-note a { text-underline-offset: 3px; }
.contact-form { min-width: 0; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.form-field label { font-size: .8rem; font-weight: 600; }
.form-field input, .form-field textarea { min-width: 0; width: 100%; padding: 12px 14px; background: var(--field); border: 1px solid var(--field-line); border-radius: 10px; color: var(--ink); font-size: .9rem; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted); }
.form-field textarea { resize: vertical; min-height: 140px; }
.contact-form .button { width: 100%; }
.form-help { font-size: .76rem; color: var(--muted); line-height: 1.6; margin: 12px 0 0; }
.contact-status { font-size: .85rem; margin-bottom: 8px; }
.contact-form > .text-link { margin-top: 8px; }

.product-view { margin-top: 42px; margin-bottom: 70px; background: var(--surface); padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.back-arrow { display: none; background: none; border: 0; padding: 0; color: var(--rose-dark); font-size: .88rem; font-weight: 600; margin-bottom: 26px; }
.product-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.product-images, .product-info { min-width: 0; }
.slider-container { position: relative; width: 100%; border-radius: 16px; background: var(--media); overflow: hidden; }
.product-images #product-main-img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; display: block; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: #302729cf; color: white; border: 0; padding: 10px 14px; font-size: 18px; border-radius: 10px; z-index: 1; }
.slider-arrow:hover { background: #8d405b; }
.slider-arrow.prev { left: 12px; }
.slider-arrow.next { right: 12px; }
.product-thumbnails { display: flex; gap: 10px; overflow-x: auto; padding: 10px 4px; margin-top: 12px; }
.product-thumbnails button { border: 2px solid transparent; padding: 0; border-radius: 8px; background: transparent; flex-shrink: 0; opacity: .65; overflow: hidden; }
.product-thumbnails img { width: 80px; height: 60px; object-fit: cover; display: block; }
.product-thumbnails button:hover, .product-thumbnails button.active { opacity: 1; border-color: var(--rose-dark); }
.product-info h2 { margin-top: 4px; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.product-info p { color: var(--muted); white-space: pre-line; }
.buy-btn { margin-top: 15px; }
.application-actions:not([hidden]) { display: flex; flex-wrap: wrap; gap: 10px; }
.application-actions .desktop-btn { background: #7052a8; color: white; }
.application-actions small { width: 100%; color: var(--muted); }
.catalog-heading { margin: 42px auto 26px; padding-left: 22px; border-left: 4px solid var(--rose); }
.catalog-heading .text-link { margin-bottom: 24px; color: var(--rose-dark); }
.catalog-heading h1 { font-size: clamp(2rem, 4vw, 3.4rem); margin: 0 0 14px; }
.catalog-heading p:last-child { color: var(--muted); max-width: 620px; }
.catalog-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 36px; }
.catalog-nav a { padding: 8px 14px; border: 1px solid var(--models-line); border-radius: 8px; text-decoration: none; font-size: .8rem; background: var(--models-surface); }
.catalog-nav a[href="#accesorios"], .catalog-nav a[href="#juegos"] { background: var(--renders-surface); border-color: var(--renders-line); }
.catalog-nav a:hover { border-color: var(--rose-dark); }
.catalog-group { margin-top: 40px; }
.catalog-group + .catalog-group { padding-top: 35px; border-top: 1px solid var(--line); }
.catalog-group h2 { font-size: 1.6rem; margin: 0 0 24px; padding-left: 14px; border-left: 4px solid var(--rose); }
#accesorios h2, #juegos h2 { border-left-color: var(--pill-text); }

.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 28px; padding: 30px 0 40px; border-top: 1px solid var(--line); font-size: .8rem; }
.footer-brand { font-size: 1rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; }
.footer-brand span { display: block; font-size: .75rem; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer nav a { text-decoration: none; }
.footer-credit { color: var(--muted); }
.footer-credit span { color: var(--rose-dark); margin-left: 6px; }
.modal { display: none; position: fixed; inset: 0; z-index: 50; background: #302729b3; }
.modal-content { background: var(--surface); margin: 5% auto; padding: 24px; width: 80%; max-width: 500px; border-radius: 20px; text-align: center; }
.modal-content img { width: 100%; border-radius: 12px; }
.close { float: right; cursor: pointer; }
.buttons { margin-top: 10px; }

@media (max-width: 1000px) {
  .hero { gap: 35px; padding-top: 60px; }
  .theme-control > span { display: none; }
  .site-nav { gap: 20px; }
  .module-grid.full-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-section { gap: 40px; }
  .contact-section { gap: 35px; padding: 32px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 140px; }
  .top-bar { flex-wrap: wrap; gap: 12px; padding: 14px 20px; }
  .logo-left { gap: 8px; }
  .logo-left img:first-child { width: 30px; height: 30px; }
  .logo-left img:last-child { width: 80px; }
  .social { gap: 6px; }
  .social a { width: 28px; height: 28px; }
  .social img { width: 16px; height: 16px; }
  .theme-control { margin-right: 0; }
  .theme-control select { width: 80px; padding: 6px 3px; font-size: .7rem; }
  .site-nav { order: 3; width: 100%; justify-content: center; gap: 28px; }
  .site-nav a { font-size: .8rem; }
  .site-nav a:last-child { padding: 5px 14px; }
  .hero, .section-intro, .module, .about-section, .contact-section, .product-view, .site-footer { width: calc(100% - 40px); }
  .hero { grid-template-columns: 1fr; padding: 42px 0 65px; gap: 40px; }
  .hero h1 { font-size: clamp(2.8rem, 9vw, 4rem); }
  .hero-description { font-size: 1rem; }
  .hero-art { width: 100%; }
  .hero-brand { gap: 16px; }
  .section-intro { padding-top: 28px; }
  .module { margin: 32px auto 44px; }
  #modelos, #renders { padding: 24px; }
  .module-header { gap: 16px; flex-wrap: wrap; }
  .module-grid, .module-grid.full-grid, .module-grid.render-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .overlay { padding: 12px 14px; font-size: .8rem; }
  .render-description { padding: 0 14px 14px; font-size: .76rem; }
  .applications-module { padding: 24px; }
  .applications-module .module-grid { grid-template-columns: 1fr; gap: 24px; }
  .section-note { display: none; }
  .about-section { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .about-art { min-height: 300px; padding: 28px; }
  .about-art img { width: 150px; height: 150px; margin: 10px 0 20px; }
  .contact-section { grid-template-columns: 1fr; gap: 32px; padding: 28px; margin-bottom: 44px; }
  .contact-copy > p:not(.eyebrow) { max-width: none; }
  .product-view { margin-top: 28px; padding: 24px; }
  .product-layout { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { align-items: flex-start; }
  .footer-credit { width: 100%; }
}
@media (max-width: 420px) {
  .hero, .section-intro, .module, .about-section, .contact-section, .product-view, .site-footer { width: calc(100% - 32px); }
  .hero-actions { gap: 18px; }
  .module-grid, .module-grid.full-grid, .module-grid.render-grid { gap: 12px; }
  .module-card { border-radius: 12px; }
  .overlay { padding: 10px; font-size: .76rem; }
  .render-description { padding: 0 10px 12px; }
  .contact-section, .applications-module, .product-view, #modelos, #renders { padding: 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form .button { font-size: .8rem; padding: 13px 10px; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
