:root {
  --navy: #0C4160;
  --navy-2: #14587F;
  --gold: #F7AE1C;
  --gold-2: #FFC24A;
  --ink: #1E2430;
  --soft: #EEF7FB;
  --lime: #CFEAF4;
  --white: #fff;          /* page background */
  --card: #fff;           /* surfaces: cards, inputs, panels */
  --on-navy: #fff;        /* text on the primary color */
  --on-gold: #1E2430;     /* text on the accent color */
  --foot: #23252b;
  --muted: color-mix(in srgb, var(--ink) 62%, var(--white));
  --line: color-mix(in srgb, var(--ink) 11%, var(--white));
  --pill: 999px;
  --ok: #2F9E6B;
  --warn: #E2A32F;
  --chg: #D9534F;
  --pub: #5B6CF0;
  --radius: 20px;
  --shadow: 0 10px 30px rgba(28, 61, 90, .08);
  --head: 'Sora', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--white); transition: background .2s; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
code { background: var(--soft); padding: 2px 6px; border-radius: 6px; font-size: .9em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
.pad { padding: 2rem 1rem; }
.pad-s { padding: .5rem 0; display: block; }
.row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.center-row { justify-content: center; }
.col { display: flex; flex-direction: column; gap: 1rem; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 60ch; }
.err { color: var(--chg); font-weight: 600; margin: 0; }
.ico { flex-shrink: 0; vertical-align: middle; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .8rem 1.35rem; border-radius: var(--pill); border: 1.5px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; background: var(--white); }
.btn:hover { transform: translateY(-1px); }
.btn.sm { padding: .5rem .95rem; font-size: .88rem; }
.btn.block { width: 100%; }
.btn.dark { background: var(--navy); color: var(--on-navy); }
.btn.dark:hover { background: var(--navy-2); }
.btn.gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 6px 18px rgba(235, 174, 64, .35); }
.btn.gold:hover { background: var(--gold-2); }
.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--navy); }
.btn.danger { color: var(--chg); }
.link-btn { display: inline-flex; gap: .35rem; align-items: center; font-weight: 700; text-decoration: none; color: inherit; }
.link-btn:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; }
.pill { display: inline-block; padding: .45rem 1rem; border-radius: var(--pill); font-size: .88rem; font-weight: 600; }
.pill.lime { background: var(--lime); color: var(--ink); }
.gold-pill { background: var(--gold); color: var(--on-gold); }
.kicker { display: inline-block; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--lime); padding: .3rem .75rem; border-radius: var(--pill); margin-bottom: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.2rem; }
.chip { border: 1.5px solid var(--line); background: var(--card); padding: .45rem 1rem; border-radius: var(--pill); cursor: pointer; font-weight: 600; font-size: .9rem; }
.chip.on { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.chip i { font-style: normal; opacity: .6; margin-left: .2rem; }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--white) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 80px; }
.brand img { height: 44px; width: auto; display: block; }
.nav { display: flex; gap: 1.6rem; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: .95rem; }
.nav a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.top-actions { display: flex; align-items: center; gap: .7rem; }
.lang { display: flex; border: 1.5px solid var(--line); border-radius: var(--pill); padding: 2px; }
.lang button { border: 0; background: none; padding: .25rem .55rem; border-radius: var(--pill); font-size: .75rem; font-weight: 700; cursor: pointer; color: var(--muted); }
.lang button.on { background: var(--ink); color: var(--white); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 4rem 0 5rem; }
.glow { position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(40% 40% at 70% 40%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%), radial-gradient(35% 40% at 25% 30%, color-mix(in srgb, var(--lime) 55%, transparent), transparent 70%), radial-gradient(40% 40% at 80% 80%, rgba(173, 205, 235, .45), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.hero h1 em { font-style: normal; color: inherit; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 55%, transparent) 62%); }
.hero-copy .pill { margin-bottom: 1.2rem; }
.hero-copy .row { margin-top: 1.8rem; }
.hero-phone { position: relative; justify-self: center; }
.phone { width: 290px; border-radius: 44px; border: 10px solid #1d1f24; background: #1d1f24; box-shadow: 0 30px 60px rgba(28, 61, 90, .25); }
.phone-in { border-radius: 34px; overflow: hidden; background: linear-gradient(160deg, #fdf8e8, #e3eef8); position: relative; }
.phone-avatar { aspect-ratio: 3/3.3; overflow: hidden; }
.phone-avatar img, .phone-avatar svg { width: 100%; height: 100%; object-fit: cover; }
.phone-card { background: var(--card); border-radius: var(--radius) 26px 0 0; margin-top: -26px; position: relative; padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; gap: .3rem; }
.phone-card strong { font-family: var(--head); font-size: 1.3rem; }
.phone-card span { font-family: var(--head); font-weight: 600; font-size: 1.05rem; margin-bottom: .6rem; }
.float-pill { position: absolute; left: -70px; top: 38%; z-index: 2; background: var(--lime); padding: .6rem 1.4rem; border-radius: var(--pill); font-weight: 600; box-shadow: var(--shadow); }
.float-spark { position: absolute; right: -28px; bottom: 26%; z-index: 2; width: 58px; height: 58px; display: grid; place-items: center; background: #d9dcff; border-radius: calc(var(--radius) * .8); font-size: 1.6rem; box-shadow: var(--shadow); }

/* sections */
.sec { padding: 5rem 0; }
.sec.soft { background: var(--soft); }
.sec-head { margin-bottom: 2.4rem; max-width: 720px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .lead { margin-inline: auto; }
.sec-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; max-width: none; }
.sec-head.split .chips { margin: 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc { background: var(--soft); border-radius: var(--radius); padding: 1.8rem 1.5rem; transition: transform .2s; }
.svc:hover { transform: translateY(-4px); }
.svc.navy { background: var(--navy); color: var(--on-navy); }
.svc.navy p { color: color-mix(in srgb, var(--on-navy) 78%, transparent); }
.svc p { color: var(--muted); margin: 0; font-size: .95rem; }
.svc-ico { display: grid; place-items: center; width: 54px; height: 54px; border-radius: calc(var(--radius) * .8); background: var(--gold); color: var(--on-gold); margin-bottom: 1.2rem; }

/* portfolio */
.work { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 100%; }
.work-shot { background: var(--soft); }
.browser-bar { display: flex; gap: 5px; padding: 9px 12px; background: var(--line); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); opacity: .5; }
.work-shot img, .shot-gen { aspect-ratio: 16/10; width: 100%; object-fit: cover; object-position: top; }
.shot-gen { display: grid; place-items: center; padding: 1rem; text-align: center; font-family: var(--head); font-weight: 800; font-size: 1.4rem; }
.work-body { padding: 1.3rem 1.4rem 1.5rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.work-body p { color: var(--muted); font-size: .95rem; flex: 1; }
.tag { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

/* plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; align-items: stretch; }
.plan { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; display: flex; flex-direction: column; gap: .8rem; background: var(--card); position: relative; }
.plan.hot { border-color: var(--navy); background: var(--navy); color: var(--on-navy); box-shadow: 0 24px 50px rgba(28, 61, 90, .25); }
.plan.hot li .ico { color: var(--gold); }
.plan .pill { position: absolute; top: -14px; left: 1.7rem; }
.plan h3 { margin: 0; }
.price { font-family: var(--head); font-size: 2rem; font-weight: 800; }
.price small { font-size: .95rem; font-weight: 500; opacity: .7; }
.plan ul { list-style: none; padding: 0; margin: 0 0 .6rem; display: grid; gap: .55rem; flex: 1; align-content: start; }
.plan li { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; }
.plan li .ico { color: var(--ok); margin-top: 3px; }

/* digital cards section */
.navy-sec { background: var(--navy); color: var(--on-navy); }
.navy-sec .lead { color: color-mix(in srgb, var(--on-navy) 78%, transparent); }
.gold-k { color: var(--gold); background: transparent; padding: 0; }
.cards-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 1.8rem; display: grid; gap: .7rem; }
.ticks li { display: flex; gap: .6rem; align-items: center; }
.ticks .ico { color: var(--gold); }
.ex-title { color: color-mix(in srgb, var(--on-navy) 70%, transparent); font-weight: 600; }
.card-list { display: grid; gap: .9rem; }
.card-mini { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.2rem; border-radius: calc(var(--radius) * .9); background: #fff; color: #1E2430; text-decoration: none; border-left: 8px solid var(--c); transition: transform .15s; }
.card-mini:hover { transform: translateX(4px); }
.cm-photo { width: 50px; height: 50px; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; flex-shrink: 0; }
.cm-photo img { width: 100%; height: 100%; object-fit: cover; }
.cm-txt { display: flex; flex-direction: column; flex: 1; }
.cm-txt small { color: #69707d; }
.cm-go { font-weight: 700; font-size: .85rem; }

/* portal band on home */
.portal-band { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 14%, var(--card)), var(--lime)); padding: 2.6rem; border-radius: var(--radius); }
.portal-band p { margin: 0; color: var(--muted); }
.code-form { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.code-form.col { flex-direction: column; align-items: stretch; }
.code-boxes { display: flex; gap: .45rem; justify-content: center; }
.code-box { width: 48px; height: 58px; text-align: center; font-family: var(--head); font-size: 1.5rem; font-weight: 700; border: 2px solid var(--line); border-radius: 14px; background: var(--card); outline: none; }
.code-box:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(28, 61, 90, .12); }

/* about & contact */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: center; }
.about-pic { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow); background: var(--card); }
.about-pic img, .about-pic svg { width: 100%; height: 100%; object-fit: cover; }
.contact { text-align: center; }
.contact .lead { margin-inline: auto; }

/* footer */
.foot { background: var(--foot); color: #d9dbe0; padding: 3.5rem 0 1.5rem; }
.foot a { color: #fff; text-decoration: none; }
.foot a:hover { color: var(--gold); }
.foot h4 { color: #fff; font-size: 1rem; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.foot-icon { width: 220px; margin-bottom: 1rem; background: #fff; padding: .6rem .9rem; border-radius: 12px; }
.foot-brand p { color: #a7abb5; font-size: .9rem; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid #383b43; font-size: .82rem; }
.foot .muted { color: #8c909a; }

/* login screens */
.portal-login { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 2rem 16px; overflow: hidden; }
.login-card { position: relative; width: min(440px, 100%); background: var(--card); border-radius: var(--radius); padding: 2.4rem 2rem; box-shadow: 0 30px 60px rgba(28, 61, 90, .14); text-align: center; display: flex; flex-direction: column; gap: .4rem; }
.login-card h1 { font-size: 1.7rem; }
.login-card form { margin: 1rem 0; text-align: left; }
.login-icon { width: 250px; margin: 0 auto .8rem; }
label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-weight: 600; }
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=file]):not(.code-box), select, textarea { border: 1.5px solid var(--line); border-radius: 12px; padding: .65rem .8rem; background: var(--card); font-weight: 400; font-size: .95rem; width: 100%; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); }
select { -webkit-appearance: none; appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230C4160' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
input[type=color] { width: 100%; height: 42px; border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; background: var(--card); }
label.check { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }

/* portal */
.portal-top .who { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; }
.cav { display: inline-grid; place-items: center; border-radius: 50%; overflow: hidden; color: #fff; font-weight: 800; flex-shrink: 0; font-family: var(--head); }
.cav img { width: 100%; height: 100%; object-fit: cover; }
.portal { padding: 2rem 0 4rem; background: var(--soft); min-height: calc(100vh - 72px); }
.portal-hero { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center; margin-bottom: 1.5rem; }
.portal-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .2rem; }
.portal-hero p { margin: 0; }
.plan-banner { display: flex; gap: 1.5rem; align-items: center; background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 1.2rem 1.5rem; }
.plan-banner > div { display: flex; flex-direction: column; min-width: 120px; }
.plan-banner small { opacity: .7; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; }
.plan-banner strong { font-family: var(--head); font-size: 1.5rem; color: var(--gold); }
.plan-banner span { font-size: .85rem; opacity: .85; }
.plan-banner ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem 1rem; font-size: .82rem; }
.plan-banner li { display: flex; gap: .35rem; align-items: center; }
.plan-banner .ico { color: var(--gold); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9rem; margin-bottom: 1.5rem; }
.stat { background: var(--card); border-radius: calc(var(--radius) * .9); padding: 1rem 1.2rem; border-left: 5px solid var(--line); }
.stat b { display: block; font-family: var(--head); font-size: 1.8rem; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .85rem; }
.stat.warn { border-left-color: var(--warn); }
.stat.ok { border-left-color: var(--ok); }
.stat.chg { border-left-color: var(--chg); }
.tabs { display: flex; gap: .3rem; overflow-x: auto; background: var(--card); padding: .35rem; border-radius: var(--pill); margin-bottom: 1.5rem; scrollbar-width: none; }
.tabs a { padding: .6rem 1.1rem; border-radius: var(--pill); text-decoration: none; color: var(--muted); font-weight: 600; font-size: .92rem; white-space: nowrap; display: flex; align-items: center; gap: .4rem; }
.tabs a.on { background: var(--navy); color: var(--on-navy); }
.dot-n { font-style: normal; background: var(--chg); color: #fff; font-size: .7rem; min-width: 18px; height: 18px; border-radius: 9px; display: inline-grid; place-items: center; padding: 0 5px; }
.note { margin-bottom: 1rem; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; align-items: start; }
.panel { background: var(--card); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.2rem; }
.panel-h { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mini-list { display: grid; gap: .5rem; margin-bottom: 1rem; }
.post-row { display: flex; align-items: center; gap: .8rem; padding: .55rem; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * .8); background: var(--card); cursor: pointer; text-align: left; width: 100%; }
.post-row:hover { border-color: var(--navy); }
.thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.gen span, .tile.gen span, .ig-img.gen span, .story-in.gen span { display: none; }
.pr-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pr-txt strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pr-txt small { color: var(--muted); font-size: .78rem; display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.badge { font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: var(--pill); white-space: nowrap; }
.b-revision { background: #E9EBF0; color: #4a5468; }
.b-pendiente { background: #FFF1D6; color: #8a5b00; }
.b-aprobado, .b-aprobada { background: #DDF4E8; color: #1f7a50; }
.b-cambios { background: #FCE1E0; color: #a12f2b; }
.b-publicado { background: #E3E6FF; color: #3a47b8; }
.b-rechazada { background: #eceef2; color: #555; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.d-revision { background: #9aa3b5; } .d-pendiente { background: var(--warn); } .d-aprobado { background: var(--ok); } .d-cambios { background: var(--chg); } .d-publicado { background: var(--pub); }

/* generated post tiles */
.tile, .ig-img, .pv-gen, .story-in { position: relative; overflow: hidden; }
.tile img, .ig-img img, .story-in img { width: 100%; height: 100%; object-fit: cover; }
.gen { display: grid; place-items: center; text-align: center; font-family: var(--head); font-weight: 800; padding: 10%; }
.tile.gen span, .ig-img.gen span { display: block; font-size: clamp(.7rem, 1.6vw, 1.05rem); line-height: 1.15; }
.pv-gen { aspect-ratio: 4/5; font-size: 1.8rem; }

/* calendar */
.cal { background: var(--card); border-radius: var(--radius); padding: 1.3rem; }
.cal-head { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.cal-head h3 { margin: 0; flex: 1; text-align: center; }
.cal-head h3::first-letter, .pv-when::first-letter { text-transform: uppercase; }
.cal-legend { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--muted); margin-bottom: .8rem; }
.cal-legend span { display: flex; gap: .35rem; align-items: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cal-wd { padding: .5rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--soft); }
.cal-day { min-height: 112px; padding: .35rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: .25rem; }
.cal-day.out { background: #fafbfc; }
.cal-day.out .cal-num { opacity: .4; }
.cal-day.now .cal-num { color: var(--on-navy); }
.cal-day.now .cal-num::before { content: ''; position: absolute; left: -4px; top: -2px; width: 26px; height: 24px; border-radius: 12px; background: var(--navy); z-index: -1; }
.cal-num { position: relative; z-index: 0; font-weight: 700; font-size: .85rem; display: flex; justify-content: space-between; align-items: center; }
.cal-add { border: 0; background: var(--soft); width: 22px; height: 22px; border-radius: 50%; cursor: pointer; font-weight: 700; color: var(--navy); opacity: 0; transition: opacity .15s; }
.cal-day:hover .cal-add { opacity: 1; }
.cal-chip { min-width: 0; border: 0; text-align: left; border-radius: 8px; padding: .3rem .4rem; cursor: pointer; font-size: .72rem; line-height: 1.25; border-left: 3px solid; background: var(--soft); display: flex; flex-direction: column; }
.cal-chip:hover { filter: brightness(.96); }
.cc-top { color: var(--muted); display: flex; align-items: center; gap: .2rem; white-space: nowrap; overflow: hidden; }
.cc-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-revision { border-color: #9aa3b5; border-style: dashed; background: #F4F5F8; }
.c-pendiente { border-color: var(--warn); background: #FFF8EA; }
.c-aprobado { border-color: var(--ok); background: #EEF9F3; }
.c-cambios { border-color: var(--chg); background: #FDEFEE; }
.c-publicado { border-color: var(--pub); background: #F0F2FF; }
.cal-agenda { display: none; }

/* Instagram mockup */
.ig-wrap { display: flex; justify-content: center; }
.ig { width: min(420px, 100%); background: var(--card); border-radius: 34px; border: 10px solid #1d1f24; overflow: hidden; box-shadow: 0 30px 60px rgba(28, 61, 90, .18); font-family: -apple-system, 'Inter', sans-serif; }
.ig-bar { display: flex; justify-content: space-between; padding: .8rem 1rem .4rem; font-size: 1.05rem; }
.ig-head { display: flex; align-items: center; gap: 1.2rem; padding: .5rem 1rem; }
.ig-av { padding: 3px; border-radius: 50%; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
.ig-av .cav { border: 3px solid #fff; font-size: 1.8rem; }
.ig-nums { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.ig-nums b { display: block; font-size: 1.05rem; }
.ig-nums span { font-size: .78rem; }
.ig-bio { padding: .2rem 1rem .8rem; font-size: .85rem; line-height: 1.35; }
.ig-stories { display: flex; gap: .8rem; padding: .3rem 1rem .9rem; overflow-x: auto; }
.ig-story { border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .2rem; padding: 0; }
.ig-story .ring { width: 64px; height: 64px; border-radius: 50%; padding: 3px; background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); display: block; }
.story-in { width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; display: block; padding: 0; }
.ig-story small { font-size: .68rem; color: var(--muted); }
.ig-tabs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #efefef; }
.ig-tabs span { display: grid; place-items: center; padding: .6rem; color: #999; }
.ig-tabs span.on { color: #111; border-bottom: 1.5px solid #111; }
.ig-tabs svg { width: 20px; height: 20px; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig-cell { position: relative; border: 0; padding: 0; cursor: pointer; aspect-ratio: 3/4; background: #eee; }
.ig-cell .ig-img { width: 100%; height: 100%; }
.ig-type { position: absolute; top: 6px; right: 6px; width: 18px; height: 18px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.ig-type svg { width: 100%; height: 100%; }
.ig-sched { position: absolute; left: 5px; bottom: 5px; display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .92); color: #111; font-size: .62rem; font-weight: 700; padding: 2px 6px; border-radius: var(--pill); }

/* content cards */
.content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.content-card { background: var(--card); border-radius: var(--radius); padding: 1rem; display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
.cc-vis { position: relative; border: 0; padding: 0; cursor: pointer; border-radius: 14px; overflow: hidden; aspect-ratio: 4/5; align-self: start; }
.cc-vis .tile { width: 100%; height: 100%; }
.cc-body { min-width: 0; display: flex; flex-direction: column; gap: .35rem; }
.cc-meta { display: flex; gap: .35rem; align-items: center; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.cc-body h4 { margin: 0; font-size: 1rem; }
.cap-prev { font-size: .86rem; color: #444; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 .3rem; white-space: pre-line; }

/* proposals */
.props { display: grid; gap: 1.2rem; margin-top: 1rem; }
.prop { background: var(--card); border-radius: var(--radius); padding: 1.6rem; }
.prop-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.items { width: 100%; border-collapse: collapse; margin: .5rem 0 1rem; }
.items td { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.items td:last-child { text-align: right; font-weight: 600; white-space: nowrap; }
.items .tot td { border: 0; font-family: var(--head); font-weight: 800; font-size: 1.15rem; padding-top: .9rem; }
.comment-form { display: flex; gap: .5rem; margin-top: .8rem; }
.comment-form input { flex: 1; }
.changes-form { display: grid; gap: .6rem; }
.comments { margin: 1rem 0; display: grid; gap: .5rem; }
.comments h5 { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.msg { padding: .6rem .8rem; border-radius: 14px; max-width: 90%; }
.msg p { margin: 0; font-size: .9rem; }
.msg small { color: var(--muted); font-size: .72rem; }
.from-client { background: #FFF6E3; justify-self: end; }
.from-team { background: var(--soft); }

/* modal */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(20, 26, 36, .55); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { position: relative; background: var(--card); border-radius: var(--radius); width: min(980px, 100%); max-height: calc(100vh - 32px); overflow: auto; }
.x { position: absolute; top: 10px; right: 12px; z-index: 3; border: 0; background: rgba(255, 255, 255, .9); width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; cursor: pointer; line-height: 1; }
.post-modal { display: grid; grid-template-columns: 1fr 1fr; }
.pv-left { background: #111; display: flex; flex-direction: column; justify-content: center; }
.pv-media { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.pv-media img { flex: 0 0 100%; scroll-snap-align: start; max-height: 80vh; object-fit: contain; }
.pv-video { padding: .5rem; }
.pv-left .muted { color: #aaa; text-align: center; }
.pv-right { padding: 1.4rem; display: flex; flex-direction: column; gap: .8rem; }
.pv-head { display: flex; align-items: center; gap: .6rem; padding-right: 2.5rem; }
.pv-head div { flex: 1; display: flex; flex-direction: column; }
.pv-head small { color: var(--muted); display: flex; align-items: center; gap: .25rem; text-transform: capitalize; }
.pv-when { font-weight: 600; }
.pv-right h3 { margin: 0; }
.caption-box { background: var(--soft); border-radius: calc(var(--radius) * .8); padding: 1rem; }
.cb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.caption-box p { margin: 0 0 .5rem; font-size: .93rem; }
.caption-box .tags { color: #2a59a8; }
.video { position: relative; aspect-ratio: 9/16; max-height: 70vh; margin: 0 auto; }
.video iframe, .video video { width: 100%; height: 100%; border: 0; border-radius: 12px; background: #000; }
.form-modal { padding: 2rem; width: min(640px, 100%); }
.form-modal.wide { width: min(820px, 100%); }
.form { display: grid; gap: 1rem; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .9rem; }
.media-edit { display: flex; flex-wrap: wrap; gap: .6rem; }
.media-th { position: relative; width: 84px; height: 105px; border-radius: 12px; overflow: hidden; }
.media-th img { width: 100%; height: 100%; object-fit: cover; }
.media-th button { position: absolute; top: 4px; right: 4px; border: 0; width: 22px; height: 22px; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; }
.media-add { width: 84px; height: 105px; border: 2px dashed var(--line); border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--navy); }
.color-pick { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.sw { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); cursor: pointer; }
.sw.on { box-shadow: 0 0 0 3px var(--navy); }
.items-edit { display: grid; gap: .5rem; }
.item-row { display: grid; grid-template-columns: 1fr 130px auto; gap: .5rem; }
.upload-row { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.cover-th { height: 64px; border-radius: 10px; }
.set-av { width: 72px; height: 80px; border-radius: 14px; overflow: hidden; display: block; }
.set-av img, .set-av svg { width: 100%; height: 100%; object-fit: cover; }

/* admin */
.admin { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 2rem; padding: 2rem 0 4rem; }
.side { display: flex; flex-direction: column; gap: .3rem; position: sticky; top: 92px; align-self: start; }
.side a { padding: .7rem 1rem; border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.side a.on { background: var(--navy); color: var(--on-navy); }
.side a:not(.on):hover { background: var(--soft); }
.admin-body { min-width: 0; }
.admin-body .tab-body .cal, .admin-body .prop, .admin-body .content-card { border: 1.5px solid var(--line); }
.admin-body .tabs { background: var(--soft); }
.admin-body .stat { background: var(--soft); }
.admin-body .panel { border: 1.5px solid var(--line); }
.admin-h { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.admin-h h1 { font-size: 1.9rem; margin: 0; }
.ah-client { display: flex; align-items: center; gap: 1rem; }
.ah-client p { margin: 0; }
.client-list { display: grid; gap: .7rem; margin-top: 1rem; }
.client-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .9rem 1.1rem; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * .9); }
.cr-main { display: flex; align-items: center; gap: .8rem; flex: 1; min-width: 220px; text-decoration: none; color: var(--ink); }
.cr-main span:last-child { display: flex; flex-direction: column; }
.cr-main small { color: var(--muted); }
.code-pill { font-family: var(--head); font-weight: 700; letter-spacing: .15em; background: var(--lime); padding: .2rem .7rem; border-radius: var(--pill); font-size: .9rem; }
.activity { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.activity li { padding: .6rem .8rem; border-radius: 12px; background: var(--soft); display: flex; align-items: flex-start; gap: .5rem; font-size: .9rem; }
.act-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.act-del { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: .2rem; border-radius: 8px; display: grid; place-items: center; }
.act-del:hover { color: #C0392B; background: rgba(192, 57, 43, .08); }
.activity li.new { background: #FFF6E3; }
.activity a { text-decoration: none; color: var(--ink); }
.activity small { color: var(--muted); font-size: .75rem; }

/* digital card page */
.card-page { min-height: 100vh; background: linear-gradient(180deg, var(--c) 0 260px, #f2f3f6 260px); padding: 2rem 16px 2.5rem; display: flex; flex-direction: column; align-items: center; gap: 1.2rem; position: relative; }
.card-lang { position: absolute; top: 12px; right: 12px; }
.card-lang .lang { background: rgba(255, 255, 255, .9); border-color: transparent; }
.dcard { width: min(420px, 100%); background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px rgba(0, 0, 0, .15); margin-top: 1.5rem; }
.dc-cover { height: 130px; background: linear-gradient(135deg, var(--c), var(--a)); }
.dc-cover img { width: 100%; height: 100%; object-fit: cover; }
.dc-photo { width: 120px; height: 120px; border-radius: 50%; border: 5px solid #fff; margin: -64px auto 0; background: var(--c); color: var(--fg); display: grid; place-items: center; overflow: hidden; position: relative; box-shadow: 0 8px 20px rgba(0, 0, 0, .12); font-family: var(--head); font-weight: 800; font-size: 2.6rem; }
.dc-photo img { width: 100%; height: 100%; object-fit: cover; }
.dc-body { padding: 1rem 1.6rem 1.8rem; text-align: center; display: flex; flex-direction: column; gap: .2rem; }
.dc-body h1 { font-size: 1.7rem; margin: .3rem 0 0; }
.dc-title { color: var(--muted); margin: 0; font-weight: 600; }
.dc-company { margin: 0; font-weight: 700; color: var(--c); }
.dc-bio { margin: .8rem 0 0; font-size: .93rem; color: #4b505b; }
.dc-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(66px, 1fr)); gap: .6rem; margin: 1.4rem 0 1rem; }
.dc-actions a { display: flex; flex-direction: column; align-items: center; gap: .35rem; text-decoration: none; color: var(--ink); font-size: .74rem; font-weight: 600; }
.dc-actions a span { width: 54px; height: 54px; border-radius: calc(var(--radius) * .9); background: var(--c); color: var(--fg); display: grid; place-items: center; transition: transform .15s; }
.dc-actions a:hover span { transform: translateY(-2px); }
.dc-save { background: var(--a); color: #1d2433; font-size: 1rem; padding: 1rem; }
.dc-socials { display: flex; justify-content: center; gap: .8rem; margin: 1.2rem 0 .4rem; }
.dc-socials a { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--c); }
.dc-address { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
.dc-address .ico { vertical-align: -2px; }
.dc-row { display: flex; justify-content: center; gap: .5rem; margin-top: 1rem; }
.dc-qr { display: flex; flex-direction: column; align-items: center; gap: .5rem; margin-top: 1rem; }
.dc-qr #qr img, .dc-qr #qr canvas { border: 10px solid #fff; border-radius: 12px; box-shadow: var(--shadow); }
.dc-made { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--muted); font-size: .8rem; }
.dc-made img { height: 26px; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: var(--white); padding: .8rem 1.3rem; border-radius: var(--pill); font-weight: 600; z-index: 100; transition: transform .25s, opacity .25s; max-width: calc(100% - 32px); text-align: center; opacity: 0; pointer-events: none; }
#toast.show { transform: translate(-50%, 0); opacity: 1; }

/* responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .grid4 { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .hero-in, .cards-sec, .about { grid-template-columns: 1fr; }
  .hero-phone { margin-top: 1rem; }
  .about-pic { max-width: 300px; }
  .portal-band { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .portal-hero { grid-template-columns: 1fr; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .admin { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
  .side { position: static; flex-direction: row; overflow-x: auto; }
  .post-modal { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sec { padding: 3.5rem 0; }
  .hero { padding: 2.5rem 0 3.5rem; }
  .grid4, .grid3 { grid-template-columns: 1fr; }
  .brand img { height: 44px; }
  .top-actions .btn.dark { padding: .5rem .8rem; }
  .float-pill { left: -30px; }
  .float-spark { right: -10px; }
  .phone { width: 250px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .plan-banner { flex-direction: column; align-items: flex-start; }
  .plan-banner ul { grid-template-columns: 1fr; }
  .portal-top .who span:last-child { display: none; }
  .code-box { width: 42px; height: 52px; font-size: 1.3rem; }
  .portal-band { padding: 1.6rem; }
  .foot-in { grid-template-columns: 1fr; }
  .cal-grid { display: none; }
  .cal-legend { display: none; }
  .cal-agenda { display: grid; gap: .5rem; }
  .content-card { grid-template-columns: 90px 1fr; }
  .content-grid { grid-template-columns: 1fr; }
  .form-modal { padding: 1.4rem; }
  .item-row { grid-template-columns: 1fr 90px auto; }
}

/* long titles must truncate instead of widening the page */
.mini-list, .cal-agenda, .props, .client-list { grid-template-columns: minmax(0, 1fr); }
.post-row { min-width: 0; }

/* hero variants (Diseño → Portada) */
.hero.h-centrado .hero-in { grid-template-columns: 1fr; text-align: center; }
.hero.h-centrado .hero-copy { max-width: 820px; margin-inline: auto; }
.hero.h-centrado .lead { margin-inline: auto; }
.hero.h-centrado .row { justify-content: center; }
.hero-svcs { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: 2.4rem; }
.hero-svcs span { padding: .55rem 1.1rem; border-radius: var(--pill); background: var(--card); border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; }
.hero-photo { position: relative; justify-self: center; width: min(400px, 100%); }
.hero-photo::before { content: ''; position: absolute; inset: 8% -6% -6% 8%; background: var(--gold); border-radius: var(--radius); }
.hero-photo .hp-img { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.hero-photo .hp-img img, .hero-photo .hp-img svg { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .hp-tag { position: absolute; left: -24px; bottom: 12%; background: var(--card); color: var(--ink); padding: .9rem 1.2rem; border-radius: calc(var(--radius) * .8); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.hero-photo .hp-tag small { color: var(--muted); }

/* admin: design editor */
.design { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.design-ctl { display: grid; gap: 1rem; }
.design-ctl .panel { margin: 0; }
.design-ctl h3 { font-size: 1rem; margin-bottom: .8rem; }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.preset { border: 2px solid var(--line); border-radius: 14px; padding: .6rem; cursor: pointer; background: var(--card); text-align: left; display: flex; flex-direction: column; gap: .4rem; }
.preset.on { border-color: var(--navy); box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 18%, transparent); }
.preset .sw-row { display: flex; height: 34px; border-radius: 8px; overflow: hidden; }
.preset .sw-row i { flex: 1; }
.preset strong { font-size: .88rem; }
.preset small { color: var(--muted); font-size: .75rem; line-height: 1.3; }
.colors { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.colors label { flex-direction: row; align-items: center; gap: .5rem; font-weight: 500; }
.colors input[type=color] { width: 42px; height: 34px; flex-shrink: 0; }
.seg { display: flex; border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; }
.seg label { flex: 1; flex-direction: row; justify-content: center; padding: .45rem .3rem; border-radius: 9px; cursor: pointer; font-weight: 600; font-size: .82rem; text-align: center; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.seg label:has(input:checked) { background: var(--navy); color: var(--on-navy); }
.sec-list { display: grid; gap: .4rem; }
.sec-item { display: flex; align-items: center; gap: .5rem; padding: .5rem .7rem; border: 1.5px solid var(--line); border-radius: 12px; }
.sec-item label { flex: 1; flex-direction: row; align-items: center; gap: .5rem; font-weight: 600; }
.sec-item button { border: 0; background: var(--soft); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; }
.sec-item button:disabled { opacity: .3; cursor: default; }
.lang-tabs { display: flex; gap: .4rem; margin-bottom: .6rem; }
.preview { position: sticky; top: 88px; background: var(--soft); border-radius: 18px; padding: .8rem; }
.preview-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; gap: .5rem; }
.preview-frame { display: flex; justify-content: center; overflow: hidden; border-radius: 12px; }
.preview:not(.mobile) .preview-frame { display: block; }
.preview iframe { width: 100%; height: calc(100vh - 190px); min-height: 520px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: width .25s; }
.preview.mobile iframe { width: 390px; }
.logo-th { height: 44px; width: auto; background: #fff; border-radius: 8px; padding: 4px; border: 1px solid var(--line); }
@media (max-width: 1100px) { .design { grid-template-columns: minmax(0, 1fr); } .preview { position: static; } }
@media (max-width: 980px) { .hero-photo .hp-tag { left: 8px; } }

/* accent placed on top of the primary color (kept readable when both colors are similar) */
:root { --gold-on: var(--gold); --on-gold-on: var(--on-gold); }
.navy-sec .gold-k, .navy-sec .ticks .ico, .plan.hot li .ico { color: var(--gold-on); }
.navy-sec .btn.gold, .plan.hot .btn.gold, .svc.navy .svc-ico, .plan.hot .gold-pill { background: var(--gold-on); color: var(--on-gold-on); }

/* plans behind the lead form */
.plans-gate { display: grid; align-items: center; justify-items: center; }
.plans-gate > * { grid-area: 1 / 1; }
.plans-gate .plans { width: 100%; }
.plans.locked { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; }
.lead-card { position: relative; z-index: 1; width: min(420px, 100%); background: var(--card); color: var(--ink); border-radius: var(--radius); padding: 1.8rem; box-shadow: 0 30px 70px rgba(0, 0, 0, .18); display: grid; gap: .8rem; text-align: left; border: 1.5px solid var(--line); }
.lead-card h3 { margin: 0; font-size: 1.35rem; }
.lead-card p { margin: 0; }
.lead-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--gold); color: var(--on-gold); }
.client-row.done { opacity: .6; }
@media (max-width: 640px) {
  .plans.locked { display: none; }
}

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.dc-made .brand img { height: 30px; }

/* strategy document */
.prop-head h3 { margin: .2rem 0 .6rem; }
.strategy { display: grid; gap: 1.1rem; margin: 1rem 0 1.2rem; }
.strategy h4 { display: flex; align-items: center; gap: .55rem; margin: 0 0 .35rem; font-size: 1rem; }
.strategy h4 i { font-style: normal; width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-size: .78rem; }
.strategy p { margin: 0 0 0 calc(26px + .55rem); color: var(--ink); }
.sec-edit { display: grid; gap: .8rem; }
.sec-edit-row { display: grid; gap: .4rem; padding: .8rem; border: 1.5px solid var(--line); border-radius: 14px; }
.sec-edit-row .row { flex-wrap: nowrap; }
.sec-edit-row input { font-weight: 600; }

.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); margin: 0; }

/* uploaded videos and downloads */
.thumb video, .tile video, .ig-img video, .story-in video, .media-th video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-media video { flex: 0 0 100%; scroll-snap-align: start; max-height: 80vh; background: #000; }
.downloads h5 { margin: 0 0 .5rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.link-plain { border: 0; background: none; cursor: pointer; color: var(--ink); text-decoration: underline; font-size: .9rem; }
.ok-msg { background: var(--soft); padding: .7rem .9rem; border-radius: 12px; margin: .4rem 0 0; font-size: .9rem; text-align: left; }

/* agenda */
.ev-grabacion { border-color: var(--gold); background: #FFF4DC; }
.ev-edicion { border-color: #2A8FBD; background: #E3F3F9; }
.ev-reunion { border-color: var(--navy); background: var(--soft); }
.ev-otro { border-color: var(--muted); background: var(--soft); }
.ev-done { opacity: .5; }
.cal-agenda > div { display: grid; gap: .2rem; }
.inv-row { text-decoration: none; color: inherit; }
.item-row.inv-item { grid-template-columns: 1fr 70px 110px auto; }

/* accounting */
.stat b { font-size: clamp(1.05rem, 2vw, 1.5rem); }
.acct { width: 100%; border-collapse: collapse; font-size: .92rem; }
.acct th { text-align: left; color: var(--muted); font-size: .78rem; padding: .4rem; }
.acct td { padding: .55rem .4rem; border-top: 1px solid var(--line); }
.acct .in { color: var(--ok); font-weight: 700; white-space: nowrap; }
.acct .out { color: var(--chg); font-weight: 700; white-space: nowrap; }

/* invoices */
.inv-tools { display: flex; justify-content: space-between; padding: 1rem; max-width: 816px; margin: 0 auto; }
.inv-wrap { overflow-x: auto; padding: 0 1rem 2rem; display: grid; gap: 1.5rem; justify-items: center; justify-content: safe center; background: #e9ecef; padding-top: 1.5rem; }
.inv-page { width: 816px; min-height: 1056px; background: #fff; color: #0C4160; position: relative; overflow: hidden; font-family: 'Inter', sans-serif; box-sizing: border-box; flex-shrink: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.inv-page h1, .inv-page h2, .inv-page h3 { font-family: 'Inter', sans-serif; }

/* my design */
.ip-cover { background: linear-gradient(#F7AE1C 0 62%, #958679 62%); padding: 60px 56px; }
.ip-screen { background: #fff; border: 16px solid #5f6160; border-radius: 26px; height: 470px; padding: 0; box-shadow: 0 0 0 26px #fff; position: relative; }
.ip-bar { display: flex; gap: 7px; padding: 10px 16px; border-bottom: 3px solid #5f6160; }
.ip-bar i { width: 11px; height: 11px; border-radius: 50%; background: #F7AE1C; }
.ip-bar i:first-child { background: #ee4d4d; } .ip-bar i:last-child { background: #43b35a; }
.ip-nav { padding: 12px 26px; border-bottom: 1px solid #999; margin: 0 16px; }
.ip-nav img { height: 34px; }
.ip-date { position: absolute; right: 28px; top: 112px; background: #0C4160; color: #fff; font-weight: 800; font-size: 25px; padding: 7px 34px; text-transform: uppercase; }
.ip-who { display: flex; align-items: center; gap: 14px; margin: 74px 32px 16px; }
.ip-who img { width: 110px; opacity: .22; }
.ip-who h2 { color: #F7AE1C; font-size: 42px; font-weight: 800; margin: 0; text-transform: uppercase; letter-spacing: -.01em; }
.ip-screen ul { margin: 0 0 0 56px; font-size: 18px; letter-spacing: .03em; color: #222; }
.ip-stand { display: block; width: 240px; height: 170px; margin: 26px auto 0; background: #fff; clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%); }
.ip-cover-logo { position: absolute; left: 50%; bottom: 60px; transform: translateX(-50%); width: 300px; background: #fff; padding: 22px 34px; border-radius: 22px; }
.ip { display: flex; flex-direction: column; }
.ip-top { display: flex; justify-content: space-between; align-items: flex-start; padding: 70px 80px 34px; box-sizing: border-box; }
.ip-top img { width: 240px; }
.ip-top h2 { font-size: 20px; letter-spacing: .14em; text-transform: uppercase; margin: 16px 0 14px; font-weight: 800; }
.ip-top hr { border: 0; height: 3px; width: 190px; background: #d8d8d8; margin: 0 0 22px; }
.ip-num { font-size: 40px; font-weight: 900; letter-spacing: .08em; margin: 0; }
.ip-block { background: #F7AE1C; color: #fff; position: relative; padding: 46px 64px 28px; }
.ip-notch { position: absolute; left: 50%; top: 0; width: 66px; height: 34px; background: #fff; transform: translateX(-50%); clip-path: polygon(0 0, 100% 0, 50% 100%); }
.ip-cols { display: flex; justify-content: space-between; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; padding: 0 18px 12px; border-bottom: 3px solid #0C4160; }
.ip-items { min-height: 230px; padding: 10px 18px; }
.ip-items div { display: flex; justify-content: space-between; gap: 40px; font-size: 16px; padding: 12px 0; text-transform: uppercase; }
.ip-items span:last-child { white-space: nowrap; text-transform: none; }
.ip-totals { border-top: 3px solid #0C4160; border-bottom: 3px solid #0C4160; padding: 16px 0; font-weight: 800; font-size: 15px; text-transform: uppercase; }
.ip-totals div { display: flex; justify-content: flex-end; gap: 28px; padding: 6px 0; }
.ip-totals b { min-width: 150px; text-align: right; text-transform: none; }
.ip-thanks { text-align: right; font-size: 44px; font-weight: 900; letter-spacing: .14em; padding: 30px 60px 0; text-transform: uppercase; }
.ip-notes { padding: 0 64px; font-size: 13px; }
.ip-foot { text-align: center; font-size: 15px; margin: auto 0 0; padding: 24px 0 28px; }
.ip-pay { padding-top: 90px; }
.ip-mark { display: block; width: 260px; margin: 0 auto 70px; }
.ip-pay .ip-block { padding: 70px 80px 60px; text-align: center; min-height: 520px; }
.ip-pay h3 { font-size: 24px; margin: 0 0 22px; color: #0C4160; }
.ip-payinfo { font-size: 23px; line-height: 1.55; color: #0C4160; font-weight: 600; margin: 0 0 28px; }
.ip-terms { font-size: 19px; margin: 0; }

/* recibo */
.ir { background: #FBF8F1; padding: 76px 84px 170px; }
.ir-head { display: flex; justify-content: space-between; }
.ir-head h1 { font-size: 86px; font-weight: 500; letter-spacing: -.03em; margin: 0; color: #0C4160; line-height: 1; }
.ir-head hr, .ir-date hr { border: 0; height: 2px; background: #F7AE1C; margin: 14px 0; }
.ir-head div img { height: 44px; }
.ir-mark { width: 130px; height: fit-content; margin-right: 110px; }
.ir-meta { display: flex; justify-content: space-between; margin: 54px 0 34px; font-size: 18px; line-height: 1.25; }
.ir-pill { display: inline-block; border: 1.5px solid #0C4160; border-radius: 40px; padding: 10px 34px; font-size: 21px; margin-bottom: 10px; }
.ir-meta p { margin: 0; }
.ir-date { text-align: right; min-width: 210px; font-size: 20px; }
.ir-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ir-table th { background: #0C4160; color: #fff; font-weight: 500; padding: 12px 8px; text-align: left; font-size: 17px; }
.ir-table td { border: 1px solid #0C4160; padding: 13px 8px; }
.ir-table th:not(:first-child), .ir-table td:not(:first-child) { text-align: center; white-space: nowrap; }
.ir-totals { margin: 20px 0 0 auto; width: 300px; font-size: 16px; }
.ir-totals div { display: flex; justify-content: space-between; padding: 6px 0; }
.ir-totals b { font-weight: 600; }
.ir-pay { font-size: 13px; margin-top: 16px; }
.ir-pay p { margin: 4px 0 0; }
.ir-foot { position: absolute; left: 84px; right: 84px; bottom: 100px; text-align: center; border-top: 2px solid #F7AE1C; padding-top: 12px; margin: 0; font-size: 17px; }
.ir-wave { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; background: radial-gradient(circle at 60px 84px, #F7AE1C 62px, transparent 63px) 0 0 / 120px 84px repeat-x; }

/* factura */
.if { background: #F3F2EE; padding: 54px 50px; }
.if h1 { font-size: 118px; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; text-align: center; margin: 0 0 8px; line-height: 1; color: #0C4160; }
.if-box { border: 1.5px solid #222; display: grid; grid-template-columns: 270px 1fr; min-height: 790px; }
.if-box aside { padding: 24px 26px; border-right: 1.5px solid #222; margin: 14px 0; font-size: 13px; color: #222; position: relative; }
.if h4 { color: #0C4160; font-size: 15px; letter-spacing: .06em; margin: 0 0 12px; font-family: 'Inter', sans-serif; }
.if aside strong { color: #F7AE1C; font-size: 15px; display: block; margin-bottom: 12px; }
.if aside p { margin: 0 0 10px; }
.if-pay { position: absolute; left: 26px; right: 20px; bottom: 16px; }
.if-main { padding: 24px 22px; display: flex; flex-direction: column; color: #222; font-size: 14px; }
.if-meta { display: flex; justify-content: space-between; align-items: center; border-bottom: 1.5px solid #222; padding-bottom: 18px; margin-bottom: 16px; }
.if-meta img { height: 36px; }
.if-meta p { margin: 0; text-align: right; letter-spacing: .05em; }
.if-row { display: flex; justify-content: space-between; gap: 30px; padding: 10px 0; }
.if-row span:last-child { white-space: nowrap; }
.if-h { color: #0C4160; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.if-totals { margin-top: auto; }
.if-totals div { display: flex; justify-content: space-between; padding: 7px 0; }
.if-totals div span { color: #0C4160; font-weight: 700; margin-left: auto; margin-right: 34px; }
.if-totals b { min-width: 130px; text-align: right; font-weight: 500; }
.if-foot { font-size: 13px; color: #222; margin: 12px 4px 0; }

@page { size: letter; margin: 0; }
@media print {
  body { background: #fff; }
  .inv-tools, #toast { display: none !important; }
  .inv-wrap { display: block; padding: 0; background: none; overflow: visible; }
  .inv-page { break-after: page; box-shadow: none; }
}

/* payment page, as in the original PDF */
.ip-pay .ip-block { padding: 34px 70px 44px; min-height: 620px; }
.ip-bank { display: flex; align-items: center; justify-content: center; gap: 30px; margin: 14px 0 26px; }
.ip-bank img { width: 118px; height: 110px; object-fit: contain; }
.ip-bank b { font-size: 50px; font-weight: 500; color: #0C4160; letter-spacing: .01em; }
.ip-bank b.ip-res { color: #2FA8F0; }
.ip-holder { font-size: 36px; color: #0C4160; margin: 0 0 8px; font-weight: 500; }
.ip-apps { display: grid; grid-template-columns: auto 1fr; gap: 6px 30px; align-items: center; text-align: left; margin: 26px 0 22px; }
.ip-apps span { font-size: 36px; font-weight: 500; }
.ip-apps b { font-size: 25px; font-weight: 500; color: #0C4160; word-break: break-all; }
.ip-zelle { color: #F2545B; } .ip-cash { color: #0A8A3A; }
.ip-pay .ip-payinfo { font-size: 20px; }
.ip-pay .ip-terms { font-size: 22px; margin-top: 8px; }
.ip-pay .ip-mark { margin-bottom: 44px; }

.admin-body h3.mt { margin-top: 2rem; }
.admin-body > .plans { margin: 1rem 0; }

/* phone menu */
.menu-btn, .m-menu { display: none; }
@media (max-width: 980px) {
  .top .top-actions, .top .nav { display: none; }
  .top-in { position: relative; }
  .menu-btn { display: grid; gap: 5px; align-content: center; justify-items: center; width: 46px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; flex-shrink: 0; }
  .menu-btn span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: var(--ink); }
  .m-menu.open { display: flex; flex-direction: column; gap: .15rem; position: absolute; top: calc(100% + 4px); right: 0; width: min(290px, 100%); max-height: calc(100dvh - 96px); overflow-y: auto; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: .5rem; z-index: 50; }
  .m-menu a, .m-menu > button { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem .9rem; border: 0; border-radius: 10px; background: none; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; text-align: left; cursor: pointer; }
  .m-menu a.on { background: var(--navy); color: var(--on-navy); }
  .m-menu a.m-strong { background: var(--navy); color: var(--on-navy); justify-content: center; margin-top: .3rem; }
  .m-menu .lang { align-self: center; margin: .5rem 0; }
  .m-who { display: flex; align-items: center; gap: .55rem; padding: .5rem .9rem .7rem; font-weight: 700; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
  .side, .portal .tabs { display: none; }
}

.brief { background: var(--soft); border-radius: 16px; padding: .8rem 1rem; }
.brief summary { cursor: pointer; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.brief p { margin: .6rem 0 0; font-size: .9rem; max-height: 46vh; overflow-y: auto; }

/* projects: services, sequence, contracts, questionnaires */
.svc-tags { display: flex; gap: .3rem; flex-wrap: wrap; }
.svc-tag { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: var(--pill); background: var(--soft); }
.svc-software { background: #E3F3F9; color: #0C4160; } .svc-web { background: #FFF4DC; color: #7a5200; } .svc-redes { background: #F1EAFB; color: #5b3f8c; }
.svc-pick { border: 1.5px solid var(--line); border-radius: 12px; padding: .5rem .8rem; display: flex; flex-wrap: wrap; gap: .4rem 1rem; }
.svc-pick legend { font-size: .88rem; font-weight: 600; padding: 0 .3rem; }
.flow { list-style: none; padding: 0; margin: .4rem 0 1rem; display: grid; gap: .45rem; }
.flow li { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: 12px; }
.flow li.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: color-mix(in srgb, var(--ok) 7%, transparent); }
.fl-n { width: 28px; height: 28px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--soft); font-weight: 700; font-size: .85rem; }
.flow li.ok .fl-n { background: var(--ok); color: #fff; }
.fl-t { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fl-t small { color: var(--muted); }
.flow input[type=date] { width: auto; padding: .35rem .5rem; }
.proj-docs { display: grid; gap: .5rem; }
.doc-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; padding: .7rem .8rem; background: var(--soft); border-radius: 12px; }
.doc-row > span:first-child { display: flex; flex-direction: column; }
.answers { margin-top: .8rem; }
.answers summary { cursor: pointer; font-weight: 700; }
.answers dt { font-weight: 600; margin-top: .6rem; font-size: .9rem; }
.answers dd { margin: .15rem 0 0; color: var(--muted); font-size: .9rem; }
.answers h5, .q-sec { margin: 1rem 0 .2rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.q-form { background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem; }
.q-form h4 { margin: 0; }
.ct { padding: 70px 80px; color: #1E2430; font-size: 14px; line-height: 1.6; }
.ct-head { display: flex; justify-content: space-between; align-items: center; gap: 30px; border-bottom: 3px solid #F7AE1C; padding-bottom: 20px; margin-bottom: 22px; }
.ct-head img { height: 46px; }
.ct-head h1 { font-size: 24px; margin: 0; text-align: right; color: #0C4160; }
.ct-head p { margin: 4px 0 0; text-align: right; color: #69707d; }
.ct-parties { background: #EEF7FB; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
.ct-parties p { margin: 2px 0; }
.ct-clause { break-inside: avoid; margin-bottom: 14px; }
.ct-clause h3 { font-size: 15px; color: #0C4160; margin: 0 0 4px; }
.ct-clause p { margin: 0; }
.ct-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 50px; break-inside: avoid; }
.ct-sign div { display: flex; flex-direction: column; }
.ct-line { border-bottom: 1.5px solid #1E2430; min-height: 34px; display: flex; align-items: flex-end; font-weight: 600; }
.ct-signed { font-family: 'Brush Script MT', 'Snell Roundhand', cursive; font-size: 26px; font-weight: 400; color: #0C4160; }
.ct-sign small { color: #69707d; margin-top: 4px; }
.sign-box { max-width: 560px; margin: 0 auto 3rem; padding: 1.4rem; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); display: grid; gap: .8rem; }
.sign-box h3 { margin: 0; }
@media print { .sign-box, .portal-top, .top { display: none !important; } }

.prog { height: 10px; border-radius: 99px; background: var(--soft); overflow: hidden; margin: .8rem 0 .3rem; }
.prog span { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--gold)); border-radius: 99px; }
.phases { display: grid; gap: .7rem; margin: .8rem 0; }
.phase { border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem; }
.phase.ph-now { border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 18%, transparent); }
.phase.ph-done { opacity: .75; }
.ph-h { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.ph-badge { font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: var(--pill); background: var(--soft); }
.ph-now .ph-badge { background: var(--gold); color: var(--on-gold); } .ph-done .ph-badge { background: var(--ok); color: #fff; }
.ph-eta { flex-direction: row; align-items: center; gap: .5rem; font-size: .8rem; margin-top: .4rem; }
.ph-eta input { width: auto; padding: .3rem .5rem; }
.phase .flow { margin: .5rem 0 0; }
.phase .flow li { padding: .4rem .6rem; }
.fl-n { width: 22px; height: 22px; }
.preview-link { margin: .4rem 0 1rem; }
.updates h4 { margin: .5rem 0; }
.updates ul { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .5rem; }
.updates li { position: relative; padding: .6rem .8rem; border-left: 3px solid var(--gold); background: var(--soft); border-radius: 0 10px 10px 0; }
.updates li p { margin: .15rem 0 0; }
.updates li small { color: var(--muted); }
.updates li > .row, .updates li > a.btn { margin-top: .45rem; }
.updates li > .row { gap: .4rem; flex-wrap: wrap; }
.updates li.upd-new { box-shadow: 0 0 0 2px var(--gold) inset; }
.upd-form { display: grid; gap: .45rem; }
.upd-form .row { gap: .45rem; flex-wrap: wrap; }
.upd-form input { flex: 1; min-width: 200px; }
.q-actions { position: sticky; bottom: 0; background: var(--card); padding: .6rem 0; }
.proj-docs, .phases, .flow { grid-template-columns: minmax(0, 1fr); }
.proj, .q-form { min-width: 0; }
.doc-row > span:first-child { min-width: 0; flex: 1 1 160px; }
@media (max-width: 860px) {
  .inv-wrap .inv-page.ct { width: 100%; min-height: 0; padding: 28px 20px; }
  .ct-head { flex-direction: column; align-items: flex-start; }
  .ct-head h1, .ct-head p { text-align: left; }
  .ct-sign { grid-template-columns: 1fr; gap: 28px; }
}
.form { grid-template-columns: minmax(0, 1fr); }

.plans-group { margin: 2.2rem 0 1rem; }
.plans-group:first-child { margin-top: 0; }
.plans-group h3 { font-size: 1.35rem; margin: 0 0 .2rem; }
.plans-group p { margin: 0; }
.plans-locked { filter: blur(5px); opacity: .55; pointer-events: none; user-select: none; width: 100%; }
.plans-gate .plans-locked .plans { width: 100%; }
@media (max-width: 640px) { .plans-locked { display: none; } }

/* Date pickers in the project phases: never on top of the step name; they drop below it when space is short. */
.flow li { flex-wrap: wrap; }
.flow .fl-t { flex: 1 1 160px; }
.flow li input[type=date], .ph-eta input[type=date] { width: auto !important; flex: 0 0 auto; max-width: 100%; }
.ph-eta { flex-wrap: wrap; }
.flow .fl-t { flex: 1 1 0; min-width: 0; }
@media (max-width: 560px) { .flow li input[type=date] { flex: 1 1 100%; width: 100% !important; } }

/* quote payment box in the portal */
.paybox { border: 1.5px solid var(--line); border-radius: 14px; padding: 1rem; display: grid; gap: .7rem; margin-top: .4rem; }
.paybox h4 { margin: 0; }
.pay-methods { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.pay-opt { display: flex; flex-direction: row; gap: .6rem; align-items: flex-start; border: 1.5px solid var(--line); border-radius: 12px; padding: .7rem .8rem; cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--navy); background: var(--soft); }
.pay-opt span { display: grid; gap: .15rem; min-width: 0; }
.pay-opt small { font-size: .9rem; word-break: break-word; }
.pay-ok { color: var(--navy); font-weight: 700; display: flex; gap: .4rem; align-items: center; }
.pay-line { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }

/* quote lines: service + editable description */
.quote-item { display: grid; gap: .4rem; padding: .6rem; border: 1.5px solid var(--line); border-radius: 12px; }
.items-edit { display: grid; gap: .6rem; }
.items .item-desc { font-size: .85rem; color: var(--muted); margin-top: .25rem; line-height: 1.45; font-weight: 400; }
.items td { vertical-align: top; }

/* Text for search engines until the app draws the page (it replaces #app on load). */
.seo-fallback { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* video editing team */
.ed-list { display: grid; gap: .9rem; }
.ed-card { border: 1.5px solid var(--line); border-radius: 16px; padding: 1rem; display: grid; gap: .7rem; background: var(--card); min-width: 0; }
.ed-card h3 { margin: .2rem 0 0; }
.ed-files { display: grid; gap: .5rem; }
.ed-files h5, .ed-deliver h5 { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ed-file { display: grid; gap: .4rem; }
.ed-file video { width: 100%; max-width: 320px; max-height: 420px; border-radius: 12px; background: #000; }
.ed-file-row { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; background: var(--soft); min-width: 0; }
.ed-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.ed-raw-edit { display: grid; gap: .4rem; }
.ed-deliver { display: grid; gap: .6rem; padding: .8rem; border-radius: 12px; background: var(--soft); }
.ed-deliver textarea { background: var(--card); }
.ed-h { font-size: 1.05rem; margin: 1.4rem 0 .7rem; }
.ed-page { padding-bottom: 3rem; }
.upl { justify-self: start; cursor: pointer; }
.late { color: #C0392B; }

/* presentations */
.pres-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pres-card { border: 1.5px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); display: flex; flex-direction: column; }
.pres-thumb { aspect-ratio: 16 / 10; background: var(--navy); position: relative; overflow: hidden; display: grid; place-items: center; }
.pres-thumb iframe { position: absolute; top: 0; left: 0; width: 400%; height: 400%; border: 0; transform: scale(.25); transform-origin: 0 0; pointer-events: none; }
.pres-thumb span { color: #fff; font: 800 3rem Sora, sans-serif; }
.pres-body { padding: 1rem; display: grid; gap: .6rem; }
.pres-body h3 { margin: 0; }

/* payment installments + receipt */
.pay-plan { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pay-plan li { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .55rem .75rem; }
.pay-plan .pq-n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; background: var(--soft); flex: none; }
.pay-plan .pq-t { display: grid; flex: 1; min-width: 0; }
.pay-plan .pq-t small { color: var(--muted); }
.pay-plan .pq-ok { border-color: #bfe3cc; background: #f1faf4; }
.pay-plan .pq-ok .pq-n { background: #1f8a4c; color: #fff; }
.pay-plan .pq-rev .pq-t small { color: #a26a00; }
.receipt-pick { display: flex !important; flex-direction: row !important; align-items: center; gap: .5rem; border: 1.5px dashed var(--line); border-radius: 12px; padding: .75rem .9rem; cursor: pointer; font-weight: 600; position: relative; }
.receipt-pick.has { border-style: solid; border-color: var(--navy); background: var(--soft); }
.receipt-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.receipt { display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; margin-top: .3rem; }
.receipt img { width: 48px; height: 48px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* appointments (#citas) */
.book { max-width: 760px; margin: 0 auto; display: grid; gap: 1.4rem; }
.book-step { display: grid; gap: .7rem; }
.book-step h4 { margin: 0; font-size: 1rem; }
.book-step h4 small { font-weight: 400; }
.book-days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .3rem; scrollbar-width: thin; }
.book-day { flex: none; width: 68px; display: grid; justify-items: center; gap: .1rem; padding: .6rem .3rem; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card, #fff); color: inherit; cursor: pointer; font: inherit; }
.book-day b { font-size: 1.35rem; line-height: 1.1; }
.book-day small { font-size: .75rem; text-transform: capitalize; opacity: .75; }
.book-day.on, .book-time.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.book-times { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.book-time { padding: .6rem .4rem; border: 1.5px solid var(--line); border-radius: 12px; background: var(--card, #fff); color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.book-day:hover, .book-time:hover { border-color: var(--navy); }
.book-form { border: 1.5px solid var(--line); border-radius: 18px; padding: 1.1rem; background: var(--card, #fff); }
.book-ok { max-width: 560px; margin: 0 auto; text-align: center; display: grid; gap: .8rem; justify-items: center; }
.book-ok-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #1f8a4c; color: #fff; }
.book-ok h3, .book-ok p { margin: 0; }
.book-contact { border: 1.5px solid var(--line); border-radius: 14px; padding: .8rem 1rem; display: grid; gap: .5rem; background: var(--soft); }
.book-contact p { margin: 0; }
.book-row.is-new { border-color: var(--gold, #F7AE1C); }
.book-settings { margin-top: .8rem; }
.book-settings summary { cursor: pointer; font-weight: 600; }
.book-settings .form { margin-top: .8rem; }
.book-wd { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip-check { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: .35rem; border: 1.5px solid var(--line); border-radius: 999px; padding: .35rem .75rem; cursor: pointer; font-weight: 600; }
.chip-check:has(input:checked) { border-color: var(--navy); background: var(--soft); }

.pay-plan.pick li { padding: 0; }
.pay-plan.pick li.pq-ok, .pay-plan.pick li.pq-later { padding: .55rem .75rem; }
.pay-plan .pq-later { opacity: .6; }
.pq-pick { display: flex !important; flex-direction: row !important; align-items: center; gap: .6rem; width: 100%; padding: .65rem .75rem; border-radius: 12px; cursor: pointer; margin: 0; position: relative; }
.pq-pick input { position: absolute; opacity: 0; pointer-events: none; }
.pay-plan.pick li:has(input:checked) { border-color: var(--navy); background: var(--soft); box-shadow: 0 0 0 1px var(--navy) inset; }
.pay-plan.pick li:has(input:checked) .pq-n { background: var(--navy); color: #fff; }

.pay-opt { position: relative; }
.pay-opt > span { flex: 1; }
.pay-copy { flex: none; align-self: center; display: inline-flex; align-items: center; gap: .3rem; border: 1.5px solid var(--line); background: #fff; color: var(--navy); border-radius: 999px; padding: .3rem .65rem; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; }
.pay-copy:hover { border-color: var(--navy); }
.pay-holder { display: grid; gap: .4rem; }
.pay-holder > span { display: flex; align-items: center; gap: .6rem; border: 1.5px solid var(--line); border-radius: 12px; padding: .55rem .8rem; }
.pay-holder small { color: var(--muted); min-width: 76px; }
.pay-holder strong { flex: 1; word-break: break-word; }
.pay-holder > span { display: grid; grid-template-columns: 1fr auto; column-gap: .6rem; row-gap: .1rem; }
.pay-holder small { grid-column: 1; min-width: 0; font-size: .78rem; }
.pay-holder strong { grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pay-holder .pay-copy { grid-column: 2; grid-row: 1 / span 2; }

/* material tray + brand folders (edición) */
.pool-group { margin-top: 1rem; }
.pool-gh { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: .5rem; }
.pool-gh h4 { margin: 0; }
.pool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; }
.pool-item { display: grid; gap: .3rem; cursor: pointer; min-width: 0; }
.pool-item input { position: absolute; opacity: 0; pointer-events: none; }
.pool-th { position: relative; aspect-ratio: 9 / 14; border-radius: 12px; overflow: hidden; background: #111; border: 2.5px solid transparent; display: grid; place-items: center; }
.pool-th video, .pool-th img { width: 100%; height: 100%; object-fit: cover; }
.pool-item.on .pool-th { border-color: var(--gold); }
.pool-check { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.85); color: transparent; border: 1.5px solid rgba(0,0,0,.25); }
.pool-item.on .pool-check { background: var(--gold); color: #111; border-color: var(--gold); }
.pool-item:focus-within .pool-th { outline: 2px solid var(--gold); outline-offset: 2px; }
.pool-link { display: grid; place-items: center; gap: .2rem; color: #fff; }
.pool-item .ed-name { font-size: .78rem; }
.pool-bar { position: sticky; bottom: .8rem; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; padding: .7rem .9rem; border-radius: 14px; background: var(--card); border: 1.5px solid var(--gold); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.pool-bar select { width: auto; max-width: 100%; }
.panel > .comment-form { margin-top: 1rem; }
.note-box { padding: .7rem .9rem; border-radius: 12px; background: var(--soft); margin: 0; }
.kit-list { display: flex; flex-wrap: wrap; gap: .6rem; }
.kit-chip { display: flex; align-items: center; gap: .6rem; padding: .6rem .9rem; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); color: inherit; cursor: pointer; text-align: left; font: inherit; }
.kit-chip span { display: grid; }
.kit-chip small { color: var(--muted); }
.ed-kit { border-radius: 12px; background: var(--soft); padding: .6rem .8rem; }
.ed-kit summary { cursor: pointer; display: flex; align-items: center; gap: .4rem; font-weight: 600; }
.ed-kit summary small { color: var(--muted); font-weight: 400; }
.ed-kit[open] { display: grid; gap: .6rem; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .5rem; }
.kit-tile { position: relative; display: grid; gap: .25rem; min-width: 0; color: inherit; text-decoration: none; }
.kit-img { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; padding: .5rem; border: 1px solid var(--line);
  background: repeating-conic-gradient(#e6e6e6 0 25%, #fff 0 50%) 0 0 / 14px 14px; }
.kit-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kit-tile .ed-name { font-size: .78rem; }
.kit-dl, .kit-tile > button { position: absolute; top: 4px; right: 4px; }
.kit-dl { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card); }
.ed-file img { max-width: 220px; max-height: 220px; border-radius: 10px; object-fit: contain; }

/* editor pay */
.pay-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .5rem; }
.pay-sum > span { display: grid; gap: .15rem; padding: .7rem .8rem; border-radius: 12px; background: var(--soft); }
.pay-sum small { color: var(--muted); font-size: .78rem; }
.pay-sum strong { font-size: 1.15rem; }
.pay-sum .due { background: color-mix(in srgb, var(--gold) 22%, var(--card)); }
.pay-det { margin-top: .8rem; }
.pay-det summary { cursor: pointer; font-weight: 600; }
.pay-rows { display: grid; gap: .35rem; margin-top: .5rem; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem .7rem; border-radius: 10px; background: var(--soft); }
.pay-row > span:first-child { display: grid; min-width: 0; }
.pay-row small { color: var(--muted); }
.owe { color: var(--ink); }
.ed-acct .ed-h { margin-top: 0; }

/* client gallery */
.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; }
.gal-tile { position: relative; aspect-ratio: 1; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #111; cursor: pointer; display: grid; place-items: center; width: 100%; }
.gal-tile img, .gal-tile video { width: 100%; height: 100%; object-fit: cover; }
.gal-play { position: absolute; inset: auto auto 8px 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .75rem; color: #111; background: rgba(255,255,255,.9); }
.gal-cell { position: relative; }
.gal-del { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 1rem; line-height: 1; }
.gal-album .panel-h { flex-wrap: wrap; margin-bottom: .8rem; }
.gal-album .panel-h h3 { margin: 0; }
.gal-album > .row, .gal-album > .comment-form { margin-top: .8rem; }
.gal-rename { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; flex: 1; min-width: 0; }
.gal-rename input[name=title] { flex: 1 1 180px; font-weight: 700; }
.gal-rename input[type=date] { width: auto; }
.modal-back.gal-back { background: rgba(8, 10, 14, .94); padding: 0; overflow: hidden; }
.gal-view { position: relative; width: min(1100px, 100%); height: 100vh; height: 100dvh; display: grid; grid-template-rows: auto minmax(0, 1fr); gap: .6rem; padding: .8rem 0; }
.gal-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; color: #fff; padding: 0 16px; }
.gal-bar .btn.ghost { color: #fff; background: transparent; border-color: rgba(255,255,255,.4); }
.gal-stage { display: grid; place-items: center; min-height: 0; overflow: hidden; padding: 0 16px; }
.gal-stage img, .gal-stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #111; font-size: 1.6rem; cursor: pointer; }
.gal-nav.prev { left: 10px; } .gal-nav.next { right: 10px; }

/* Google Drive files */
.ed-drive { width: 100%; max-width: 360px; aspect-ratio: 9 / 14; border-radius: 12px; overflow: hidden; background: #000; }
.ed-drive iframe { width: 100%; height: 100%; border: 0; }
.gal-drive { width: min(100%, 900px); height: 100%; border: 0; border-radius: 8px; background: #000; }
.drive-tag { color: #fff; font-size: .75rem; }

/* per-video assignment */
.split-list { display: grid; gap: .6rem; }
.split-item { display: grid; grid-template-columns: 74px 1fr; gap: .7rem; align-items: start; padding: .6rem; border-radius: 12px; background: var(--soft); }
.split-th { position: relative; aspect-ratio: 9 / 14; border-radius: 10px; overflow: hidden; background: #111; display: grid; place-items: center; }
.split-th video, .split-th img { width: 100%; height: 100%; object-fit: cover; }
.split-f { display: grid; gap: .4rem; min-width: 0; }
.split-f textarea, .split-f select { background: var(--card); }
.ed-brief { padding: .6rem .8rem; border-radius: 12px; background: color-mix(in srgb, var(--gold) 14%, var(--card)); }
.ed-brief h5 { margin: 0 0 .2rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.ed-brief p { margin: 0; }

/* admin sidebar sub-sections */
.side a.sub { margin-left: 1rem; padding: .5rem .9rem; font-size: .9rem; font-weight: 500; color: var(--muted); border-left: 2px solid var(--line); border-radius: 0 12px 12px 0; }
.side a.sub.on { color: var(--on-navy); border-left-color: var(--navy); }
.m-menu a.sub { padding-left: 2.2rem; font-size: .92rem; opacity: .85; }
@media (max-width: 900px) { .side a.sub { margin-left: 0; border-left: 0; border-radius: 14px; } }

/* collapsible sidebar groups */
.nav-g { display: flex; flex-direction: column; gap: .3rem; }
.nav-row { display: flex; align-items: center; gap: .2rem; }
.nav-row > a { flex: 1; min-width: 0; }
.nav-tog { flex: none; display: flex; align-items: center; gap: .3rem; height: 36px; min-width: 36px; padding: 0 .5rem; justify-content: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.nav-tog:hover { background: var(--soft); color: var(--ink); }
.nav-tog svg { transition: transform .2s; transform: rotate(-90deg); }
.nav-g.open .nav-tog svg { transform: none; }
.nav-g.open .nav-tog .dot-n { display: none; }
.nav-kids { display: none; flex-direction: column; gap: .3rem; }
.nav-g.open .nav-kids { display: flex; }
.m-menu .nav-g, .m-menu .nav-kids { gap: 0; }
@media (max-width: 900px) { .side .nav-g { flex-direction: row; } .side .nav-g.open .nav-kids { flex-direction: row; } .side .nav-row > a { flex: none; } }

/* Contenido por aprobar */
a.chip { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.rev-h { margin: .4rem 0 .8rem; }
.rev-list { display: grid; gap: .8rem; }
.rev-card { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: .8rem; }
.rev-vis { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; }
.rev-vis > * { width: 100%; height: 100%; }
.rev-body h4 { margin: .25rem 0; }
.rev-body .cap-prev { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 .6rem; }
.rev-sent { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }
@media (max-width: 560px) { .rev-card { grid-template-columns: 84px minmax(0, 1fr); gap: .7rem; } }
.pub-note { margin: .2rem 0 .6rem; }
.tag-pick { display: grid; gap: .4rem; margin-top: -.4rem; }
.tag-pick summary { cursor: pointer; }
.tag-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .3rem; }
.tag-chip { border: 1.5px solid var(--line); background: var(--card); color: inherit; border-radius: var(--pill); padding: .25rem .6rem; font-size: .82rem; font-weight: 600; cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; }
.tag-chip i { font-style: normal; opacity: .5; font-size: .72rem; }
.tag-chip.on { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
