/* iPhone Marea — landing
   Implementation of Landing.dc.html (Claude Design handoff) */

:root {
  --accent: #3FA9C9;
  --accent-hover: #5DBEDA;
  --accent-deep: #2C7E98;
  --ink: #0A1015;
  --paper: #F4F5F6;
  --on-accent: #04161d;
  --wrap: 1240px;
  --pad-x: clamp(20px, 5vw, 72px);
  --section-y: clamp(72px, 9vw, 128px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: Geist, system-ui, sans-serif;
  background: var(--ink);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--accent-hover); }

::selection { background: rgba(63, 169, 201, .28); }

button, input, select { font-family: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.page {
  background: var(--ink);
  color: var(--ink);
  overflow-x: hidden;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
}

@keyframes marea-rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes marea-pulse {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}

/* Gradient hairline border (the prototype's style-before mask trick) */
.gb { position: relative; overflow: hidden; }
.gb::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: var(--gb);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}
.gb-dark        { --gb: linear-gradient(130deg, rgba(255,255,255,.30), rgba(63,169,201,.26) 50%, rgba(255,255,255,.04)); }
.gb-dark-strong { --gb: linear-gradient(130deg, rgba(255,255,255,.36), rgba(63,169,201,.30) 50%, rgba(255,255,255,.04)); }
.gb-light       { --gb: linear-gradient(130deg, rgba(10,16,21,.16), rgba(63,169,201,.34) 50%, rgba(10,16,21,.04)); }

/* ---------------------------------------------------------------- Header */

.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 28px);
  max-width: var(--wrap);
  z-index: 200;
  border-radius: 18px;
  background: rgba(10, 16, 21, .58);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .10), 0 12px 40px -12px rgba(0, 0, 0, .6);
  --gb: linear-gradient(130deg, rgba(255,255,255,.34), rgba(63,169,201,.26) 46%, rgba(255,255,255,.04));
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 14px 11px 18px;
  position: relative;
  z-index: 1;
}

.nav-logo { display: block; flex-shrink: 0; }
.nav-logo img { height: 34px; width: auto; opacity: .96; }

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 450;
  color: rgba(255, 255, 255, .72);
  transition: color .2s ease, background .2s ease;
}
.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
  box-shadow: 0 8px 24px -10px rgba(63, 169, 201, .9);
}
.btn-wa:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -10px rgba(63, 169, 201, .95);
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.burger:hover { background: rgba(255, 255, 255, .14); }

