:root {
  color-scheme: light;
  --ink: #111b2b;
  --muted: #4b5b70;
  --blue: #124698;
  --line: #dce4ee;
  --wash: #f3f7fc;
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; line-height: 1.55; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid #2563b8; outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
header, footer { border-block-end: 1px solid var(--line); }
nav, .links, .actions, .section-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
nav { min-height: 94px; padding-block: .55rem; }
nav a { text-decoration: none; font-weight: 650; }
.brand { display: block; }
.brand img { display: block; width: auto; height: 120px; }
.links { gap: clamp(.7rem, 2vw, 1.7rem); }
.links a:hover { color: var(--blue); }
button, .action { display: inline-flex; align-items: center; padding: .65rem 1.05rem; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 650; }
button:hover, .action:hover { border-color: var(--blue); }
.primary { background: var(--blue); border-color: var(--blue); color: white; }
.hero { display: grid; grid-template-columns: 1fr 1.13fr; align-items: center; gap: clamp(1.25rem, 6vw, 5rem); padding-block: clamp(2rem, 6vw, 5rem); }
h1,h2,h3,p,figure { margin: 0; }
h1,h2 { letter-spacing: -.055em; line-height: 1.04; }
h1 { font-size: clamp(2.8rem, 6.3vw, 5.8rem); margin-block: .5rem 1rem; }
h1 em { color: var(--blue); font-style: normal; display: block; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
p { color: var(--muted); }
.hero p:not(.kicker) { font-size: 1.1rem; max-width: 38ch; }
.kicker { color: var(--blue); font-size: .77rem; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.hero .actions { justify-content: flex-start; margin-top: 1.5rem; }
.hero-visual { overflow: hidden; padding: 1rem; background: radial-gradient(ellipse at 60% 45%, #e2edfd, #f6f9fd 75%); border: 1px solid var(--line); border-radius: 20px; }
.hero-visual img { display: block; width: 100%; height: clamp(220px, 33vw, 390px); object-fit: contain; mix-blend-mode: multiply; }
figcaption { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .7rem .45rem 0; border-top: 1px solid var(--line); font-size: .87rem; font-weight: 700; }
figcaption span { color: var(--muted); font-size: .75rem; font-weight: 500; }
.content { padding-block: clamp(2.4rem, 5vw, 4.25rem); border-top: 1px solid var(--line); }
.section-head { margin-bottom: 1.35rem; }
.section-head p { margin-top: .45rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.card, .location { padding: 1.2rem; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.card h3 { margin-block: .35rem; line-height: 1.25; }
.product { display: flex; flex-direction: column; gap: .25rem; box-shadow: 0 6px 20px #1835570a; transition: border-color .2s ease, box-shadow .2s ease; }
.product:hover { border-color: #94abd0; box-shadow: 0 8px 25px #18355716; }
.product img { display: block; width: 100%; height: 190px; object-fit: contain; margin-bottom: .65rem; border-radius: 8px; }
.product strong { margin-top: auto; padding-top: .55rem; color: var(--blue); }
.service-banner { display: block; width: min(480px, 100%); height: auto; border-radius: 14px; margin-top: 1.25rem; border: 1px solid var(--line); }
.location { background: var(--wash); padding: clamp(1rem, 4vw, 2.5rem); }
.location p { margin: .55rem 0 1rem; }
footer { padding-block: 1.5rem; border-block-start: 1px solid var(--line); border-block-end: 0; color: var(--muted); }
dialog { width: min(700px,calc(100% - 24px)); max-height: 88vh; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); padding: 1.1rem; }
dialog::backdrop { background: #111b2b88; }
form { display: grid; gap: .7rem; margin-block: 1rem; }
label { display: grid; gap: .25rem; font-size: .88rem; font-weight: 650; }
input,textarea,select { width: 100%; padding: .55rem; background: #fff; border: 1px solid #b8c6d8; border-radius: 7px; color: var(--ink); }
.catalog-filters { display: flex; flex-wrap: wrap; gap: .7rem; }
.editor-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .6rem; border-top: 1px solid var(--line); padding-block: .6rem; }
.editor-row button { margin-left: .35rem; }
@media (max-width: 785px) {
  .hero { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .links { font-size: .88rem; }
}
@media (max-width: 500px) {
  nav { gap: .45rem; padding-bottom: .8rem; }
  .brand img { height: 100px; }
  .grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .product { transition: none; } }

.contact-link { color: var(--blue); white-space: nowrap; }
.featured-link { display: block; text-decoration: none; }
.featured-link:hover figcaption span, .model-link:hover { color: var(--blue); text-decoration: underline; }
.product { position: relative; }
.model-link { text-decoration: none; }
.model-link::after { position: absolute; inset: 0; content: ""; }
.model { padding-block: 2.5rem 4rem; }
.back-link { display: inline-block; color: var(--blue); font-weight: 650; margin-bottom: 1.5rem; }
.model-layout { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); gap: clamp(1.5rem,4vw,3rem); align-items: center; }
.model-layout h1 { font-size: clamp(2.35rem,5vw,4.6rem); }
.model-image { width: 100%; max-height: 440px; object-fit: contain; padding: 1rem; border: 1px solid var(--line); border-radius: 18px; }
.model-price { margin-block: 1rem; font-weight: 750; color: var(--blue); }

.studio-image { width: 100%; aspect-ratio: var(--studio-ratio, 1); background: #fff url('mk-laptops-studio.png') 0 0 / 300% 200% no-repeat; }
.product .studio-image { margin-bottom: .65rem; }
.model-layout .studio-image { padding: 0; max-height: none; }

@media (prefers-reduced-motion: no-preference) {
  .hero-visual img { animation: laptop-float 5s ease-in-out infinite; }
  .product img, .product .studio-image { transition: transform .3s ease; }
  .product:is(:hover, :focus-within) img,
  .product:is(:hover, :focus-within) .studio-image { transform: translateY(-4px); }
}
@keyframes laptop-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.whatsapp-float {
  position: fixed;
  z-index: 10;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 5px 22px #173b3050;
}
.whatsapp-float img { display: block; }
footer .wrap { padding-inline-end: 66px; }
@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float { animation: whatsapp-bob 3.6s ease-in-out infinite; }
  .whatsapp-float:is(:hover, :focus-visible) { animation-play-state: paused; }
}
@keyframes whatsapp-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.use-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .75rem; margin-bottom: 1.3rem; }
.use-tab { position: relative; overflow: hidden; isolation: isolate; min-height: 5rem; background: #f2f6fc; border-color: #d9e4f2; color: #183457; text-align: left; }
.use-tab svg { position: absolute; z-index: -1; inset-inline-end: .35rem; top: 50%; transform: translateY(-50%); width: 4.1rem; height: 4.1rem; opacity: .14; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.use-tab[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.use-tab[aria-pressed="true"] svg { opacity: .27; }
.use-options { display: flex; flex-wrap: wrap; gap: .4rem 1rem; border: 1px solid var(--line); border-radius: 7px; }
.use-options label { display: flex; align-items: center; }
.use-options input { width: auto; }
@media (max-width: 650px) { .use-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.use-tabs { padding: 0; min-height: auto; }
.use-tab { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 10.5rem; padding: 1.1rem; border: 1px solid #d9e4f2; border-radius: 14px; text-decoration: none; }
.use-tab svg { top: auto; bottom: -.5rem; inset-inline-end: -.35rem; transform: rotate(-12deg); width: 7rem; height: 7rem; }
.use-tab h3 { font-size: clamp(1rem, 2vw, 1.25rem); line-height: 1.2; }
.use-tab p { font-weight: 400; font-size: .9rem; margin-block: .5rem .75rem; }
.use-tab span { margin-top: auto; color: var(--blue); font-size: .88rem; }
.use-tab:hover, .use-tab[aria-current] { border-color: var(--blue); background: #e4eefc; }
.clear-use { color: var(--blue); }
#productos { scroll-margin-top: 1rem; }

.use-tab,
.use-tab:hover,
.use-tab[aria-current] {
  min-height: clamp(12rem, 17vw, 15rem);
  justify-content: flex-end;
  padding: clamp(.75rem, 1.6vw, 1.25rem);
  color: #fff;
  background: #162946;
  border-color: transparent;
}
.use-tab::before,
.use-tab::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.use-tab::before {
  z-index: -2;
  background: url('mk-category-scenes.png') var(--scene-position, left top) / 200% 200% no-repeat;
}
.use-tab::after {
  z-index: -1;
  background: linear-gradient(0deg, #051022f5 0%, #051022ba 43%, #0510222b 82%);
}
.use-tab[data-use="ingenieria"] { --scene-position: right top; }
.use-tab[data-use="diario"] { --scene-position: left bottom; }
.use-tab[data-use="gamer"] { --scene-position: right bottom; }
.use-tab[aria-current] { box-shadow: 0 0 0 3px var(--blue); }
.use-tab svg { display: none; }
.use-tab p { color: #eef4ff; margin-block: .35rem .6rem; }
.use-tab span { color: #c3e1ff; margin-top: 0; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) {
  .use-tab::before { transition: transform .55s ease; }
  .use-tab:is(:hover, :focus-visible)::before { transform: scale(1.09); }
}
@media (prefers-reduced-motion: no-preference) {
  .use-tab::before { animation: scene-drift 9s ease-in-out infinite alternate; }
  .use-tab:nth-child(even)::before { animation-delay: -4s; }
}
@keyframes scene-drift {
  from { scale: 1.02; }
  to { scale: 1.06; }
}

.use-tab .use-emblem {
  position: absolute;
  top: .7rem;
  right: .7rem;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border: 1px solid #ffffff70;
  border-radius: 12px;
  background: #08152ad9;
  color: #ebf6ff;
}
.use-tab .use-emblem svg {
  z-index: auto;
  position: static;
  display: block;
  width: 1.48rem;
  height: 1.48rem;
  transform: none;
  opacity: 1;
  stroke-width: 1.5;
}
@media (prefers-reduced-motion: no-preference) {
  [data-use="ingenieria"] .use-emblem svg { animation: gear-turn 9s linear infinite; }
  [data-use="arquitectura"] .use-emblem svg { animation: plan-lift 3s ease-in-out infinite; }
  [data-use="gamer"] .use-emblem svg { animation: game-tilt 2.6s ease-in-out infinite; }
  [data-use="diario"] .use-emblem svg { animation: laptop-pulse 3.2s ease-in-out infinite; }
}
@keyframes gear-turn { to { transform: rotate(1turn); } }
@keyframes plan-lift { 50% { transform: translateY(-4px); } }
@keyframes game-tilt { 30% { transform: rotate(-12deg); } 70% { transform: rotate(12deg); } }
@keyframes laptop-pulse { 50% { transform: scale(1.16); } }

.hero-carousel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-block: 1.2rem 1.7rem;
  border-radius: 20px;
  background: radial-gradient(ellipse at 78% 52%, #244c86, #101f39 54%, #070e1f);
}
.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: center;
  min-height: clamp(400px, 43vw, 530px);
  color: #fff;
}
.hero-slide[hidden] { display: none; }
.slide-copy { position: relative; z-index: 1; padding: clamp(1.3rem, 4.5vw, 4rem); padding-bottom: 5rem; }
.slide-copy :is(h1,h2) { font-size: clamp(2.4rem, 5vw, 4.5rem); margin-block: .45rem .85rem; }
.slide-copy p { color: #e1edff; margin-bottom: 1rem; }
.slide-copy .kicker { color: #a9d6ff; margin: 0; }
.slide-copy .primary { background: #e8f2ff; border-color: #e8f2ff; color: #102445; }
.slide-visual { display: grid; align-self: stretch; place-items: center; min-width: 0; }
.slide-visual img { display: block; width: 89%; height: auto; border-radius: 14px; box-shadow: 0 12px 40px #02061780; }
.slide-scene {
  background-image: linear-gradient(90deg,#101f39,transparent 34%),url('mk-category-scenes.png');
  background-position: center,left top;
  background-size: 100% 100%,200% 200%;
  background-repeat: no-repeat;
}
.slide-diario .slide-scene { background-position: center,left bottom; }
.slide-controls { position: absolute; z-index: 2; bottom: .85rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: .65rem; color: #fff; padding: .35rem; border-radius: 999px; background: #091425de; }
.slide-controls button { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; padding: 0; border-radius: 50%; font-size: 1.6rem; line-height: 1; }
.slide-controls span { font-size: .8rem; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .slide-gamer .slide-visual img { animation: laptop-float 5s ease-in-out infinite; }
}
@media (max-width: 690px) {
  .hero-slide { grid-template-columns: 1fr; min-height: 0; }
  .slide-copy { padding-bottom: .45rem; }
  .slide-visual { padding: 1rem 0 4.4rem; }
  .slide-visual img { width: 86%; }
  .slide-scene { min-height: 15rem; background-image: linear-gradient(180deg,#101f39,transparent 32%),url('mk-category-scenes.png'); }
}

.hero-carousel {
  background: #102844 url('mk-summer-boardwalk.png') center 56% / cover no-repeat;
}
.hero-carousel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #071426d9, #07142655 53%, transparent 80%);
}
.slide-gamer .slide-visual img {
  width: 94%;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 22px 18px #010713a0);
}
.slide-visual.slide-scene {
  align-self: center;
  width: 88%;
  aspect-ratio: 16/9;
  justify-self: center;
  border-radius: 14px;
  box-shadow: 0 12px 36px #07142688;
  background-image: url('mk-category-scenes.png');
  background-size: 200% 200%;
  background-position: left top;
}
.slide-diario .slide-scene { background-position: left bottom; }
@media (max-width: 690px) {
  .hero-carousel { background-position: 63% center; }
  .hero-carousel::before { background: linear-gradient(180deg,#071426d9,#07142652 60%,transparent); }
  .slide-gamer .slide-visual img { width: 89%; }
  .slide-visual.slide-scene { min-height: 0; padding: 0; margin-block: 1rem 4.4rem; }
}

body {
  background:
    radial-gradient(ellipse at 100% 16%, #ffe1cc 0, transparent 45rem),
    radial-gradient(ellipse at 0% 40%, #dceafd 0, transparent 53rem),
    linear-gradient(180deg, #e8f0fc 0%, #fcf8f4 65%, #e5eefb 100%);
}
header { background: #f7faffec; }
.content { border-top-color: #b9cce1; }
.card { background: #fff; }
.location {
  background: linear-gradient(115deg, #edf5ff, #fff0e3);
  border-color: #cedced;
}
footer {
  background: linear-gradient(120deg, #112846, #203957);
  color: #edf5ff;
  border-block-start-color: #243e60;
}

:root {
  color-scheme: dark;
  --ink: #f2f7ff;
  --muted: #bacbe7;
  --blue: #80c9ff;
  --line: #304c77;
  --wash: #10234a;
}
body {
  background:
    radial-gradient(ellipse at 0% 32%, #1242a369, transparent 44rem),
    radial-gradient(ellipse at 100% 60%, #4928ae5c, transparent 42rem),
    linear-gradient(145deg, #070f24, #0a1940 52%, #080f28);
}
header { background: #091633; box-shadow: inset 0 -2px #3998fc51; }
.brand img { background: #f2f4f7; border-radius: 12px; padding: .25rem .5rem; }
.content { border-top-color: var(--line); }
.hero-carousel, .product, .location {
  border: 1px solid transparent;
  background:
    linear-gradient(145deg,#102650,#0b1837) padding-box,
    linear-gradient(120deg,#38bdf8,#2563eb 52%,#a855f7) border-box;
}
.hero-carousel {
  background: #102844 url('mk-summer-boardwalk.png') center 56% / cover no-repeat;
  border-color: #2870c8;
  box-shadow: 0 0 26px #3186ff42;
}
.card { background: #102344; }
.product {
  background:
    linear-gradient(145deg,#142f5c,#0d1c3b) padding-box,
    linear-gradient(135deg,#3a7abf,#242d65 66%,#6242ab) border-box;
  box-shadow: 0 8px 20px #03071166;
}
.product:hover, .product:focus-within { border-color: #6cd2ff; box-shadow: 0 0 22px #439aff45; }
.product .studio-image, .model-layout .studio-image {
  background-color: #f2f4f7;
  background-blend-mode: normal;
  border-radius: 10px;
  overflow: hidden;
}
.model-image, .service-banner { border-color: #39629c; }
.location { background: linear-gradient(120deg,#102c57,#1c194a); border-color: var(--line); }
footer { background: #080f27; border-block-start-color: #354f83; }
button, .action, input, select, textarea, dialog {
  background: #11264b;
  color: var(--ink);
  border-color: #406398;
}
a.primary, button.primary {
  background: linear-gradient(110deg,#1062d8,#5242bb);
  border-color: #72bfff;
  color: #fff;
}
.slide-copy .primary { background: #123b7b; border-color: #81caff; color: #fff; }
.use-tab[aria-current] { box-shadow: 0 0 0 2px #62c4ff, 0 0 18px #5b57ff76; }
.whatsapp-float { background: #10234a; border-color: #4d6ea4; }
@media (max-width: 690px) {
  .hero-carousel { background-position: 63% center; }
}

.offer-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: .85rem; }
.offer-card { display: flex; flex-direction: column; gap: .45rem; background: linear-gradient(145deg,#142d54,#0d1938); }
.offer-card svg { width: 2rem; height: 2rem; color: #8bd6ff; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.offer-card a { margin-top: auto; padding-top: .55rem; color: #94d5ff; font-weight: 700; font-size: .9rem; }
.slide-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
@media (max-width: 820px) { .offer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 460px) { .offer-card { padding: .85rem; } .offer-card h3 { font-size: 1rem; } }

.parts-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-bottom: 2rem; padding: clamp(1.2rem,4vw,2.6rem); border: 1px solid #55c4ff; border-radius: 17px;
  background: linear-gradient(115deg,#103368,#172852 70%,#33266c); box-shadow: 0 0 24px #266bdf33;
}
.parts-banner h2 { margin-block: .4rem .6rem; }
.parts-banner p:not(.kicker) { max-width: 62ch; }
.parts-banner a { gap: .55rem; }
.parts-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: .8rem; }
.sample-part { display: flex; flex-direction: column; gap: .3rem; padding: .8rem; }
.sample-part img { width: 100%; height: 135px; object-fit: contain; padding: .5rem; border-radius: 8px; background: #f2f4f7; }
.sample-part h3 { font-size: .92rem; overflow-wrap: anywhere; }
.sample-part a { color: var(--blue); margin-top: auto; font-size: .85rem; }
.parts-section { scroll-margin-top: 1rem; }
@media (max-width: 900px) { .parts-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 570px) { .parts-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.use-tabs { grid-template-columns: repeat(5,minmax(0,1fr)); }
.use-tab.phone-tab {
  background: radial-gradient(ellipse at 85% 5%,#3859aa,transparent 70%),linear-gradient(145deg,#14284d,#0a142e);
}
.phone-tab::before { background: none; }
.phone-tab::after { background: none; }
.phone-tab .use-emblem { width: 3.4rem; height: 3.4rem; }
.phone-tab .use-emblem svg { width: 2rem; height: 2rem; }
.phone-part .action { align-self: flex-start; padding: .4rem .6rem; }
@media (max-width: 850px) { .use-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 650px) { .use-tabs { grid-template-columns: repeat(2,minmax(0,1fr)); } }

.use-tab.phone-tab {
  background: #132440;
}
.phone-tab::before {
  background: url('modelos/iphone-17-pro-max.jpg') center 38% / cover no-repeat;
}
.phone-tab::after {
  background: linear-gradient(0deg,#071224f5 1%,#071224ba 38%,#07122418 80%);
}
.phone-part img { height: clamp(115px,14vw,185px); }

.equipment-specs { display: grid; gap: .3rem; margin: .55rem 0; font-size: .84rem; }
.equipment-specs:empty { display: none; }
.equipment-specs div { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.35fr); gap: .45rem; padding: .22rem 0; border-bottom: 1px solid #40639858; }
.equipment-specs dt { color: var(--muted); }
.equipment-specs dd { margin: 0; font-weight: 650; overflow-wrap: anywhere; }
.equipment-price { color: var(--blue); font-weight: 750; }
.equipment-price small { display: block; color: var(--muted); font-weight: 400; }
#celulares .parts-grid { grid-template-columns: repeat(auto-fit,minmax(min(235px,100%),1fr)); }
.phone-part .action { margin-top: .45rem; }
