/* ColDesigns — páginas internas (conexión, resultados y legales) */
html[lang="es"] .lang-en { display: none !important; }
html[lang="en"] .lang-es { display: none !important; }

.page-main { padding: 140px 0 80px; min-height: 70vh; }

@keyframes pg-rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
.pg-rise { animation: pg-rise .6s cubic-bezier(0.23, 1, 0.32, 1) both; }
.pg-rise.d1 { animation-delay: .08s; }
.pg-rise.d2 { animation-delay: .16s; }
.pg-rise.d3 { animation-delay: .24s; }

/* ---------- Documento legal ---------- */
.doc {
    max-width: 880px;
    margin: 0 auto;
    background: var(--bg-card);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    box-shadow: 0 20px 60px rgba(45, 27, 94, 0.08);
}
.doc .back-link {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--text-muted); text-decoration: none; font-weight: 500;
    font-size: .92rem; margin-bottom: 1.4rem;
    transition: color .2s ease;
}
.doc .back-link svg { width: 18px; height: 18px; transition: transform .25s cubic-bezier(0.23, 1, 0.32, 1); }
.doc h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    line-height: 1.15;
    color: var(--text-main);
}
.doc .doc-meta { color: var(--text-muted); font-size: .9rem; margin: .6rem 0 1.4rem; }
.doc h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.2rem;
    color: var(--text-main);
    margin: 2rem 0 .6rem;
    padding-left: .8rem;
    border-left: 3px solid var(--primary-cyan);
}
.doc h3 { font-size: 1rem; color: var(--text-main); margin: 1.2rem 0 .4rem; }
.doc p, .doc li { color: var(--text-muted); line-height: 1.7; }
.doc p { margin-bottom: .9rem; }
.doc ul { padding-left: 1.3rem; margin-bottom: 1rem; }
.doc li { margin-bottom: .35rem; }
.doc a { color: var(--primary-cyan); text-underline-offset: 3px; }
.doc strong { color: var(--text-main); }
.doc .doc-note {
    background: rgba(120, 56, 198, 0.07);
    border: 1px solid rgba(120, 56, 198, 0.18);
    border-radius: 1rem;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
}
.doc .doc-note p:last-child { margin-bottom: 0; }
.doc .table-wrap { overflow-x: auto; margin: 1rem 0 1.2rem; border-radius: 1rem; border: 1px solid rgba(45, 27, 94, .1); }
.doc table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 520px; background: rgba(255,255,255,.55); }
.doc th, .doc td { text-align: left; padding: .7rem .9rem; vertical-align: top; border-bottom: 1px solid rgba(45, 27, 94, .08); color: var(--text-muted); }
.doc th { color: var(--text-main); background: rgba(120, 56, 198, 0.08); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.doc-links { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.doc-links a {
    text-decoration: none; font-size: .88rem; font-weight: 500;
    padding: .45rem .9rem; border-radius: 999px;
    border: 1px solid rgba(120, 56, 198, .25); color: var(--primary-cyan);
    transition: background-color .2s ease, transform .16s ease;
}
.doc-links a:active { transform: scale(.97); }

.dd-status {
    display: none;
    margin: 0 0 1.4rem;
    padding: 1rem 1.2rem;
    border-radius: 1rem;
    background: rgba(34, 160, 107, .1);
    border: 1px solid rgba(34, 160, 107, .3);
    color: var(--text-main);
}
.dd-status.show { display: block; }
.dd-status code { font-weight: 700; letter-spacing: .04em; }

/* ---------- Conectar Instagram ---------- */
.cx-hero { display: grid; grid-template-columns: 1.1fr .9fr; grid-template-areas: "intro card" "steps card"; gap: clamp(1.5rem, 4vw, 3.5rem); row-gap: 1.5rem; align-items: start; }
.cx-hero > .pg-rise:first-child { grid-area: intro; }
.cx-hero > .cx-steps { grid-area: steps; }
.cx-hero > .cx-card { grid-area: card; }
.cx-info a { color: var(--primary-cyan); text-underline-offset: 3px; }
.cx-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--primary-cyan);
    background: rgba(120, 56, 198, .09);
    padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.cx-eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #22a06b; box-shadow: 0 0 0 4px rgba(34,160,107,.18); }
.cx-title { font-family: 'Outfit', sans-serif; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.1; color: var(--text-main); margin-bottom: 1rem; }
.cx-title em { font-style: normal; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-lead { color: var(--text-muted); font-size: 1.08rem; max-width: 56ch; margin-bottom: 1.8rem; }

.cx-steps { list-style: none; display: grid; gap: .9rem; margin: 0; padding: 0; }
.cx-step {
    display: grid; grid-template-columns: 2.4rem 1fr; gap: .9rem; align-items: start;
    padding: .9rem 1rem; border-radius: 1rem;
    background: rgba(255,255,255,.5); border: 1px solid transparent;
    transition: background-color .3s ease, border-color .3s ease, opacity .3s ease;
    opacity: .62;
}
.cx-step .n {
    width: 2.4rem; height: 2.4rem; border-radius: 50%;
    display: grid; place-items: center; font-weight: 700; font-family: 'Outfit', sans-serif;
    color: var(--primary-cyan); background: rgba(120,56,198,.1);
    transition: background-color .3s ease, color .3s ease, transform .3s cubic-bezier(0.23, 1, 0.32, 1);
}
.cx-step strong { display: block; color: var(--text-main); }
.cx-step span.d { color: var(--text-muted); font-size: .92rem; }
.cx-step.is-active { opacity: 1; background: #fff; border-color: rgba(120,56,198,.25); box-shadow: 0 10px 30px rgba(45,27,94,.08); }
.cx-step.is-active .n { background: var(--gradient-primary); color: #fff; transform: scale(1.06); }
.cx-step.is-done { opacity: .9; }
.cx-step.is-done .n { background: #22a06b; color: #fff; font-size: 0; position: relative; }
.cx-step.is-done .n::after { content: ''; width: .55rem; height: .95rem; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px); }

.cx-card {
    position: relative;
    background: rgba(255,255,255,.78);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    padding: clamp(1.4rem, 3vw, 2rem);
    box-shadow: 0 30px 80px rgba(45,27,94,.14);
}
.cx-card::before {
    content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
    background: linear-gradient(135deg, rgba(120,56,198,.5), rgba(224,28,213,.15), rgba(240,148,51,.4));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    mask-composite: exclude;
}
.cx-card-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.ig-badge {
    width: 3rem; height: 3rem; border-radius: .9rem; flex: 0 0 auto;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
.ig-badge svg { width: 1.6rem; height: 1.6rem; }
.cx-card h2 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; color: var(--text-main); line-height: 1.2; }
.cx-card .sub { color: var(--text-muted); font-size: .88rem; }
.cx-req { display: flex; gap: .6rem; align-items: flex-start; font-size: .9rem; color: var(--text-muted); background: rgba(120,56,198,.07); padding: .75rem .9rem; border-radius: .9rem; margin-bottom: 1.1rem; }
.cx-req svg { width: 1.1rem; height: 1.1rem; flex: 0 0 auto; margin-top: .15rem; color: var(--primary-cyan); }

.cx-check { display: grid; grid-template-columns: 1.4rem 1fr; gap: .7rem; align-items: start; cursor: pointer; margin-bottom: 1.2rem; font-size: .92rem; color: var(--text-muted); line-height: 1.55; }
.cx-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cx-check .box {
    width: 1.4rem; height: 1.4rem; border-radius: .4rem; border: 2px solid rgba(45,27,94,.3); background: #fff;
    display: grid; place-items: center; margin-top: .1rem;
    transition: background-color .2s ease, border-color .2s ease, transform .16s ease;
}
.cx-check .box svg { width: .9rem; height: .9rem; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s cubic-bezier(0.23, 1, 0.32, 1); }
.cx-check input:checked + .box { background: var(--primary-cyan); border-color: var(--primary-cyan); }
.cx-check input:checked + .box svg { stroke-dashoffset: 0; }
.cx-check input:focus-visible + .box { outline: 3px solid rgba(120,56,198,.4); outline-offset: 2px; }
.cx-check:active .box { transform: scale(.92); }
.cx-check a { color: var(--primary-cyan); font-weight: 600; text-underline-offset: 3px; }

.ig-btn {
    display: flex; align-items: center; justify-content: center; gap: .7rem;
    width: 100%; padding: 1rem 1.2rem; border-radius: 1rem; border: 0;
    font: inherit; font-weight: 700; font-size: 1.02rem; color: #fff; text-decoration: none; cursor: pointer;
    background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
    box-shadow: 0 14px 34px rgba(220,39,67,.3);
    transition: transform .2s cubic-bezier(0.23, 1, 0.32, 1), box-shadow .2s ease, filter .2s ease, opacity .2s ease;
}
.ig-btn svg { width: 1.35rem; height: 1.35rem; }
.ig-btn:active { transform: scale(.98); }
.ig-btn[aria-disabled="true"] { filter: grayscale(.85); opacity: .5; cursor: not-allowed; box-shadow: none; }
.ig-btn:focus-visible { outline: 3px solid rgba(120,56,198,.5); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
    .ig-btn:not([aria-disabled="true"]):hover { transform: translateY(-2px); box-shadow: 0 20px 44px rgba(220,39,67,.38); }
    .doc .back-link:hover svg { transform: translateX(-3px); }
    .doc-links a:hover { background: rgba(120,56,198,.08); }
}
.cx-hint { margin-top: .9rem; font-size: .82rem; color: var(--text-muted); text-align: center; min-height: 1.3em; }
.cx-hint.warn { color: #b3261e; }
.cx-secure { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1rem; font-size: .82rem; color: var(--text-muted); }
.cx-secure svg { width: 1rem; height: 1rem; color: #22a06b; }
@keyframes cx-shake { 20%,60% { transform: translateX(-5px); } 40%,80% { transform: translateX(5px); } }
.cx-shake { animation: cx-shake .4s ease; }

.cx-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: clamp(2.5rem, 6vw, 4rem); }
.cx-info {
    background: rgba(255,255,255,.62); border: 1px solid var(--glass-border); border-radius: 1.3rem; padding: 1.5rem;
    box-shadow: 0 14px 40px rgba(45,27,94,.06);
}
.cx-info .ic { width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: grid; place-items: center; color: #fff; background: var(--gradient-primary); margin-bottom: .9rem; }
.cx-info .ic svg { width: 1.3rem; height: 1.3rem; }
.cx-info .ic.no { background: linear-gradient(135deg, #d9485a, #e0742a); }
.cx-info .ic.ok { background: linear-gradient(135deg, #22a06b, #3dbf8d); }
.cx-info h3 { font-family: 'Outfit', sans-serif; font-size: 1.1rem; color: var(--text-main); margin-bottom: .6rem; }
.cx-info ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.cx-info li { color: var(--text-muted); font-size: .92rem; padding-left: 1.2rem; position: relative; line-height: 1.5; }
.cx-info li::before { content: ''; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; border-radius: 50%; background: var(--primary-cyan); opacity: .55; }
.cx-info li code { font-size: .78rem; background: rgba(120,56,198,.08); padding: .05rem .35rem; border-radius: .3rem; color: var(--text-main); }

.cx-wide { margin-top: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.cx-wide .cx-info ol { padding-left: 1.2rem; display: grid; gap: .5rem; }
.cx-wide .cx-info ol li { padding-left: .2rem; }
.cx-wide .cx-info ol li::before { display: none; }

.cx-legal { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; justify-content: center; font-size: .9rem; }
.cx-legal a { color: var(--primary-cyan); text-underline-offset: 3px; }

/* ---------- Resultado ---------- */
.res-card {
    max-width: 640px; margin: 0 auto; text-align: center;
    background: rgba(255,255,255,.78); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border); border-radius: 1.8rem; padding: clamp(1.8rem, 5vw, 3rem);
    box-shadow: 0 30px 80px rgba(45,27,94,.14);
}
.res-ic { width: 4.5rem; height: 4.5rem; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center; }
.res-ic.ok { background: rgba(34,160,107,.14); color: #22a06b; }
.res-ic.bad { background: rgba(217,72,90,.12); color: #d9485a; }
.res-ic svg { width: 2.2rem; height: 2.2rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.res-ic .draw { stroke-dasharray: 40; stroke-dashoffset: 40; animation: res-draw .6s .25s cubic-bezier(0.23, 1, 0.32, 1) forwards; }
@keyframes res-draw { to { stroke-dashoffset: 0; } }
.res-card h1 { font-family: 'Outfit', sans-serif; font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--text-main); margin-bottom: .6rem; }
.res-card p { color: var(--text-muted); margin-bottom: 1rem; }
.res-user { display: none; font-weight: 700; color: var(--text-main); }
.res-user.show { display: inline; }
.res-list { text-align: left; list-style: none; display: grid; gap: .7rem; margin: 1.4rem 0; padding: 0; }
.res-list li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .7rem; color: var(--text-muted); font-size: .95rem; }
.res-list li b { width: 1.6rem; height: 1.6rem; border-radius: 50%; background: rgba(120,56,198,.1); color: var(--primary-cyan); display: grid; place-items: center; font-size: .8rem; }
.res-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

@media (max-width: 900px) {
    .cx-hero { grid-template-columns: 1fr; grid-template-areas: "intro" "card" "steps"; }
    .cx-grid3 { grid-template-columns: 1fr; }
    .cx-wide { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .page-main { padding-top: 110px; }
    .doc { border-radius: 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pg-rise, .cx-shake { animation: none; }
    .res-ic .draw { animation: none; stroke-dashoffset: 0; }
    .cx-step, .cx-step .n, .ig-btn, .cx-check .box, .cx-check .box svg { transition: none; }
}

/* ---------- Portal de conexiones (canales) ---------- */
.cx-head { max-width: 760px; margin: 0 auto 1.8rem; text-align: center; }
.cx-head .cx-lead { margin-left: auto; margin-right: auto; margin-bottom: 0; }
.cx-ptitle { font-family: 'Outfit', sans-serif; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.15; color: var(--text-main); margin-bottom: .9rem; }
.cx-ptitle em { font-style: normal; background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cx-panel[hidden] { display: none; }
.cx-panel { animation: pg-rise .45s cubic-bezier(0.23, 1, 0.32, 1) both; }

.cx-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; max-width: 760px; margin: 0 auto 2.2rem; }
.cx-tab {
    display: flex; align-items: center; gap: .8rem; text-align: left;
    padding: .85rem 1rem; border-radius: 1.1rem; cursor: pointer; font: inherit;
    background: rgba(255,255,255,.55); border: 1.5px solid rgba(45,27,94,.1);
    color: var(--text-main);
    transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, transform .16s ease, opacity .25s ease;
}
.cx-tab:active { transform: scale(.98); }
.cx-tab:focus-visible { outline: 3px solid rgba(120,56,198,.45); outline-offset: 2px; }
.cx-tab[aria-selected="true"] { background: #fff; border-color: var(--primary-cyan); box-shadow: 0 14px 36px rgba(120,56,198,.18); }
.cx-tab:not(.is-live):not([aria-selected="true"]) { opacity: .8; }
.cx-tab .t { display: grid; line-height: 1.25; }
.cx-tab .t strong { font-family: 'Outfit', sans-serif; font-size: 1.02rem; }
.cx-tab .st { font-size: .76rem; font-weight: 600; }
.cx-tab .st.live { color: #1b8f5d; }
.cx-tab .st.soon { color: #a8741a; }
.ch-ic, .ch-badge {
    flex: 0 0 auto; display: grid; place-items: center; color: #fff; border-radius: .8rem;
}
.ch-ic { width: 2.4rem; height: 2.4rem; }
.ch-ic svg { width: 1.25rem; height: 1.25rem; }
.ch-badge { width: 3rem; height: 3rem; border-radius: .9rem; }
.ch-badge svg { width: 1.6rem; height: 1.6rem; }
.ig { background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); }
.fb { background: #1877f2; }
.wa { background: #25d366; }
.cx-eyebrow.soon i { background: #e0a23a; box-shadow: 0 0 0 4px rgba(224,162,58,.2); }
.ch-btn { cursor: not-allowed; user-select: none; }
.ch-btn.fb { background: #1877f2; box-shadow: none; }
.ch-btn.wa { background: #25d366; box-shadow: none; }
.ch-btn[aria-disabled="true"] { filter: grayscale(.9); opacity: .45; }
.soon-cta {
    display: block; text-align: center; margin-top: .9rem; font-weight: 600; font-size: .92rem;
    color: var(--primary-cyan); text-decoration: none; padding: .7rem 1rem; border-radius: .9rem;
    border: 1.5px solid rgba(120,56,198,.3);
    transition: background-color .2s ease, transform .16s ease;
}
.soon-cta:active { transform: scale(.98); }
.cx-step.is-static { opacity: 1; background: rgba(255,255,255,.7); align-items: center; }
.cx-step.is-static .n { background: rgba(34,160,107,.14); color: #22a06b; }
.cx-step.is-static .n svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
    .cx-tab:hover:not([aria-selected="true"]) { border-color: rgba(120,56,198,.4); background: rgba(255,255,255,.85); }
    .soon-cta:hover { background: rgba(120,56,198,.08); }
}
@media (max-width: 600px) {
    .cx-tabs { grid-template-columns: 1fr; gap: .6rem; }
}
@media (prefers-reduced-motion: reduce) { .cx-panel { animation: none; } .cx-tab { transition: none; } }

.cx-card h3 { font-family: 'Outfit', sans-serif; font-size: 1.3rem; color: var(--text-main); line-height: 1.2; }
@media (max-width: 600px) {
    .cx-tabs { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
    .cx-tab { flex-direction: column; text-align: center; gap: .45rem; padding: .75rem .3rem; }
    .cx-tab .t { justify-items: center; }
    .cx-tab .t strong { font-size: .92rem; }
    .cx-tab .st { font-size: .68rem; }
}

.cx-step span.d { display: block; }
.cx-steps { counter-reset: none; }
