/* ALETHY Connect — lienzo casi negro, acento amarillo Tech #FFB11A, violeta ALETHY #B426EB de apoyo. */
@font-face { font-family: "Gilroy"; src: url("/connect/assets/Gilroy-ExtraBold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Gilroy"; src: url("/connect/assets/Gilroy-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }

:root {
  --bg: #0A0A0B; --bg2: #111113; --surface: #16161A; --surface2: #1D1D22;
  --line: rgba(255,255,255,.09); --line2: rgba(255,255,255,.16);
  --text: #FFFFFF; --muted: #A6A6B0; --dim: #74747E;
  --accent: #FFB11A; --accent-ink: #141006; --accent-soft: rgba(255,177,26,.12);
  --violet: #B426EB; --violet-soft: rgba(180,38,235,.14);
  --ok: #3DD68C; --bad: #FF6B6B;
  --radius: 16px; --radius-sm: 10px;
  --head: "Gilroy", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.cx { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); min-height: 100vh;
  display: flex; flex-direction: column; overflow-x: hidden; }
body.cx main { flex: 1; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 800; letter-spacing: -.01em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.4rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.15rem; }
h1 em { font-style: normal; color: var(--accent); }
p { margin: 0 0 1em; }
.cx-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.cx-muted { color: var(--muted); }
.cx-small { font-size: .85rem; }
.cx-center { text-align: center; padding-top: 72px; padding-bottom: 72px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* barra superior */
.cx-top { position: sticky; top: 0; z-index: 20; background: rgba(10,10,11,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.cx-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; }
.cx-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--head); font-weight: 800; letter-spacing: .14em; font-size: .92rem; white-space: nowrap; }
.cx-brand:hover { text-decoration: none; }
.cx-brand img { height: 31px; width: auto; }
.cx-brand b { color: var(--accent); font-weight: 800; }
.cx-brand-sm { font-size: .8rem; }
.cx-brand-sm img { height: 24px; }
.cx-nav { display: flex; align-items: center; gap: 14px; }
.cx-navlink { color: var(--muted); font-weight: 500; font-size: .92rem; }
.cx-navlink:hover { color: var(--text); text-decoration: none; }
.cx-lang { color: var(--dim); font-size: .78rem; font-weight: 700; border: 1px solid var(--line2); border-radius: 999px; padding: 3px 9px; }
.cx-lang:hover { color: var(--text); text-decoration: none; }
@media (max-width: 560px) { .cx-brand span { display: none; } .cx-nav { gap: 10px; } .cx-navlink { font-size: .85rem; } }

/* botones */
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--accent); color: var(--accent-ink);
  font: 700 .95rem/1 var(--body); border: 1px solid var(--accent); border-radius: 999px; padding: 12px 20px; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, background .12s ease; }
.cx-btn:hover { text-decoration: none; background: #FFC24D; }
.cx-btn:active { transform: translateY(1px); }
.cx-btn[disabled] { opacity: .5; cursor: not-allowed; }
.cx-btn-sm { padding: 8px 14px; font-size: .85rem; }
.cx-btn-lg { padding: 15px 26px; font-size: 1rem; }
.cx-btn-ghost { background: transparent; color: var(--text); border-color: var(--line2); }
.cx-btn-ghost:hover { background: var(--surface2); }
.cx-btn-link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; text-decoration: underline; }

/* landing */
.cx-hero { position: relative; overflow: hidden; padding: 56px 0 40px; }
.cx-hero::before { content: ""; position: absolute; inset: -30% -10% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(255,177,26,.16), transparent 70%); pointer-events: none; }
.cx-hero::after { content: ""; position: absolute; inset: auto auto -40% -20%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(closest-side, rgba(180,38,235,.12), transparent 70%); pointer-events: none; }
.cx-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; }
.cx-eyebrow { color: var(--accent); font-family: var(--head); font-weight: 800; letter-spacing: .32em; font-size: .78rem; margin-bottom: 18px; }
.cx-lead { color: var(--muted); font-size: clamp(1.02rem, 2.2vw, 1.2rem); max-width: 40em; }
.cx-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.cx-center .cx-cta-row { justify-content: center; }
.cx-hero-art img { width: 100%; max-width: 380px; display: block; margin: 0 auto; filter: drop-shadow(0 20px 60px rgba(255,177,26,.18)); }
@media (max-width: 820px) { .cx-hero-in { grid-template-columns: 1fr; } .cx-hero-art { order: -1; } .cx-hero-art img { max-width: 190px; } .cx-hero { padding-top: 28px; } }
.cx-band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 16px; text-align: center; background: var(--bg2); }
.cx-band span { font-family: var(--head); font-weight: 300; letter-spacing: .38em; text-transform: uppercase; font-size: .82rem; color: var(--muted); }
.cx-band-y span { color: var(--accent); }
.cx-section { padding: 64px 0; }
.cx-section-alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cx-feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 26px; }
.cx-feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.cx-feat p { color: var(--muted); margin: 0; font-size: .95rem; }
.cx-feat-n { display: inline-block; font-family: var(--head); font-weight: 800; color: var(--accent); font-size: .8rem; letter-spacing: .1em; margin-bottom: 10px; }
.cx-steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.cx-steps li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cx-steps b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--head); }
.cx-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 26px; }
.cx-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.cx-plan p { color: var(--muted); flex: 1; }
.cx-plan-on { border-color: rgba(255,177,26,.5); box-shadow: 0 0 0 1px rgba(255,177,26,.15), 0 20px 50px rgba(255,177,26,.06); }
.cx-pill { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft); border-radius: 999px; padding: 4px 10px; margin-bottom: 8px; }
.cx-pill-v { color: #D98CFF; background: var(--violet-soft); }

/* pie */
.cx-foot { border-top: 1px solid var(--line); padding: 26px 0; margin-top: 40px; }
.cx-foot-in { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; }
.cx-foot small { color: var(--dim); }

/* perfil público */
.cx-profile { max-width: 720px; padding-top: 24px; }
.cx-banner { background: var(--violet-soft); border: 1px solid rgba(180,38,235,.4); color: #EBC7FF; border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 16px; font-size: .9rem; }
.cx-banner a { color: #fff; font-weight: 700; }
.cx-banner-ok { background: var(--surface); border-color: var(--line); text-align: right; }
.cx-card { position: relative; overflow: hidden; background: linear-gradient(160deg, #1A1A1F 0%, #121215 60%); border: 1px solid var(--line); border-radius: 22px; padding: 26px 22px 22px; }
.cx-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: linear-gradient(135deg, transparent 45%, rgba(255,177,26,.16) 45%, rgba(255,177,26,.16) 62%, transparent 62%); pointer-events: none; }
.cx-card-top { display: flex; gap: 18px; align-items: center; position: relative; z-index: 1; }
.cx-avatar { flex: none; width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); background: var(--surface2); }
.cx-avatar-i { display: grid; place-items: center; font-family: var(--head); font-weight: 800; font-size: 2.2rem; color: var(--accent); }
.cx-id h1 { font-size: clamp(1.6rem, 5.4vw, 2.3rem); margin-bottom: .2em; }
.cx-role { color: var(--text); opacity: .9; margin: 0 0 4px; font-weight: 500; }
.cx-cats { color: var(--accent); font-size: .85rem; font-weight: 600; margin: 0 0 4px; }
.cx-area { color: var(--muted); font-size: .9rem; margin: 0; }
@media (max-width: 480px) { .cx-card-top { flex-direction: column; text-align: center; } .cx-avatar { width: 96px; height: 96px; } }
.cx-actions { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 22px; }
.cx-act { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 12px; border-radius: 12px; background: var(--surface2);
  border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: .95rem; min-height: 48px; }
.cx-act:hover { text-decoration: none; border-color: var(--line2); background: #24242A; }
.cx-act-main { grid-column: 1 / -1; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-size: 1rem; }
.cx-act-main:hover { background: #FFC24D; }
.cx-ico { font-size: 1.05rem; line-height: 1; }
.cx-socials { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cx-socials a { color: var(--muted); border: 1px solid var(--line2); border-radius: 999px; padding: 5px 12px; font-size: .85rem; }
.cx-socials a:hover { color: var(--text); text-decoration: none; }
.cx-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-top: 16px; }
.cx-block h2 { font-size: 1.15rem; color: var(--accent); letter-spacing: .02em; }
.cx-block p:last-child { margin-bottom: 0; }
.cx-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cx-chips li { background: var(--accent-soft); color: #FFD07A; border: 1px solid rgba(255,177,26,.25); border-radius: 999px; padding: 5px 12px; font-size: .88rem; }
.cx-chips-sm li { font-size: .78rem; padding: 3px 10px; }
.cx-faq { border-top: 1px solid var(--line); padding: 12px 0; }
.cx-faq:first-of-type { border-top: 0; }
.cx-faq summary { cursor: pointer; font-weight: 600; list-style: none; }
.cx-faq summary::-webkit-details-marker { display: none; }
.cx-faq summary::before { content: "+"; color: var(--accent); display: inline-block; width: 1.2em; font-weight: 800; }
.cx-faq[open] summary::before { content: "–"; }
.cx-faq p { color: var(--muted); margin: 8px 0 0 1.2em; }
.cx-qr { display: flex; gap: 20px; align-items: center; }
.cx-qr img { width: 150px; height: 150px; border-radius: 12px; background: #fff; padding: 6px; flex: none; }
.cx-qr p { color: var(--muted); }
@media (max-width: 480px) { .cx-qr { flex-direction: column; text-align: center; } }
.cx-own { text-align: center; margin: 26px 0 0; }

/* directorio */
.cx-dir { padding-top: 36px; }
.cx-search { display: flex; gap: 10px; margin: 20px 0 22px; }
.cx-search input { flex: 1; min-width: 0; }
.cx-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 12px 0 22px; }
.cx-dir-card { display: flex; flex-direction: column; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; color: var(--text); }
.cx-dir-card:hover { text-decoration: none; border-color: rgba(255,177,26,.45); }
.cx-dir-head { display: flex; gap: 12px; align-items: center; }
.cx-dir-head img, .cx-dir-head .cx-avatar-i { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; background: var(--surface2); font-size: 1.2rem; border: 2px solid var(--accent); }
.cx-dir-head h3 { margin: 0 0 2px; }
.cx-dir-head p { margin: 0; color: var(--muted); font-size: .88rem; }
.cx-empty { text-align: center; background: var(--surface); border: 1px dashed var(--line2); border-radius: var(--radius); padding: 36px 16px; margin: 16px 0 22px; }

/* formularios y app del miembro */
input[type=text], input[type=email], input[type=password], input[type=url], input[type=tel], input[type=search], textarea, select {
  width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--line2); border-radius: var(--radius-sm);
  padding: 12px 14px; font: 400 1rem/1.4 var(--body); }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
label.cx-l { display: block; font-weight: 600; font-size: .9rem; margin: 14px 0 6px; }
.cx-hint { color: var(--dim); font-size: .82rem; margin-top: 4px; }
.cx-app { max-width: 760px; padding-top: 28px; padding-bottom: 40px; }
.cx-auth { max-width: 440px; padding-top: 48px; }
.cx-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 16px; }
.cx-panel h2 { font-size: 1.2rem; }
.cx-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 600px) { .cx-row { grid-template-columns: 1fr; } }
.cx-msg { border-radius: var(--radius-sm); padding: 10px 14px; margin: 12px 0; font-size: .92rem; }
.cx-msg-bad { background: rgba(255,107,107,.1); border: 1px solid rgba(255,107,107,.4); color: #FFB3B3; }
.cx-msg-ok { background: rgba(61,214,140,.1); border: 1px solid rgba(61,214,140,.4); color: #A8F0CB; }
.cx-msg-info { background: var(--accent-soft); border: 1px solid rgba(255,177,26,.35); color: #FFD9A0; }
.cx-faq-edit { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 10px; }
.cx-faq-edit textarea { min-height: 64px; margin-top: 6px; }
.cx-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cx-switch input { width: 46px; height: 26px; appearance: none; -webkit-appearance: none; background: var(--surface2); border: 1px solid var(--line2); border-radius: 999px; position: relative; cursor: pointer; flex: none; }
.cx-switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: left .15s; }
.cx-switch input:checked { background: var(--accent); border-color: var(--accent); }
.cx-switch input:checked::after { left: 23px; background: var(--accent-ink); }
.cx-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.cx-stat { background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.cx-stat b { display: block; font-family: var(--head); font-size: 1.7rem; color: var(--text); }
.cx-stat span { color: var(--muted); font-size: .82rem; }
.cx-links { display: grid; gap: 10px; }
.cx-linkrow { display: flex; gap: 8px; align-items: center; }
.cx-linkrow code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font-size: .85rem; color: #FFD07A; }
.cx-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; border-radius: 999px; padding: 3px 9px; }
.cx-tag-on { background: rgba(61,214,140,.15); color: var(--ok); }
.cx-tag-off { background: var(--surface2); color: var(--muted); }
.cx-sticky { position: sticky; bottom: 0; background: linear-gradient(to top, var(--bg) 70%, transparent); padding: 16px 0 12px; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.cx-tabs { display: flex; gap: 8px; margin-top: 18px; }
.cx-tabs button { background: transparent; border: 1px solid var(--line2); color: var(--muted); border-radius: 999px; padding: 8px 14px; font: 600 .88rem var(--body); cursor: pointer; }
.cx-tabs button[aria-selected=true] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cx-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: cxspin .7s linear infinite; }
@keyframes cxspin { to { transform: rotate(360deg); } }
.cx-hidden { display: none !important; }
