/* =========================================================
   Catálogo de celulares: estilos públicos
   ========================================================= */
:root {
  --paper: #EEF0EC;
  --white: #FFFFFF;
  --ink: #000000;
  --slate: #5B616B;
  --mist: #D7DBD4;
  --well: #E2E5DF;
  --accent: #2348E8;
  --accent-ink: #FFFFFF;
  --ok: #1F6B3A;
  --warn: #9A5300;
  --bad: #A11C1C;
  --display: "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Figtree", "Helvetica Neue", Arial, sans-serif;
  --wrap: 1180px;
  --nav-h: 56px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 10px;
}
.skip:focus { top: 1rem; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .75rem 1.45rem;
  border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, filter .18s;
}
.btn-sm { min-height: 38px; padding: .55rem 1.05rem; font-size: .92rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--ink); border-color: rgba(0,0,0,.28); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost--light { color: #fff; border-color: rgba(255,255,255,.4); }
.btn-ghost--light:hover { border-color: #fff; }
.link { color: var(--accent); text-decoration: none; font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(238, 240, 236, .8);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding-top: env(safe-area-inset-top, 0px);
}
.nav-inner { height: var(--nav-h); display: flex; align-items: center; gap: 1.5rem; }
.brand-mark {
  display: flex; align-items: center; gap: .55rem; text-decoration: none;
  font: 600 1.18rem/1 var(--display); letter-spacing: -.02em;
}
.brand-mark img { height: 30px; width: auto; max-width: 180px; object-fit: contain; }
.tile-media img { border-radius: 22px 22px 0 0; }
.nav-links {
  display: flex; align-items: center; gap: 1.6rem;
  list-style: none; margin: 0 0 0 auto; padding: 0;
}
.nav-links > li > a:not(.btn), .nav-drop-btn {
  font-size: .92rem; text-decoration: none; color: #23262a;
  background: none; border: 0; padding: .4rem 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
}
.nav-links > li > a:not(.btn):hover, .nav-drop-btn:hover { color: var(--ink); }
.caret {
  width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s;
}
.nav-drop { position: relative; }
.nav-drop-btn[aria-expanded="true"] .caret { transform: rotate(-135deg) translateY(-1px); }
.drop {
  position: absolute; top: calc(100% + 12px); left: 50%; translate: -50% 0;
  min-width: 220px; list-style: none; margin: 0; padding: .5rem;
  background: var(--white); border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.05);
  display: none;
}
.nav-drop.is-open .drop { display: block; }
.drop a {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: .65rem .85rem; border-radius: 12px; text-decoration: none; font-size: .95rem;
}
.drop a:hover { background: var(--paper); }
.drop-count { color: var(--slate); font-size: .82rem; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; align-items: center; justify-content: center;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed; inset: calc(var(--nav-h) + env(safe-area-inset-top, 0px)) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); padding: .75rem 1.25rem 1.75rem;
    border-bottom: 1px solid var(--mist);
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-links > li > a:not(.btn), .nav-drop-btn {
    width: 100%; padding: .9rem 0; font: 600 1.35rem/1.1 var(--display); letter-spacing: -.02em;
    border-bottom: 1px solid var(--mist); justify-content: space-between;
  }
  .drop { position: static; translate: none; box-shadow: none; background: transparent; padding: .25rem 0 .5rem; }
  .drop a { font-size: 1.05rem; padding: .7rem .25rem; }
  .nav-cta-item { margin-top: 1.25rem; }
  .nav-cta-item .btn { width: 100%; min-height: 48px; font-size: 1rem; }
}

.notice {
  margin: 0; padding: .7rem 1.25rem; text-align: center;
  background: var(--white); font-size: .9rem; color: #33373c;
  border-bottom: 1px solid rgba(0,0,0,.05);
}