.nav-mobile {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 6px 12px 14px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.nav-mobile[hidden] { display: none; }

.nav-mobile-link {
  padding: 13px 8px;
  font-size: 16px;
  font-weight: 450;
  color: rgba(255, 255, 255, .82);
}
.nav-mobile-link:hover { color: #fff; }

@media (max-width: 860px) {
  .nav-desktop { display: none; }
  .burger { display: flex; }
}

/* ------------------------------------------------------------------ Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--ink);
  overflow: hidden;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(140% 100% at 4% 92%, rgba(63, 169, 201, .20), transparent 64%),
    linear-gradient(90deg, rgba(10, 16, 21, .80) 0%, rgba(10, 16, 21, .36) 46%, rgba(10, 16, 21, 0) 78%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 150px var(--pad-x) 110px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .10);
  animation: marea-rise .7s var(--ease) both;
}
.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: marea-pulse 2.4s ease-in-out infinite;
}
.badge-text {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .66);
}

.hero-h1 {
  margin: 26px 0 0;
  max-width: 15ch;
  font-size: clamp(40px, 7.4vw, 86px);
  font-weight: 600;
  line-height: 1.01;
  letter-spacing: -.035em;
  color: #fff;
  text-wrap: balance;
  animation: marea-rise .8s .06s var(--ease) both;
}

.hero-p {
  margin: 26px 0 0;
  max-width: 46ch;
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, .62);
  text-wrap: pretty;
  animation: marea-rise .8s .12s var(--ease) both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
  animation: marea-rise .8s .18s var(--ease) both;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 26px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-white:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(255, 255, 255, .5);
}

.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: background .2s ease, transform .2s ease;
}
.btn-glass:hover {
  color: #fff;
  background: rgba(255, 255, 255, .11);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0 44px;
  margin-top: 64px;
  animation: marea-rise .8s .26s var(--ease) both;
}
.stat { padding: 14px 0; }
.stat-num {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
}
.stat-label {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, .45);
}

/* -------------------------------------------------------------- Benefits */

.benefits {
  background: var(--ink);
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 0 var(--pad-x);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 0 32px;
  max-width: var(--wrap);
  margin: 0 auto;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 26px 0;
}
.benefit svg { flex-shrink: 0; }
.benefit span {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(255, 255, 255, .66);
}

/* ---------------------------------------------------- Section primitives */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.eyebrow-accent { color: var(--accent); }

.h2 {
  margin: 14px 0 0;
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
  color: var(--ink);
}
.h2-narrow { max-width: 22ch; text-wrap: balance; }
.h2-tight  { max-width: 20ch; text-wrap: balance; }
.h2-light  { color: #fff; }

/* --------------------------------------------------------------- Catalog */

.catalog {
  background: var(--paper);
  padding: var(--section-y) var(--pad-x);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-lead {
  margin: 0;
  max-width: 34ch;
  font-size: 15px;
  font-weight: 300;
  line-height: 1.6;
  color: #5A646B;
  text-wrap: pretty;
}

.filters {
  margin-top: 44px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(10, 16, 21, .035);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6);
}

.filters-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 26px;
}

.filter-label {
  display: block;
  margin-bottom: 9px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #78838A;
}

.chips { display: flex; gap: 6px; }

.chip {
  height: 40px;
  padding: 0 18px;
  border-radius: 11px;
  border: 1px solid rgba(10, 16, 21, .12);
  background: rgba(255, 255, 255, .5);
  color: #3D474D;
  font-size: 14px;
  font-weight: 450;
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.chip.is-active {
  border: none;
  background: var(--ink);
  color: #fff;
  font-weight: 500;
}
#chips-bat .chip { padding: 0 16px; }

.select {
  height: 40px;
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid rgba(10, 16, 21, .12);
  background: rgba(255, 255, 255, .6);
  color: var(--ink);
  font-size: 14px;
  font-weight: 450;
  cursor: pointer;
}
.select-modelo { min-width: 172px; }
.select-cap    { min-width: 132px; }
.select-color  { min-width: 150px; }

.filter-price { flex: 1; min-width: 210px; }
.price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.price-row .filter-label { margin-bottom: 9px; }
.price-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.range {
  width: 100%;
  height: 40px;
  accent-color: var(--accent);
  cursor: pointer;
}

.count-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0 18px;
}
.count {
  font-size: 13px;
  font-weight: 450;
  color: #78838A;
}
.btn-reset {
  padding: 8px 0;
  border: none;
  background: none;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(44, 126, 152, .35);
  text-underline-offset: 3px;
}
.btn-reset:hover { text-decoration-color: rgba(44, 126, 152, .8); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 18px;
}

.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  background: rgba(255, 255, 255, .62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), 0 2px 10px -6px rgba(10, 16, 21, .18);
  transition: transform .28s var(--ease), box-shadow .28s ease;
  --gb: linear-gradient(135deg, rgba(10,16,21,.14), rgba(63,169,201,.36) 55%, rgba(10,16,21,.03));
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7), 0 24px 44px -22px rgba(10, 16, 21, .42);
}

.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #E9EBEC;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.tag {
  padding: 5px 10px;
  border-radius: 8px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.tag-nuevo { background: rgba(10, 16, 21, .82); color: #fff; }
.tag-usado { background: rgba(255, 255, 255, .82); color: var(--ink); }
.tag-bat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(63, 169, 201, .92);
  color: var(--on-accent);
  letter-spacing: .02em;
  text-transform: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px;
}
.card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.card-meta {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 400;
  color: #78838A;
}
.card-price {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
}
.card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  margin-top: 16px;
  border-radius: 12px;
  border: 1px solid rgba(10, 16, 21, .14);
  background: rgba(255, 255, 255, .5);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.card-cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.empty { padding: 70px 20px; text-align: center; }
