/* =====================================================================
   OnlyFlans — sistema visual
   ===================================================================== */
:root {
  --bg: #060606;
  --bg-2: #0c0c0c;
  --surface: #131313;
  --surface-2: #1a1a1a;
  --surface-3: #222;
  --line: rgba(255, 255, 255, .12);
  --line-soft: rgba(255, 255, 255, .07);
  --text: #f5f5f5;
  --text-2: #c9c9c9;
  --muted: #8d8d8d;
  --accent: #ff3b1f;
  --accent-2: #ff7a1a;
  --accent-rgb: 255, 59, 31;
  --grad: linear-gradient(90deg, #ff2a1a 0%, #ff4a1c 45%, #ff7a1a 100%);
  --grad-btn: linear-gradient(180deg, #ff4a24 0%, #e81f12 100%);
  --grad-card: linear-gradient(135deg, rgba(var(--accent-rgb), .35) 0%, rgba(120, 10, 0, .25) 35%, rgba(20, 20, 20, .9) 75%);
  --green: #39d26b;
  --amber: #ffb020;
  --blue: #2f9bff;
  --purple: #a855f7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-glow: 0 0 0 1px rgba(var(--accent-rgb), .55), 0 10px 40px -8px rgba(var(--accent-rgb), .55);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Montserrat", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}
body[data-color="naranja"] { --accent: #ff7a1a; --accent-2: #ffb020; --accent-rgb: 255, 122, 26;
  --grad: linear-gradient(90deg, #ff6a10, #ffb020); --grad-btn: linear-gradient(180deg, #ff8a2a, #f06308); }
body[data-color="grafito"] { --accent: #e8e8e8; --accent-2: #9a9a9a; --accent-rgb: 200, 200, 200;
  --grad: linear-gradient(90deg, #fff, #9a9a9a); --grad-btn: linear-gradient(180deg, #4a4a4a, #2a2a2a); }
body[data-color="claro"] {
  --bg: #f3f3f1; --bg-2: #eaeae7; --surface: #ffffff; --surface-2: #f5f5f3; --surface-3: #ececea;
  --line: rgba(0, 0, 0, .12); --line-soft: rgba(0, 0, 0, .07); --text: #141414; --text-2: #3d3d3d; --muted: #6f6f6f;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.accent { color: var(--accent); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.green { color: var(--green); } .amber { color: var(--amber); } .blue { color: var(--blue); } .purple { color: var(--purple); }
.red { color: var(--accent); }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.center { text-align: center; }
hr.sep { border: 0; border-top: 1px solid var(--line-soft); margin: 18px 0; }

/* ------------------------------------------------------------- botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
  white-space: nowrap; line-height: 1.2; background: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 28px -8px rgba(var(--accent-rgb), .8), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { box-shadow: 0 10px 36px -6px rgba(var(--accent-rgb), .95), inset 0 1px 0 rgba(255,255,255,.2); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,.85); color: var(--text); }
body[data-color="claro"] .btn-outline { border-color: rgba(0,0,0,.6); }
.btn-outline:hover { background: rgba(255,255,255,.06); }
.btn-outline-accent { border-color: var(--accent); color: var(--text); box-shadow: 0 0 22px -6px rgba(var(--accent-rgb), .6); }
.btn-outline-accent:hover { background: rgba(var(--accent-rgb), .1); }
.btn-ghost { color: var(--text-2); padding-inline: 14px; }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.05); }
.btn-danger { border-color: rgba(255, 70, 50, .8); color: #ff6b57; }
.btn-danger:hover { background: rgba(255, 60, 40, .1); }
.btn-success { border-color: rgba(57, 210, 107, .7); color: var(--green); }
.btn-success:hover { background: rgba(57, 210, 107, .1); }
.btn-sm { padding: 8px 16px; font-size: .88rem; gap: 7px; }
.btn-xs { padding: 5px 12px; font-size: .8rem; gap: 6px; }
.btn-lg { padding: 17px 34px; font-size: 1.12rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line); color: var(--text); }
.btn-icon:hover { border-color: rgba(255,255,255,.4); }
.link-accent { color: var(--accent-2); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-accent:hover { text-decoration: underline; }

/* ------------------------------------------------------------- logo */
.logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 800; font-style: italic; }
.logo-img { height: 50px; width: auto; display: block; flex: none; }
body[data-color="claro"] .logo-img { content: url("../img/logo-of-claro.png"); }
.logo-text { display: block; }
.logo-wordmark { height: 46px; width: auto; display: block; }
body[data-color="claro"] .logo-wordmark { content: url("../img/logo-texto-claro.png"); }
.logo-sub { display: block; font-style: normal; font-family: var(--font); font-weight: 500; font-size: .95rem; color: var(--text-2); margin-top: 2px; letter-spacing: 0; }

/* ------------------------------------------------------------- cabecera pública */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(6,6,6,.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
body[data-color="claro"] .site-header { background: rgba(255,255,255,.85); }
.site-header .bar { display: flex; align-items: center; gap: 24px; height: 76px; }
.main-nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.main-nav > a, .main-nav .dd > button { position: relative; padding: 10px 16px; color: var(--text-2); font-weight: 500; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.main-nav > a:hover, .main-nav .dd > button:hover { color: var(--text); }
.main-nav .on { color: var(--text); font-weight: 600; }
.main-nav .on::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -2px; height: 3px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }
.dd { position: relative; }
.dd-menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: 0 20px 50px rgba(0,0,0,.6); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s; z-index: 60; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; }
.dd-menu a:hover { background: var(--surface-2); color: var(--text); }
.dd-menu a .i { color: var(--accent); }
.dd-menu.right { left: auto; right: 0; }
.header-cta { display: flex; gap: 12px; align-items: center; }
.header-cta .btn { padding: 10px 20px; font-size: .95rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 12px; width: 46px; height: 46px; align-items: center; justify-content: center; cursor: pointer; }
.mobile-nav { display: none; }

/* ------------------------------------------------------------- hero público */
.hero { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.hero-media { position: absolute; inset: 0 0 0 auto; width: var(--hero-w, 62%); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(6,6,6,.75) 22%, rgba(6,6,6,0) 55%), linear-gradient(0deg, var(--bg) 0%, rgba(6,6,6,0) 30%); }
body[data-color="claro"] .hero-media::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(243,243,241,.7) 25%, rgba(0,0,0,0) 55%), linear-gradient(0deg, var(--bg) 0%, rgba(0,0,0,0) 30%); }
.hero-media.fit-contain img { object-fit: contain; object-position: right center; }
.hero-content { position: relative; z-index: 2; padding: 70px 0 60px; max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 18px; text-transform: uppercase; letter-spacing: .38em; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.eyebrow.dots { letter-spacing: .14em; gap: 14px; }
.eyebrow.dots span + span::before { content: "·"; margin-right: 14px; color: var(--muted); }
.bar-accent { display: inline-block; width: 72px; height: 4px; border-radius: 4px; background: var(--grad); box-shadow: 0 0 14px rgba(var(--accent-rgb), .9); }
.display { font-size: clamp(2.8rem, 6.4vw, 5.2rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.02; margin-top: 18px; }
.display .l2 { display: block; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); margin-top: 22px; max-width: 520px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.page-title { font-size: clamp(2.8rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.03em; margin-top: 18px; }

/* features */
.features { display: grid; grid-template-columns: repeat(4, 1fr); margin: 10px 0 60px; position: relative; z-index: 2; }
.feature { text-align: center; padding: 10px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.feature + .feature { border-left: 1px solid var(--line); }
.feature .i { width: 52px; height: 52px; color: var(--accent); stroke-width: 1.6; filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .55)); }
.feature .i.orange { color: var(--accent-2); }
.section { padding: 70px 0; position: relative; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; }
.section-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.section-head.centered { align-items: center; text-align: center; }
.title-lines { display: flex; align-items: center; gap: 28px; justify-content: center; }
.title-lines::before, .title-lines::after { content: ""; width: 64px; height: 4px; border-radius: 4px; background: var(--grad); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.checklist li { display: flex; gap: 16px; align-items: flex-start; font-size: 1.12rem; color: var(--text); }
.checklist li .i { color: var(--accent-2); width: 26px; height: 26px; stroke-width: 2.6; margin-top: 1px; }

/* glass cards */
.glass { background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: 26px; backdrop-filter: blur(6px); }
body[data-color="claro"] .glass { background: var(--surface); }
.glass-accent { border-color: rgba(var(--accent-rgb), .7); box-shadow: 0 0 40px -10px rgba(var(--accent-rgb), .55), inset 0 0 40px -20px rgba(var(--accent-rgb), .4); }

.split-card { display: grid; grid-template-columns: 1fr 1.15fr; overflow: hidden; min-height: 400px; }
.split-card .media { position: relative; }
.split-card .media img { width: 100%; height: 100%; object-fit: cover; }
.split-card .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0) 55%, rgba(12,12,12,.95) 100%); }
.split-card .body { padding: 50px 46px; display: flex; flex-direction: column; justify-content: center; gap: 26px; }
.split-card h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; }

/* tarjetas de servicio */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-card { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: #0b0b0b; min-height: 340px; padding: 34px 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; transition: border-color .25s, box-shadow .25s, transform .25s; }
.svc-card:hover { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 20px 50px -20px rgba(var(--accent-rgb), .55); transform: translateY(-3px); }
.svc-card .bg { position: absolute; top: 0; right: 0; bottom: 0; width: 46%; }
.svc-card .bg img { width: 100%; height: 100%; object-fit: cover; }
.svc-card .bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0b0b0b 0%, rgba(11,11,11,0) 45%); z-index: 1; }
.svc-card > *:not(.bg) { position: relative; z-index: 2; max-width: 62%; }
.svc-card > .i.big { width: 58px; height: 58px; color: var(--accent); stroke-width: 1.6; filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .55)); }
.svc-card h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 800; }
.svc-card p { color: var(--text-2); }
.svc-card .btn { align-self: flex-start; margin-top: 8px; }

