/* =========================================================================
   Auto Ya · Asesores — estilos
   Mobile-first (360–430px), acento por vendedor en --accent
   ========================================================================= */
:root {
  --bg: #F7F5F0;
  --bg-2: #EFEBE3;
  --surface: #FFFFFF;
  --ink: #14161A;
  --ink-2: #33383F;
  --muted: #595F68;
  --line: #E4DFD5;
  --accent: #C2410C;
  --accent-rgb: 194, 65, 12;
  --wa: #15803D;
  --wa-hover: #116632;
  --wa-bright: #25D366;
  --danger: #B42318;
  --ok: #15803D;
  --amber: #B45309;
  --r: 18px;
  --r-sm: 12px;
  --shadow: 0 1px 2px rgba(20, 22, 26, .05), 0 8px 24px -12px rgba(20, 22, 26, .18);
  --shadow-lg: 0 2px 4px rgba(20, 22, 26, .05), 0 24px 48px -20px rgba(20, 22, 26, .28);
  --f-head: 'Sora', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-body: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --hdr-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.12; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(var(--accent-rgb), .55); outline-offset: 2px; border-radius: 6px; }
.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; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 28px; } }
.ico { width: 20px; height: 20px; flex: none; }
.txt-accent { color: var(--accent); }
main:focus { outline: none; }

.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 8px; }

