:root {
  --ink: #172052;
  --ink-2: #293364;
  --muted: #6f789d;
  --primary: #4e4bf7;
  --secondary: #b1b1fc;
  --coral: #f94446;
  --cream: #fdf2ed;
  --cyan: #58d5df;
  --green: #2bbd8a;
  --yellow: #f4b740;
  --surface: #ffffff;
  --wash: #f6f7fc;
  --line: #e4e7f3;
  --line-strong: #d4d9ed;
  --shadow: 0 18px 55px rgba(42, 54, 123, 0.12);
  --shadow-soft: 0 10px 30px rgba(42, 54, 123, 0.075);
  --radius-lg: 25px;
  --radius-md: 17px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--wash);
  font-family: "Open Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}
body.modal-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, h5, h6, .btn, .brand { font-family: "Nunito Sans", "Open Sans", ui-sans-serif, system-ui, sans-serif; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Public entry */
.public-shell {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 13%, rgba(177, 177, 252, .34), transparent 26rem),
    radial-gradient(circle at 93% 7%, rgba(78, 75, 247, .20), transparent 31rem),
    #fbfbff;
}
.public-nav {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 5;
}
.entry-hero {
  min-height: 670px; max-width: 1180px; margin: 0 auto; padding: 52px 24px 78px;
  display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr); gap: 70px; align-items: center;
}
.entry-copy { position: relative; padding: 34px 0 60px; }
.entry-copy h1 { margin: 22px 0 18px; max-width: 700px; font-size: clamp(58px, 8vw, 96px); line-height: .92; letter-spacing: -.07em; }
.entry-copy > p { max-width: 640px; margin: 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.65; }
.ocean-examples { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 27px; }
.ocean-examples span { padding: 8px 12px; border: 1px solid #dfe0ff; border-radius: 999px; background: rgba(255,255,255,.75); color: var(--ink-2); font-size: 12px; font-weight: 750; }
.depth-scale { width: min(600px, 100%); margin-top: 25px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 13px; align-items: center; }
.depth-scale > div { min-height: 68px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; border: 1px solid #dcdef4; border-radius: 17px; background: rgba(255,255,255,.72); }
.depth-scale > div:last-child { border-color: rgba(78,75,247,.25); background: linear-gradient(135deg, rgba(177,177,252,.20), rgba(88,213,223,.14)); }
.depth-scale b { color: var(--primary); font-size: 18px; white-space: nowrap; }
.depth-scale span { color: var(--muted); font-size: 10px; font-weight: 700; line-height: 1.35; }
.depth-scale i { color: var(--primary); font-style: normal; font-size: 18px; font-weight: 900; }
.entry-ordy { position: absolute; right: 0; bottom: -54px; width: 215px; height: auto; filter: drop-shadow(0 18px 28px rgba(49,49,142,.16)); pointer-events: none; }
.entry-card { position: relative; z-index: 2; padding: 34px; border: 1px solid rgba(78,75,247,.13); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 25px 75px rgba(52,48,139,.16); backdrop-filter: blur(16px); }
.entry-kicker { color: var(--primary); font-size: 11px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.entry-card h2 { margin: 9px 0 6px; font-size: 34px; letter-spacing: -.045em; }
.entry-card > p { margin: 0 0 23px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.entry-form { display: grid; gap: 15px; }
.entry-form label { display: grid; gap: 7px; color: var(--ink-2); font-size: 12px; font-weight: 760; }
.entry-form .btn { width: 100%; margin-top: 2px; }
.forgot-link { display: block; margin: 15px auto 0; }
.entry-divider { display: flex; align-items: center; gap: 12px; margin: 23px 0 16px; color: var(--muted); font-size: 11px; }
.entry-divider::before, .entry-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.request-wide { width: 100%; }
.admin-link { display: block; margin-top: 18px; color: var(--muted); text-align: center; text-decoration: none; font-size: 10px; }
.admin-link:hover { color: var(--primary); }
.ocean-grid { max-width: 1120px; margin: 0 auto; padding: 0 24px 86px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.human-chat-launcher {
  position: fixed; z-index: 40; right: 22px; bottom: 22px; width: min(390px, calc(100vw - 28px)); padding: 10px 12px 10px 10px;
  display: grid; grid-template-columns: 52px 1fr auto; gap: 11px; align-items: center; border: 1px solid rgba(78,75,247,.18); border-radius: 21px;
  color: var(--ink); background: rgba(255,255,255,.96); box-shadow: 0 20px 55px rgba(35,35,112,.22); text-align: left; backdrop-filter: blur(14px);
}
.human-chat-launcher img { width: 52px; height: 52px; object-fit: contain; }
.human-chat-launcher b, .human-chat-launcher small { display: block; }
.human-chat-launcher b { margin-bottom: 3px; font-size: 13px; }
.human-chat-launcher small { color: var(--muted); font-size: 10px; line-height: 1.35; }
.human-chat-launcher i { padding: 8px 11px; border-radius: 999px; color: white; background: var(--primary); font-style: normal; font-size: 10px; font-weight: 800; }
.human-note { display: grid; grid-template-columns: 70px 1fr; gap: 14px; align-items: center; padding: 16px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(125deg, var(--cream), #f1edff); }
.human-note img { width: 70px; height: 70px; object-fit: contain; }
.human-note b { display: block; margin-bottom: 4px; font-size: 14px; }
.human-note p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.request-human-help { grid-column: 1 / -1; display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid #e1e0ff; border-radius: 17px; background: #fafaff; }
.request-human-help img { width: 54px; height: 54px; object-fit: contain; }
.request-human-help b, .request-human-help span { display: block; }
.request-human-help b { margin-bottom: 3px; font-size: 13px; }
.request-human-help span { color: var(--muted); font-size: 11px; line-height: 1.4; }
.chat-thread { max-height: 330px; overflow: auto; display: grid; gap: 10px; padding: 10px 2px 16px; }
.chat-loading { padding: 25px; color: var(--muted); text-align: center; font-size: 12px; }
.chat-bubble { width: fit-content; max-width: 82%; padding: 11px 13px; border-radius: 15px 15px 15px 4px; color: var(--ink-2); background: #f1f2f8; font-size: 12px; line-height: 1.5; }
.chat-bubble.visitor { margin-left: auto; border-radius: 15px 15px 4px 15px; color: white; background: var(--primary); }
.chat-bubble small { display: block; margin-top: 5px; opacity: .66; font-size: 9px; }
.chat-compose { display: grid; grid-template-columns: 1fr auto; gap: 9px; align-items: end; }
.chat-compose textarea { min-height: 65px; resize: vertical; }

/* Ordy administration */
.admin-gate { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 24px; padding: 28px; background: radial-gradient(circle at 15% 15%, rgba(177,177,252,.38), transparent 25rem), var(--wash); }
.admin-gate > img { width: 170px; height: auto; }
.admin-gate .entry-card { width: min(480px, 100%); }
.admin-gate .entry-card h1 { margin: 10px 0 8px; font-size: 34px; letter-spacing: -.045em; }
.admin-loader { padding: 14px 18px; border-radius: 999px; color: var(--muted); background: white; box-shadow: var(--shadow-soft); font-size: 12px; }
.admin-back { display: block; margin-top: 20px; color: var(--muted); text-align: center; text-decoration: none; font-size: 11px; }
.admin-shell { min-height: 100vh; display: grid; grid-template-columns: 245px minmax(0, 1fr); background: var(--wash); }
.admin-sidebar { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 24px 17px; color: white; background: linear-gradient(180deg, #3330aa, #172354); }
.admin-sidebar .sidebar-logo { margin: 0 7px 12px; }
.admin-label { display: block; margin: 0 8px 31px; color: #cfd2ff; font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.admin-sidebar .side-nav button { position: relative; }
.nav-count { min-width: 21px; margin-left: auto; padding: 2px 6px; border-radius: 999px; color: #302ea4; background: white; text-align: center; font-size: 9px; }
.admin-sidebar .side-foot { display: grid; gap: 8px; }
.admin-sidebar .side-foot a { color: #d9def8; text-align: center; text-decoration: none; font-size: 10px; }
.sidebar .side-foot { display: grid; gap: 8px; }
.admin-main { min-width: 0; padding: 27px 31px 50px; }
.admin-top { max-width: 1480px; margin: 0 auto 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.admin-top span { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.admin-top h1 { margin: 4px 0 0; font-size: 21px; }
.admin-content { max-width: 1480px; margin: 0 auto; }
.admin-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.admin-two { display: grid; grid-template-columns: 1.12fr .88fr; gap: 16px; }
.admin-list { display: grid; gap: 8px; }
.admin-list > button { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 15px; color: inherit; background: white; text-align: left; }
.admin-list > button:hover { border-color: #c8c7ff; }
.admin-list b, .admin-list small { display: block; }
.admin-list b { font-size: 13px; }
.admin-list small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.contact-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; color: white; background: linear-gradient(145deg, var(--primary), #8583fa); font-family: "Nunito Sans", sans-serif; font-weight: 900; }
.stage-pill { padding: 6px 9px; border-radius: 999px; color: #4744cd; background: #efefff; font-style: normal; font-size: 9px; font-weight: 800; }
.stage-solicitud { color: #a76212; background: #fff5dc; }
.stage-en_proceso { color: #205fa3; background: #e9f3ff; }
.stage-entregado, .stage-activo { color: #1d805f; background: #e7f8f2; }
.stage-pausado { color: #686f8b; background: #eef0f5; }
.focus-card { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.focus-card:last-child { border-bottom: 0; }
.focus-card > span { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: #efefff; font-weight: 850; }
.focus-card b { font-size: 13px; }
.focus-card p { margin: 3px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.chat-admin-layout { min-height: 620px; display: grid; grid-template-columns: 350px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 23px; background: white; box-shadow: var(--shadow-soft); overflow: hidden; }
.conversation-list { padding: 10px; border-right: 1px solid var(--line); background: #fafaff; overflow: auto; }
.conversation-list > button { position: relative; width: 100%; display: grid; grid-template-columns: 42px 1fr; gap: 10px; padding: 12px; border: 0; border-radius: 15px; color: inherit; background: transparent; text-align: left; }
.conversation-list > button:hover, .conversation-list > button.active { background: white; box-shadow: 0 6px 18px rgba(42,54,123,.07); }
.conversation-list b, .conversation-list p, .conversation-list small { display: block; }
.conversation-list b { font-size: 12px; }
.conversation-list p { margin: 3px 0; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10px; }
.conversation-list small { color: #9aa0bd; font-size: 9px; }
.conversation-list i { position: absolute; top: 12px; right: 10px; min-width: 19px; padding: 2px 5px; border-radius: 999px; color: white; background: var(--coral); font-style: normal; text-align: center; font-size: 9px; }
.conversation-panel { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; }
.conversation-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.conversation-head b, .conversation-head span { display: block; }
.conversation-head b { margin-bottom: 3px; }
.conversation-head span { color: var(--muted); font-size: 10px; }
.conversation-messages { max-height: 495px; padding: 22px; display: flex; flex-direction: column; gap: 10px; overflow: auto; background: linear-gradient(180deg, #fdfdff, #f8f8fd); }
.admin-compose { padding: 14px; border-top: 1px solid var(--line); background: white; }
.pipeline { display: grid; grid-template-columns: repeat(6, minmax(190px, 1fr)); gap: 11px; overflow-x: auto; padding-bottom: 12px; }
.pipeline > article { min-height: 470px; padding: 11px; border: 1px solid var(--line); border-radius: 18px; background: #f4f5fa; }
.pipeline article > header { display: flex; align-items: center; justify-content: space-between; padding: 5px 5px 12px; }
.pipeline article > header b { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.pipeline article > header span { min-width: 23px; padding: 3px 6px; border-radius: 999px; background: white; color: var(--muted); text-align: center; font-size: 9px; }
.pipeline article > button { width: 100%; margin-bottom: 8px; padding: 13px; border: 1px solid var(--line); border-radius: 14px; color: inherit; background: white; text-align: left; box-shadow: 0 5px 14px rgba(42,54,123,.04); }
.pipeline article > button b, .pipeline article > button small, .pipeline article > button i { display: block; }
.pipeline article > button b { margin-bottom: 4px; font-size: 12px; }
.pipeline article > button small { color: var(--muted); font-size: 9px; line-height: 1.35; }
.pipeline article > button i { margin-top: 8px; color: var(--primary); font-style: normal; font-size: 9px; font-weight: 800; }
.pipeline article > p { color: var(--muted); text-align: center; font-size: 10px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.admin-table th { padding: 10px; color: var(--muted); text-align: left; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.admin-table td { padding: 13px 10px; border-top: 1px solid var(--line); vertical-align: middle; }
.admin-table td:nth-child(2) { min-width: 260px; max-width: 430px; }
.admin-table td b, .admin-table td small { display: block; }
.admin-table td small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.user-list, .payment-list { display: grid; gap: 8px; }
.user-list > div { display: grid; grid-template-columns: 42px 1fr auto; gap: 11px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 15px; }
.user-list b, .user-list small { display: block; }
.user-list b { font-size: 12px; }
.user-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.user-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.payment-list > button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; color: inherit; background: white; text-align: left; }
.payment-list b, .payment-list small { display: block; }
.payment-list b { font-size: 12px; }
.payment-list small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.payment-list span { padding: 6px 9px; border-radius: 999px; font-size: 9px; font-weight: 800; }
.payment-pendiente { color: #9b6910; background: #fff7df; }
.payment-al_dia { color: #1d805f; background: #e7f8f2; }
.payment-atrasado { color: #b63c4e; background: #fff0f2; }
.secret-box { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding: 12px; border: 1px solid #d9d8ff; border-radius: 15px; background: #f7f7ff; }
.secret-box code { align-self: center; min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-size: 12px; }
.check-field { align-self: end; padding: 10px 0; }
.check-field label { display: flex; align-items: center; gap: 8px; }
.module-fieldset { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 15px; }
.module-fieldset legend { padding: 0 6px; color: var(--ink-2); font-size: 12px; font-weight: 780; }
.module-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 14px; }
.module-check-grid label { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 900; letter-spacing: -.04em; text-decoration: none; }
.brand-logo { display: block; width: 154px; height: auto; object-fit: contain; }
.sidebar-logo { display: block; width: 142px; height: auto; object-fit: contain; filter: drop-shadow(0 7px 15px rgba(9, 15, 72, .18)); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.btn {
  border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 790;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: linear-gradient(115deg, var(--primary), var(--secondary)); box-shadow: 0 10px 26px color-mix(in srgb, var(--primary) 24%, transparent); }
.btn-primary:hover { box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 34%, transparent); }
.btn-quiet { color: var(--ink); background: rgba(255,255,255,.78); border: 1px solid var(--line); }
.btn-quiet:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.btn-danger { color: #b33f51; background: #fff0f2; border: 1px solid #ffd4da; }
.btn-small { padding: 9px 13px; font-size: 13px; }
.btn-icon { width: 37px; height: 37px; padding: 0; border-radius: 12px; color: var(--ink-2); background: #f5f6fb; border: 1px solid var(--line); }
.btn-icon:disabled { opacity: .35; cursor: default; }
.hero { max-width: 1180px; margin: 0 auto; padding: 72px 24px 25px; text-align: center; position: relative; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(1px); pointer-events: none; }
.hero::before { width: 13px; height: 13px; background: var(--coral); left: 10%; top: 38%; box-shadow: 27px 58px 0 -3px var(--yellow); }
.hero::after { width: 10px; height: 10px; background: var(--cyan); right: 11%; top: 24%; box-shadow: -32px 72px 0 -2px var(--secondary); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border: 1px solid #dbe0ff;
  background: rgba(255,255,255,.78); border-radius: 999px; color: var(--primary); font-size: 13px; font-weight: 840;
}
.hero h1 { margin: 24px auto 17px; max-width: 900px; font-size: clamp(48px, 7vw, 82px); line-height: .98; letter-spacing: -.067em; }
.gradient-text { background: linear-gradient(92deg, var(--primary), var(--secondary)); color: transparent; background-clip: text; }
.hero > p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: clamp(17px, 2vw, 21px); line-height: 1.6; }
.hero-search {
  max-width: 780px; margin: 34px auto 16px; display: flex; gap: 11px; align-items: center; padding: 9px 10px 9px 20px;
  background: rgba(255,255,255,.92); border: 1px solid #dfe2f2; border-radius: 21px; box-shadow: var(--shadow); text-align: left;
}
.hero-search .search-icon { font-size: 23px; transform: rotate(-12deg); }
.hero-search strong { flex: 1; font-size: 16px; }
.hero-note { color: var(--muted); font-size: 12px; }
.hero-ordy {
  display: block; width: min(238px, 49vw); height: auto; margin: 22px auto -28px;
  filter: drop-shadow(0 18px 24px rgba(48, 48, 157, .14)); pointer-events: none;
}
.space-grid { max-width: 1120px; margin: 27px auto 0; padding: 0 24px 76px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.space-card {
  min-height: 168px; padding: 22px; text-align: left; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.9);
  box-shadow: 0 12px 35px rgba(48, 58, 122, .07); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.space-card:hover { transform: translateY(-5px); border-color: #cbd1ff; box-shadow: 0 18px 40px rgba(48, 58, 122, .12); }
.space-card .card-icon { position: relative; display: grid; place-items: center; width: 47px; height: 47px; border-radius: 15px; background: #f0f2ff; }
.space-card .card-icon::before, .space-card .card-icon::after { content: ""; position: absolute; color: var(--primary); }
.card-icon-clientes::before { width: 10px; height: 10px; top: 9px; border: 2px solid currentColor; border-radius: 50%; box-shadow: 12px 3px 0 -2px white, 12px 3px 0 0 currentColor; }
.card-icon-clientes::after { width: 27px; height: 11px; bottom: 8px; border: 2px solid currentColor; border-radius: 14px 14px 5px 5px; }
.card-icon-finanzas::before { width: 25px; height: 17px; border: 2px solid currentColor; border-radius: 5px; }
.card-icon-finanzas::after { width: 7px; height: 7px; border: 2px solid currentColor; border-radius: 50%; }
.card-icon-contenido::before { width: 23px; height: 23px; border: 2px solid currentColor; border-radius: 7px; transform: rotate(5deg); }
.card-icon-contenido::after { width: 11px; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor; }
.card-icon-documentos::before { width: 20px; height: 25px; border: 2px solid currentColor; border-radius: 4px; }
.card-icon-documentos::after { width: 10px; height: 2px; background: currentColor; box-shadow: 0 6px 0 currentColor; }
.card-icon-tareas::before { width: 23px; height: 23px; border: 2px solid currentColor; border-radius: 7px; }
.card-icon-tareas::after { width: 12px; height: 6px; border-left: 3px solid currentColor; border-bottom: 3px solid currentColor; transform: rotate(-45deg); }
.card-icon-recursos::before { width: 12px; height: 20px; border: 2px solid currentColor; border-radius: 8px; transform: rotate(45deg); }
.card-icon-recursos::after { width: 12px; height: 20px; border: 2px solid currentColor; border-radius: 8px; transform: rotate(-45deg); }
.space-card:nth-child(2n) .card-icon { background: #eafafa; }
.space-card:nth-child(3n) .card-icon { background: #fff1f2; }
.space-card h3 { margin: 24px 0 7px; font-size: 16px; }
.space-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.public-story { background: #172354; color: white; padding: 84px 24px; }
.story-inner { max-width: 1050px; margin: 0 auto; display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.story-kicker { color: #83e6eb; font-size: 12px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.public-story h2 { margin: 14px 0 18px; font-size: clamp(34px, 5vw, 54px); line-height: 1.03; letter-spacing: -.055em; }
.public-story p { color: #c6cdef; line-height: 1.7; }
.principle-list { display: grid; gap: 12px; }
.principle { display: grid; grid-template-columns: 43px 1fr; gap: 14px; padding: 17px; border: 1px solid rgba(255,255,255,.11); background: rgba(255,255,255,.06); border-radius: 17px; }
.principle b { display: block; margin-bottom: 3px; }
.principle span { color: #c6cdef; font-size: 13px; line-height: 1.45; }
.public-cta { position: relative; overflow: hidden; padding: 78px 24px; text-align: center; background: #fff; }
.public-cta h2 { margin: 0 auto 14px; max-width: 680px; font-size: clamp(34px, 5vw, 55px); letter-spacing: -.055em; line-height: 1.04; }
.public-cta p { color: var(--muted); margin-bottom: 28px; }
.public-cta > *:not(.cta-ordy) { position: relative; z-index: 1; }
.cta-ordy { position: absolute; right: max(18px, calc((100vw - 1180px) / 2)); bottom: -30px; width: 190px; height: auto; opacity: .92; pointer-events: none; }

/* Workspace shell */
.workspace { min-height: 100vh; display: grid; grid-template-columns: 236px minmax(0, 1fr); background: var(--wash); }
.sidebar {
  min-height: 100vh; padding: 24px 17px; color: white; background:
    radial-gradient(circle at 20% 95%, color-mix(in srgb, var(--secondary) 50%, transparent), transparent 16rem),
    linear-gradient(180deg, color-mix(in srgb, var(--primary) 48%, #172354), #172354);
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; overflow: auto;
}
.sidebar .brand { color: white; padding: 0 6px; margin-bottom: 39px; }
.side-nav { display: grid; gap: 7px; }
.side-nav button {
  border: 0; border-radius: 13px; padding: 12px 13px; color: #dfe4ff; background: transparent; text-align: left;
  display: flex; align-items: center; gap: 12px; font-weight: 690; transition: background .18s, color .18s;
}
.side-nav button:hover { background: rgba(255,255,255,.07); color: white; }
.side-nav button.active { background: rgba(255,255,255,.14); color: white; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.nav-glyph { position: relative; width: 20px; height: 20px; flex: 0 0 20px; }
.nav-glyph::before, .nav-glyph::after { content: ""; position: absolute; }
.nav-glyph-home::before { inset: 4px 3px 2px; border: 2px solid currentColor; border-radius: 4px; }
.nav-glyph-home::after { width: 8px; height: 8px; left: 6px; top: 0; border-top: 2px solid currentColor; border-left: 2px solid currentColor; transform: rotate(45deg); }
.nav-glyph-calendar::before { inset: 2px; border: 2px solid currentColor; border-radius: 4px; }
.nav-glyph-calendar::after { left: 5px; right: 5px; top: 7px; height: 2px; background: currentColor; box-shadow: 0 4px 0 currentColor; }
.nav-glyph-tasks::before { inset: 2px; border: 2px solid currentColor; border-radius: 5px; }
.nav-glyph-tasks::after { width: 8px; height: 4px; left: 6px; top: 6px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.nav-glyph-team::before { width: 7px; height: 7px; left: 2px; top: 2px; border: 2px solid currentColor; border-radius: 50%; box-shadow: 8px 2px 0 -2px transparent, 8px 2px 0 0 currentColor; }
.nav-glyph-team::after { left: 1px; right: 1px; bottom: 1px; height: 7px; border: 2px solid currentColor; border-radius: 8px 8px 3px 3px; }
.nav-glyph-library::before { inset: 2px 1px; border: 2px solid currentColor; border-radius: 3px 6px 6px 3px; }
.nav-glyph-library::after { left: 7px; top: 3px; bottom: 3px; width: 2px; background: currentColor; }
.nav-glyph-quick::before { width: 11px; height: 11px; left: 1px; bottom: 1px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.nav-glyph-quick::after { width: 10px; height: 10px; right: 1px; top: 1px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.nav-glyph-settings::before { width: 10px; height: 10px; left: 3px; top: 3px; border: 2px solid currentColor; border-radius: 50%; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 28%, transparent); }
.side-foot { margin-top: auto; padding: 17px 8px 4px; }
.pilot-badge { margin-bottom: 14px; padding: 11px 12px; border-radius: 13px; background: rgba(255,255,255,.08); color: #d9def8; font-size: 11px; line-height: 1.45; }
.side-foot button { width: 100%; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.07); color: white; }
.workspace-main { min-width: 0; padding: 27px 31px 50px; }
.workspace-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; max-width: 1420px; margin: 0 auto 26px; }
.space-title { display: flex; align-items: center; gap: 12px; }
.avatar { width: 45px; height: 45px; display: grid; place-items: center; overflow: hidden; border-radius: 16px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.avatar img { width: 42px; height: 42px; object-fit: contain; }
.space-title h1 { margin: 0; font-size: 18px; letter-spacing: -.025em; }
.space-title p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.top-controls { display: flex; align-items: center; gap: 9px; }
.save-state { padding: 8px 11px; border-radius: 999px; background: #e7f8f2; color: #1d805f; font-size: 11px; font-weight: 790; }
.content { max-width: 1420px; margin: 0 auto; }
.view-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.view-head h2 { margin: 0; font-size: clamp(29px, 4vw, 42px); letter-spacing: -.055em; line-height: 1.05; }
.view-head p { margin: 8px 0 0; color: var(--muted); line-height: 1.55; }
.head-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.ocean-search {
  margin: 22px 0 25px; max-width: 800px; display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: var(--shadow-soft);
}
.ocean-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); }
.ocean-search span { font-size: 21px; color: var(--muted); }
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; margin-bottom: 25px; }
.stat-card { padding: 20px; border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow-soft); }
.stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stat-top small { color: var(--muted); font-weight: 790; font-size: 10px; letter-spacing: .08em; }
.stat-icon { position: relative; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--primary) 11%, white); }
.stat-icon::before, .stat-icon::after { content: ""; position: absolute; color: var(--primary); }
.stat-icon-calendar::before, .stat-icon-library::before { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 4px; }
.stat-icon-calendar::after { width: 11px; height: 2px; top: 11px; background: currentColor; box-shadow: 0 5px 0 color-mix(in srgb, currentColor 55%, transparent); }
.stat-icon-library::after { width: 2px; height: 13px; left: 16px; top: 11px; background: currentColor; }
.stat-icon-tasks::before { width: 15px; height: 15px; border: 2px solid currentColor; border-radius: 5px; }
.stat-icon-tasks::after { width: 8px; height: 4px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.stat-icon-team::before { width: 7px; height: 7px; top: 8px; left: 8px; border: 2px solid currentColor; border-radius: 50%; box-shadow: 9px 2px 0 -2px white, 9px 2px 0 0 currentColor; }
.stat-icon-team::after { width: 20px; height: 8px; left: 7px; bottom: 7px; border: 2px solid currentColor; border-radius: 10px 10px 4px 4px; }
.stat-icon-alert::before { content: "!"; inset: 0; display: grid; place-items: center; font-weight: 900; }
.stat-icon-quick::before { width: 14px; height: 14px; border: 2px solid currentColor; border-radius: 50%; }
.stat-icon-quick::after { width: 7px; height: 2px; right: 6px; top: 8px; background: currentColor; transform: rotate(-40deg); }
.stat-card strong { display: block; margin: 14px 0 4px; font-size: 30px; letter-spacing: -.04em; }
.stat-card > span { color: var(--muted); font-size: 12px; }
.home-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; }
.panel { padding: 21px; background: white; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-soft); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 13px; margin-bottom: 17px; }
.panel-head h3 { margin: 0; font-size: 17px; letter-spacing: -.025em; }
.text-link { border: 0; padding: 0; color: var(--primary); background: transparent; font-weight: 780; font-size: 12px; }
.empty-state { padding: 45px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 18px; }
.empty-state .empty-icon { display: block; margin-bottom: 10px; font-size: 32px; }
.empty-ordy { display: block; width: 92px; height: 92px; margin: -14px auto 8px; object-fit: contain; }
.empty-state strong { display: block; margin-bottom: 5px; color: var(--ink); }
.empty-state .btn { margin-top: 14px; }
.folder-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.folder-mini { border: 1px solid var(--line); background: #fafbff; border-radius: 16px; padding: 13px; text-align: left; }
.folder-mini b { display: block; margin: 8px 0 3px; }
.folder-mini small { color: var(--muted); }
.next-list { display: grid; gap: 9px; }
.next-item { display: grid; grid-template-columns: 37px 1fr auto; gap: 11px; align-items: center; padding: 11px; border: 1px solid var(--line); border-radius: 15px; }
.next-date { width: 37px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--primary); background: #edf1ff; font-size: 11px; font-weight: 850; line-height: 1.05; text-align: center; }
.next-item b { display: block; margin-bottom: 3px; font-size: 13px; }
.next-item span { color: var(--muted); font-size: 11px; }
.ocean-note { margin-top: 16px; padding: 19px 21px; border-radius: 20px; background: linear-gradient(110deg, #e9f9fa, #f1edff); color: #303a76; }
.ocean-note b { display: block; margin-bottom: 4px; }
.ocean-note span { font-size: 13px; line-height: 1.45; }

/* Toolbars and fields */
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar-search { flex: 1 1 260px; min-width: 210px; }
.field, .toolbar input, .toolbar select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 13px; background: white; color: var(--ink); padding: 11px 13px; outline: none;
}
.toolbar input { min-width: 0; }
.toolbar select { width: auto; min-width: 145px; }
.field:focus, .toolbar input:focus, .toolbar select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.segmented { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.segmented button { border: 0; border-radius: 9px; padding: 8px 10px; color: var(--muted); background: transparent; font-size: 12px; font-weight: 720; }
.segmented button.active { color: var(--primary); background: #edf1ff; }
.filter-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 17px; }
.filter-tab { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: white; color: var(--muted); font-size: 12px; font-weight: 760; }
.filter-tab.active { color: white; background: var(--primary); border-color: var(--primary); }
.count-pill { min-width: 22px; display: inline-grid; place-items: center; margin-left: 5px; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, currentColor 13%, transparent); font-size: 10px; }

/* Library */
.folder-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.folder-card { position: relative; min-height: 185px; border: 1px solid var(--line); border-radius: 23px; background: white; box-shadow: var(--shadow-soft); overflow: hidden; }
.folder-open { width: 100%; height: 100%; min-height: 185px; border: 0; background: transparent; padding: 22px; text-align: left; }
.folder-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--folder-color, var(--primary)); }
.folder-symbol { width: 51px; height: 44px; display: grid; place-items: center; border-radius: 13px; color: var(--folder-color, var(--primary)); background: color-mix(in srgb, var(--folder-color, var(--primary)) 12%, white); font-size: 24px; }
.folder-card h3 { margin: 24px 0 7px; font-size: 18px; letter-spacing: -.025em; }
.folder-meta { color: var(--muted); font-size: 12px; }
.folder-actions { position: absolute; top: 17px; right: 15px; display: flex; gap: 5px; }
.folder-actions .btn-icon { background: rgba(255,255,255,.9); }
.breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--muted); font-size: 13px; }
.breadcrumb button { border: 0; padding: 0; color: var(--primary); background: transparent; font-weight: 760; }
.folder-detail-head { margin-bottom: 18px; padding: 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-radius: 21px; background: white; border: 1px solid var(--line); }
.folder-detail-title { display: flex; align-items: center; gap: 14px; }
.folder-detail-title h3 { margin: 0 0 4px; font-size: 24px; }
.folder-detail-title p { margin: 0; color: var(--muted); font-size: 12px; }
.subfolder-list { display: grid; gap: 13px; }
.subfolder { border: 1px solid var(--line); border-radius: 21px; background: white; overflow: hidden; box-shadow: var(--shadow-soft); }
.subfolder-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: #fafbff; }
.subfolder-title { display: flex; align-items: center; gap: 10px; }
.subfolder-title h4 { margin: 0; font-size: 15px; }
.subfolder-title span { color: var(--muted); font-size: 11px; }
.inline-actions { display: flex; align-items: center; gap: 6px; }
.link-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 14px; }
.link-card { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.link-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.link-card h5 { margin: 0 0 5px; font-size: 14px; }
.url-line { color: var(--primary); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-note { min-height: 35px; margin: 10px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.link-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.link-date { color: var(--muted); font-size: 10px; }
.importance { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 820; }
.importance-alta { color: #b63c4e; background: #fff0f2; }
.importance-media { color: #9b6910; background: #fff7df; }
.importance-baja { color: #34745e; background: #eaf8f3; }
.empty-inline { margin: 14px; padding: 25px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 15px; color: var(--muted); font-size: 12px; }

/* Tasks */
.task-list { display: grid; gap: 10px; }
.task-card { display: grid; grid-template-columns: 44px minmax(210px,1.25fr) .75fr .62fr .56fr auto; gap: 13px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 7px 22px rgba(42,54,123,.05); }
.task-check { width: 41px; height: 41px; padding: 0; border: 2px solid #dbe0ef; border-radius: 13px; color: transparent; background: #fafbff; font-size: 18px; }
.task-check:hover { border-color: var(--green); }
.task-card.done { opacity: .68; }
.task-card.done .task-check { color: white; border-color: var(--green); background: var(--green); }
.task-card.done .task-main b { text-decoration: line-through; }
.task-main { min-width: 0; }
.task-main b { display: block; margin-bottom: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.task-main span { color: var(--muted); font-size: 11px; }
.task-cell label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 820; letter-spacing: .07em; text-transform: uppercase; }
.task-cell select { width: 100%; border: 0; border-radius: 9px; padding: 7px 8px; color: var(--ink-2); background: #f5f6fb; font-size: 11px; }
.date-chip { display: inline-flex; padding: 7px 9px; border-radius: 10px; color: var(--ink-2); background: #f5f6fb; font-size: 11px; font-weight: 750; }
.date-chip.overdue { color: #b83c4e; background: #fff0f2; }
.energy { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 760; }
.energy::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--energy-color); }
.energy-baja { --energy-color: var(--green); }
.energy-media { --energy-color: var(--yellow); }
.energy-alta { --energy-color: var(--coral); }
.task-actions { display: flex; gap: 5px; justify-content: flex-end; }
.group { margin-bottom: 22px; }
.group-title { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 14px; }
.group-title span { color: var(--muted); font-weight: 500; }
.task-board { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.board-column { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: #eef0f7; }
.board-column > h3 { margin: 0 0 12px; font-size: 14px; }
.board-column .task-card { grid-template-columns: 39px 1fr; }
.board-column .task-cell, .board-column .task-actions { grid-column: 2; }
.board-column .task-actions { justify-content: flex-start; }
.assignee-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; align-items: start; }
.assignee-group { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 21px; background: #f2f3f9; }
.assignee-group > header { display: flex; align-items: center; gap: 10px; margin-bottom: 13px; }
.assignee-group > header > span, .member-avatar { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); font-weight: 850; }
.assignee-group h3 { margin: 0 0 2px; font-size: 14px; }
.assignee-group small { color: var(--muted); font-size: 10px; }
.assignee-group .task-card { grid-template-columns: 39px 1fr; }
.assignee-group .task-cell, .assignee-group .task-actions { grid-column: 2; }
.assignee-group .task-actions { justify-content: flex-start; }

/* Círculos: calendario, contenido y equipo */
.client-brand { margin: -21px 7px 27px; padding: 13px 14px; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 1px solid rgba(255,255,255,.16); }
.client-brand span, .client-brand strong { display: block; }
.client-brand span { margin-bottom: 3px; color: rgba(255,255,255,.64); font-size: 8px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.client-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 500; }
.brand-circulos {
  --line: #e8ddd3;
  --line-strong: #d7c8ba;
  --muted: #705f6d;
  --shadow: 0 18px 55px rgba(70,55,85,.13);
  --shadow-soft: 0 10px 30px rgba(70,55,85,.08);
  --green: #477765;
  --yellow: #d39735;
  --coral: #ea2b1c;
}
.brand-circulos .sidebar {
  background:
    radial-gradient(circle at 18% 88%, rgba(255,138,202,.28), transparent 15rem),
    linear-gradient(180deg, #463755, #32273c);
}
.brand-circulos .sidebar-logo { width: 160px; padding: 8px; border-radius: 15px; background: rgba(255,255,255,.96); }
.brand-circulos .side-nav button { color: #f4e9ef; }
.brand-circulos .side-nav button.active { color: #231f20; background: #ff8aca; box-shadow: none; }
.brand-circulos .workspace-main {
  background:
    radial-gradient(circle at 100% 0, rgba(255,138,202,.14), transparent 28rem),
    #f9f1e9;
}
.brand-circulos .space-title h1,
.brand-circulos .view-head h2,
.brand-circulos .circulos-hero h2,
.brand-circulos .panel-head h3,
.brand-circulos .member-card h3,
.brand-circulos .folder-card h3,
.brand-circulos .folder-detail-title h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.brand-circulos .btn-primary { color: #231f20; background: #ff8aca; box-shadow: 0 10px 24px rgba(255,138,202,.22); }
.brand-circulos .btn-primary:hover { background: #ff9cd3; }
.brand-circulos .btn-quiet { border-color: #d8c7b9; background: rgba(255,255,255,.68); }
.brand-circulos .save-state { color: #463755; background: #f5d9e8; }
.circulos-hero { position: relative; min-height: 235px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; align-items: center; gap: 24px; overflow: hidden; margin-bottom: 22px; padding: 34px 38px; border-radius: 29px; color: white; background: #463755; box-shadow: var(--shadow-soft); }
.circulos-hero::before { content: ""; position: absolute; width: 180px; height: 180px; right: -55px; top: -75px; border: 1px solid rgba(255,138,202,.7); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,138,202,.05), 0 0 0 48px rgba(255,138,202,.04); }
.circulos-hero::after { content: ""; position: absolute; width: 24px; height: 24px; left: 21px; top: 19px; border-radius: 50% 50% 50% 10%; background: #ff8aca; transform: rotate(-22deg); }
.circulos-hero-copy { position: relative; z-index: 2; }
.circulos-kicker { display: block; margin-bottom: 12px; color: #ffb9de; font-size: 10px; font-weight: 850; letter-spacing: .18em; }
.circulos-hero h2 { margin: 0; font-size: clamp(40px, 5vw, 66px); line-height: .98; letter-spacing: -.05em; }
.circulos-hero p { max-width: 660px; margin: 14px 0 22px; color: rgba(255,255,255,.78); line-height: 1.55; }
.circulos-hero .btn-quiet { color: white; border-color: rgba(255,255,255,.26); background: rgba(255,255,255,.08); }
.circulos-ordy { position: relative; z-index: 2; align-self: end; text-align: center; }
.circulos-ordy img { display: block; width: 190px; max-height: 190px; margin: 0 auto -8px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 15px 20px rgba(24,16,32,.3)); }
.circulos-ordy span { display: inline-block; max-width: 210px; padding: 7px 10px; border-radius: 999px; color: #463755; background: #f9f1e9; font-size: 9px; font-weight: 750; }
.brand-circulos .stat-card,
.brand-circulos .panel,
.brand-circulos .calendar-shell,
.brand-circulos .member-card,
.brand-circulos .folder-card,
.brand-circulos .subfolder,
.brand-circulos .task-card { background: rgba(255,255,255,.88); }
.brand-circulos .stat-card { border-top: 4px solid #ff8aca; }
.brand-circulos .stat-icon { color: #463755; background: #f8dfea; }
.brand-circulos .type-social { color: #463755; background: #f8dfea; }
.brand-circulos .type-newsletter { color: #fff; background: #463755; }
.brand-circulos .calendar-item.type-social { color: #a63a73; background: #fff0f7; }
.brand-circulos .calendar-item.type-newsletter { color: #463755; background: #f2edf4; }
.brand-circulos .people-workload > button > span,
.brand-circulos .member-avatar,
.brand-circulos .assignee-group > header > span { color: #231f20; background: #ff8aca; }
.brand-circulos .people-workload > button > strong { color: #463755; background: #f8dfea; }
.brand-circulos .calendar-weekdays,
.brand-circulos .subfolder-head { background: #f7ede5; }
.content-agenda, .people-workload { display: grid; gap: 9px; }
.content-agenda > button, .people-workload > button { width: 100%; display: grid; align-items: center; gap: 11px; padding: 11px; border: 1px solid var(--line); border-radius: 15px; color: inherit; background: white; text-align: left; }
.content-agenda > button { grid-template-columns: auto 1fr auto; }
.content-agenda b, .content-agenda small, .people-workload b, .people-workload small { display: block; }
.content-agenda small, .people-workload small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.content-agenda i { color: var(--muted); font-style: normal; }
.content-type { padding: 6px 8px; border-radius: 999px; font-size: 9px; font-weight: 850; }
.type-social { color: #29559d; background: #e9f2ff; }
.type-newsletter { color: #8343a2; background: #f7eefe; }
.people-workload > button { grid-template-columns: 40px 1fr auto; }
.people-workload > button > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(135deg, var(--primary), var(--secondary)); font-weight: 850; }
.people-workload > button > strong { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; color: var(--primary); background: #edf1ff; }
.calendar-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 13px; }
.calendar-toolbar h3 { min-width: 190px; margin: 0; text-align: center; font-size: 17px; text-transform: capitalize; }
.calendar-toolbar .text-link { margin-left: 4px; }
.calendar-shell { overflow-x: auto; border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow-soft); }
.calendar-weekdays, .calendar-grid { min-width: 840px; display: grid; grid-template-columns: repeat(7, minmax(120px, 1fr)); }
.calendar-weekdays { color: var(--muted); background: #f7f8fc; border-bottom: 1px solid var(--line); }
.calendar-weekdays span { padding: 10px 12px; text-align: center; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.calendar-day { min-height: 150px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.calendar-day:nth-child(7n) { border-right: 0; }
.calendar-day > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.calendar-day > header span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 800; }
.calendar-day > header button { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 9px; color: var(--primary); background: #f2f3ff; }
.calendar-day.today > header span { color: white; background: var(--primary); }
.calendar-blank { background: #fafbfe; }
.calendar-item { width: 100%; display: grid; gap: 2px; margin-top: 6px; padding: 8px; border: 0; border-left: 3px solid currentColor; border-radius: 10px; text-align: left; }
.calendar-item.type-social { color: #29559d; background: #eef5ff; }
.calendar-item.type-newsletter { color: #8343a2; background: #f8f0fc; }
.calendar-item b { font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.calendar-item span { overflow: hidden; color: var(--ink); font-size: 10px; font-weight: 760; text-overflow: ellipsis; white-space: nowrap; }
.calendar-item small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.member-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 14px; }
.member-card { position: relative; display: grid; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: 21px; background: white; box-shadow: var(--shadow-soft); }
.member-card h3 { margin: 0 0 3px; font-size: 18px; }
.member-card p { margin: 0; color: var(--muted); font-size: 11px; }
.member-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.member-card dl > div { padding: 10px; border-radius: 13px; background: #f7f8fc; }
.member-card dt { color: var(--muted); font-size: 9px; }
.member-card dd { margin: 5px 0 0; font-size: 20px; font-weight: 850; }
.member-remove { position: absolute; top: 12px; right: 12px; }
.newsletter-blocks { display: grid; gap: 12px; margin-top: 20px; }
.newsletter-blocks-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.newsletter-blocks-head h3 { margin: 0; font-size: 16px; }
.newsletter-blocks-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.newsletter-block { display: grid; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 17px; background: #f9f9fd; }
.newsletter-block > header { display: flex; align-items: center; justify-content: space-between; }
.newsletter-block > header b { color: var(--primary); font-size: 12px; }
.content-copy { min-height: 150px !important; }

/* Quick links and settings */
.quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 13px; }
.quick-card { padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: white; box-shadow: var(--shadow-soft); }
.quick-card .quick-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 17px; border-radius: 13px; background: #edf1ff; font-size: 19px; }
.quick-card h3 { margin: 0 0 5px; font-size: 15px; }
.quick-card p { min-height: 36px; margin: 0 0 15px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.quick-card a { color: var(--primary); font-size: 12px; font-weight: 790; text-decoration: none; }
.settings-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, 1.2fr); gap: 16px; align-items: start; }
.preview-card { padding: 28px; min-height: 340px; border-radius: 26px; color: white; background: linear-gradient(145deg, var(--primary), var(--secondary)); position: sticky; top: 25px; overflow: hidden; }
.preview-card::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; bottom: -95px; border: 2px solid rgba(255,255,255,.25); border-radius: 48% 52% 42% 58%; box-shadow: 0 0 0 18px rgba(255,255,255,.05), 0 0 0 38px rgba(255,255,255,.04); }
.preview-avatar { width: 74px; height: 74px; display: grid; place-items: center; overflow: hidden; margin-bottom: 40px; border-radius: 20px; background: rgba(255,255,255,.15); }
.preview-avatar img { width: 72px; height: 72px; object-fit: contain; }
.preview-card h3 { margin: 0 0 7px; font-size: 28px; letter-spacing: -.04em; }
.preview-card p { max-width: 360px; color: rgba(255,255,255,.8); line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.field-group { display: grid; gap: 7px; }
.field-group.full { grid-column: 1 / -1; }
.field-group label { color: var(--ink-2); font-size: 12px; font-weight: 780; }
.field-group textarea { min-height: 90px; resize: vertical; }
.color-field { display: grid; grid-template-columns: 55px 1fr; gap: 8px; align-items: center; }
.color-field input[type="color"] { width: 55px; height: 44px; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.ordy-fixed { min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 13px; background: #fafaff; }
.ordy-fixed img { width: 34px; height: 34px; object-fit: contain; }
.ordy-fixed span { color: var(--ink-2); font-size: 12px; font-weight: 760; }
.brand-lock { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 16px; background: #fffaf6; }
.brand-lock b { display: block; margin-bottom: 3px; font-size: 12px; }
.brand-lock p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.4; }
.brand-swatch { width: 48px; height: 36px; border-radius: 11px; background: linear-gradient(90deg, #ff8aca 0 38%, #463755 38% 72%, #f9f1e9 72%); box-shadow: inset 0 0 0 1px rgba(70,55,85,.12); }
.settings-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 19px; }

/* Modal and feedback */
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; background: rgba(15, 23, 63, .54); backdrop-filter: blur(8px); }
.modal { width: min(620px, 100%); max-height: min(820px, calc(100vh - 40px)); overflow: auto; border-radius: 25px; background: white; box-shadow: 0 30px 90px rgba(15,23,63,.28); }
.modal-small { width: min(480px, 100%); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 22px 24px 15px; }
.modal-head h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.modal-head p { margin: 6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.modal-body { padding: 8px 24px 24px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.pilot-card { margin: 5px 0 18px; padding: 20px; border-radius: 19px; background: linear-gradient(125deg, var(--cream), #f1edff); }
.pilot-card .avatar { margin-bottom: 16px; }
.pilot-ordy { display: block; width: 76px; height: 76px; margin-bottom: 14px; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(78,75,247,.17)); }
.pilot-card h3 { margin: 0 0 5px; }
.pilot-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.login-options { display: grid; gap: 9px; }
.login-options .btn { width: 100%; }
.form-hint { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
#toast-root { position: fixed; z-index: 120; right: 21px; bottom: 21px; display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 13px 16px; border-radius: 14px; color: white; background: #172354; box-shadow: var(--shadow); animation: toast-in .25s ease; font-size: 12px; font-weight: 720; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
@media (max-width: 1100px) {
  .folder-grid, .quick-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .task-card { grid-template-columns: 42px 1.2fr .7fr .6fr auto; }
  .task-card .task-energy { display: none; }
}
@media (max-width: 900px) {
  .entry-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .entry-copy { text-align: center; padding-bottom: 120px; }
  .entry-copy > p { margin-inline: auto; }
  .ocean-examples { justify-content: center; }
  .depth-scale { margin-inline: auto; }
  .entry-ordy { right: 50%; bottom: -28px; width: 175px; transform: translateX(50%); }
  .entry-card { width: min(560px, 100%); margin: 0 auto; }
  .ocean-grid { grid-template-columns: repeat(2, 1fr); }
  .space-grid { grid-template-columns: repeat(2, 1fr); }
  .story-inner { grid-template-columns: 1fr; gap: 36px; }
  .workspace { grid-template-columns: 78px minmax(0,1fr); }
  .sidebar { padding: 20px 10px; }
  .sidebar .brand { justify-content: center; padding: 0; }
  .sidebar-logo { width: 54px; }
  .brand-circulos .sidebar-logo { width: 54px; padding: 4px; border-radius: 12px; }
  .client-brand { display: none; }
  .side-nav button span:not(.nav-glyph), .pilot-badge { display: none; }
  .side-nav button { justify-content: center; padding: 13px; }
  .side-foot { padding-left: 0; padding-right: 0; }
  .side-foot button { font-size: 0; }
  .side-foot button::after { content: "↩"; font-size: 18px; }
  .home-grid, .settings-grid { grid-template-columns: 1fr; }
  .preview-card { position: static; min-height: 280px; }
  .link-grid { grid-template-columns: 1fr; }
  .task-board { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 78px minmax(0, 1fr); }
  .admin-sidebar { padding: 20px 10px; }
  .admin-sidebar .sidebar-logo { width: 54px; margin-inline: auto; }
  .admin-sidebar .admin-label, .admin-sidebar .side-nav button span:not(.nav-glyph), .admin-sidebar .side-foot a { display: none; }
  .admin-sidebar .side-nav button { justify-content: center; padding: 13px; }
  .admin-sidebar .side-foot button { font-size: 0; }
  .admin-sidebar .side-foot button::after { content: "⇩"; font-size: 18px; }
  .admin-two { grid-template-columns: 1fr; }
  .chat-admin-layout { grid-template-columns: 290px minmax(0, 1fr); }
}
@media (max-width: 680px) {
  .public-nav { height: 70px; padding: 0 16px; }
  .nav-actions .btn-primary { display: none; }
  .hero { padding: 45px 16px 20px; }
  .entry-hero { padding: 18px 16px 58px; }
  .entry-copy h1 { font-size: 58px; }
  .entry-copy { padding-top: 20px; }
  .depth-scale { grid-template-columns: 1fr; }
  .depth-scale i { transform: rotate(90deg); }
  .entry-card { padding: 25px 20px; border-radius: 24px; }
  .ocean-grid { grid-template-columns: 1fr; padding-inline: 16px; }
  .human-chat-launcher { right: 14px; bottom: 14px; grid-template-columns: 46px 1fr; }
  .human-chat-launcher img { width: 46px; height: 46px; }
  .human-chat-launcher i { display: none; }
  .hero h1 { font-size: 49px; }
  .hero-search { flex-wrap: wrap; }
  .hero-search .btn { width: 100%; }
  .hero-ordy { margin-bottom: -16px; }
  .space-grid { grid-template-columns: 1fr; padding-left: 16px; padding-right: 16px; }
  .cta-ordy { right: -28px; width: 130px; opacity: .24; }
  .workspace { display: block; padding-bottom: 74px; }
  .sidebar { position: fixed; z-index: 50; inset: auto 0 0; width: 100%; min-height: 0; height: 67px; padding: 7px 9px; background: #172354; overflow: visible; }
  .sidebar .brand, .side-foot { display: none; }
  .side-nav { grid-template-columns: repeat(5, 1fr); gap: 2px; }
  .sidebar .workspace-nav { display: flex; overflow-x: auto; scrollbar-width: none; }
  .sidebar .workspace-nav::-webkit-scrollbar { display: none; }
  .sidebar .workspace-nav button { flex: 0 0 62px; }
  .side-nav button { min-width: 0; padding: 8px 2px; flex-direction: column; gap: 2px; font-size: 9px; }
  .side-nav button span:not(.nav-glyph) { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .nav-glyph { font-size: 16px; }
  .workspace-main { padding: 18px 13px 28px; }
  .workspace-top { margin-bottom: 23px; }
  .space-title p, .save-state { display: none; }
  .view-head { align-items: flex-start; flex-direction: column; }
  .circulos-hero { min-height: 0; grid-template-columns: 1fr; padding: 29px 24px 0; }
  .circulos-ordy { display: grid; grid-template-columns: 112px 1fr; align-items: center; justify-items: start; text-align: left; }
  .circulos-ordy img { width: 112px; height: 108px; margin: 0; }
  .head-actions { justify-content: flex-start; }
  .stat-grid, .folder-grid, .quick-grid { grid-template-columns: 1fr; }
  .folder-mini-grid { grid-template-columns: 1fr; }
  .folder-detail-head { align-items: flex-start; flex-direction: column; }
  .task-card { grid-template-columns: 39px 1fr auto; align-items: start; }
  .task-card .task-cell { grid-column: 2; }
  .task-card .task-status { grid-column: 2; }
  .task-card .task-energy { display: block; grid-column: 2; }
  .task-actions { grid-column: 3; grid-row: 1 / span 4; flex-direction: column; }
  .toolbar select { flex: 1; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .field-group.full { grid-column: auto; }
  .module-check-grid { grid-template-columns: 1fr; }
  .calendar-toolbar { flex-wrap: wrap; }
  .calendar-toolbar h3 { min-width: 150px; }
  .newsletter-blocks-head { align-items: flex-start; flex-direction: column; }
  .newsletter-blocks-head .btn { width: 100%; }
  .member-grid { grid-template-columns: 1fr; }
  .user-list > div { grid-template-columns: 42px 1fr; }
  .user-actions { grid-column: 1 / -1; justify-content: stretch; }
  .user-actions .btn { flex: 1; }
  .modal-backdrop { padding: 10px; align-items: end; }
  .modal { max-height: calc(100vh - 20px); border-radius: 23px 23px 12px 12px; }
  .request-human-help { grid-template-columns: 48px 1fr; }
  .request-human-help button { grid-column: 1 / -1; }
  .chat-compose { grid-template-columns: 1fr; }
  .admin-shell { display: block; padding-bottom: 69px; }
  .admin-sidebar { position: fixed; z-index: 50; inset: auto 0 0; width: 100%; min-height: 0; height: 67px; padding: 7px 9px; overflow: visible; }
  .admin-sidebar .sidebar-logo, .admin-sidebar .admin-label, .admin-sidebar .side-foot { display: none; }
  .admin-sidebar .side-nav { grid-template-columns: repeat(5, 1fr); gap: 2px; }
  .admin-sidebar .side-nav button { min-width: 0; padding: 8px 2px; flex-direction: column; gap: 2px; font-size: 8px; }
  .admin-sidebar .side-nav button span:not(.nav-glyph) { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .admin-main { padding: 18px 13px 28px; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .chat-admin-layout { min-height: 0; grid-template-columns: 1fr; }
  .conversation-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .conversation-panel { min-height: 480px; }
  .admin-table-wrap { padding: 8px; }
}
/* ===== Ordy ya no se monta sobre la escala ===== */
.entry-copy  { position: relative; }
.entry-ordy  { z-index: 0; right: -18px; bottom: -46px; width: 190px; }
.depth-scale { position: relative; z-index: 1; padding-right: 168px; }

@media (max-width: 900px) {
  .entry-ordy  { right: 50%; bottom: -28px; width: 175px; transform: translateX(50%); }
  .depth-scale { padding-right: 0; }
}