.empty[hidden] { display: none; }
.empty-title {
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
}
.empty-text {
  margin: 10px auto 0;
  max-width: 38ch;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: #78838A;
}

/* ------------------------------------------------------- Why choose us */

.why {
  background: #fff;
  padding: var(--section-y) var(--pad-x);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 56px;
}

.why-card {
  padding: 26px 24px 30px;
  border-radius: 20px;
  background: #F7F8F9;
  transition: background .25s ease;
}
.why-card:hover { background: #F1F5F7; }
.why-card h3 {
  margin: 18px 0 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.why-card p {
  margin: 9px 0 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
  color: #5A646B;
  text-wrap: pretty;
}

/* ------------------------------------------------------------ Trade-in */

.tradein {
  background: var(--paper);
  padding: var(--section-y) var(--pad-x);
}

.tradein-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(32px, 5vw, 72px);
  max-width: var(--wrap);
  margin: 0 auto;
  align-items: start;
}

.tradein-lead {
  margin: 22px 0 0;
  max-width: 44ch;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  color: #5A646B;
  text-wrap: pretty;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: #3D474D;
}
.step-n {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: rgba(63, 169, 201, .14);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-card {
  padding: 28px;
  border-radius: 22px;
  background: rgba(10, 16, 21, .035);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6);
}

.form-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-full { grid-column: 1 / -1; }

.field-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #78838A;
}

.input {
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(10, 16, 21, .13);
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font-size: 15px;
  font-weight: 400;
  outline: none;
  transition: border-color .2s ease;
}
select.input { padding: 0 12px; cursor: pointer; }
.input:focus { border-color: var(--accent); }

.btn-dark {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  margin-top: 6px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background .2s ease, transform .2s ease, color .2s ease;
}
.btn-dark:hover {
  background: var(--accent);
  color: var(--on-accent);
  transform: translateY(-1px);
}

.form-note {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.5;
  color: #8A939A;
}

/* ------------------------------------------------------------- Contact */

.contact {
  position: relative;
  background: var(--ink);
  padding: var(--section-y) var(--pad-x);
  overflow: hidden;
}
.contact .wrap { position: relative; }

.contact-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 88% 0%, rgba(63, 169, 201, .14), transparent 62%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 48px;
  align-items: start;
}

.map-card {
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .09);
}
.map {
  display: block;
  width: 100%;
  height: 400px;
  border: 0;
  filter: grayscale(.55) contrast(1.05) brightness(.92);
}

.hours-card {
  padding: 30px 28px;
  border-radius: 20px;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .09);
}
.hours-inner { position: relative; z-index: 1; }

.mini-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .4);
}

.hours {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}
.hours-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.hours-row-last { border-bottom: none; }
.hours-day {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, .72);
}
.hours-time {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hours-closed { color: rgba(255, 255, 255, .38); }

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  font-weight: 400;
}
.contact-link:hover { color: #fff; }
.contact-link svg { flex-shrink: 0; }
.contact-link-top {
  align-items: flex-start;
  line-height: 1.5;
}
.contact-link-top svg { margin-top: 2px; }

/* -------------------------------------------------------------- Footer */

.footer {
  background: #06090C;
  padding: clamp(56px, 7vw, 88px) var(--pad-x) 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 40px;
}

.footer-logo { height: 44px; width: auto; opacity: .92; }

.footer-about {
  margin: 20px 0 0;
  max-width: 30ch;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, .42);
}

.footer-h {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .34);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 18px;
}
.footer-links a {
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, .6);
}
.footer-links a:hover { color: #fff; }

.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 300;
  color: rgba(255, 255, 255, .5);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .07);
  font-size: 13px;
  font-weight: 300;
  color: rgba(255, 255, 255, .3);
}
.footer-fine { color: rgba(255, 255, 255, .22); }