/* ---------- Portada ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4.5rem); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 {
  font: 600 clamp(2.85rem, 1.1rem + 5.4vw, 6.1rem)/.94 var(--display);
  letter-spacing: -.048em; margin: 0 0 1.5rem; max-width: 11ch;
  text-wrap: balance;
}
.hero-sub {
  font-size: clamp(1.1rem, 1rem + .4vw, 1.32rem); line-height: 1.5;
  color: var(--slate); max-width: 36ch; margin: 0 0 2.1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-stage {
  position: relative; aspect-ratio: 1 / 1; border-radius: 44px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 100%, #fff 0%, #F7F8F6 45%, #E4E7E1 100%);
  display: grid; place-items: center;
}
.hero-stage > img { width: 100%; height: 100%; object-fit: cover; }
.hero-devices { display: flex; align-items: flex-end; justify-content: center; width: 82%; height: 78%; }
.hero-devices .device-art { height: 82%; width: auto; margin-inline: -5%; filter: drop-shadow(0 24px 30px rgba(0,0,0,.18)); }
.hero-devices .device-art:nth-child(2) { height: 100%; position: relative; z-index: 2; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.hero h1 { animation: rise .9s cubic-bezier(.2,.7,.1,1) both; }
.hero-sub { animation: rise .9s .08s cubic-bezier(.2,.7,.1,1) both; }
.hero-actions { animation: rise .9s .16s cubic-bezier(.2,.7,.1,1) both; }
.hero-stage { animation: settle 1.1s .1s cubic-bezier(.2,.7,.1,1) both; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 13ch; }
  .hero-stage { aspect-ratio: 4 / 3.4; border-radius: 32px; }
}

/* ---------- Franja de marcas ---------- */
.rail { background: var(--white); border-block: 1px solid rgba(0,0,0,.06); }
.rail-inner {
  display: flex; align-items: center; gap: clamp(1.75rem, 4.5vw, 4rem);
  padding: 1.35rem 0; overflow-x: auto; scrollbar-width: none;
}
.rail-inner::-webkit-scrollbar { display: none; }
.rail a {
  font: 600 clamp(1.45rem, 1rem + 1.5vw, 2.3rem)/1 var(--display); letter-spacing: -.035em;
  color: #A2A7AD; text-decoration: none; white-space: nowrap; transition: color .2s;
}
.rail a:hover, .rail a:focus-visible { color: var(--ink); }
.rail img { height: 30px; width: auto; filter: grayscale(1); opacity: .55; transition: opacity .2s, filter .2s; }
.rail a:hover img { filter: none; opacity: 1; }

/* ---------- Secciones ---------- */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem;
  flex-wrap: wrap; margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
}
.section-title {
  font: 600 clamp(2.2rem, 1.25rem + 3vw, 3.7rem)/1 var(--display);
  letter-spacing: -.042em; margin: 0;
}
.section-lead { color: var(--slate); max-width: 52ch; margin: .85rem 0 0; font-size: 1.08rem; }