/* tarifas */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.price-grid.three { grid-template-columns: repeat(3, 1fr); max-width: 950px; margin: 26px auto 0; }
.price-card { text-align: center; padding: 30px 26px; display: flex; flex-direction: column; align-items: center; gap: 4px; border-radius: 22px; background: linear-gradient(180deg, #161616, #0b0b0b); border: 1px solid var(--line); transition: .25s; }
body[data-color="claro"] .price-card { background: var(--surface); }
.price-card:hover { transform: translateY(-4px); border-color: rgba(var(--accent-rgb), .5); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 50px -12px rgba(var(--accent-rgb), .7), inset 0 0 50px -24px rgba(var(--accent-rgb), .6); }
.price-card > .i { width: 46px; height: 46px; color: var(--accent); stroke-width: 1.6; margin-bottom: 14px; }
.price-card h3 { font-size: 1.75rem; font-weight: 800; text-transform: uppercase; }
.price-card .sub { text-transform: uppercase; font-size: 1.05rem; letter-spacing: .02em; color: var(--text-2); }
.price-card .div { width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--line), rgba(var(--accent-rgb), .6), var(--line), transparent); margin: 20px 0; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 3.1rem; line-height: 1; background: linear-gradient(180deg, #ffb347, #ff7a1a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price small { font-family: var(--font); font-weight: 500; font-size: 1.1rem; color: var(--text-2); -webkit-text-fill-color: var(--text-2); margin-left: 6px; }
.price-card .btn { margin-top: 26px; width: 100%; }
.price-card .desc { color: var(--muted); font-size: .9rem; margin-top: 6px; min-height: 2.6em; }

/* contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: start; }
.contact-item { display: flex; gap: 26px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line-soft); }
.contact-item:last-child { border-bottom: 0; }
.icon-box { width: 88px; height: 88px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, #1c1c1c, #0e0e0e); border: 1px solid var(--line); flex: none; }
.icon-box .i { width: 40px; height: 40px; color: var(--accent); }
.contact-item h3 { font-size: 1.4rem; font-family: var(--font); font-weight: 700; }
.contact-item p { color: var(--text-2); font-size: 1.15rem; margin-top: 4px; }
.form-card { padding: 40px 44px; }
.form-card h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 26px; }

/* ------------------------------------------------------------- formularios */
.form { display: grid; gap: 18px; }
.form.cols-2 { grid-template-columns: 1fr 1fr; }
.form .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: .98rem; }
.field .req { color: var(--accent); }
.field .help { color: var(--muted); font-size: .82rem; }
.field .err, .errorlist { color: #ff6b57; font-size: .85rem; list-style: none; padding: 0; margin: 0; }
.form-errors { background: rgba(255, 60, 40, .1); border: 1px solid rgba(255, 60, 40, .45); color: #ffb3a8; padding: 12px 16px; border-radius: 12px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=time], input[type=tel], input[type=search], input[type=file], select, textarea {
  width: 100%; background: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.28); color: var(--text); border-radius: 12px; padding: 13px 18px; font: inherit; font-size: 1rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
body[data-color="claro"] :is(input, select, textarea) { background: #fff; border-color: rgba(0,0,0,.2); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .22); }
input::placeholder, textarea::placeholder { color: #8a8a8a; }
select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ddd' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 46px; }
select option { background: #151515; color: #eee; }
textarea { resize: vertical; min-height: 110px; }
input[type=file] { padding: 10px 14px; }
input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--text-2); }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator { filter: invert(1) opacity(.7); }
body[data-color="claro"] input::-webkit-calendar-picker-indicator { filter: none; }

/* ------------------------------------------------------------- pie */
.site-footer { position: relative; margin-top: 40px; padding: 60px 0 30px; border-top: 1px solid var(--line-soft); overflow: hidden; }
.site-footer .mountains { position: absolute; inset: auto 0 0 0; height: 180px; background: url("../img/mountains.jpg") center bottom / cover no-repeat; opacity: .55; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h4 { font-family: var(--font); font-size: .9rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 14px; }
.footer-grid a { display: block; color: var(--text-2); padding: 4px 0; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-bottom { position: relative; margin-top: 50px; color: var(--muted); font-size: .85rem; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }

/* ------------------------------------------------------------- auth */
.auth-wrap { min-height: calc(100vh - 76px); display: grid; grid-template-columns: 1fr 1fr; }
.auth-media { position: relative; overflow: hidden; }
.auth-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,6,6,.1), var(--bg)); }
.auth-media .quote { position: absolute; z-index: 2; left: 48px; bottom: 48px; max-width: 420px; }
.auth-media .quote h2 { font-size: 2.6rem; font-weight: 800; }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 50px 24px; }
.auth-card { width: min(480px, 100%); padding: 40px; }
.auth-card h1 { font-size: 2.3rem; font-weight: 800; }
.demo-box { margin-top: 22px; padding: 14px 16px; border-radius: 12px; border: 1px dashed rgba(var(--accent-rgb), .5); background: rgba(var(--accent-rgb), .06); font-size: .9rem; color: var(--text-2); }
.demo-box code { color: var(--text); font-weight: 600; }
.demo-box button { background: none; border: 0; color: var(--accent-2); cursor: pointer; font-weight: 600; padding: 0; text-decoration: underline; }

/* ------------------------------------------------------------- mensajes / toasts */
.toasts { position: fixed; z-index: 200; top: 18px; left: 50%; transform: translateX(-50%); display: grid; gap: 10px; width: min(560px, calc(100% - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 14px; background: rgba(22,22,22,.96); border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.6); animation: toast-in .35s ease; font-size: .95rem; }
body[data-color="claro"] .toast { background: #fff; }
.toast .i { margin-top: 2px; }
.toast.success { border-color: rgba(57,210,107,.5); } .toast.success .i { color: var(--green); }
.toast.error { border-color: rgba(255,80,60,.6); } .toast.error .i { color: #ff6b57; }
.toast.info .i, .toast.warning .i { color: var(--amber); }
.toast .close { margin-left: auto; background: none; border: 0; cursor: pointer; color: var(--muted); padding: 0; }
.toast.hide { opacity: 0; transform: translateY(-10px); transition: .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } }

/* =====================================================================
   APP (área de cliente y panel)
   ===================================================================== */
.app-body { padding-bottom: 130px; }
.app { width: min(1120px, 100% - 32px); margin-inline: auto; position: relative; }
.app-hero { position: relative; min-height: 300px; padding-top: 22px; }
.app-hero .media { position: absolute; top: 0; right: -16px; width: 58%; height: 100%; z-index: 0; border-radius: 0 0 0 40px; overflow: hidden; }
.app-hero .media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.app-hero .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(6,6,6,.4) 35%, rgba(6,6,6,0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(6,6,6,0) 40%); }
body[data-color="claro"] .app-hero .media::after { background: linear-gradient(90deg, var(--bg) 0%, rgba(243,243,241,.5) 35%, rgba(0,0,0,0) 70%), linear-gradient(0deg, var(--bg) 0%, rgba(0,0,0,0) 40%); }
.app-top { position: relative; z-index: 5; display: flex; justify-content: space-between; align-items: flex-start; }
.app-top .actions { display: flex; gap: 14px; align-items: center; }
.app-title { position: relative; z-index: 2; margin-top: 42px; max-width: 620px; }
.app-title h1 { font-size: clamp(2.6rem, 6vw, 4.1rem); font-weight: 800; letter-spacing: -.03em; }
.app-title p { margin-top: 12px; font-size: 1.15rem; color: var(--text-2); max-width: 520px; }
.app-title .bar-accent { margin-top: 22px; width: 90px; }
.round-btn { position: relative; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; border: 2px solid rgba(255,255,255,.85); background: rgba(0,0,0,.35); cursor: pointer; color: var(--text); padding: 0; }
body[data-color="claro"] .round-btn { border-color: rgba(0,0,0,.5); background: #fff; }
.round-btn.plain { border: 0; background: none; }
.round-btn .i { width: 26px; height: 26px; }
.round-btn .dot { position: absolute; top: 9px; right: 11px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.round-btn img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }

.notif-menu { width: min(380px, calc(100vw - 32px)); padding: 0; }
.notif-menu header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); font-weight: 700; }
.notif-menu header button { background: none; border: 0; color: var(--accent-2); font-size: .85rem; cursor: pointer; }
.notif-list { max-height: 380px; overflow: auto; padding: 6px; }
.notif-list a { display: flex; gap: 12px; padding: 11px 10px; border-radius: 10px; align-items: flex-start; color: var(--text-2); font-size: .92rem; }
.notif-list a.unread { color: var(--text); background: rgba(var(--accent-rgb), .07); }
.notif-list a .i { color: var(--accent); margin-top: 2px; }
.notif-list time { display: block; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.notif-empty { padding: 26px; text-align: center; color: var(--muted); font-size: .92rem; }

/* tabs segmentadas */
.seg { display: flex; padding: 4px; border-radius: 18px; background: linear-gradient(180deg, #161616, #0d0d0d); border: 1px solid var(--line); gap: 4px; position: relative; z-index: 2; overflow-x: auto; scrollbar-width: none; }
body[data-color="claro"] .seg { background: var(--surface); }
.seg::-webkit-scrollbar { display: none; }
.seg a, .seg button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 18px; border-radius: 14px; font-size: 1.12rem; font-weight: 600; color: var(--text); background: none; border: 0; cursor: pointer; white-space: nowrap; transition: background .2s; }
.seg a:hover, .seg button:hover { background: rgba(255,255,255,.04); }
.seg .on { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 26px -6px rgba(var(--accent-rgb), .9), inset 0 1px 0 rgba(255,255,255,.2); }
.seg .on:hover { background: var(--grad-btn); }
.seg .i { width: 26px; height: 26px; }
.seg.sm a, .seg.sm button { font-size: .95rem; padding: 11px 14px; }
.seg.sm .i { width: 20px; height: 20px; }

.chips { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(180deg, #181818, #0e0e0e); font-weight: 500; white-space: nowrap; }
body[data-color="claro"] .chip { background: var(--surface); }
.chip .i { width: 24px; height: 24px; }
.chip.on { background: var(--grad-btn); border-color: transparent; color: #fff; box-shadow: 0 6px 24px -6px rgba(var(--accent-rgb), .9); font-weight: 700; }

.h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 800; font-family: var(--font-display); }
.h3 { font-size: 1.35rem; font-weight: 700; font-family: var(--font-display); }
.block { margin-top: 34px; }
.block-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }

/* tarjetas */
.card { background: linear-gradient(180deg, #171717, #0e0e0e); border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
body[data-color="claro"] .card { background: var(--surface); }
.card.pad { padding: 22px; }
.card.glow { border-color: rgba(var(--accent-rgb), .55); box-shadow: 0 14px 40px -18px rgba(var(--accent-rgb), .7); }
.card.glow-bottom::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, var(--accent-2), transparent); filter: blur(.5px); box-shadow: 0 0 18px rgba(var(--accent-rgb), .9); border-radius: 2px; }
.card.hot { background: linear-gradient(100deg, rgba(150,15,5,.55) 0%, rgba(30,10,8,.9) 40%, rgba(20,20,20,.95) 65%, rgba(120,30,5,.55) 100%); border-color: rgba(var(--accent-rgb), .4); }
body[data-color="claro"] .card.hot { background: linear-gradient(100deg, rgba(var(--accent-rgb), .18), var(--surface) 50%, rgba(var(--accent-rgb), .12)); }
.card-title { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.card-title .i { width: 30px; height: 30px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }

/* accesos rápidos */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; z-index: 2; }
.tile { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; min-height: 172px; padding: 24px 22px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, #1a1a1a, #0d0d0d); position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
body[data-color="claro"] .tile { background: var(--surface); }
.tile:hover { transform: translateY(-3px); border-color: rgba(var(--accent-rgb), .5); }
.tile::after { content: ""; position: absolute; left: 15%; right: 15%; bottom: 0; height: 2px; background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), .7), transparent); }
.tile .i.big { width: 46px; height: 46px; stroke-width: 1.5; }
.tile .label { font-size: 1.35rem; font-weight: 600; line-height: 1.18; display: flex; justify-content: space-between; align-items: flex-end; gap: 6px; }
.tile .label .i { width: 26px; height: 26px; }
.tile.primary { background: linear-gradient(160deg, #ff6a2a 0%, #e8261c 55%, #a8130b 100%); border-color: rgba(255,140,90,.6); box-shadow: 0 16px 40px -14px rgba(var(--accent-rgb), .9); color: #fff; font-weight: 700; }
.tile.primary .label { font-weight: 700; }

/* estadísticas */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { padding: 20px 22px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, #1a1a1a, #0d0d0d); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
body[data-color="claro"] .stat { background: var(--surface); }
.stat .lbl { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; color: var(--text); }
.stat .lbl .i { width: 30px; height: 30px; color: var(--accent-2); stroke-width: 1.7; }
.stat .val { font-family: var(--font-display); font-size: 2.15rem; font-weight: 700; line-height: 1; letter-spacing: -.02em; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.stat .val small { font-size: 1.3rem; font-weight: 600; }
.stat .delta { font-size: .98rem; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.stat .delta .i { width: 18px; height: 18px; }
.stat.primary { background: linear-gradient(160deg, #ff5a2a 0%, #e8261c 55%, #a8130b 100%); border-color: rgba(255,140,90,.6); box-shadow: 0 16px 40px -14px rgba(var(--accent-rgb), .9); color: #fff; }
.stat.primary .lbl, .stat.primary .lbl .i { color: #fff; }
.stat.chart { padding: 0; overflow: hidden; justify-content: center; }
.progress { height: 10px; border-radius: 10px; background: rgba(255,255,255,.12); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff2a1a, #ff8a1a); box-shadow: 0 0 12px rgba(var(--accent-rgb), .8); }
.progress.sm { height: 7px; }
.progress.amber > span { background: linear-gradient(90deg, #ff9a1a, #ffb020); }
.progress.purple > span { background: linear-gradient(90deg, #8b3cf7, #b06bff); box-shadow: 0 0 12px rgba(168,85,247,.7); }
.progress.blue > span { background: linear-gradient(90deg, #1e7bff, #45b0ff); }

/* cita destacada */
.appt { display: flex; align-items: center; gap: 24px; padding: 22px 26px; }
.date-badge { flex: none; width: 104px; border-radius: 16px; background: linear-gradient(180deg, rgba(120,20,10,.7), rgba(40,10,8,.9)); border: 1px solid rgba(var(--accent-rgb), .35); text-align: center; padding: 10px 6px 12px; }
body[data-color="claro"] .date-badge { background: rgba(var(--accent-rgb), .1); }
.date-badge .m { text-transform: uppercase; font-size: 1.05rem; font-weight: 600; color: var(--text-2); }
.date-badge .d { font-family: var(--font-display); font-weight: 800; font-size: 2.8rem; line-height: 1; margin-top: 4px; }
.date-badge.sm { width: 74px; padding: 6px 4px 8px; border-radius: 12px; }
.date-badge.sm .m { font-size: .8rem; }
.date-badge.sm .d { font-size: 1.9rem; }
.date-badge.xs { width: 64px; background: rgba(255,255,255,.05); border-color: var(--line); padding: 5px 4px; border-radius: 10px; }
.date-badge.xs .m { font-size: .78rem; }
.date-badge.xs .d { font-size: .95rem; font-family: var(--font); font-weight: 700; margin-top: 0; }
.vline { width: 1px; align-self: stretch; background: var(--line); }
.appt .info { flex: 1; min-width: 0; display: grid; gap: 8px; }
.appt .info .t { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 1.2rem; }
.appt .info .t .i { color: var(--accent); width: 28px; height: 28px; }
.appt .info .m { display: flex; gap: 12px; align-items: center; color: var(--text-2); }
.appt .info .m .i { width: 22px; height: 22px; color: var(--text-2); }
.appt .acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* listas */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 18px; padding: 14px 20px; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.list-row:last-child { border-bottom: 0; }
.list-row .ic { width: 28px; height: 28px; color: var(--text); flex: none; }
.list-row a.rowlink { display: contents; }
.list-row .t { font-weight: 700; }
.list-row .s { color: var(--text-2); font-size: .92rem; }
.list-row .chev { color: var(--text-2); }
a.list-row:hover, .list-row.hover:hover { background: rgba(255,255,255,.03); }
.info-row { display: grid; grid-template-columns: 44px 1fr 1.3fr 24px; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.info-row:last-child { border-bottom: 0; }
.info-row .i:first-child { width: 30px; height: 30px; }
.info-row .k { font-size: 1.08rem; }
.info-row .v { font-size: 1.08rem; color: var(--text); }

.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px; border-radius: 999px; border: 1.5px solid; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.status .i { width: 18px; height: 18px; }
.status.ok { color: var(--green); border-color: rgba(57,210,107,.65); background: rgba(57,210,107,.08); }
.status.bad { color: #ff6b57; border-color: rgba(255,80,60,.6); background: rgba(255,80,60,.07); }
.status.warn { color: var(--amber); border-color: rgba(255,176,32,.6); background: rgba(255,176,32,.07); }
.status.info { color: var(--blue); border-color: rgba(47,155,255,.6); background: rgba(47,155,255,.07); }
.status.neutral { color: var(--text-2); border-color: var(--line); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; border-radius: 999px; font-size: .82rem; font-weight: 600; }
.pill.ok { background: rgba(57,210,107,.15); color: var(--green); }
.pill.bad { background: rgba(255,80,60,.15); color: #ff7a66; }
.pill.warn { background: rgba(255,176,32,.15); color: var(--amber); }
.pill.accent { background: var(--grad-btn); color: #fff; }
.pill.premium { border: 1.5px solid var(--accent-2); color: var(--accent-2); padding: 6px 20px; font-size: 1.05rem; background: rgba(var(--accent-rgb), .07); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.ok { background: var(--green); box-shadow: 0 0 8px rgba(57,210,107,.7); }
.dot.bad { background: #ff4433; } .dot.off { background: #777; }

/* planes */
.plan-card { display: flex; align-items: center; gap: 26px; padding: 22px 26px; }
.icon-tile { width: 92px; height: 92px; border-radius: 16px; display: grid; place-items: center; flex: none; background: linear-gradient(160deg, #c3200f, #6d0e05); border: 1px solid rgba(255,120,80,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.12); color: #fff; }
.icon-tile .i { width: 48px; height: 48px; }
.icon-tile.sm { width: 46px; height: 46px; border-radius: 12px; }
.icon-tile.sm .i { width: 24px; height: 24px; }
.icon-tile.soft { background: rgba(var(--accent-rgb), .12); border-color: rgba(var(--accent-rgb), .45); color: var(--accent); box-shadow: none; }
.icon-tile.soft.green { background: rgba(57,210,107,.1); border-color: rgba(57,210,107,.5); color: var(--green); }
.icon-tile.soft.amber { background: rgba(255,176,32,.1); border-color: rgba(255,176,32,.5); color: var(--amber); }
.icon-tile.soft.blue { background: rgba(47,155,255,.1); border-color: rgba(47,155,255,.5); color: var(--blue); }
.icon-tile.soft.purple { background: rgba(168,85,247,.12); border-color: rgba(168,85,247,.5); color: var(--purple); }
.icon-tile.soft.gray { background: rgba(255,255,255,.06); border-color: var(--line); color: var(--text-2); }
.plan-card .grow h3 { font-size: 1.55rem; font-family: var(--font); font-weight: 700; }
.plan-card .grow p { color: var(--text-2); font-size: 1.08rem; margin-top: 4px; }
.plan-card .meta { display: flex; align-items: center; gap: 10px; margin-top: 8px; color: var(--text-2); }

/* tienda */
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.shop-card { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: #0d0d0d; min-height: 360px; padding: 26px 30px; display: flex; flex-direction: column; justify-content: flex-start; gap: 12px; }
.shop-card .bg { position: absolute; inset: 0 0 0 auto; width: 55%; }
.shop-card .bg img { width: 100%; height: 100%; object-fit: cover; }
.shop-card .bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #0d0d0d 0%, rgba(13,13,13,.4) 40%, rgba(13,13,13,0) 70%), linear-gradient(0deg, rgba(13,13,13,.7), transparent 40%); }
.shop-card > *:not(.bg) { position: relative; z-index: 2; max-width: 64%; }
.shop-card .icon-tile { width: 62px; height: 62px; border-radius: 14px; background: rgba(0,0,0,.4); border: 1.5px solid var(--accent-2); color: var(--accent-2); box-shadow: none; }
.shop-card .icon-tile .i { width: 32px; height: 32px; }
.shop-card h3 { font-size: 1.8rem; font-weight: 800; }
.shop-card p { color: var(--text-2); font-size: 1.02rem; }
.shop-card .price-line { display: flex; align-items: baseline; gap: 8px; margin-top: auto; font-size: 1.1rem; }
.shop-card .price-line b { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; background: linear-gradient(180deg, #ff7a3a, #ff3b1f); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.shop-card .btn { align-self: flex-start; min-width: 220px; }
.shop-card.featured { border-color: rgba(var(--accent-rgb), .6); box-shadow: 0 0 40px -14px rgba(var(--accent-rgb), .7); }

/* panel: tablas */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .97rem; }
.tbl th { text-align: left; font-weight: 600; color: var(--text); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: rgba(255,255,255,.025); }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.svc-cell { display: flex; align-items: center; gap: 12px; }
.svc-cell b { display: block; font-size: .95rem; }
.svc-cell span { font-size: .88rem; color: var(--text-2); }
.ses { min-width: 110px; text-align: center; font-weight: 700; }
.ses .progress { margin-top: 6px; }

.avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, #3a3a3a, #161616); border: 2px solid rgba(255,255,255,.75); font-weight: 700; color: #fff; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 40px; height: 40px; border-width: 1.5px; font-size: .85rem; }
.avatar.lg { width: 128px; height: 128px; border: 3px solid var(--accent-2); box-shadow: 0 0 30px rgba(var(--accent-rgb), .55); font-size: 2.2rem; }
.avatar.xl { width: 220px; height: 220px; border: 3px solid var(--accent-2); box-shadow: 0 0 40px rgba(var(--accent-rgb), .6); font-size: 3.5rem; }

/* layout panel */
.grid-2 { display: grid; grid-template-columns: 1.85fr 1fr; gap: 20px; align-items: start; }
.grid-2.even { grid-template-columns: 1fr 1fr; }
.grid-clients { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.client-list { padding: 14px; max-height: 920px; overflow: auto; }
.client-item { display: flex; align-items: center; gap: 14px; padding: 12px 12px; border-radius: 14px; border-bottom: 1px solid var(--line-soft); }
.client-item:hover { background: rgba(255,255,255,.035); }
.client-item.on { background: linear-gradient(100deg, #e8261c, #8d1208); border: 1px solid rgba(255,140,90,.55); box-shadow: 0 10px 30px -12px rgba(var(--accent-rgb), .9); color: #fff; }
.client-item.on .avatar { border-color: var(--amber); }
.client-item .n { font-weight: 700; font-size: 1.05rem; }
.client-item .s { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--text-2); }
.client-item.on .s { color: #ffe1d9; }
.client-head { display: flex; align-items: center; gap: 22px; padding: 22px; flex-wrap: wrap; }
.client-head h2 { font-size: 2.1rem; font-weight: 800; }

.quick-actions { display: grid; gap: 10px; padding: 14px 16px 18px; }
.qa { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; font-weight: 500; transition: .2s; background: none; cursor: pointer; width: 100%; text-align: left; }
.qa:hover { border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .06); }
.qa .i:last-child { margin-left: auto; }

/* timeline */
.timeline { position: relative; padding-left: 34px; display: grid; gap: 12px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px; width: 2px; background: linear-gradient(180deg, var(--green), var(--amber), var(--blue), var(--purple)); opacity: .6; }
.tl-item { position: relative; display: flex; gap: 14px; align-items: center; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.tl-item::before { content: ""; position: absolute; left: -28px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--c, var(--green)); box-shadow: 0 0 10px var(--c, var(--green)); }
.tl-item.green { --c: var(--green); border-color: rgba(57,210,107,.4); }
.tl-item.amber { --c: var(--amber); border-color: rgba(255,176,32,.4); }
.tl-item.blue { --c: var(--blue); border-color: rgba(47,155,255,.4); }
.tl-item.purple { --c: var(--purple); border-color: rgba(168,85,247,.4); }
.tl-item time { margin-left: auto; color: var(--text-2); font-size: .85rem; white-space: nowrap; }

/* calendario */
.cal { padding: 18px 20px 22px; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.04); border-radius: 12px; padding: 8px 10px; font-weight: 600; margin: 14px 0 10px; }
.cal-nav a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; }
.cal-nav a:hover { background: rgba(255,255,255,.07); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; gap: 4px 2px; }
.cal-grid .dow { font-size: .85rem; color: var(--text-2); padding: 6px 0 10px; border-bottom: 1px solid var(--line-soft); margin-bottom: 6px; }
.cal-day { position: relative; display: grid; place-items: center; height: 46px; border-radius: 12px; font-size: 1.02rem; }
.cal-day:hover { background: rgba(255,255,255,.06); }
.cal-day.fuera { color: #555; }
.cal-day.hoy { background: var(--grad-btn); color: #fff; font-weight: 700; box-shadow: 0 6px 18px -4px rgba(var(--accent-rgb), .9); }
.cal-day.bloq { text-decoration: line-through; color: var(--muted); }
.cal-day .dots { position: absolute; bottom: 4px; left: 0; right: 0; display: flex; justify-content: center; gap: 3px; }
.cal-day .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); }
.cal-day .dots i.masaje { background: var(--green); } .cal-day .dots i.nutricion { background: var(--blue); } .cal-day .dots i.coaching { background: var(--purple); } .cal-day .dots i.entrenamiento { background: var(--accent); }

/* toggle */
.switch { position: relative; width: 56px; height: 32px; flex: none; display: inline-block; }
.switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #3a3a3a; transition: .25s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #ddd; transition: .25s; }
.switch input:checked + span { background: linear-gradient(90deg, #ff2a1a, #ff5a1a); box-shadow: 0 0 14px rgba(var(--accent-rgb), .6); }
.switch input:checked + span::before { transform: translateX(24px); background: #fff; }
.switch.green input:checked + span { background: linear-gradient(90deg, #2fbf5d, #39d26b); box-shadow: 0 0 14px rgba(57,210,107,.5); }

/* settings */
.settings-grid { display: grid; grid-template-columns: 280px 1fr; gap: 20px; align-items: start; }
.side-menu { padding: 10px; }
.side-menu a { display: flex; align-items: center; gap: 16px; padding: 15px 14px; border-radius: 12px; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
.side-menu a:last-child { border-bottom: 0; }
.side-menu a:hover { background: rgba(255,255,255,.04); }
.side-menu a.on { background: var(--grad-btn); color: #fff; box-shadow: 0 8px 26px -8px rgba(var(--accent-rgb), .9); border-bottom-color: transparent; }
.side-menu a .i:first-child { width: 28px; height: 28px; }
.side-menu a .i:last-child { margin-left: auto; width: 18px; height: 18px; }
.set-card .card-head { border-bottom: 0; padding-bottom: 8px; justify-content: flex-start; }
.set-card .card-head .i.big { width: 40px; height: 40px; color: var(--accent); }
.set-card .card-head h3 { font-size: 1.35rem; font-family: var(--font-display); font-weight: 700; }
.set-card .card-head p { font-size: .9rem; color: var(--text-2); }
.set-list { margin: 0 14px 14px; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); font-size: .98rem; }
.set-row:last-child { border-bottom: 0; }
a.set-row:hover { background: rgba(255,255,255,.035); }
.set-row .v { margin-left: auto; color: var(--text-2); font-size: .9rem; }
.set-row .i:last-child { color: var(--text-2); }
.swatches { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.swatch { width: 52px; height: 52px; border-radius: 12px; border: 2px solid transparent; cursor: pointer; display: grid; place-items: center; color: #fff; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.swatch[data-c=rojo] { background: linear-gradient(160deg, #ff3b1f, #b5150a); }
.swatch[data-c=naranja] { background: linear-gradient(160deg, #ff8a2a, #e8650a); }
.swatch[data-c=grafito] { background: #333; }
.swatch[data-c=claro] { background: #eee; color: #111; }

/* menú inferior */
.bottom-nav { position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%); width: min(1020px, calc(100% - 24px)); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 10px 8px; border-radius: 30px; background: rgba(20,20,20,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid var(--line); box-shadow: 0 20px 60px rgba(0,0,0,.7); }
body[data-color="claro"] .bottom-nav { background: rgba(255,255,255,.92); }
.bottom-nav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 12px; font-size: 1.05rem; color: var(--text); }
.bottom-nav a .i { width: 34px; height: 34px; stroke-width: 1.6; }
.bottom-nav a.on .i { color: var(--accent); fill: rgba(var(--accent-rgb), .9); stroke: var(--accent); filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), .6)); }
.bottom-nav a.on::after { content: ""; position: absolute; bottom: -2px; width: 46%; height: 5px; border-radius: 5px; background: var(--grad); box-shadow: 0 0 16px rgba(var(--accent-rgb), 1); }
.bottom-nav .badge { position: absolute; top: 2px; left: calc(50% + 10px); min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }

/* modales */
dialog.modal { border: 1px solid var(--line); border-radius: 22px; background: #121212; color: var(--text); padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100vh - 40px); box-shadow: 0 30px 80px rgba(0,0,0,.8); }
body[data-color="claro"] dialog.modal { background: #fff; }
dialog.modal::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(4px); }
.modal header { display: flex; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line-soft); }
.modal header h3 { font-size: 1.3rem; }
.modal header .close { margin-left: auto; background: none; border: 0; color: var(--text-2); cursor: pointer; }
.modal .content { padding: 22px 24px 26px; }

/* huecos */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.slot { padding: 11px 6px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); cursor: pointer; font-weight: 600; text-align: center; transition: .15s; }
.slot:hover { border-color: rgba(var(--accent-rgb), .7); }
.slot.on { background: var(--grad-btn); border-color: transparent; color: #fff; box-shadow: 0 6px 20px -6px rgba(var(--accent-rgb), .9); }
.slots-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 14px; text-align: center; color: var(--muted); }
.cat-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.cat-pick label { cursor: pointer; }
.cat-pick input { position: absolute; opacity: 0; }
.cat-pick .opt { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 18px 10px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.02); font-weight: 600; transition: .15s; }
.cat-pick .opt .i { width: 34px; height: 34px; color: var(--accent); }
.cat-pick input:checked + .opt { border-color: var(--accent); background: rgba(var(--accent-rgb), .1); box-shadow: 0 0 24px -8px rgba(var(--accent-rgb), .8); }
.cat-pick .opt small { font-weight: 500; color: var(--muted); font-size: .78rem; }

/* gráfica */
.chart-box { position: relative; width: 100%; }
.chart-box svg { width: 100%; height: 100%; display: block; overflow: visible; }
.chart-box .tip { position: absolute; pointer-events: none; background: #1d1d1d; border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: .8rem; white-space: nowrap; transform: translate(-50%, -130%); opacity: 0; transition: opacity .15s; }
.legend-row { display: grid; grid-template-columns: 34px 1fr auto 46px; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: .95rem; }
.legend-row:last-child { border-bottom: 0; }
.legend-row .pct { color: var(--text-2); font-size: .82rem; text-align: right; }

.empty { padding: 32px 20px; text-align: center; color: var(--muted); }
.empty .i { width: 40px; height: 40px; color: var(--text-2); margin: 0 auto 10px; display: block; opacity: .6; }

.week-strip { display: grid; grid-template-columns: 40px repeat(7, 1fr) 40px; gap: 8px; align-items: center; }
.week-strip a.day { display: flex; flex-direction: column; align-items: center; padding: 10px 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.02); }
.week-strip a.day .d { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.week-strip a.day .w { font-size: .8rem; text-transform: uppercase; color: var(--text-2); }
.week-strip a.day .n { font-size: .75rem; color: var(--accent-2); min-height: 1em; }
.week-strip a.day.hoy { border-color: rgba(var(--accent-rgb), .6); }
.week-strip a.day.sel { background: var(--grad-btn); border-color: transparent; color: #fff; }
.week-strip a.day.sel .w, .week-strip a.day.sel .n { color: #fff; }

.invoice { background: #fff; color: #111; }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1100px) {
  .main-nav > a, .main-nav .dd > button { padding: 10px 10px; }
  .header-cta .btn span.hide-md { display: none; }
}
@media (max-width: 980px) {
  .main-nav, .header-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-nav.open { display: block; position: fixed; inset: 76px 0 0 0; background: rgba(6,6,6,.98); z-index: 49; padding: 18px 20px 40px; overflow: auto; }
  body[data-color="claro"] .mobile-nav.open { background: rgba(255,255,255,.98); }
  .mobile-nav a { display: flex; align-items: center; gap: 14px; padding: 16px 6px; font-size: 1.15rem; border-bottom: 1px solid var(--line-soft); }
  .mobile-nav a.sub { padding-left: 34px; font-size: 1rem; color: var(--text-2); }
  .mobile-nav .btns { display: grid; gap: 12px; margin-top: 24px; }
  .hero { min-height: auto; flex-direction: column; align-items: stretch; }
  .hero-media { position: relative; width: 100%; height: 380px; order: -1; }
  .hero-media::after { background: linear-gradient(0deg, var(--bg) 0%, rgba(6,6,6,0) 45%); }
  .hero-content { padding: 0 0 40px; margin-top: -60px; }
  .features { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .feature:nth-child(3) { border-left: 0; }
  .svc-grid, .shop-grid { grid-template-columns: 1fr; }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid.three { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .split-card { grid-template-columns: 1fr; }
  .split-card .media { height: 280px; }
  .split-card .media::after { background: linear-gradient(0deg, rgba(12,12,12,.95), transparent 50%); }
  .split-card .body { padding: 30px 26px 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-media { display: none; }
  .grid-2, .grid-2.even, .grid-clients, .settings-grid { grid-template-columns: 1fr; }
  .client-list { max-height: 360px; }
  .tiles, .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .container, .app { width: calc(100% - 32px); }
  .site-header .bar { height: 66px; }
  .mobile-nav.open { inset: 66px 0 0 0; }
  .logo-img { height: 42px; } .logo-wordmark { height: 38px; }
  .hero-media { height: 300px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .feature { font-size: .98rem; } .feature .i { width: 42px; height: 42px; }
  .svc-card, .shop-card { padding: 24px 22px; min-height: 300px; }
  .svc-card > *:not(.bg), .shop-card > *:not(.bg) { max-width: 78%; }
  .svc-card .bg, .shop-card .bg { width: 60%; opacity: .55; }
  .price-grid, .price-grid.three { grid-template-columns: 1fr; }
  .form.cols-2 { grid-template-columns: 1fr; }
  .form-card, .auth-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .app-hero { min-height: 250px; }
  .app-hero .media { width: 70%; opacity: .75; }
  .app-title { margin-top: 26px; }
  .round-btn { width: 46px; height: 46px; }
  .round-btn .i { width: 22px; height: 22px; }
  .seg a, .seg button { font-size: .98rem; padding: 12px 12px; gap: 8px; }
  .seg .i { width: 20px; height: 20px; }
  .tile { min-height: 140px; padding: 18px 16px; }
  .tile .label { font-size: 1.08rem; }
  .tile .i.big { width: 36px; height: 36px; }
  .stat { padding: 16px; }
  .stat .val { font-size: 1.7rem; }
  .stat .lbl { font-size: .95rem; }
  .stat .lbl .i { width: 24px; height: 24px; }
  .appt { flex-wrap: wrap; gap: 16px; padding: 18px; }
  .appt .vline { display: none; }
  .appt .acts { width: 100%; justify-content: flex-start; }
  .date-badge { width: 84px; } .date-badge .d { font-size: 2.2rem; }
  .plan-card { flex-wrap: wrap; gap: 16px; padding: 18px; }
  .plan-card .icon-tile { width: 64px; height: 64px; }
  .plan-card .icon-tile .i { width: 34px; height: 34px; }
  .plan-card .acts { width: 100%; }
  .info-row { grid-template-columns: 32px 1fr; padding: 14px 16px; }
  .info-row .v { grid-column: 2; color: var(--text-2); font-size: .98rem; }
  .info-row > .i:last-child { display: none; }
  .bottom-nav { bottom: 8px; padding: 6px 4px; border-radius: 22px; }
  .bottom-nav a { font-size: .78rem; padding: 6px 2px 10px; }
  .bottom-nav a .i { width: 26px; height: 26px; }
  .list-row { padding: 12px 14px; gap: 12px; flex-wrap: wrap; }
  .cat-pick { grid-template-columns: 1fr 1fr; }
  .client-head h2 { font-size: 1.6rem; }
  .avatar.xl { width: 130px; height: 130px; }
  .week-strip { grid-template-columns: repeat(7, 1fr); }
  .week-strip > a.nav { display: none; }
  .week-strip a.day .d { font-size: 1.15rem; }
}
@media print {
  .no-print { display: none !important; }
  body { background: #fff; color: #000; }
}

/* añadidos */
.ing-grid { padding: 18px 20px 22px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; }
.ing-grid.one { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.appt > .i.big { width: 44px; height: 44px; color: inherit; }
a.card.appt:hover { border-color: rgba(var(--accent-rgb), .7); }
@media (max-width: 1180px) { .grid-2 .ing-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .ing-grid, .ing-grid.one { grid-template-columns: 1fr; } }
.mt-8 { margin-top: 8px !important; } .mt-16 { margin-top: 16px !important; } .mt-24 { margin-top: 24px !important; } .mt-32 { margin-top: 32px !important; }
.display { font-size: clamp(2.6rem, 5.6vw, 4.7rem); }
@media (min-width: 700px) { .display .l2 { white-space: nowrap; } }
.eyebrow { flex-wrap: wrap; row-gap: 6px; }
.hero > .container, .hero-content { min-width: 0; max-width: 100%; }
@media (max-width: 640px) { .eyebrow { letter-spacing: .22em; font-size: .75rem; } .eyebrow.dots { letter-spacing: .08em; } .display .l2 { white-space: normal; } }
.set-row > .i:last-child { margin-left: auto; flex: none; }
.set-row .v + .i:last-child { margin-left: 6px; }
.set-row .v { text-align: right; }
.i.flip { transform: scaleY(-1); }
.contacto-info { padding-bottom: 400px; }
@media (max-width: 980px) { .contacto-info { padding-bottom: 0; } }

/* agenda del panel: tarjeta de cita */
.ag-fecha::first-letter { text-transform: uppercase; }
.ag-cita { container-type: inline-size; padding: 0; overflow: hidden; }
.ag-cita.glow-bottom { overflow: visible; }
.ag-top { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 22px; padding: 22px 24px 20px; align-items: start; }
.ag-hora { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 12px 6px; border-radius: 14px; background: rgba(0,0,0,.32); border: 1px solid rgba(var(--accent-rgb), .35); text-align: center; line-height: 1.2; }
.ag-hora strong { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; }
.ag-hora span { color: var(--text-2); font-size: .92rem; }
.ag-hora small { margin-top: 6px; color: var(--muted); font-size: .76rem; }
.ag-main { min-width: 0; display: grid; gap: 10px; }
.ag-titulo { display: flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.ag-titulo .i { width: 26px; height: 26px; color: var(--accent); }
.ag-cliente { display: inline-flex; align-items: center; gap: 10px; justify-self: start; max-width: 100%; }
.ag-cliente:hover strong { color: var(--accent-2); }
.ag-meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; color: var(--text-2); font-size: .9rem; }
.ag-meta li { display: flex; align-items: flex-start; gap: 7px; min-width: 0; }
.ag-meta .i { width: 18px; height: 18px; margin-top: 2px; }
.ag-meta .ag-nota { flex-basis: 100%; }
.ag-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.ag-acts form { display: block; min-width: 0; margin: 0; }
.ag-acts .btn { width: 100%; padding-inline: 8px; }
.ag-estado { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 24px 14px; border-top: 1px solid var(--line-soft); }
.is-cancelada .ag-top { opacity: .55; }
@container (max-width: 560px) {
  .ag-top { grid-template-columns: 78px minmax(0, 1fr); gap: 14px; padding: 16px 16px 14px; }
  .ag-hora strong { font-size: 1.15rem; }
  .ag-acts { grid-template-columns: 1fr 1fr; padding: 12px 16px 16px; }
  .ag-estado { padding: 10px 16px 12px; }
}

/* tarifas: icono, título, precio, descripción y botón alineados entre tarjetas */
.pc-head { text-align: center; }
.price-grid.alineada { row-gap: 0; }
.price-grid.alineada .price-card { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: subgrid; grid-row: span 6; row-gap: 4px; justify-items: center; align-items: start; margin-bottom: 20px; }
.price-grid.alineada .pc-head { align-self: center; }
.price-grid.alineada .div { justify-self: stretch; width: auto; }
.price-grid.alineada .price { align-self: center; }
.price-grid.alineada .btn { align-self: end; }
@supports not (grid-template-rows: subgrid) {
  .price-grid.alineada .price-card { display: flex; flex-direction: column; align-items: center; }
  .price-grid.alineada .pc-head { min-height: 68px; display: flex; flex-direction: column; justify-content: center; }
  .price-grid.alineada .btn { margin-top: auto; }
  .price-grid.alineada .desc { margin-bottom: 26px; }
}

/* móvil: respetar la barra de gestos de Android */
.bottom-nav { margin-bottom: env(safe-area-inset-bottom, 0px); }
.app-body { padding-bottom: calc(130px + env(safe-area-inset-bottom, 0px)); }

/* páginas legales */
.legal { max-width: 860px; }
.legal h2 { font-size: 1.35rem; margin: 34px 0 12px; }
.legal p, .legal li { color: var(--text-2); line-height: 1.7; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 8px; margin: 10px 0; }
.legal strong { color: var(--text); }
.legal-tabla { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .95rem; }
.legal-tabla th, .legal-tabla td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal-tabla th { background: rgba(255,255,255,.04); color: var(--text); font-weight: 600; width: 30%; }
.legal-tabla td { color: var(--text-2); }
.legal mark { background: rgba(255,176,32,.18); color: var(--amber); padding: 1px 6px; border-radius: 6px; }
.legal-aviso { display: flex; gap: 10px; align-items: center; margin-top: 18px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255,176,32,.45); color: var(--amber); font-size: .92rem; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.legal-nav a { color: var(--accent-2); font-weight: 600; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-legal a { color: var(--muted); }
.footer-legal a:hover { color: var(--accent-2); }
@media (max-width: 640px) { .legal-tabla th, .legal-tabla td { padding: 8px; font-size: .88rem; } .legal-tabla th { width: 38%; } }
.legal-aviso + p { margin-top: 18px; }
.legal ol { padding-left: 20px; display: grid; gap: 8px; margin: 10px 0; } .legal ol li { color: var(--text-2); }

/* solicitudes de alta (panel) */
.solicitud { padding: 14px 16px; border-bottom: 1px solid var(--line-soft); display: grid; gap: 10px; }
.solicitud:last-child { border-bottom: 0; }
.sol-cab { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sol-cab strong { font-size: 1.02rem; }
.sol-datos { display: flex; flex-wrap: wrap; gap: 2px 12px; overflow-wrap: anywhere; }
.sol-datos a { color: inherit; }
.sol-texto { font-size: .9rem; color: var(--text-2); overflow-wrap: anywhere; }
.sol-acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) { .sol-acts form { flex: 1; } .sol-acts .btn { width: 100%; } }

/* resumen al contratar */
.resumen { margin: 0; display: grid; }
.resumen > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.resumen > div:last-child { border-bottom: 0; }
.resumen dt { display: flex; align-items: center; gap: 10px; color: var(--text-2); white-space: nowrap; }
.resumen dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
.resumen .total dd { font-size: 1.3rem; }
@media (max-width: 420px) { .resumen > div { grid-template-columns: 1fr; } .resumen dd { text-align: left; padding-left: 30px; } }

/* citas por confirmar */
.pc-acts { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 640px) { .pc-fila { flex-direction: column; align-items: stretch; } .pc-acts form { flex: 1; } .pc-acts .btn { width: 100%; } }
.ag-cita.is-pendiente { border-color: rgba(255,176,32,.55); }
.ag-pendiente { display: flex; align-items: center; gap: 8px; padding: 10px 24px; color: var(--amber); font-weight: 600; font-size: .92rem; border-top: 1px solid rgba(255,176,32,.3); }
.ag-acts.ag-acts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@container (max-width: 560px) { .ag-acts.ag-acts-3 { grid-template-columns: 1fr 1fr 1fr; } .ag-pendiente { padding: 10px 16px; } }
.aviso-regla { color: var(--amber); border-color: rgba(255,176,32,.5); }
.accesos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 980px) { .accesos { grid-template-columns: 1fr; } }

/* citas rápidas */
#r-cal .cal-day { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; width: 100%; }
#r-cal .cal-day.r-off { opacity: .28; cursor: default; }
#r-cal .cal-day.r-hoy:not(.hoy) { box-shadow: inset 0 0 0 1px var(--line); }
.cal-nav button { background: none; border: 0; color: inherit; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; cursor: pointer; }
.cal-nav button:hover { background: rgba(255,255,255,.07); }
.r-semana { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.r-semana .chip { padding: 6px 12px; border-radius: 10px; cursor: pointer; color: inherit; font: inherit; }
.r-lista { display: grid; gap: 8px; }
.r-fila { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 12px; }
.r-fila strong { text-transform: capitalize; }
.r-todos { gap: 10px; align-items: center; }
@media (max-width: 640px) { .r-fila { grid-template-columns: 90px minmax(0, 1fr) auto; } }
.prox-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 18px; }
.prox-tit { flex: 1; min-width: 0; }
@media (max-width: 640px) {
  .prox-fila { flex-wrap: nowrap !important; }
  .prox-fila .vline, .prox-ico { display: none; }
  .prox-info { flex-wrap: wrap; gap: 2px 12px; }
  .prox-tit { flex-basis: 100%; order: -1; }
  .prox-info .row { font-size: .88rem; color: var(--text-2); }
}
#r-cal .cal-day.hoy { background: var(--grad-btn); color: #fff; font-weight: 700; box-shadow: 0 6px 18px -4px rgba(var(--accent-rgb), .9); }
.mes-form select { width: auto; padding: 6px 34px 6px 10px; font-size: .85rem; background-position: right 10px center; }
.registro-rapido { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.registro-rapido .btn { width: 100%; }
.mas-datos summary { cursor: pointer; color: var(--accent-2); font-size: .92rem; }
.marca-rapida { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -6px; }
.marca-rapida .chip { padding: 6px 12px; border-radius: 10px; cursor: pointer; color: inherit; font: inherit; font-size: .85rem; }
.registro-rapido { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.registro-rapido .btn { white-space: normal; padding-inline: 12px; }
.grid-2 > *, .grid-2.even > *, .grid-clients > *, .settings-grid > *, .accesos > * { min-width: 0; }
.client-head .grow { min-width: 0; } .client-head .row { flex-wrap: wrap; row-gap: 4px; } .card { min-width: 0; }
.servicios-lista { padding: 4px 18px; }
.servicio-fila { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.servicio-fila:last-child { border-bottom: 0; }
.servicio-fila .grow { min-width: 0; }
.servicio-fila .t { font-weight: 700; } .servicio-fila .s { color: var(--text-2); font-size: .9rem; }
.servicio-estado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 640px) { .servicio-fila { flex-wrap: wrap; } .servicio-estado { flex-direction: row; width: 100%; padding-left: 60px; } }

/* niveles */
.nivel-card { padding: 20px 22px; }
.nivel-top { display: flex; align-items: center; gap: 16px; }
.nivel-medalla { position: relative; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; flex: none; color: var(--nivel); border: 2px solid var(--nivel); box-shadow: 0 0 22px -4px var(--nivel); background: rgba(255,255,255,.03); }
.nivel-medalla .i { width: 30px; height: 30px; }
.nivel-medalla span { position: absolute; bottom: -6px; right: -6px; min-width: 24px; height: 24px; border-radius: 12px; background: var(--nivel); color: #111; font-weight: 800; font-size: .8rem; display: grid; place-items: center; padding: 0 6px; }
.nivel-nombre { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--nivel); line-height: 1.1; }
.nivel-puntos { color: var(--text-2); }
.nivel-desglose { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.nivel-desglose > div { border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.nivel-desglose b { font-size: 1.3rem; font-family: var(--font-display); }
.nivel-desglose span { font-size: .8rem; color: var(--text-2); line-height: 1.25; }
.nivel-desglose em { font-style: normal; font-size: .8rem; color: var(--green); font-weight: 700; }
.nivel-info summary { cursor: pointer; color: var(--accent-2); font-size: .88rem; margin-top: 14px; }
.nivel-pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .75rem; font-weight: 700; border: 1px solid currentColor; }
@media (max-width: 420px) { .nivel-desglose { grid-template-columns: 1fr; } .nivel-desglose > div { grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; } }
.desde-val { font-size: 1.45rem !important; }
.desde-edit { padding: 2px 6px; margin-left: auto; }
.stat .lbl .desde-edit .i { width: 16px; height: 16px; color: var(--text-2); }

/* vista como cliente */
.vista-cliente-barra { position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; padding: 9px 14px; background: #2f9bff; color: #fff; font-size: .9rem; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.vista-cliente-barra .i { width: 18px; height: 18px; }
.vista-cliente-barra .btn-outline { border-color: rgba(255,255,255,.85); color: #fff; }
.vista-cliente-barra .btn-primary { background: #fff; color: #1361b8; box-shadow: none; }
.ver-fila { border-bottom: 1px solid var(--line-soft); }

/* citas: confirmadas en verde, pendientes en naranja */
.card.appt.appt-ok { background: linear-gradient(100deg, rgba(57,210,107,.16) 0%, rgba(20,24,21,.94) 45%, rgba(20,20,20,.95) 70%, rgba(57,210,107,.08) 100%); border-color: rgba(57,210,107,.38); }
.card.appt.appt-pend { background: linear-gradient(100deg, rgba(255,128,32,.20) 0%, rgba(30,20,14,.94) 45%, rgba(20,20,20,.95) 70%, rgba(255,90,30,.10) 100%); border-color: rgba(255,140,40,.45); }
.card.appt.appt-ok .vline { background: rgba(57,210,107,.6); }
.card.appt.appt-pend .vline { background: rgba(255,140,40,.7); }
body[data-color="claro"] .card.appt.appt-ok { background: linear-gradient(100deg, rgba(57,210,107,.14), var(--surface) 55%); }
body[data-color="claro"] .card.appt.appt-pend { background: linear-gradient(100deg, rgba(255,128,32,.16), var(--surface) 55%); }
.card.appt { overflow: visible; }
.cal-dd .dd-menu { min-width: 230px; }
.cal-sync .row input { flex: 1; min-width: 0; font-size: .85rem; }

/* citas rápidas del cliente */
.r-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 12px; }
.r-cats .chip { cursor: pointer; padding: 9px 14px; border-radius: 12px; font-size: .92rem; }
.r-bono { line-height: 1.7; }
.r-bono .i { width: 16px; height: 16px; vertical-align: -3px; color: var(--accent); }
.r-celda { min-width: 0; }
.r-motivo { font-size: .85rem; color: #ff9a5c; line-height: 1.35; display: block; }
.r-fila.r-bloq { opacity: .75; border-style: dashed; }
.r-fila.r-sin { border-color: rgba(255,140,40,.7); background: rgba(255,128,32,.08); }
.r-aviso { margin-top: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255,128,32,.12); border: 1px solid rgba(255,140,40,.45); color: #ffb27a; font-size: .9rem; }
.rapidas-cta { justify-content: center; }
