:root {
  --bg: #f6fbfb;
  --panel: #ffffff;
  --ink: #11212a;
  --muted: #65737c;
  --line: #d9e7e5;
  --primary: #0f766e;
  --primary-2: #0ea5a4;
  --deep: #0b2533;
  --gold: #f4b942;
  --coral: #ff6b6b;
  --ok: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;
  --shadow: 0 18px 45px rgba(10, 37, 51, .10);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #e4fbf8 0, transparent 34rem), var(--bg);
  color: var(--ink);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217,231,229,.72);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 40px; height: 40px; }
.topnav { display: flex; align-items: center; gap: 14px; color: var(--deep); font-weight: 700; }
.btn, button, input[type="submit"] {
  border: 0; cursor: pointer; border-radius: 999px; padding: 12px 18px; font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.btn:hover, button:hover, input[type="submit"]:hover { transform: translateY(-1px); }
.btn-primary, button.primary, input[type="submit"] { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; box-shadow: 0 10px 24px rgba(15,118,110,.22); }
.btn-ghost { background: #eef8f7; color: var(--primary); }
.btn-dark { background: var(--deep); color: #fff; }
.btn-light { background: #fff; color: var(--deep); }
.btn-mini { padding: 8px 12px; font-size: .88rem; }
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(290px, .95fr); gap: 36px;
  align-items: center; padding: 58px clamp(18px, 5vw, 70px) 42px;
}
.hero h1 { font-size: clamp(2.25rem, 5vw, 5rem); line-height: .98; letter-spacing: -.06em; margin: 0 0 20px; }
.hero p { font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.7; color: var(--muted); margin: 0 0 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.kicker { display: inline-flex; gap: 8px; align-items: center; padding: 8px 13px; border-radius: 999px; background: #e8fbf8; color: var(--primary); font-weight: 900; margin-bottom: 18px; }
.phone-card {
  position: relative; border-radius: 42px; padding: 18px; background: linear-gradient(145deg,#0b2533,#143d4e); box-shadow: var(--shadow);
}
.phone-screen { border-radius: 32px; background: #f7fffe; overflow: hidden; border: 1px solid rgba(255,255,255,.28); }
.app-hero-top { background: linear-gradient(135deg, var(--primary), #12b0a3); color: #fff; padding: 22px; }
.app-hero-top h3 { margin: 8px 0 4px; font-size: 1.45rem; }
.avatar-row { display: flex; margin-top: 14px; }
.avatar-row span { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; margin-left: -7px; background: var(--gold); display: inline-block; }
.avatar-row span:nth-child(2) { background: var(--coral); }
.avatar-row span:nth-child(3) { background: #60a5fa; }
.avatar-row span:first-child { margin-left: 0; }
.phone-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.phone-tile { background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 8px 20px rgba(10,37,51,.07); }
.phone-tile strong { display:block; font-size: 1.3rem; color: var(--primary); }
.section { padding: 36px clamp(18px, 5vw, 70px); }
.section-head { max-width: 860px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 3rem); letter-spacing: -.04em; margin: 0 0 12px; }
.section-head p { color: var(--muted); line-height: 1.7; margin: 0; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: rgba(255,255,255,.92); border: 1px solid rgba(217,231,229,.9); border-radius: var(--radius); padding: 22px; box-shadow: 0 10px 30px rgba(10,37,51,.06);
}
.card h3 { margin: 0 0 10px; letter-spacing: -.02em; }
.card p { color: var(--muted); line-height: 1.65; }
.feature-icon { width: 46px; height: 46px; border-radius: 16px; background: #e8fbf8; display: grid; place-items: center; margin-bottom: 14px; font-size: 1.3rem; }
.image-card { overflow: hidden; padding: 0; }
.image-card img { width: 100%; height: 180px; object-fit: cover; }
.image-card .card-body { padding: 18px; }
.slider { display: flex; gap: 18px; overflow-x: auto; padding: 8px 0 18px; scroll-snap-type: x mandatory; }
.plan-card { flex: 0 0 min(330px, 85vw); scroll-snap-align: start; border: 2px solid transparent; }
.plan-card.selected { border-color: var(--primary); box-shadow: 0 18px 45px rgba(15,118,110,.18); }
.price { font-size: 2rem; font-weight: 900; color: var(--primary); letter-spacing: -.04em; }
.price small { font-size: .9rem; color: var(--muted); }
.app-shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 24px clamp(14px, 3vw, 38px) 94px; }
.sidebar { position: sticky; top: 86px; align-self: start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: 0 10px 30px rgba(10,37,51,.05); }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 16px; color: var(--deep); font-weight: 800; }
.sidebar a:hover { background: #eef8f7; color: var(--primary); }
.app-main { min-width: 0; }
.app-nav { position: fixed; bottom: 12px; left: 12px; right: 12px; z-index: 70; display: none; grid-template-columns: repeat(5,1fr); gap: 6px; padding: 8px; background: rgba(255,255,255,.92); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.app-nav a { text-align: center; font-weight: 800; font-size: .76rem; color: var(--muted); padding: 8px 2px; }
.app-nav span { display: block; margin-top: 2px; }
.stat-grid { display:grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap:16px; }
.stat { background: linear-gradient(145deg,#fff,#f1fbfa); border: 1px solid var(--line); border-radius: 22px; padding: 18px; }
.stat b { display:block; font-size: 1.9rem; color: var(--deep); letter-spacing: -.04em; }
.stat small { color: var(--muted); font-weight: 800; }
.progress { height: 14px; background: #e6f1ef; border-radius: 999px; overflow: hidden; }
.progress > span { display:block; height:100%; background: linear-gradient(90deg,var(--primary),var(--gold)); border-radius:999px; }
.badge { display:inline-flex; align-items:center; gap:6px; padding:6px 10px; border-radius:999px; font-size:.82rem; font-weight:900; background:#eef8f7; color:var(--primary); }
.badge.success { background:#dcfce7; color:#166534; }
.badge.warning { background:#fef3c7; color:#92400e; }
.badge.danger { background:#fee2e2; color:#991b1b; }
.badge.neutral { background:#eef2f7; color:#475569; }
.form-card { max-width: 980px; margin: 24px auto; }
form .row { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
label { font-weight: 850; color: var(--deep); }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 16px; padding: 13px 14px; margin: 7px 0 14px;
  font: inherit; background: #fff; color: var(--ink); outline: none;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15,118,110,.10); }
.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 10px 0 18px; }
.check-pill { display: flex; gap: 8px; align-items: center; padding: 11px; border:1px solid var(--line); border-radius: 16px; background:#fff; }
.check-pill input { width:auto; margin:0; }
.table-wrap { overflow:auto; border:1px solid var(--line); border-radius:22px; background:#fff; }
table { border-collapse: collapse; width: 100%; min-width: 760px; }
th, td { padding: 14px; text-align:left; border-bottom:1px solid var(--line); vertical-align: top; }
th { font-size:.78rem; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); background:#f6fbfb; }
.actions { display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.flash { margin: 14px clamp(18px, 5vw, 70px); padding: 13px 16px; border-radius: 16px; font-weight:800; }
.flash.success { background:#dcfce7; color:#166534; }
.flash.warning { background:#fef3c7; color:#92400e; }
.flash.danger { background:#fee2e2; color:#991b1b; }
.notice { background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; border-radius:18px; padding:14px; line-height:1.6; }
.footer { margin-top: 42px; padding: 30px clamp(18px, 5vw, 70px); background: var(--deep); color: #dff7f4; display:flex; flex-wrap:wrap; gap:24px; justify-content:space-between; align-items:flex-start; }
.footer-links { display:flex; flex-wrap:wrap; gap:14px; font-weight:800; }
.legal { max-width: 980px; margin: 0 auto; }
.legal p, .legal li { color: var(--muted); line-height: 1.75; }
.timeline { display:grid; gap:12px; }
.timeline-item { display:grid; grid-template-columns: 46px 1fr; gap:12px; align-items:start; }
.timeline-dot { width:42px; height:42px; border-radius:16px; display:grid; place-items:center; background:#e8fbf8; color:var(--primary); font-weight:900; }
.message-bubble { border-radius: 20px; padding: 14px; margin-bottom: 12px; background: #eef8f7; }
.message-bubble.mine { background: #0f766e; color:#fff; margin-left: auto; max-width: 76%; }
.message-bubble.other { max-width: 76%; }
@media (max-width: 980px) {
  .hero, .grid-2, .grid-3, .grid-4, .app-shell, .stat-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .app-nav { display: grid; }
  .topnav a:not(.btn) { display:none; }
  .hero { padding-top: 36px; }
  form .row, .check-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .topbar { padding: 10px 12px; }
  .brand span { font-size: .92rem; }
  .btn, button, input[type="submit"] { padding: 10px 13px; }
  .card { padding: 18px; }
}


/* Flat-file cPanel version refinements */
body{background:linear-gradient(180deg,#f8fafc 0%,#ecfeff 50%,#ffffff 100%)}
.main{min-height:calc(100vh - 160px)}
.hero{position:relative;overflow:hidden}.hero:before{content:"";position:absolute;inset:auto -10% -40% 45%;height:340px;background:radial-gradient(circle,#99f6e4 0%,transparent 70%);opacity:.75}.hero>*{position:relative}
.phone-frame{border:1px solid rgba(15,118,110,.15);border-radius:34px;background:#fff;box-shadow:0 30px 80px rgba(15,23,42,.18);padding:16px;max-width:360px}.phone-screen{border-radius:24px;background:linear-gradient(160deg,#0f766e,#2563eb);padding:18px;color:#fff}.mini-card{background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.25);border-radius:18px;padding:14px;margin-top:12px}.mini-card strong{display:block;font-size:22px}.section-title{display:flex;align-items:end;justify-content:space-between;gap:18px;margin:34px 0 18px}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:22px}.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.grid-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}.card-img{width:100%;border-radius:18px;background:#f1f5f9;aspect-ratio:16/10;object-fit:cover}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.form-grid .full{grid-column:1/-1}.check-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.check-card{display:flex;gap:8px;align-items:center;padding:11px 12px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.stat{background:#fff;border:1px solid #e2e8f0;border-radius:20px;padding:18px;box-shadow:0 12px 36px rgba(15,23,42,.06)}.stat b{display:block;font-size:28px;color:#0f766e}.progress{height:12px;border-radius:999px;background:#e2e8f0;overflow:hidden}.progress span{display:block;height:100%;background:linear-gradient(90deg,#0f766e,#38bdf8);border-radius:999px}.slider{display:flex;overflow-x:auto;gap:16px;padding-bottom:12px;scroll-snap-type:x mandatory}.plan-card{min-width:280px;scroll-snap-align:start}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800}.badge.success{background:#dcfce7;color:#166534}.badge.warning{background:#fef3c7;color:#92400e}.badge.danger{background:#fee2e2;color:#991b1b}.badge.neutral{background:#e2e8f0;color:#334155}.table-wrap{overflow-x:auto;background:#fff;border:1px solid #e2e8f0;border-radius:20px}.table{width:100%;border-collapse:collapse}.table th,.table td{text-align:left;padding:13px;border-bottom:1px solid #e2e8f0}.table th{font-size:12px;text-transform:uppercase;color:#64748b;background:#f8fafc}.mission-path{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}.mission{background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:14px;text-align:center}.mission .circle{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#0f766e;color:white;font-weight:900;margin:0 auto 8px}.app-shell{display:grid;grid-template-columns:220px 1fr;gap:22px}.app-nav,.admin-nav{position:sticky;top:88px;align-self:start;background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:12px;box-shadow:0 18px 40px rgba(15,23,42,.06)}.app-nav a,.admin-nav a{display:block;padding:12px;border-radius:14px;color:#334155;font-weight:700}.app-nav a:hover,.admin-nav a:hover{background:#ecfeff;color:#0f766e}.legal-box{max-width:900px;margin:auto}.message{border-radius:18px;background:#fff;border:1px solid #e2e8f0;padding:14px;margin-bottom:12px}.muted{color:#64748b}.small{font-size:13px}.footer{margin-top:40px}.flash{max-width:1180px;margin:14px auto;padding:12px 16px;border-radius:14px;font-weight:700}.flash.success{background:#dcfce7;color:#166534}.flash.warning{background:#fef3c7;color:#92400e}.flash.danger{background:#fee2e2;color:#991b1b}.flash.neutral{background:#e2e8f0;color:#334155}.hero-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:36px;align-items:center}.pill{display:inline-flex;padding:8px 12px;border-radius:999px;background:#ecfeff;color:#0f766e;font-weight:900;font-size:13px}.actions{display:flex;gap:12px;flex-wrap:wrap}.btn{border:0;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:14px;padding:11px 16px;font-weight:800}.btn.primary{background:#0f766e;color:white}.btn.ghost{background:#fff;color:#0f766e;border:1px solid #99f6e4}.btn.dark{background:#0f172a;color:#fff}.btn.soft{background:#ecfeff;color:#0f766e}.card{background:#fff;border:1px solid #e2e8f0;border-radius:24px;padding:22px;box-shadow:0 18px 48px rgba(15,23,42,.07)}.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.88);backdrop-filter:blur(14px);border-bottom:1px solid #e2e8f0}.brand img{height:52px}.topnav{align-items:center}.input, input, select, textarea{width:100%;border:1px solid #cbd5e1;border-radius:14px;padding:12px 13px;background:#fff;font:inherit}label{font-weight:800;color:#334155}textarea{min-height:105px}.auth-card{max-width:520px;margin:30px auto}.nowrap{white-space:nowrap}
@media (max-width:900px){.hero-grid,.grid-2,.grid-3,.grid-4,.form-grid,.stats,.app-shell{grid-template-columns:1fr}.mission-path{grid-template-columns:repeat(2,1fr)}.app-nav{position:fixed;left:10px;right:10px;bottom:10px;top:auto;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);gap:4px;padding:8px;border-radius:20px}.app-nav a{text-align:center;font-size:12px;padding:8px 4px}.admin-nav{position:static}.main{padding-bottom:80px}.topnav a:not(.btn){display:none}.check-grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}}

/* ZamClub B2C v4 corrections */
.hero-photo-wrap{position:relative;min-height:360px;display:grid;place-items:center}.hero-photo{width:100%;max-height:420px;object-fit:cover;border-radius:32px;box-shadow:0 28px 70px rgba(15,23,42,.22);border:1px solid rgba(255,255,255,.55)}.floating-card{position:absolute;left:22px;bottom:22px;background:rgba(255,255,255,.9);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.7);border-radius:18px;padding:14px 16px;box-shadow:0 14px 30px rgba(15,23,42,.18)}.floating-card b,.floating-card span{display:block}.floating-card span{color:#64748b;font-size:13px}.register-card{max-width:980px;margin:28px auto}.stable-form{align-items:start}.stable-form>div{min-width:0}.benefits-grid{align-items:stretch}.benefit-check{align-items:flex-start;text-align:left;justify-content:flex-start;min-height:48px;line-height:1.35}.benefit-check input{width:auto;min-width:16px;margin:2px 4px 0 0}.benefit-check span{display:block;text-align:left}.profile-row{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.profile-avatar{width:88px;height:88px;border-radius:28px;object-fit:cover;border:3px solid #ccfbf1;box-shadow:0 12px 28px rgba(15,118,110,.18)}.profile-avatar.avatar-large{width:112px;height:112px;border-radius:34px}.avatar-letter{display:grid;place-items:center;background:linear-gradient(135deg,#0f766e,#38bdf8);color:#fff;font-size:42px;font-weight:900}.avatar-form{margin-top:18px}.mission-accordion{display:grid;gap:14px}.mission-detail{border:1px solid #e2e8f0;border-radius:22px;background:#fff;box-shadow:0 14px 38px rgba(15,23,42,.06);overflow:hidden}.mission-detail summary{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;cursor:pointer;padding:16px 18px;list-style:none}.mission-detail summary::-webkit-details-marker{display:none}.mission-detail form{padding:0 18px 18px}.circle{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#0f766e;color:white;font-weight:900}.mission-detail small{color:#64748b;font-weight:700}.referral-cards{display:grid;gap:14px}.referral-card summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}.referral-card summary::-webkit-details-marker{display:none}.referral-card h3{margin:0}.crm-stats{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:18px}.image-card .card-img{border-radius:22px 22px 0 0}.image-card{padding:0;overflow:hidden}.image-card .card-body{padding:18px}.lead{font-weight:800;color:#0b2533!important}.topnav a[href*="#planes"]{display:none!important}.admin-nav .badge{margin-left:6px;font-size:10px;padding:4px 8px}.auth-card form p{margin:0 0 10px}.hero .actions{display:none!important}
@media (max-width:900px){.crm-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.mission-detail summary{grid-template-columns:auto 1fr}.mission-detail small{grid-column:2}.referral-card summary{align-items:flex-start;flex-direction:column}.profile-row{align-items:flex-start}.hero-photo-wrap{min-height:260px}.register-card{margin:14px 10px}.floating-card{left:12px;right:12px;bottom:12px}.topbar{gap:10px}.topnav{gap:8px}.brand img{height:42px}.btn{padding:10px 12px}}

/* V5: imágenes reales dinámicas y carga visual por sección */
.section-hero{display:grid;grid-template-columns:1.15fr .85fr;gap:18px;align-items:center;background:linear-gradient(135deg,#ecfeff,#ffffff);border:1px solid #dbeafe;border-radius:28px;padding:18px;margin-bottom:22px;box-shadow:0 18px 45px rgba(15,23,42,.06);overflow:hidden}.section-hero.compact{margin-bottom:18px}.section-hero-img{width:100%;height:220px;object-fit:cover;border-radius:22px;box-shadow:0 18px 38px rgba(15,23,42,.13);background:#f1f5f9}.plan-img{height:150px;object-fit:cover;margin:-8px 0 14px;border-radius:18px}.avatar-form input[type=file]{background:#f8fafc;border:1px dashed #94a3b8}.avatar-form .small{margin:8px 0 12px}.card>.card-img{margin-bottom:14px} .image-card>.card-img{margin-bottom:0}
@media(max-width:900px){.section-hero{grid-template-columns:1fr;padding:14px}.section-hero-img{height:190px}.plan-img{height:138px}}
