:root{--bg:#070a0b;--panel:#0d1214;--ink:#f5f7f1;--muted:#a8b0b2;--line:rgba(245,247,241,.12);--lime:#9fcc3b;--cyan:#0dd3e8;--radius:18px;--shadow:0 24px 80px rgba(0,0,0,.28)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,Arial,sans-serif;line-height:1.45}a{color:inherit;text-decoration:none}button,input{font:inherit}.topbar{position:sticky;top:0;z-index:20;width:min(1180px,calc(100% - 28px));margin:12px auto 0;padding:12px 14px;border:1px solid var(--line);border-radius:18px;background:rgba(7,10,11,.84);backdrop-filter:blur(18px);display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{font-size:26px;font-weight:950;letter-spacing:-.06em;color:var(--cyan)}.brand span{color:var(--lime)}nav{display:flex;align-items:center;gap:18px;color:var(--muted);font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.04em}nav form{margin:0}.nav-pill{border:1px solid rgba(159,204,59,.34);background:rgba(159,204,59,.08);color:var(--ink);border-radius:999px;padding:10px 14px}.hero,.section,.cta-band,.calculator-shell,.admin-shell{width:min(1180px,calc(100% - 28px));margin:0 auto}.hero{min-height:calc(100vh - 86px);display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:42px;align-items:center;padding:80px 0 54px}.eyebrow{margin:0 0 14px;color:var(--lime);font-size:12px;font-weight:950;text-transform:uppercase;letter-spacing:.16em}.hero h1,.calc-title h1,.admin-head h1{font-size:clamp(42px,7vw,92px);line-height:.95;letter-spacing:-.055em;margin:0}.lede,.section-head p,.split p,.cta-band p,.calc-title p,.admin-head p{color:var(--muted);font-size:18px;max-width:680px}.hero-actions,.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}.btn{min-height:46px;border:0;border-radius:999px;padding:0 20px;display:inline-flex;align-items:center;justify-content:center;font-weight:950;cursor:pointer}.btn.primary{background:var(--lime);color:#101508;box-shadow:0 12px 34px rgba(159,204,59,.22)}.btn.ghost{background:rgba(245,247,241,.06);color:var(--ink);border:1px solid var(--line)}.hero-panel{padding:20px;border:1px solid var(--line);border-radius:28px;background:linear-gradient(145deg,rgba(13,211,232,.08),rgba(159,204,59,.04));box-shadow:var(--shadow)}.court-visual{aspect-ratio:1/1.15;border:2px solid rgba(245,247,241,.22);border-radius:26px;position:relative;overflow:hidden;background:radial-gradient(circle at 30% 20%,rgba(159,204,59,.24),transparent 35%),linear-gradient(135deg,#101719,#070a0b)}.court-visual:before{content:"";position:absolute;inset:10%;border:2px solid rgba(245,247,241,.18);border-radius:18px}.line{position:absolute;background:rgba(245,247,241,.18)}.l1{left:50%;top:10%;bottom:10%;width:2px}.l2{left:10%;right:10%;top:50%;height:2px}.l3{left:18%;right:18%;top:30%;height:2px}.pin{position:absolute;width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--lime);color:#101508;font-weight:950;box-shadow:0 0 0 12px rgba(159,204,59,.12)}.p1{left:18%;top:18%}.p2{right:20%;top:46%}.p3{left:43%;bottom:17%;background:var(--cyan)}.hero-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:14px}.hero-kpis div,.logic-grid article,.format-grid article,.summary-card,.panel,.club-list,.admin-section,.login-box{border:1px solid var(--line);border-radius:var(--radius);background:rgba(245,247,241,.035)}.hero-kpis div{padding:14px}.hero-kpis strong{display:block;font-size:30px}.hero-kpis span,.format-foot span,.asset-meta,.summary-lines span{color:var(--muted);font-size:13px}.section{padding:72px 0}.section-head{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:26px}.section-head h2,.split h2,.cta-band h2{font-size:clamp(32px,4vw,58px);line-height:1;letter-spacing:-.04em;margin:0}.logic-grid,.format-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.logic-grid article,.format-grid article{padding:24px}.logic-grid span,.format-grid small{color:var(--cyan);font-weight:950}.logic-grid h3,.format-grid h3{font-size:24px;margin:14px 0 8px}.logic-grid p,.format-grid p{color:var(--muted);margin:0}.split{display:grid;grid-template-columns:.85fr 1.15fr;gap:36px;align-items:start}.club-list{display:grid;grid-template-columns:repeat(2,1fr);gap:0;overflow:hidden}.club-list div{display:flex;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid var(--line)}.club-list strong{color:var(--lime);white-space:nowrap}.format-grid{grid-template-columns:repeat(4,1fr)}.format-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px}.format-foot strong{font-size:19px}.cta-band{margin-bottom:70px;padding:34px;border:1px solid rgba(159,204,59,.28);border-radius:28px;background:linear-gradient(135deg,rgba(159,204,59,.16),rgba(13,211,232,.07));display:flex;align-items:center;justify-content:space-between;gap:28px}.calc-title{padding:66px 0 28px}.calc-layout{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:18px;align-items:start;padding-bottom:70px}.panel,.summary-card{padding:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;border-bottom:1px solid var(--line);padding-bottom:18px}.panel-head h2{font-size:30px;margin:0}.asset-list{display:grid;gap:10px;margin-top:16px}.asset{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;padding:16px;border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025)}.asset.active{border-color:rgba(13,211,232,.42);background:linear-gradient(90deg,rgba(13,211,232,.09),rgba(159,204,59,.04))}.toggle{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);background:transparent;cursor:pointer}.asset.active .toggle{background:var(--lime);border-color:var(--lime)}.asset h3{margin:0;font-size:18px}.asset-meta{display:flex;gap:10px;flex-wrap:wrap}.counter{display:flex;align-items:center;gap:8px}.counter button{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:rgba(255,255,255,.04);color:var(--ink);font-weight:950}.counter strong{min-width:42px;text-align:center}.summary-card{position:sticky;top:92px}.final-price{display:block;font-size:48px;line-height:1;margin:4px 0 12px;letter-spacing:-.05em}.tier-badge{display:inline-flex;border:1px solid var(--line);border-radius:999px;padding:8px 12px;color:var(--muted);font-weight:850}.tier-badge.main{background:var(--lime);color:#101508}.summary-lines{margin-top:20px}.summary-lines div{display:flex;justify-content:space-between;gap:18px;padding:13px 0;border-bottom:1px solid var(--line)}.next-tier{margin-top:14px;color:var(--muted);font-size:14px}.toast{position:fixed;left:50%;bottom:26px;transform:translate(-50%,18px);opacity:0;pointer-events:none;background:var(--lime);color:#101508;padding:12px 18px;border-radius:999px;font-weight:950;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.admin-page{background:#f4f6f1;color:#1c2325}.admin-page .topbar{background:rgba(244,246,241,.9);color:#1c2325}.admin-shell{padding:50px 0}.admin-head{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:24px}.admin-section,.login-box{background:#fff;color:#1c2325;padding:24px;margin-bottom:18px;box-shadow:0 16px 50px rgba(0,0,0,.06);border-color:#dde2d9}.admin-section h2{margin-top:0}.admin-grid{display:grid;gap:12px}.admin-grid.two{grid-template-columns:repeat(2,1fr)}.admin-grid.four{grid-template-columns:120px 120px 1fr 180px}.admin-table{display:grid;gap:10px}.admin-row,.tier-editor{display:grid;gap:10px;align-items:center}.club-row{grid-template-columns:100px 1fr 120px}.tier-editor{grid-template-columns:1fr 160px 90px 1.4fr 90px;padding:12px;border:1px solid #dde2d9;border-radius:12px}label{display:grid;gap:6px;font-size:13px;font-weight:800;color:#536064}.check{display:flex;align-items:center;gap:8px}input{width:100%;border:1px solid #d7ddd2;border-radius:10px;padding:11px;background:#fff;color:#1c2325}.format-editor{border:1px solid #dde2d9;border-radius:14px;padding:14px;margin:12px 0}.format-editor summary{cursor:pointer;display:flex;justify-content:space-between;gap:16px}.inventory-grid{display:grid;grid-template-columns:1fr 130px 130px;gap:8px;align-items:center;margin-top:16px}.sticky-save{position:sticky;bottom:12px;padding:12px;border-radius:999px;background:rgba(255,255,255,.78);backdrop-filter:blur(16px);display:flex;justify-content:flex-end}.save-msg{background:#d9f8bc;color:#234200;padding:10px 14px;border-radius:999px}.login-box{width:min(420px,calc(100% - 28px));margin:90px auto}.login-box h1{font-size:34px;line-height:1;margin:24px 0}.login-box form{display:grid;gap:12px}@media(max-width:980px){.hero,.split,.calc-layout{grid-template-columns:1fr}.hero{padding-top:56px}.format-grid{grid-template-columns:repeat(2,1fr)}.summary-card{position:static}.section-head{display:block}.admin-grid.four,.tier-editor{grid-template-columns:1fr 1fr}.club-row{grid-template-columns:92px 1fr 100px}}@media(max-width:640px){.topbar{width:calc(100% - 16px);border-radius:14px}.brand{font-size:22px}nav{gap:10px;font-size:11px}.topbar nav a:not(.nav-pill){display:none}.hero,.section,.cta-band,.calculator-shell,.admin-shell{width:calc(100% - 16px)}.hero{min-height:auto;padding:42px 0}.hero h1,.calc-title h1,.admin-head h1{font-size:42px}.lede,.calc-title p{font-size:16px}.hero-kpis,.logic-grid,.format-grid,.club-list,.admin-grid.two{grid-template-columns:1fr}.cta-band{display:block;padding:24px}.cta-band .btn{margin-top:20px;width:100%}.asset{grid-template-columns:auto 1fr}.counter{grid-column:1/-1;justify-content:space-between}.panel,.summary-card{padding:16px}.final-price{font-size:40px}.admin-head{display:block}.admin-grid.four,.tier-editor,.club-row,.inventory-grid{grid-template-columns:1fr}.sticky-save .btn{width:100%}}
.calculator-teaser {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto 26px;
  padding: 30px;
  border: 1px solid rgba(13, 211, 232, .28);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(13, 211, 232, .12), rgba(159, 204, 59, .06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.calculator-teaser h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -.04em;
  margin: 0;
}
.calculator-teaser p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
  max-width: 680px;
}
@media(max-width:640px) {
  .calculator-teaser {
    width: calc(100% - 16px);
    display: block;
    padding: 24px;
  }
  .calculator-teaser .btn {
    width: 100%;
    margin-top: 18px;
  }
}

/* Ajustes cliente calculadora */
.calc-title.compact {
  padding-top: 46px;
}
.calc-title.compact h1 {
  font-size: clamp(38px, 5.4vw, 70px);
  max-width: 900px;
}
.client-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 15px;
}
.asset {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
}
.format-total {
  min-width: 116px;
  text-align: right;
  font-size: 18px;
}
.asset:not(.active) .format-total {
  color: var(--muted);
  font-weight: 800;
}
.client-summary .summary-lines div:nth-child(5),
.client-summary .summary-lines div:nth-child(6) {
  color: rgba(245,247,241,.72);
}
@media(max-width:640px) {
  .calc-title.compact { padding-top: 34px; }
  .asset { grid-template-columns: auto 1fr; }
  .format-total {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    text-align: left;
    padding-left: 48px;
  }
}