/* ---------- Destacados ---------- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile {
  position: relative; overflow: hidden; border-radius: 34px;
  background: var(--white); color: var(--ink);
  min-height: 600px; padding: clamp(2.25rem, 4vw, 3.25rem) 1.75rem 0;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.tile--wide { grid-column: 1 / -1; min-height: 640px; }
.tile--dark { background: #000; color: #fff; }
.tile-brand { margin: 0 0 .4rem; font-size: .95rem; color: var(--slate); }
.tile--dark .tile-brand, .tile--dark .tile-tag { color: #A6A8AD; }
.tile h3 {
  font: 600 clamp(2.1rem, 1.4rem + 2.2vw, 3.4rem)/1 var(--display);
  letter-spacing: -.04em; margin: 0; text-wrap: balance;
}
.tile--wide h3 { font-size: clamp(2.5rem, 1.5rem + 3vw, 4.4rem); }
.tile-tag { margin: .65rem 0 0; font-size: clamp(1.05rem, 1rem + .3vw, 1.3rem); color: var(--slate); max-width: 30ch; }
.tile-price { margin: .5rem 0 0; font-size: 1rem; }
.tile .badge { margin-bottom: .4rem; }
.tile-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.4rem; }
.tile--dark .link { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.tile-media {
  margin-top: auto; width: 100%; padding: 2.25rem 0 0; border: 0; background: none; cursor: pointer;
  display: flex; justify-content: center; align-items: flex-end;
}
.tile-media img { max-height: 340px; width: auto; object-fit: contain; }
.tile-media .device-art { height: 300px; width: auto; margin-bottom: -40px; filter: drop-shadow(0 20px 30px rgba(0,0,0,.2)); }
.tile--wide .tile-media img { max-height: 400px; }
.tile--wide .tile-media .device-art { height: 360px; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile--wide { min-height: 500px; border-radius: 28px; }
  .tile-media .device-art, .tile--wide .tile-media .device-art { height: 250px; }
}

/* ---------- Catálogo ---------- */
.section--catalog { padding-top: clamp(2rem, 5vw, 3rem); }
.controls { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 1.25rem; }
.controls-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.segment { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--well); }
.segment button {
  border: 0; background: transparent; cursor: pointer; color: #3A3E44;
  font: 600 1rem/1 var(--body); padding: .8rem 1.5rem; border-radius: 999px;
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.segment button[aria-pressed="true"] {
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 6px 16px rgba(0,0,0,.06);
}
.search { position: relative; flex: 0 1 340px; display: block; }
.search .icon { position: absolute; left: 14px; top: 50%; translate: 0 -50%; color: var(--slate); pointer-events: none; }
.search input {
  width: 100%; min-height: 46px; padding: .7rem 1rem .7rem 2.6rem;
  border: 1px solid var(--mist); border-radius: 999px; background: var(--white);
  font: 400 1rem var(--body); color: var(--ink);
}
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--mist); background: transparent; color: #2B2E33;
  border-radius: 999px; padding: .55rem 1.05rem; cursor: pointer;
  font: 500 .93rem/1 var(--body); white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip:hover { border-color: #9AA0A6; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip--brand { font: 600 1.05rem/1 var(--display); letter-spacing: -.01em; padding: .7rem 1.2rem; }
.chips--brands { padding-bottom: .25rem; border-bottom: 1px solid var(--mist); padding-bottom: 1rem; }
.result-count { margin: 0 0 1rem; font-size: .9rem; color: var(--slate); }

/* Siluetas de accesorios (formato cuadrado) */
.card-media .device-art.art-wide { height: auto; width: 82%; }
.tile-media .device-art.art-wide { height: 280px; margin-bottom: 0; }
.dlg-media .device-art.art-wide { height: auto; width: min(320px, 80%); }
.hero-devices .device-art.art-wide { height: 60%; }
@media (max-width: 560px) {
  .segment { display: flex; width: 100%; }
  .segment button { flex: 1; padding: .75rem .5rem; font-size: .92rem; }
  .dlg-media .device-art.art-wide { width: auto; height: 100%; max-height: 230px; }
}

/* Carrusel horizontal */
html, body { overflow-x: clip; }
.catalog-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.catalog-bar .result-count { margin: 0; }
.carousel-nav { display: flex; gap: .6rem; }
.arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--well); color: var(--ink);
  transition: background-color .2s, color .2s, opacity .25s, transform .2s;
}
.arrow:hover:not(:disabled) { background: var(--ink); color: #fff; }
.arrow:active:not(:disabled) { transform: scale(.94); }
.arrow:disabled { opacity: .35; cursor: default; }
.grid {
  --gap: 18px;
  --cw: 360px;
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: var(--cw); gap: var(--gap);
  margin-inline: calc(50% - 50vw);
  padding: 18px calc(50vw - var(--cw) / 2) 26px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none; cursor: grab;
}
.grid::-webkit-scrollbar { display: none; }
.grid:focus-visible { outline: none; }
.grid:focus-visible > .card.is-active { box-shadow: 0 0 0 3px var(--accent), 0 30px 60px -20px rgba(0,0,0,.28); }
.grid > .card {
  scroll-snap-align: center; scroll-snap-stop: always;
  transform-origin: 50% 60%; will-change: transform, opacity;
  transition: box-shadow .45s ease;
  cursor: pointer;
}
.grid > .card.is-active { cursor: auto; box-shadow: 0 30px 60px -22px rgba(0,0,0,.26); }
.grid > .card:not(.is-active) .card-actions { pointer-events: none; }
.grid.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; user-select: none; }
.grid.is-dragging .card { pointer-events: none; }
.grid img, .grid svg { -webkit-user-drag: none; user-select: none; }
.grid.is-entering > .card { animation: slide-in .6s cubic-bezier(.2,.75,.15,1) both; }
.grid.is-entering > .card:nth-child(2) { animation-delay: .05s; }
.grid.is-entering > .card:nth-child(3) { animation-delay: .1s; }
.grid.is-entering > .card:nth-child(n+4) { animation-delay: .15s; }
@keyframes slide-in { from { opacity: 0; translate: 80px 0; } to { opacity: 1; translate: 0 0; } }
.progress { position: relative; height: 3px; margin: .5rem auto 0; max-width: 240px; border-radius: 3px; background: var(--mist); overflow: hidden; }
.progress span { position: absolute; inset: 0 auto 0 0; width: 30%; border-radius: 3px; background: var(--ink); transition: width .25s; will-change: transform; }
.is-static .carousel-nav, .is-static + .grid + .progress { visibility: hidden; }
@media (max-width: 820px) { .grid { --cw: 320px; } }
@media (max-width: 560px) { .grid { --cw: min(74vw, 300px); --gap: 12px; } .arrow { width: 40px; height: 40px; } }
@media (hover: none) { .grid { cursor: auto; } }
.card { display: flex; flex-direction: column; background: var(--white); border-radius: 26px; overflow: hidden; }
.card-media {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 100%; aspect-ratio: 1 / 1; padding: 1.75rem; border: 0; background: var(--white); cursor: pointer;
}
.card-media img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .35s ease; }
.card-media .device-art { height: 88%; width: auto; transition: transform .35s ease; }
.card-media:hover img, .card-media:hover .device-art { transform: scale(1.035); }
.card-media:focus-visible { outline: 3px solid var(--accent); outline-offset: -6px; border-radius: 22px; }
.tag {
  position: absolute; top: 14px; left: 14px; padding: .3rem .65rem; border-radius: 999px;
  background: var(--paper); font-size: .78rem; font-weight: 600; color: #33373C;
}
.card-body { display: flex; flex-direction: column; gap: .25rem; flex: 1; padding: 0 1.35rem 1.35rem; }
.card-brand { margin: 0; font-size: .85rem; color: var(--slate); }
.card-title { margin: 0; font: 600 1.38rem/1.12 var(--display); letter-spacing: -.022em; }
.card-tag { margin: .15rem 0 0; font-size: .95rem; line-height: 1.4; color: var(--slate); }
.swatches { display: flex; align-items: center; gap: 7px; list-style: none; margin: .7rem 0 0; padding: 0; }
.swatch { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.2); }
.swatch-more { font-size: .78rem; color: var(--slate); }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1rem; }
.price { font-weight: 600; font-size: 1.05rem; line-height: 1.2; }
.price small { display: block; font-size: .78rem; font-weight: 400; color: var(--slate); }
.price s { font-size: .85rem; font-weight: 400; color: var(--slate); }
.price--ask { font-weight: 500; font-size: .95rem; color: var(--slate); }
.badge {
  display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap;
  font-size: .8rem; font-weight: 600; color: var(--ok);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge--pocas { color: var(--warn); }
.badge--agotado { color: var(--bad); }
.badge--proximamente { color: var(--accent); }
.tile--dark .badge--disponible { color: #6FD39A; }
.tile--dark .badge--pocas { color: #F2B45C; }
.tile--dark .badge--agotado { color: #FF8A8A; }
.tile--dark .badge--proximamente { color: color-mix(in srgb, var(--accent) 45%, #fff); }
.card-actions { display: flex; gap: .5rem; margin-top: 1rem; }
.card-actions .btn { flex: 1; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--slate); }
.empty p { margin: 0 0 1rem; font-size: 1.1rem; }

/* ---------- Servicios ---------- */
.services { background: var(--white); }
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2.75rem 2.25rem; }
.service-icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); margin-bottom: 1.1rem;
}
.service h3 { margin: 0 0 .4rem; font: 600 1.3rem/1.2 var(--display); letter-spacing: -.02em; }
.service p { margin: 0; color: var(--slate); max-width: 38ch; }

/* ---------- Visítanos ---------- */
.visit {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem);
  background: #000; color: #fff; border-radius: 38px;
  padding: clamp(2.25rem, 6vw, 4.5rem);
}
.visit-title { margin: 0 0 1rem; font: 600 clamp(2rem, 1.2rem + 2.6vw, 3.3rem)/1.02 var(--display); letter-spacing: -.04em; max-width: 14ch; }
.visit-lead { margin: 0 0 2rem; color: #B4B7BC; max-width: 40ch; font-size: 1.08rem; }
.visit-info { margin: 0; display: grid; gap: 1.5rem; align-content: start; }
.visit-info dt { font-size: .88rem; color: #8F9399; margin-bottom: .25rem; }
.visit-info dd { margin: 0; font-size: 1.12rem; line-height: 1.45; }
.visit-info a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
@media (max-width: 760px) { .visit { grid-template-columns: 1fr; border-radius: 28px; } }

/* ---------- Pie ---------- */
.footer { padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom, 0px)); font-size: .9rem; color: var(--slate); }
.footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 1.5rem; border-bottom: 1px solid var(--mist); }
.footer-name { margin: 0; font: 600 1.2rem/1 var(--display); color: var(--ink); letter-spacing: -.02em; }
.footer-tag { margin: .4rem 0 0; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.footer-links a { text-decoration: none; color: #2B2E33; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { margin: 1.5rem 0 .5rem; max-width: 80ch; }
.footer-legal { margin: 0; font-size: .82rem; max-width: 80ch; }

/* ---------- Botón flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25D366; color: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.22); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }

/* ---------- Detalle del producto ---------- */
.dialog {
  width: min(980px, calc(100% - 1.5rem)); max-height: calc(100dvh - 1.5rem);
  padding: 0; border: 0; border-radius: 30px; overflow: hidden;
  background: var(--white); color: var(--ink);
  box-shadow: 0 40px 100px rgba(0,0,0,.3);
}
.dialog::backdrop { background: rgba(18, 20, 24, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.dialog[open] { animation: settle .28s cubic-bezier(.2,.8,.2,1); }
.dlg { display: grid; grid-template-columns: 1fr 1fr; max-height: calc(100dvh - 1.5rem); }
.dlg-media { display: flex; align-items: center; justify-content: center; background: var(--paper); padding: 3rem 2rem; min-height: 380px; overflow: hidden; }
.dlg-media img { max-height: 460px; width: auto; object-fit: contain; }
.dlg-media .device-art { height: 360px; width: auto; filter: drop-shadow(0 24px 30px rgba(0,0,0,.18)); }
.dlg-body { padding: 2.75rem 2.4rem 2.4rem; overflow-y: auto; }
.dlg-brand { margin: 0 0 .3rem; font-size: .92rem; color: var(--slate); }
.dlg-title { margin: 0; font: 600 clamp(2rem, 1.5rem + 1.5vw, 2.7rem)/1.02 var(--display); letter-spacing: -.04em; padding-right: 2rem; }
.dlg-tag { margin: .6rem 0 0; font-size: 1.1rem; color: var(--slate); }
.dlg-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: 1.25rem; }
.dlg-meta .tag { position: static; }
.dlg-price { font-size: 1.4rem; font-weight: 600; }
.dlg-price small { font-size: .85rem; font-weight: 400; color: var(--slate); margin-right: .25rem; }
.dlg-price s { font-size: .95rem; font-weight: 400; color: var(--slate); margin-left: .4rem; }
.dlg-desc { margin: 1.25rem 0 0; color: #33373C; }
.opt-group { margin-top: 1.6rem; }
.opt-label { margin: 0 0 .6rem; font-size: .92rem; font-weight: 600; }
.opt-label span { font-weight: 400; color: var(--slate); }
.opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.opt {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px;
  padding: .55rem 1rem; border: 1px solid var(--mist); border-radius: 14px;
  background: var(--white); cursor: pointer; font: 500 .95rem/1.1 var(--body);
}
.opt:hover { border-color: #9AA0A6; }
.opt[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt .swatch { width: 16px; height: 16px; }
.specs { list-style: none; margin: 1.75rem 0 0; padding: 0; border-top: 1px solid var(--mist); }
.specs li { padding: .75rem 0; border-bottom: 1px solid var(--mist); font-size: .96rem; }
.dlg-cta { margin-top: 1.75rem; display: flex; flex-direction: column; gap: .6rem; }
.dlg-cta .btn { width: 100%; min-height: 52px; font-size: 1.02rem; }
.dlg-note { margin: 0; font-size: .85rem; color: var(--slate); text-align: center; }
.dlg-close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.07); cursor: pointer;
}
.dlg-close:hover { background: rgba(0,0,0,.12); }
@media (max-width: 760px) {
  .dlg { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .dlg-body { overflow: visible; padding: 1.75rem 1.4rem 1.6rem; }
  .dlg-media { height: 300px; min-height: 0; padding: 1.75rem 1rem; overflow: hidden; }
  .dlg-media img { max-height: 100%; max-width: 100%; }
  .dlg-media .device-art { height: 100%; max-height: 250px; width: auto; }
  .dialog { border-radius: 24px; }
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
}

/* Modos de foto: fondo oscuro y foto completa */
.card-media.media--oscuro, .dlg-media.media--oscuro { background: #000; }
.card-media.media--foto { padding: 0; overflow: hidden; }
.card-media.media--foto img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
.tile-media.media--foto img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 22px 22px 0 0; }
.dlg-media.media--foto { padding: 0; }
.dlg-media.media--foto img { width: 100%; height: 100%; max-height: none; object-fit: cover; }
@media (max-width: 760px) { .dlg-media.media--foto img { max-height: 300px; } }
/* Fotos de cualquier proporción dentro del recuadro cuadrado */
.card-media { min-height: 0; overflow: hidden; }
.card-media img { width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.card-media.media--foto img { object-fit: cover; }

/* Próximamente */
.section--soon { padding-top: 0; }
.soon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.soon-card { display: flex; flex-direction: column; background: var(--white); border-radius: 26px; overflow: hidden; }
.soon-media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; min-height: 0; padding: 1.5rem; border: 0; background: var(--white); cursor: pointer; overflow: hidden; }
.soon-media img { width: 100%; height: 100%; object-fit: contain; }
.soon-media .device-art { height: 90%; width: auto; }
.soon-media.media--oscuro { background: #000; }
.soon-media.media--foto { padding: 0; }
.soon-media.media--foto img { object-fit: cover; }
.soon-body { display: flex; flex-direction: column; gap: .25rem; padding: 1.1rem 1.35rem 1.35rem; flex: 1; }
.soon-body .card-actions { margin-top: auto; padding-top: 1rem; }

/* Galería en la ficha */
.dlg-gallery { display: flex; flex-direction: column; background: var(--paper); min-width: 0; }
.dlg-gallery .dlg-media { flex: 1; }
.dlg-thumbs { display: flex; gap: .5rem; padding: .75rem 1rem 1rem; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.dlg-thumbs::-webkit-scrollbar { display: none; }
.dlg-thumb { flex: none; width: 58px; height: 58px; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: pointer; background: #fff; opacity: .65; box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); transition: opacity .2s, box-shadow .2s; }
.dlg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dlg-thumb[aria-current="true"] { opacity: 1; box-shadow: 0 0 0 2px var(--ink); }
.dlg-media img { transition: opacity .25s; }
@media (max-width: 760px) { .dlg-thumb { width: 50px; height: 50px; } }

/* Ficha: la foto completa se ve entera, sin recortes, sobre un fondo difuminado de la misma foto */
.dlg-media.media--foto { position: relative; padding: 0; background: #E6E8E4; isolation: isolate; overflow: hidden; }
.dlg-media.media--foto::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--dlg-bg, none) center / cover no-repeat; filter: blur(30px) saturate(1.15); opacity: .6; }
.dlg-media.media--foto img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
@media (min-width: 761px) { .dlg-media.media--foto { min-height: 540px; } }
@media (max-width: 760px) { .dlg-media.media--foto { height: min(64vh, 520px); } .dlg-media.media--foto img { max-height: none; } }
/* Miniaturas: centradas si caben y deslizables si no (sin cortar la primera) */
.dlg-thumbs { justify-content: flex-start; }
.dlg-thumbs > :first-child { margin-left: auto; }
.dlg-thumbs > :last-child { margin-right: auto; }
.dlg-gallery .dlg-media.media--foto { flex: 1 0 auto; }

/* Botón cerrar visible sobre cualquier foto */
.dlg-close { background: rgba(255,255,255,.88); box-shadow: 0 2px 10px rgba(0,0,0,.18); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.dlg-close:hover { background: #fff; }

/* Video del equipo (tarjeta, destacados y ficha) */
.media--video { background: #000 !important; padding: 0 !important; }
.card-media.media--video video, .soon-media.media--video video { width: 100%; height: 100%; object-fit: contain; display: block; }
.tile-media.media--video { background: transparent !important; }
.tile-media.media--video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: 22px 22px 0 0; background: #000; }
.dlg-media.media--video { position: relative; overflow: hidden; }
.dlg-media.media--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.dlg-gallery .dlg-media.media--video { flex: 1 0 auto; }
@media (min-width: 761px) { .dlg-media.media--video { min-height: 540px; } }
@media (max-width: 760px) { .dlg-media.media--video { height: auto; min-height: 0; aspect-ratio: 16 / 9; } }
.dlg-thumb[data-video] { position: relative; background: #000; }
.dlg-thumb[data-video]::after { content: ""; position: absolute; inset: 0; margin: auto; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23111'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: 0 1px 6px rgba(0,0,0,.3); }

/* Si el teléfono bloquea la reproducción automática (p. ej. modo ahorro de batería) se ve un botón de play */
.card-media, .tile-media { position: relative; }
.card-media:has(video.needs-tap)::after, .tile-media:has(video.needs-tap)::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23111'/%3E%3C/svg%3E") center / 30px no-repeat;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
}

/* Portada con video */
.hero-stage--video { aspect-ratio: 16 / 9; background: #000; }
.hero-stage--video .hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-stage--video::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); pointer-events: none; }
.hero-stage--video:has(video.needs-tap)::before {
  content: ""; position: absolute; inset: 0; margin: auto; z-index: 2; width: 64px; height: 64px; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23111'/%3E%3C/svg%3E") center / 34px no-repeat;
}
@media (max-width: 880px) {
  .hero-stage--video { order: -1; aspect-ratio: 16 / 9; border-radius: 24px; }
}

/* Portada oscura: fondo negro para que el video de fondo negro se funda con la página */
.hero--dark { background: #000; color: #fff; }
.hero--dark .hero-sub { color: rgba(255,255,255,.72); }
.hero--dark .hero-stage--video { border-radius: 0; background: #000; overflow: visible; }
.hero--dark .hero-stage--video::after { display: none; }
.hero--dark .hero-video {
  /* Bordes difuminados hacia el negro: el video no se ve como un rectángulo */
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(to right, transparent 0, #000 12%, #000 88%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
          mask-composite: intersect;
}
@media (max-width: 880px) { .hero--dark .hero-stage--video { border-radius: 0; margin-inline: -1.25rem; } }

/* ---------- Destacados: la foto se ve completa ---------- */
.tile-copy { display: flex; flex-direction: column; align-items: center; width: 100%; }
.tile-media.media--foto { padding: 2rem 0 1.75rem; align-items: center; }
.tile-media.media--foto img { width: auto; max-width: 100%; height: auto; max-height: 460px; object-fit: contain; border-radius: 22px; }
@media (max-width: 760px) { .tile-media.media--foto img { max-height: 400px; } }
/* Destacado ancho en computador: texto a la izquierda y la foto completa a la derecha */
@media (min-width: 900px) {
  .tile--split { flex-direction: row; align-items: center; text-align: left; gap: clamp(2rem, 4vw, 4rem); padding: clamp(2.5rem, 4vw, 3.5rem); min-height: 0; }
  .tile--split .tile-copy { flex: 1 1 40%; align-items: flex-start; }
  .tile--split .tile-tag { max-width: 26ch; }
  .tile--split .tile-links { justify-content: flex-start; }
  .tile--split .tile-media.media--foto { flex: 1 1 60%; margin: 0; padding: 0; align-self: center; justify-content: center; }
  .tile--split .tile-media.media--foto img { max-height: 560px; border-radius: 26px; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  width: auto; height: auto; border-radius: 999px; padding: 8px;
  display: inline-flex; align-items: center; gap: .7rem;
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 12px 30px rgba(18, 140, 62, .35), 0 2px 6px rgba(0,0,0,.12);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.wa-float:hover { transform: translateY(-2px); background: #1EBE5A; box-shadow: 0 16px 36px rgba(18, 140, 62, .42), 0 2px 6px rgba(0,0,0,.12); }
.wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wa-icon { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); flex: none; }
.wa-icon::before { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: wa-pulse 2.4s ease-out infinite; }
.wa-dot { position: absolute; top: 3px; right: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #25D366; }
.wa-text { display: flex; flex-direction: column; line-height: 1.15; font-weight: 600; font-size: .98rem; padding-right: .9rem; white-space: nowrap; }
.wa-text small { font-weight: 500; font-size: .76rem; opacity: .9; }
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (max-width: 760px) {
  .wa-float { padding: 6px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
  .wa-text { display: none; }
  .wa-icon { width: 50px; height: 50px; background: transparent; }
}
@media (prefers-reduced-motion: reduce) { .wa-icon::before { animation: none; } }