.boot { min-height: 70vh; display: flex; gap: 12px; align-items: center; justify-content: center; color: var(--muted); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; display: inline-block; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Botones ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s var(--ease), background-color .2s, box-shadow .2s, border-color .2s, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 0 24px; font-size: 16px; }
.btn--xl { min-height: 60px; font-size: 17px; border-radius: 16px; }
.btn--block { width: 100%; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -10px rgba(var(--accent-rgb), .8); }
.btn--accent:hover { filter: brightness(.92); }
.btn--accent-soft { background: rgba(var(--accent-rgb), .1); color: var(--accent); }
.btn--accent-soft:hover { background: rgba(var(--accent-rgb), .16); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-hover); }
.btn--wa-soft { background: #E8F5EC; color: #11592B; }
.btn--wa-soft:hover { background: #D4EEDD; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink-2); }
.btn--light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn--light:hover { background: rgba(255, 255, 255, .18); }
.btn--danger { background: var(--danger); color: #fff; }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface);
  display: inline-grid; place-items: center; cursor: pointer; color: var(--ink); flex: none; text-decoration: none;
  transition: border-color .2s, background .2s;
}
.icon-btn:hover { border-color: var(--ink-2); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn--lg { width: 52px; height: 52px; }
.icon-btn--danger { color: var(--danger); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--wa-bright); box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

/* ---------------- Header ---------------- */
.hdr {
  position: sticky; top: 0; z-index: 40; height: var(--hdr-h);
  background: rgba(247, 245, 240, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.hdr.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(20, 22, 26, .4); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; margin-right: auto; min-height: 44px; }
.brand__img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface); box-shadow: 0 0 0 2px rgba(var(--accent-rgb), .5); background: var(--bg-2); }
.brand__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.brand__txt strong { font-family: var(--f-head); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__txt small { font-size: 12px; color: var(--muted); font-weight: 600; }
.nav { display: none; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 10px 12px; border-radius: 10px; }
.nav a:hover { color: var(--ink); background: var(--bg-2); }
.hdr__wa { min-height: 44px; padding: 0 14px; font-size: 14px; }
.hdr__wa span { display: none; }
.hdr__burger { width: 44px; height: 44px; border-radius: 12px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.nav.is-open {
  display: flex; flex-direction: column; position: absolute; top: var(--hdr-h); left: 0; right: 0;
  background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; box-shadow: var(--shadow-lg);
  animation: drop .2s var(--ease);
}
.nav.is-open a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--line); border-radius: 0; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
@media (min-width: 420px) { .hdr__wa span { display: inline; } }
@media (min-width: 900px) {
  .nav, .nav.is-open { display: flex; gap: 2px; position: static; flex-direction: row; background: none; border: 0; padding: 0; box-shadow: none; animation: none; }
  .nav.is-open a { padding: 10px 12px; font-size: 15px; border: 0; border-radius: 10px; }
  .hdr__burger { display: none; }
}

/* ---------------- Hero ---------------- */
.hero { padding: 18px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -40% -30% auto auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), .14), transparent); pointer-events: none;
}
.hero__grid { display: flex; flex-direction: column; gap: 22px; position: relative; }
.hero__card {
  display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow);
}
.hero__img { grid-row: span 2; width: 76px; height: 76px; border-radius: 14px; object-fit: cover; object-position: 50% 20%; background: var(--bg-2); }
.hero__id { display: flex; flex-direction: column; }
.hero__id strong { font-family: var(--f-head); font-size: 18px; }
.hero__id span { font-size: 14px; color: var(--muted); font-weight: 600; }
.hero__stock {
  justify-self: start; margin-top: 6px; font-size: 13px; font-weight: 700; text-decoration: none; color: var(--accent);
  background: rgba(var(--accent-rgb), .09); padding: 4px 10px; border-radius: 999px; min-height: 28px; display: inline-flex; align-items: center;
}
.hero__stock b { margin-right: 4px; }
.hero__title { font-size: clamp(34px, 9.2vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__lead { margin-top: 16px; font-size: 17px; color: var(--ink-2); max-width: 34em; }
.hero__ctas { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 26px; }
.trust li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.trust strong { font-family: var(--f-head); font-size: 17px; letter-spacing: -.02em; }
.trust span { font-size: 12.5px; color: var(--muted); line-height: 1.3; font-weight: 600; }
@media (min-width: 560px) {
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
}
@media (min-width: 900px) {
  .hero { padding: 48px 0 72px; }
  .hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
  .hero__copy { order: -1; }
  .hero__card { display: block; padding: 0; overflow: hidden; position: relative; border-radius: 28px; box-shadow: var(--shadow-lg); transform: rotate(1.2deg); }
  .hero__img { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; }
  .hero__id {
    position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 16px; border-radius: 16px;
    background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .hero__stock { position: absolute; top: 16px; left: 16px; background: var(--surface); box-shadow: var(--shadow); padding: 8px 14px; font-size: 14px; }
  .trust { max-width: 560px; }
  .trust li { padding: 14px 16px; }
  .trust strong { font-size: 22px; }
  .trust span { font-size: 13.5px; }
}

/* ---------------- Secciones ---------------- */
.sec { padding: 56px 0; }
@media (min-width: 900px) { .sec { padding: 88px 0; } }
.sec__head { margin-bottom: 26px; max-width: 640px; }
.sec__head h2 { font-size: clamp(28px, 7vw, 44px); font-weight: 800; }
.sec__head p:not(.eyebrow) { margin-top: 10px; color: var(--muted); font-size: 16.5px; }
.sec__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Planes */
.sec--planes { background: var(--surface); border-block: 1px solid var(--line); }
.plans { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.plan {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 14px 14px;
  display: flex; flex-direction: column; gap: 8px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(var(--accent-rgb), .35); }
.plan__top { display: flex; align-items: center; gap: 8px; }
.plan__num { font-family: var(--f-head); font-size: 52px; font-weight: 800; line-height: .9; color: var(--accent); letter-spacing: -.05em; }
.plan__unit { font-size: 12px; font-weight: 700; line-height: 1.15; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; }
.plan__name { font-size: 16px; }
.plan__txt { font-size: 13.5px; color: var(--muted); flex: 1; }
.plan .btn { min-height: 46px; font-size: 13.5px; padding: 0 10px; white-space: normal; text-align: center; line-height: 1.15; margin-top: 4px; }
.plan .btn .ico { width: 18px; height: 18px; }
.plans__note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.perks { display: grid; gap: 12px; margin-top: 32px; }
.perk { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); }
.perk__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(var(--accent-rgb), .1); color: var(--accent); flex: none; }
.perk__ico .ico { width: 24px; height: 24px; }
.perk h3 { font-size: 17px; }
.perk p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.steps { margin-top: 32px; display: grid; gap: 0; background: var(--ink); color: #fff; border-radius: 22px; padding: 8px 18px; position: relative; overflow: hidden; }
.step { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px dashed rgba(255, 255, 255, .18); }
.step:last-child { border-bottom: 0; }
.step__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); font-family: var(--f-head); font-weight: 800; font-size: 18px; flex: none; }
.step h3 { font-size: 17px; }
.step p { color: rgba(255, 255, 255, .78); font-size: 14.5px; margin-top: 2px; }
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .plan { padding: 24px 20px 20px; }
  .plan__num { font-size: 72px; }
  .plan .btn { font-size: 14.5px; }
  .perks { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .steps { grid-template-columns: repeat(3, 1fr); padding: 28px; gap: 28px; }
  .step { border: 0; padding: 0; flex-direction: column; }
}

/* ---------------- Catálogo ---------------- */
.counter { font-size: 15px; color: var(--muted); font-weight: 600; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
.counter b { color: var(--ink); font-family: var(--f-head); }
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; position: sticky; top: var(--hdr-h); z-index: 20; background: var(--bg); padding: 10px 0; margin-inline: -16px; padding-inline: 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface);
  font-weight: 700; font-size: 14.5px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tools { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.search { position: relative; display: flex; align-items: center; }
.search .ico { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.search input, .sort select {
  width: 100%; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface);
  padding: 0 14px 0 42px; font-size: 16px; appearance: none; -webkit-appearance: none;
}
.sort select {
  padding: 0 34px 0 12px; font-weight: 600; font-size: 14.5px; max-width: 150px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2333383F' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.search input:focus, .sort select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
@media (min-width: 768px) {
  .filters { flex-direction: row; align-items: center; justify-content: space-between; margin-inline: 0; padding-inline: 0; }
  .chips { margin: 0; padding: 0; flex-wrap: wrap; }
  .tools { grid-template-columns: 260px auto; }
  .sort select { max-width: none; }
}

.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; animation: fadeUp .4s var(--ease) both;
}
@media (hover: hover) { .card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } .card:hover .card__media img { transform: scale(1.04); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--bg-2); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.card__nofoto { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.badge .ico { width: 14px; height: 14px; color: var(--accent); }
.badge--sold { background: var(--ink); color: #fff; }
.badge--res { background: #FEF3C7; color: #7C2D12; }
.card__count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: #fff; background: rgba(20, 22, 26, .7); padding: 4px 8px; border-radius: 8px; }
.card__count .ico { width: 14px; height: 14px; }
.card__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__type { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.card__title { font-size: 21px; font-weight: 700; }
.card__title a { text-decoration: none; }
.card__title a::after { content: ''; }
.card__ver { color: var(--ink-2); font-size: 14.5px; margin-top: -2px; }
.specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.specs li { font-size: 13.5px; font-weight: 600; padding: 4px 10px; background: var(--bg); border-radius: 8px; color: var(--ink-2); }
.card__price { font-family: var(--f-head); font-weight: 700; font-size: 17px; margin: 4px 0 10px; flex: 1; display: flex; align-items: flex-end; }
.card.is-sold .card__media img { filter: grayscale(1) contrast(.9); opacity: .75; }
.card.is-sold .card__price { color: var(--muted); }
.empty { text-align: center; padding: 36px 16px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.empty .btn { margin-top: 8px; }

/* ---------------- Entregas ---------------- */
.sec--ent { background: var(--bg-2); }
.car-nav { display: none; gap: 8px; }
@media (min-width: 768px) { .car-nav { display: flex; } }
.ent {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 16px 12px; scroll-padding-inline: 16px; scrollbar-width: none; max-width: 1180px; margin: 0 auto;
}
.ent::-webkit-scrollbar { display: none; }
@media (min-width: 600px) { .ent { grid-auto-columns: 40%; } }
@media (min-width: 900px) { .ent { grid-auto-columns: calc((100% - 56px - 42px) / 4); padding-inline: 28px; scroll-padding-inline: 28px; } }
.ent__item { margin: 0; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.ent__item img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; background: var(--line); }
/* La leyenda va debajo: las fotos de entrega suelen traer texto propio */
.ent__item figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 1px; }
.ent__item strong { font-family: var(--f-head); font-size: 17px; }
.ent__item span { font-size: 14px; color: var(--ink-2); }
.ent__loc { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--accent) !important; margin-top: 2px; }
.ent__loc .ico { width: 15px; height: 15px; }

/* ---------------- CTA final ---------------- */
.cta {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 36px 20px; text-align: center; position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.cta::before { content: ''; position: absolute; width: 420px; height: 420px; border-radius: 50%; top: -260px; left: 50%; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(var(--accent-rgb), .55), transparent); }
.cta > * { position: relative; }
.cta__img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 3px solid rgba(255, 255, 255, .9); }
.cta h2 { font-size: clamp(26px, 6.6vw, 42px); font-weight: 800; max-width: 16em; }
.cta p { color: rgba(255, 255, 255, .8); max-width: 34em; }
.cta__btns { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }
.cta__zona { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; margin-top: 10px; text-align: left; }
.cta__zona .ico { width: 16px; height: 16px; margin-top: 3px; }
.cta__small { font-size: 14px; }
@media (min-width: 640px) {
  .cta { padding: 56px 40px; }
  .cta__btns { flex-direction: row; justify-content: center; width: auto; }
  .cta__zona { text-align: center; }
}

.ftr { padding: 28px 0 96px; color: var(--muted); font-size: 14px; }
.ftr__in { display: flex; flex-direction: column; gap: 4px; }
.ftr strong { color: var(--ink); }
.ftr a { color: var(--ink-2); font-weight: 600; display: inline-block; padding: 10px 0; }
@media (min-width: 900px) { .ftr { padding-bottom: 32px; } .ftr__in { flex-direction: row; justify-content: space-between; align-items: center; } }

.fab-wa {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45;
  width: 60px; height: 60px; border-radius: 50%; background: var(--wa-bright); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(21, 128, 61, .6); transition: transform .2s var(--ease);
  animation: popIn .4s .6s var(--ease) both;
}
.fab-wa .ico { width: 32px; height: 32px; }
.fab-wa:hover { transform: scale(1.06); }
@keyframes popIn { from { transform: scale(0); } }

/* ---------------- Ficha ---------------- */
.ficha { padding-top: 12px; padding-bottom: 110px; }
.back { display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 700; color: var(--ink-2); min-height: 44px; margin-bottom: 8px; }
.ficha__grid { display: grid; gap: 22px; }
.gal { position: relative; border-radius: var(--r); overflow: hidden; background: var(--bg-2); margin-inline: -16px; border-radius: 0; }
.gal__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; overscroll-behavior-x: contain; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; }
.gal__btn { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: none; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.gal__btn--prev { left: 12px; }
.gal__btn--next { right: 12px; }
.gal__count { position: absolute; right: 12px; bottom: 12px; background: rgba(20, 22, 26, .75); color: #fff; font-size: 13px; font-weight: 700; padding: 5px 10px; border-radius: 999px; }
.gal--empty { aspect-ratio: 4 / 3; display: flex; flex-direction: column; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-weight: 600; }
.gal__thumbs { display: none; gap: 8px; margin-top: 10px; overflow-x: auto; }
.gal__thumb { flex: 0 0 96px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: .7; transition: opacity .2s, border-color .2s; }
.gal__thumb[aria-current] { border-color: var(--accent); opacity: 1; }
.gal__thumb img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.ficha.is-sold .gal__slide img { filter: grayscale(1); }
@media (min-width: 768px) {
  .gal { margin: 0; border-radius: var(--r); }
  .gal__btn { display: grid; }
  .gal__thumbs { display: flex; }
}
.ficha__title { font-size: clamp(30px, 8vw, 44px); font-weight: 800; margin-top: 4px; }
.ficha__ver { font-size: 17px; color: var(--ink-2); margin-top: 4px; }
.ficha__price { font-family: var(--f-head); font-size: 22px; font-weight: 700; margin-top: 12px; color: var(--accent); }
.ficha.is-sold .ficha__price { color: var(--muted); }
.datos { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin: 18px 0; }
.datos div { background: var(--surface); padding: 12px 14px; }
.datos dt { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.datos dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.ficha__ctas { display: grid; gap: 10px; }
.ficha__plan { margin-top: 18px; padding: 16px; border-radius: var(--r-sm); background: rgba(var(--accent-rgb), .07); border: 1px solid rgba(var(--accent-rgb), .2); font-size: 15px; }
.ficha__plan a { display: inline-flex; align-items: center; gap: 2px; margin-top: 6px; font-weight: 700; color: var(--accent); text-decoration: none; min-height: 44px; }
.ficha__plan .ico { width: 16px; height: 16px; }
.ficha__vend { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.ficha__vend img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.ficha__vend div { display: flex; flex-direction: column; line-height: 1.25; }
.ficha__vend span { font-size: 14px; color: var(--muted); }
.ficha__desc { margin-top: 32px; max-width: 720px; }
.ficha__desc h2, .ficha__otros h2 { font-size: 22px; margin-bottom: 10px; }
.ficha__desc p { color: var(--ink-2); }
.ficha__otros { margin-top: 40px; }
.ficha-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; gap: 10px; align-items: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.ficha-bar .btn { min-height: 52px; }
@media (min-width: 900px) {
  .ficha { padding-top: 24px; padding-bottom: 40px; }
  .ficha__grid { grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
  .ficha__info { position: sticky; top: calc(var(--hdr-h) + 20px); }
  .ficha-bar { display: none; }
  .ficha__ctas { grid-template-columns: 1fr auto; }
}

/* ---------------- Directorio / vacíos ---------------- */
.dir { padding-top: 56px; padding-bottom: 56px; max-width: 560px; }
.dir h1 { font-size: clamp(32px, 8vw, 46px); font-weight: 800; }
.dir__lead { color: var(--muted); margin-top: 8px; font-size: 17px; }
.dir__list { display: grid; gap: 12px; margin-top: 28px; }
.dir__item {
  display: flex; align-items: center; gap: 14px; padding: 12px; padding-right: 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; border-left: 5px solid var(--a);
}
.dir__item:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.dir__item img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.dir__item span { display: flex; flex-direction: column; flex: 1; }
.dir__item strong { font-family: var(--f-head); font-size: 18px; }
.dir__item small { color: var(--muted); font-weight: 600; font-size: 14px; }
.dir__foot { margin-top: 28px; }
.dir__foot a { color: var(--muted); font-weight: 600; display: inline-block; padding: 10px 0; }
.empty-page { padding-top: 72px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.empty-page h1 { font-size: 30px; }

/* ---------------- Reveal ---------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------- Toasts y modal ---------------- */
.toasts { position: fixed; left: 16px; right: 16px; top: calc(12px + env(safe-area-inset-top)); z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast {
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 14px; font-weight: 600; font-size: 15px; max-width: 440px; width: 100%;
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px); transition: opacity .25s, transform .25s var(--ease); border-left: 5px solid #8B95A5;
}
.toast.is-in { opacity: 1; transform: none; }
.toast--ok { border-left-color: var(--wa-bright); }
.toast--error { border-left-color: #F87171; }
.modal { position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 16, .5); display: grid; place-items: end center; padding: 16px; opacity: 0; transition: opacity .2s; }
.modal.is-in { opacity: 1; }
.modal:not(.is-in) { pointer-events: none; } /* un diálogo cerrándose nunca bloquea toques */
.modal__box { background: var(--surface); border-radius: 22px; padding: 22px; width: 100%; max-width: 420px; box-shadow: var(--shadow-lg); transform: translateY(20px); transition: transform .25s var(--ease); margin-bottom: env(safe-area-inset-bottom); }
.modal.is-in .modal__box { transform: none; }
.modal__text { font-size: 17px; font-weight: 600; line-height: 1.4; }
.modal__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.modal__actions .btn { white-space: normal; line-height: 1.15; }
@media (min-width: 600px) { .modal { place-items: center; } }

/* =========================================================================
   PANEL
   ========================================================================= */
body.is-panel { background: #F3F1EC; }
.pnl { min-height: 100vh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.pnl__hdr { position: sticky; top: 0; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.pnl__hdr-in { max-width: 720px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.pnl__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--bg-2); }
.pnl__hello { display: flex; flex-direction: column; line-height: 1.1; margin-right: auto; }
.pnl__hello small { color: var(--muted); font-size: 13px; }
.pnl__hello strong { font-family: var(--f-head); font-size: 17px; }
.pnl__demo { background: #FEF3C7; color: #713F12; font-size: 13.5px; font-weight: 600; text-align: center; padding: 8px 16px; }
.pnl__main { max-width: 720px; margin: 0 auto; padding: 18px 16px 24px; display: flex; flex-direction: column; gap: 16px; }
.pnl__loading { padding: 48px 0; text-align: center; color: var(--muted); }
.pnl__head h1 { font-size: 28px; font-weight: 800; }
.pnl__stats { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.pnl__stats b { color: var(--ink); }
.pnl__sub { font-size: 19px; margin-top: 8px; }
.pnl__top { display: flex; align-items: center; gap: 12px; }
.pnl__top h1 { font-size: 24px; font-weight: 800; }
.pnl__tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(6, 1fr);
  background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.pnl__tabs a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 64px; text-decoration: none; font-size: 11.5px; min-width: 0; font-weight: 700; color: var(--muted); position: relative; }
.pnl__tabs a .ico { width: 24px; height: 24px; }
.pnl__tabs a[aria-current] { color: var(--accent); }
.pnl__tabs a[aria-current]::before { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
@media (min-width: 760px) { .pnl__tabs { max-width: 720px; margin: 0 auto; left: 50%; transform: translateX(-50%); border: 1px solid var(--line); border-bottom: 0; border-radius: 18px 18px 0 0; } }

.vlist, .elist { display: flex; flex-direction: column; gap: 12px; }
.vrow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; transition: opacity .2s, box-shadow .4s; }
.vrow.is-busy, .erow.is-busy { opacity: .5; pointer-events: none; }
.vrow.is-new { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .45); }
.vrow__top { display: flex; gap: 12px; align-items: center; }
.vrow__top img, .vrow__nofoto { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); }
.vrow.is-sold .vrow__top img { filter: grayscale(1); }
.vrow__txt { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.vrow__txt strong { font-family: var(--f-head); font-size: 17px; }
.vrow__txt span:not(.pill) { color: var(--muted); font-size: 14px; }
.pill { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 6px; margin-top: 2px; }
.pill--disponible { background: #DCFCE7; color: #14532D; }
.pill--reservado { background: #FEF3C7; color: #78350F; }
.pill--vendido { background: var(--ink); color: #fff; }
.pill--star { background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.vrow__acts { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 12px; }
.act--w3 { grid-column: span 3; }
.act--w2 { grid-column: span 2; font-size: 14px; padding: 0 4px; }
.act {
  min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; padding: 0 8px;
}
.act:hover { border-color: var(--ink-2); }
.act.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.act--danger { color: var(--danger); }
@media (min-width: 560px) { .vrow__acts { grid-template-columns: repeat(5, 1fr); } .act--w3, .act--w2 { grid-column: span 1; } }

.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.box__t { font-size: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 700; font-size: 15px; padding: 0; }
.field small { font-weight: 500; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); padding: 0 14px;
  font-size: 16px; appearance: none; -webkit-appearance: none; transition: border-color .2s, box-shadow .2s;
}
.field select { background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2333383F' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.field textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__err, .form-err { color: var(--danger); font-size: 14px; font-weight: 600; }
.field__err:empty, .form-err:empty { display: none; }
.hint { font-size: 14px; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.money { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); }
.money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .18); }
.money span { padding-left: 14px; font-weight: 700; color: var(--muted); }
.field .money input { border: 0; box-shadow: none; padding-left: 8px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg--wrap { grid-template-columns: repeat(3, 1fr); }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 0 6px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--bg); font-weight: 700; font-size: 14.5px; cursor: pointer; transition: all .15s;
}
.seg__opt input:checked + span { background: var(--accent); color: #fff; border-color: var(--accent); }
.seg__opt input:focus-visible + span { outline: 3px solid rgba(var(--accent-rgb), .5); outline-offset: 2px; }

.tgl { display: flex; align-items: center; gap: 12px; cursor: pointer; min-height: 48px; position: relative; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl__ui { width: 52px; height: 32px; border-radius: 999px; background: #CBD0D8; position: relative; flex: none; transition: background .2s; }
.tgl__ui::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s var(--ease); }
.tgl input:checked + .tgl__ui { background: var(--accent); }
.tgl input:checked + .tgl__ui::after { transform: translateX(20px); }
.tgl input:focus-visible + .tgl__ui { outline: 3px solid rgba(var(--accent-rgb), .5); outline-offset: 2px; }
.tgl__txt { display: flex; flex-direction: column; }
.tgl__txt small { color: var(--muted); font-size: 13.5px; }

.photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 560px) { .photos { grid-template-columns: repeat(3, 1fr); } }
.photos__empty { grid-column: 1 / -1; border: 2px dashed var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.photo { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; animation: fadeUp .3s var(--ease) both; }
.photo--loading { align-items: center; justify-content: center; gap: 8px; padding: 18px; color: var(--muted); font-size: 14px; text-align: center; min-height: 140px; }
.photo__img { position: relative; aspect-ratio: 4 / 3; }
.photo__img img { width: 100%; height: 100%; object-fit: cover; }
.photo__main { position: absolute; left: 8px; top: 8px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 800; padding: 4px 8px; border-radius: 8px; }
.photo__bar { display: flex; justify-content: space-between; padding: 6px; gap: 4px; }
.photo__mk { border: 0; border-top: 1px solid var(--line); background: var(--surface); min-height: 44px; font-weight: 700; font-size: 14px; cursor: pointer; color: var(--accent); }
.photo__mk--on { display: flex; align-items: center; justify-content: center; color: var(--ink-2); cursor: default; font-size: 13.5px; }
.photo-add { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-add .btn { white-space: normal; text-align: center; line-height: 1.15; font-size: 15px; padding: 0 10px; border-radius: 14px; }
.savebar { position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 10; padding-top: 6px; }
.savebar .btn { box-shadow: 0 14px 30px -10px rgba(var(--accent-rgb), .7); }

.efoto { aspect-ratio: 4 / 3; border-radius: 14px; border: 2px dashed var(--line); overflow: hidden; display: grid; place-items: center; background: var(--bg); max-height: 360px; width: 100%; }
.efoto img { width: 100%; height: 100%; object-fit: cover; }
.efoto__empty { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.erow { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.erow img { width: 64px; height: 80px; border-radius: 10px; object-fit: cover; flex: none; }
.erow div { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.erow div span { color: var(--muted); font-size: 14px; }
.erow .act { flex: none; padding: 0 12px; }

.linkcode, .linkbox code { font-size: 13.5px; background: var(--bg); padding: 10px 12px; border-radius: 10px; word-break: break-all; }
.pfoto { display: flex; align-items: center; gap: 16px; }
.pfoto img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: var(--bg-2); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.sw { position: relative; width: 48px; height: 48px; cursor: pointer; }
.sw input[type=radio] { position: absolute; opacity: 0; inset: 0; }
.sw span:not(.sr-only) { display: block; width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--surface); box-shadow: 0 0 0 1.5px var(--line); transition: box-shadow .15s; }
.sw input:checked + span { box-shadow: 0 0 0 3px var(--ink); }
.sw input:focus-visible + span { outline: 3px solid rgba(var(--accent-rgb), .5); outline-offset: 2px; }
.sw--custom input { width: 48px; height: 48px; border: 0; padding: 0; border-radius: 50%; background: none; cursor: pointer; }
.sw--custom input::-webkit-color-swatch-wrapper { padding: 0; }
.sw--custom input::-webkit-color-swatch { border-radius: 50%; border: 3px dashed var(--line); }

/* Login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login__box { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 16px; }
.login__box h1 { font-size: 28px; font-weight: 800; }
.login__sub { color: var(--muted); margin-top: -8px; }
.login__back { text-align: center; color: var(--muted); font-weight: 600; padding: 10px; }
.who { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.who legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.who__opt { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1.5px solid var(--line); border-radius: 14px; cursor: pointer; min-height: 60px; font-weight: 700; transition: border-color .15s, background .15s; }
.who__opt img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; }
.who__opt input { width: 20px; height: 20px; accent-color: var(--accent); }
.who__opt:has(input:checked) { border-color: var(--accent); background: rgba(var(--accent-rgb), .06); }

/* =========================================================================
   VERSIÓN FINAL · identidad Auto Ya, planes reales, videos, panel ampliado
   ========================================================================= */
/* Header y footer con logo */
.brand { gap: 12px; }
.brand__logo { height: 34px; width: auto; flex: none; }
.brand__txt { padding-left: 12px; border-left: 1.5px solid var(--line); }
@media (max-width: 389px) { .brand__txt { display: none; } }
.ftr__brand { display: flex; align-items: center; gap: 14px; }
.ftr__logo { height: 40px; width: auto; flex: none; }
.ftr__brand p { line-height: 1.35; }

/* Planes */
.req { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--r); background: rgba(var(--accent-rgb), .06);
  border: 1px solid rgba(var(--accent-rgb), .22); margin-bottom: 20px; }
.req__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #fff; flex: none; }
.req h3 { font-size: 17px; margin-bottom: 4px; }
.req p { color: var(--ink-2); font-size: 15px; }
.plans { grid-template-columns: 1fr; }
@media (min-width: 560px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(4, 1fr); } .plans--3 { grid-template-columns: repeat(3, 1fr); } }
.plan__unit { font-size: 14px; }
.plan__name { font-size: 17px; }
.plan__price { font-family: var(--f-head); font-weight: 700; font-size: 16px; color: var(--ink); }
.plan__txt { font-size: 14px; }
.calc { margin-top: 24px; padding: 22px 18px; border-radius: 22px; background: var(--ink); color: #fff; display: flex; flex-direction: column; gap: 16px; }
.calc h3 { font-size: 22px; }
.calc p { color: rgba(255, 255, 255, .8); margin-top: 6px; }
@media (min-width: 900px) { .calc { flex-direction: row; align-items: center; justify-content: space-between; padding: 28px 32px; } .calc > div { max-width: 620px; } }
.steps { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.step { border-bottom-color: var(--line); }
.step p { color: var(--muted); }
.faq { margin-top: 28px; }
.faq__t { font-size: 22px; margin-bottom: 12px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 2px; font-weight: 700; font-size: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ico { transition: transform .2s var(--ease); flex: none; color: var(--accent); }
.faq__item[open] summary .ico { transform: rotate(180deg); }
.faq__item p { padding: 0 2px 16px; color: var(--ink-2); }

/* Catálogo: ver más */
.more { display: flex; justify-content: center; margin-top: 22px; }
.more:empty { display: none; }

/* Entregas con video */
.ent__media { position: relative; }
.ent__play { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px; background: rgba(20, 22, 26, .82); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; }
.ent__play .ico { width: 16px; height: 16px; }

/* Videos (lite embed) */
.sec--vids { padding-top: 8px; background: var(--bg-2); }
.sec--ent + .sec--vids { padding-top: 0; }
.shorts { grid-auto-columns: 58%; }
@media (min-width: 600px) { .shorts { grid-auto-columns: 30%; } }
@media (min-width: 900px) { .shorts { grid-auto-columns: calc((100% - 56px - 56px) / 5); } }
.vgrid { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 700px) { .vgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .vgrid { grid-template-columns: repeat(3, 1fr); } }
.vid { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); scroll-snap-align: start; display: flex; flex-direction: column; }
.vid__facade, .vid__frame { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; background: #000; cursor: pointer; }
.vid--short .vid__facade, .vid--short .vid__frame { aspect-ratio: 9 / 16; }
.vid__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .92; transition: opacity .2s; }
.vid__facade:hover img { opacity: 1; }
.vid__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%;
  background: rgba(var(--accent-rgb), .95); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .2s var(--ease); }
.vid__play .ico { width: 28px; height: 28px; margin-left: 3px; }
.vid__facade:hover .vid__play { transform: translate(-50%, -50%) scale(1.08); }
.vid__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vid figcaption { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 2px; }
.vid figcaption strong { font-family: var(--f-head); font-size: 16px; }
.vid figcaption span { font-size: 14px; color: var(--muted); }
.vmodal { position: fixed; inset: 0; z-index: 95; background: rgba(5, 6, 8, .92); display: grid; place-items: center; padding: 56px 12px 16px; }
.vmodal__close { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.vmodal__box { width: 100%; max-width: 960px; aspect-ratio: 16 / 9; }
.vmodal__box--short { max-width: min(420px, calc((100vh - 90px) * 9 / 16)); aspect-ratio: 9 / 16; }
.vmodal__box iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }

/* Contacto */
.cta__who { color: rgba(255, 255, 255, .85); font-size: 15px; }
.cta__who strong { color: #fff; }
.cta__small { color: rgba(255, 255, 255, .75); }

/* Directorio */
.dir__logo { height: 70px; width: auto; margin-bottom: 18px; }

/* ---------- Panel ---------- */
.pnl__tabs a { font-size: 11.5px; min-width: 0; padding: 0 2px; }
.pnl__tabs a span { white-space: nowrap; }
.login__logo { height: 60px; width: auto; align-self: flex-start; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.dash-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 10px; text-decoration: none; display: flex; flex-direction: column; gap: 2px; }
.stat b { font-family: var(--f-head); font-size: 28px; line-height: 1; color: var(--accent); }
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; line-height: 1.25; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-btn { min-height: 104px; border-radius: var(--r); background: var(--surface); border: 1.5px solid var(--line); text-decoration: none;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; padding: 16px; font-weight: 800; font-size: 17px; font-family: var(--f-head);
  transition: transform .15s var(--ease), border-color .2s; }
.dash-btn:active { transform: scale(.98); }
.dash-btn .ico { width: 28px; height: 28px; color: var(--accent); }
.dash-btn--main { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 12px 26px -12px rgba(var(--accent-rgb), .8); }
.dash-btn--main .ico { color: #fff; }
.dash-links { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.dash-links a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; text-decoration: none; font-weight: 700; border-bottom: 1px solid var(--line); }
.dash-links a:last-child { border-bottom: 0; }
.dash-links a span { flex: 1; }
.dash-links a .ico:first-child { color: var(--accent); }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border-radius: var(--r-sm); background: #EFF6FF; color: #1E3A8A; font-size: 14.5px; }
.notice .ico { flex: none; margin-top: 2px; }
.progress { height: 8px; border-radius: 999px; background: rgba(var(--accent-rgb), .15); overflow: hidden; margin-bottom: 8px; }
.progress[hidden] { display: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .2s; }
.search--pnl input { min-height: 52px; }
.vrow[hidden] { display: none; }
.plist { display: flex; flex-direction: column; gap: 16px; }
.plan-ed.is-hidden { opacity: .7; border-style: dashed; }
.plan-ed__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-ed__head small { font-weight: 600; color: var(--muted); font-size: 14px; }
.plan-ed__acts { display: flex; gap: 6px; }
.row2--plan { grid-template-columns: 90px 1fr; }
.vprev { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg); border-radius: var(--r-sm); font-weight: 700; }
.vprev[hidden] { display: none; }
.vprev img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.yrow img { width: 96px; height: 72px; }
.yrow__acts { display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 560px) { .yrow__acts { flex-direction: row; } }
.elist.is-busy { opacity: .5; pointer-events: none; }
/* Al enfocar o desplazarse a un campo, que nunca quede tapado por el header o la barra de pestañas */
.pnl button, .pnl a, .pnl input, .pnl select, .pnl textarea, .pnl .field { scroll-margin-top: 84px; scroll-margin-bottom: 104px; }