/* ====================================================== CUENTA / SESIÓN ==== */

.account-slot { display: flex; align-items: center; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.btn-ghost-light {
  height: 36px;
  padding: 0 14px;
  background: rgba(10, 16, 21, .06);
  color: #3D474D;
  font-size: 13px;
}
.btn-ghost-light:hover { background: rgba(10, 16, 21, .11); color: var(--ink); }

.account { position: relative; }

.account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, .09);
  cursor: pointer;
  transition: background .2s ease;
}
.account-btn:hover { background: rgba(255, 255, 255, .16); }

.account-initial {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
}

.account-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: 250px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(16, 24, 31, .97);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1), 0 24px 50px -18px rgba(0, 0, 0, .8);
  animation: marea-rise .18s var(--ease) both;
}
.account-menu[hidden] { display: none; }

.account-head {
  padding: 15px 16px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.account-name {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-mail {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, .45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-badge {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(63, 169, 201, .18);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.account-items { padding: 6px; }

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 10px;
  border: none;
  border-radius: 10px;
  background: none;
  color: rgba(255, 255, 255, .8);
  font-size: 14px;
  font-weight: 450;
  text-align: left;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.menu-item:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.menu-item svg { flex-shrink: 0; opacity: .7; }
.menu-item-admin { color: var(--accent); }
.menu-item-admin:hover { background: rgba(63, 169, 201, .14); color: var(--accent-hover); }
.menu-item-out { color: rgba(255, 255, 255, .55); }

.nav-mobile-account {
  display: flex;
  flex-direction: column;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .09);
}
.nav-mobile-cta { color: var(--accent) !important; font-weight: 500; }
.nav-mobile-out {
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  color: rgba(255, 255, 255, .55);
  font-size: 16px;
}

.footer-admin-link { color: var(--accent) !important; }
.footer-admin-link[hidden] { display: none; }

/* -------------------------------------------------------------- Favoritos */

.count-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.fav-filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid rgba(10, 16, 21, .12);
  background: rgba(255, 255, 255, .55);
  color: #3D474D;
  font-size: 13px;
  font-weight: 450;
  cursor: pointer;
  transition: all .2s ease;
}
.fav-filter:hover { border-color: var(--accent); color: var(--ink); }
.fav-filter[hidden] { display: none; }
.fav-filter.is-on {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}
.fav-filter.is-on svg { fill: var(--accent); stroke: var(--accent); }

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #5A646B;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.fav-btn svg { width: 17px; height: 17px; fill: none; }
.fav-btn:hover { background: #fff; color: var(--ink); transform: scale(1.06); }
.fav-btn.is-on { color: #E5484D; }
.fav-btn.is-on svg { fill: #E5484D; }

/* ========================================================= PÁGINA CUENTA === */

.body-auth {
  min-height: 100vh;
  background: var(--ink);
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background:
    radial-gradient(120% 80% at 10% 0%, rgba(63, 169, 201, .16), transparent 60%),
    radial-gradient(100% 70% at 95% 100%, rgba(63, 169, 201, .10), transparent 62%),
    var(--ink);
}

.auth-card-wrap {
  width: 100%;
  max-width: 400px;
  animation: marea-rise .6s var(--ease) both;
}

.auth-logo { display: block; margin: 0 auto 30px; width: fit-content; }
.auth-logo img { height: 46px; width: auto; opacity: .95; }

.auth-card {
  border-radius: 22px;
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .1), 0 30px 70px -30px rgba(0, 0, 0, .9);
}
.auth-card-inner { position: relative; z-index: 1; padding: 26px 24px 28px; }

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
}
.auth-tab {
  height: 38px;
  border: none;
  border-radius: 9px;
  background: none;
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.auth-tab:hover { color: rgba(255, 255, 255, .85); }
.auth-tab.is-active { background: rgba(255, 255, 255, .1); color: #fff; }

.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form[hidden] { display: none; }

.input-dark {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .13);
  color: #fff;
}
.input-dark::placeholder { color: rgba(255, 255, 255, .3); }
.input-dark:focus { border-color: var(--accent); background: rgba(255, 255, 255, .09); }

.body-auth .field-label { color: rgba(255, 255, 255, .5); }

.field-hint {
  font-size: 12px;
  font-weight: 300;
  color: rgba(255, 255, 255, .35);
}
.body-admin .field-hint { color: #8A939A; }

.btn-accent {
  height: 50px;
  margin-top: 4px;
  border: none;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn-accent:hover:not(:disabled) { background: var(--accent-hover); transform: translateY(-1px); }
.btn-accent:disabled { opacity: .6; cursor: default; }

.link-quiet {
  align-self: center;
  padding: 4px;
  border: none;
  background: none;
  color: rgba(255, 255, 255, .45);
  font-size: 13px;
  font-weight: 400;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-quiet:hover { color: rgba(255, 255, 255, .8); }

.auth-fine {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.55;
  color: rgba(255, 255, 255, .35);
}

.auth-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.5;
}
.auth-alert[hidden] { display: none; }
.auth-alert-error {
  background: rgba(229, 72, 77, .12);
  color: #FF9EA1;
  box-shadow: inset 0 0 0 1px rgba(229, 72, 77, .25);
}
.auth-alert-ok {
  background: rgba(63, 169, 201, .12);
  color: #8AD4E9;
  box-shadow: inset 0 0 0 1px rgba(63, 169, 201, .28);
}

.auth-config-warning {
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .05);
  color: rgba(255, 255, 255, .7);
  font-size: 13.5px;
  line-height: 1.6;
}
.auth-config-warning[hidden] { display: none; }
.auth-config-warning p { margin: 6px 0 0; font-weight: 300; }
.auth-config-warning code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  font-size: 12.5px;
}

.auth-back {
  display: block;
  margin-top: 24px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, .4);
}
.auth-back:hover { color: #fff; }

/* ================================================================ PANEL ==== */

.body-admin { background: var(--paper); }

.admin-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--ink);
}
.admin-gate[hidden] { display: none; }
.admin-gate-box { text-align: center; max-width: 380px; }
.admin-gate-box img { margin: 0 auto; opacity: .94; }
.admin-gate-msg {
  margin: 26px 0 22px;
  font-size: 14.5px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255, 255, 255, .6);
}
.admin-gate-msg strong { font-weight: 600; color: #fff; }
.admin-gate-msg code {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  font-size: 13px;
}
.admin-gate .btn-ghost[hidden] { display: none; }

.admin[hidden] { display: none; }

.admin-top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(244, 245, 246, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(10, 16, 21, .09);
}
.admin-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px clamp(16px, 3vw, 32px);
}
.admin-brand { display: flex; align-items: center; gap: 11px; }
.admin-brand img { height: 30px; width: auto; }
.admin-brand-tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(10, 16, 21, .08);
  color: #5A646B;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.admin-top-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-who {
  font-size: 13px;
  font-weight: 450;
  color: #5A646B;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-tabs {
  display: flex;
  gap: 2px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 3vw, 32px);
  overflow-x: auto;
}
.admin-tab {
  position: relative;
  padding: 12px 16px;
  border: none;
  background: none;
  color: #78838A;
  font-size: 14px;
  font-weight: 450;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.is-active { color: var(--ink); font-weight: 550; }
.admin-tab.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.admin-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px clamp(16px, 3vw, 32px) 80px;
}
.admin-panel[hidden] { display: none; }