/* Ajustes calculadora: una columna, carrito, preview y mobile */
.calculator-shell.calculator-single { max-width: 1040px; }
.calc-layout.single-column { grid-template-columns: 1fr; gap: 18px; }
.calc-layout.single-column .summary-card { position: static; }
.summary-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.asset-info { position: relative; min-width: 0; }
.asset-name-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.preview-btn { border: 1px solid rgba(13,211,232,.28); background: rgba(13,211,232,.06); color: #bceff5; border-radius: 999px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 850; cursor: pointer; white-space: nowrap; }
.preview-btn:hover { background: rgba(13,211,232,.14); border-color: rgba(13,211,232,.48); color: #fff; }
.preview-icon { width: 13px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; display: inline-block; position: relative; }
.preview-icon:before { content: ""; position: absolute; width: 3px; height: 3px; border-radius: 50%; background: currentColor; right: 1.5px; top: 1.5px; }
.preview-icon:after { content: ""; position: absolute; width: 7px; height: 4px; border-left: 1.5px solid currentColor; border-top: 1.5px solid currentColor; transform: rotate(45deg); left: 1px; bottom: -1px; }
.hover-preview { position: fixed; z-index: 80; width: 330px; padding: 8px; border: 1px solid var(--line); border-radius: 15px; background: #0b1017; box-shadow: 0 22px 60px rgba(0,0,0,.48); opacity: 0; visibility: hidden; transform: translateY(5px); transition: opacity .12s ease, transform .12s ease; pointer-events: none; }
.hover-preview.show { opacity: 1; visibility: visible; transform: translateY(0); }
.hover-preview img { display: block; width: 100%; height: 205px; object-fit: cover; border-radius: 10px; background: #05080c; }
.hover-preview .hp-cap { padding: 9px 5px 3px; color: #dce5ed; font-size: 13px; font-weight: 800; }
.hover-preview .hp-sub { padding: 0 5px 4px; color: var(--muted); font-size: 11px; }
.image-modal { position: fixed; inset: 0; z-index: 120; background: rgba(2,5,8,.84); display: none; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(7px); }
.image-modal.show { display: flex; }
.image-dialog { width: min(980px,100%); max-height: 90vh; overflow: auto; border: 1px solid var(--line); background: #0c121a; border-radius: 20px; padding: 20px; box-shadow: 0 28px 90px rgba(0,0,0,.6); }
.image-dialog-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 16px; }
.image-dialog-head h3 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.image-dialog-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.modal-close { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: #dce5ed; cursor: pointer; font-size: 22px; line-height: 1; }
.image-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.image-gallery img { width: 100%; height: 330px; object-fit: cover; display: block; border-radius: 13px; border: 1px solid var(--line); background: #05080c; }
.cart-mini { margin-bottom: 20px; padding: 17px; border: 1px solid rgba(255,255,255,.08); border-radius: 14px; background: rgba(6,10,15,.55); }
.cart-mini-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.cart-mini-title { font-size: 14px; font-weight: 900; color: #fff; }
.cart-mini-count { font-size: 12px; color: var(--muted); }
.cart-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 20px; }
.cart-item { display: grid; grid-template-columns: 46px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid rgba(255,255,255,.055); }
.cart-item:nth-child(-n+2) { border-top: 0; padding-top: 0; }
.cart-thumb { width: 46px; height: 42px; border-radius: 8px; object-fit: cover; background: #070b10; border: 1px solid var(--line); }
.cart-name { font-size: 13px; font-weight: 800; line-height: 1.2; color: #e9eef4; }
.cart-detail { font-size: 11px; color: var(--muted); margin-top: 3px; }
.cart-subtotal { font-size: 13px; font-weight: 900; color: #fff; white-space: nowrap; }
.cart-empty { color: var(--muted); font-size: 13px; padding: 3px 0; }
.promo-progress { margin-top: 16px; padding: 16px; border: 1px solid rgba(159,204,59,.22); border-radius: 14px; background: rgba(159,204,59,.055); }
.promo-progress-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.progress-track { height: 8px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,.08); margin: 12px 0 8px; }
.progress-track span { display: block; height: 100%; width: 0; background: linear-gradient(90deg,var(--cyan),var(--lime)); border-radius: inherit; transition: width .28s ease; }
.promo-progress p { margin: 0; color: var(--muted); font-size: 13px; }
.mobile-cart-bar { display: none; }

@media(max-width:860px) {
  .calc-page { padding-bottom: 76px; }
  .mobile-cart-bar { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 95; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 14px; background: rgba(10,15,22,.96); box-shadow: 0 14px 45px rgba(0,0,0,.45); backdrop-filter: blur(12px); }
  .mobile-cart-bar div { display: flex; flex-direction: column; min-width: 0; }
  .mobile-cart-bar strong { font-size: 11px; color: var(--muted); }
  .mobile-cart-bar span { font-size: 18px; font-weight: 950; color: #fff; line-height: 1.1; }
  .mobile-cart-bar button { border: 0; border-radius: 10px; background: var(--lime); color: #0c1107; font-weight: 900; padding: 10px 12px; cursor: pointer; white-space: nowrap; }
}
@media(max-width:640px) {
  .summary-topline { display: block; }
  .asset { grid-template-columns: auto 1fr; gap: 12px; }
  .counter { grid-column: 2; justify-content: flex-start; }
  .format-total { grid-column: 2; padding-left: 0; text-align: left; }
  .cart-list { grid-template-columns: 1fr; }
  .cart-item:nth-child(2) { border-top: 1px solid rgba(255,255,255,.055); padding-top: 8px; }
  .cart-item { grid-template-columns: 42px minmax(0,1fr); }
  .cart-thumb { width: 42px; height: 40px; }
  .cart-subtotal { grid-column: 2; font-size: 13px; margin-top: -2px; }
  .image-modal { padding: 10px; }
  .image-dialog { border-radius: 16px; padding: 13px; }
  .image-gallery { grid-template-columns: 1fr; }
  .image-gallery img { height: auto; max-height: 58vh; object-fit: contain; }
  .actions .btn { min-height: 44px; }
  .hero-actions .btn[href*="wa.me"], .cta-band .btn[href*="wa.me"] { width: auto; min-width: 0; padding-inline: 16px; }
}


/* Limpieza calculadora + barra de descuentos acumulativa */
.calc-layout.single-column .panel-head { margin-bottom: 4px; }
.asset-list { gap: 12px; }
.asset { min-height: 94px; }
.asset-meta { gap: 8px; }
.asset-meta span:not(:first-child) { color: #c8d7dc; }
.asset-name-line h3 { line-height: 1.12; }
.format-total:empty { display: none; }
.promo-progress { margin-top: 18px; padding: 18px 18px 16px; }
.progress-track { position: relative; height: 12px; overflow: visible; margin: 18px 0 30px; }
.progress-track > span { min-width: 0; }
.progress-markers { position: absolute; inset: 0; pointer-events: none; }
.progress-marker { position: absolute; top: -6px; transform: translateX(-50%); height: 24px; display: grid; place-items: center; }
.progress-marker i { width: 2px; height: 24px; border-radius: 999px; background: rgba(245,247,241,.42); box-shadow: 0 0 0 4px rgba(7,10,11,.88); }
.progress-marker b { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); white-space: nowrap; color: var(--muted); font-size: 11px; font-weight: 900; }
.progress-marker.reached i { background: var(--lime); }
.progress-marker.reached b { color: var(--ink); }
.progress-marker.main i { width: 24px; height: 24px; border-radius: 50%; background: #182022; border: 1px solid rgba(159,204,59,.45); box-shadow: 0 0 0 5px rgba(159,204,59,.08); }
.progress-marker.main i:before { content: "★"; display: grid; place-items: center; width: 100%; height: 100%; color: var(--lime); font-size: 13px; line-height: 1; }
.progress-marker.main.reached i { background: var(--lime); border-color: var(--lime); }
.progress-marker.main.reached i:before { color: #101508; }
@media(max-width:640px) {
  .asset { min-height: 0; }
  .asset-meta { font-size: 12px; }
  .progress-marker b { font-size: 10px; }
  .progress-marker:first-child b { transform: translateX(-20%); }
  .progress-marker:last-child b { transform: translateX(-82%); }
}


/* Marcador principal: solo estrella, sin línea vertical */
.progress-marker.main {
  top: -10px;
}
.progress-marker.main i {
  width: auto;
  height: auto;
  border: 0;
  background: transparent !important;
  box-shadow: none;
}
.progress-marker.main i:before {
  content: "★";
  width: auto;
  height: auto;
  color: var(--lime);
  font-size: 16px;
  line-height: 1;
}
.progress-marker.main.reached i {
  background: transparent !important;
  border: 0;
}
.progress-marker.main.reached i:before {
  color: var(--lime);
}
.progress-marker.main b {
  top: 24px;
}

/* Ajustes finales calculadora: descuento + estrella limpia */
.progress-marker.main b {
  font-size: 0 !important;
  line-height: 0 !important;
}
.progress-marker.main b::before {
  content: "★";
  display: block;
  color: var(--lime);
  font-size: 14px;
  line-height: 1;
}
.progress-marker.main i,
.progress-marker.main i::before {
  display: none !important;
}
.tier-badge.main {
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 0;
}
.tier-badge.main::before {
  content: "★";
  font-size: 18px;
}