.admin-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.admin-h1 {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
}
.admin-sub { margin: 5px 0 0; font-size: 13.5px; font-weight: 400; color: #78838A; }

.btn-inline { height: 42px; padding: 0 18px; margin: 0; grid-column: auto; }

.admin-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(10, 16, 21, .07), 0 8px 24px -16px rgba(10, 16, 21, .25);
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.admin-table thead th {
  padding: 13px 14px;
  border-bottom: 1px solid rgba(10, 16, 21, .08);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8A939A;
  text-align: left;
  white-space: nowrap;
}
.admin-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(10, 16, 21, .05);
  color: #3D474D;
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: rgba(10, 16, 21, .018); }
.cell-strong { font-weight: 550; color: var(--ink); }
.col-num { text-align: right; font-variant-numeric: tabular-nums; }
.col-act { text-align: right; white-space: nowrap; }
.col-img { width: 56px; }

.row-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #E9EBEC;
}
.row-img-empty { display: block; }
.row-muted { color: #A8B0B5; }

.row-btn {
  padding: 6px 10px;
  margin-left: 4px;
  border: 1px solid rgba(10, 16, 21, .12);
  border-radius: 8px;
  background: #fff;
  color: #3D474D;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s ease;
}
.row-btn:hover { border-color: var(--accent); color: var(--ink); }
.row-btn-danger:hover { border-color: #E5484D; color: #C6363B; background: rgba(229, 72, 77, .05); }

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: capitalize;
}
.pill-nuevo    { background: rgba(10, 16, 21, .85);  color: #fff; }
.pill-usado    { background: rgba(10, 16, 21, .07);  color: #3D474D; }
.pill-admin    { background: rgba(63, 169, 201, .16); color: #226680; }
.pill-customer { background: rgba(10, 16, 21, .07);  color: #5A646B; }

.tag-you {
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(63, 169, 201, .16);
  color: #226680;
  font-size: 10.5px;
  font-weight: 600;
}

.toggle {
  width: 40px;
  height: 23px;
  padding: 2px;
  border: none;
  border-radius: 999px;
  background: rgba(10, 16, 21, .16);
  cursor: pointer;
  transition: background .2s ease;
}
.toggle span {
  display: block;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
  transition: transform .2s var(--ease);
}
.toggle.is-on { background: var(--accent); }
.toggle.is-on span { transform: translateX(17px); }

.admin-empty {
  padding: 56px 20px;
  text-align: center;
  font-size: 14.5px;
  font-weight: 300;
  color: #8A939A;
}
.admin-empty[hidden] { display: none; }

.admin-toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 90;
  max-width: min(460px, calc(100vw - 32px));
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 450;
  color: #fff;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .5);
  animation: marea-rise .25s var(--ease) both;
}
.admin-toast[hidden] { display: none; }
.admin-toast-ok  { background: #16303C; }
.admin-toast-err { background: #7A2226; }

/* ---------------------------------------------------------------- Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 21, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .55);
  animation: marea-rise .25s var(--ease) both;
}

.modal-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 16px;
  background: #fff;
  border-bottom: 1px solid rgba(10, 16, 21, .07);
}
.modal-title {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
}
.modal-x {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: none;
  color: #78838A;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.modal-x:hover { background: rgba(10, 16, 21, .06); color: var(--ink); }

.modal-body { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px 22px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }

.upload-row { display: flex; align-items: center; gap: 14px; }
.upload-preview {
  width: 62px;
  height: 62px;
  border-radius: 10px;
  object-fit: cover;
  background: #E9EBEC;
  flex-shrink: 0;
}
.upload-preview[hidden] { display: none; }
.upload-actions { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.file-input { font-size: 13px; color: #5A646B; max-width: 100%; }

.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #3D474D; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--accent); cursor: pointer; }

.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 16, 21, .07);
}
.modal-foot .btn-ghost {
  height: 42px;
  background: rgba(10, 16, 21, .06);
  color: #3D474D;
}
.modal-foot .btn-ghost:hover { background: rgba(10, 16, 21, .11); color: var(--ink); }

@media (max-width: 640px) {
  .admin-who { display: none; }
  .count-actions { gap: 12px; }
}

/* ------------------------------------------------------------ A11y prefs */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
