/* Uppering CRM — bloque destacado reutilizable (home, servicios, diagnósticos) */
.crms {
    --crms-teal: #0096A0;
    --crms-cyan: #22d3ee;
    --crms-violet: #a855f7;
    --crms-gray: #9ca3af;
    --crms-border: rgba(255, 255, 255, .1);
    padding: 90px 0;
    position: relative;
    font-family: 'Outfit', sans-serif;
    color: #fff;
}
.crms-card {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
    padding: 56px; border-radius: 32px;
    background: linear-gradient(135deg, rgba(0,150,160,.2), rgba(3,3,5,.55) 48%, rgba(127,0,255,.16));
    border: 1px solid rgba(0,198,251,.25);
    box-shadow: 0 40px 100px -40px rgba(0,150,160,.55);
}
.crms-card::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at 75% 50%, #000 10%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 75% 50%, #000 10%, transparent 70%);
}
.crms-card > * { min-width: 0; position: relative; }

.crms-pill {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px;
    padding: 6px 16px 6px 6px; border-radius: 100px; text-decoration: none; color: #fff; font-size: .9rem;
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); transition: background .3s;
}
.crms-pill:hover { background: rgba(255,255,255,.15); }
.crms-pill b { background: linear-gradient(90deg, #00C6FB, var(--crms-teal)); padding: 3px 10px; border-radius: 100px; font-size: .7rem; letter-spacing: 1px; }
.crms-pill i { font-size: .75rem; opacity: .7; }
.crms-copy h2, .crms-copy h3 {
    font-family: 'Space Grotesk', sans-serif; font-size: clamp(2rem, 3.8vw, 3.1rem);
    line-height: 1.05; letter-spacing: -1.5px; margin-bottom: 18px; color: #fff;
}
.crms-grad { background: linear-gradient(90deg, var(--crms-cyan), var(--crms-violet)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.crms-lead { color: var(--crms-gray); font-size: 1.1rem; line-height: 1.6; margin-bottom: 26px; }
.crms-lead strong { color: #fff; font-weight: 600; }
.crms-feats { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; margin: 0 0 32px; padding: 0; }
.crms-feats li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: #cbd5e1; line-height: 1.4; }
.crms-feats b { color: #fff; font-weight: 600; }
.crms-feats i { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; font-size: .85rem; color: var(--crms-cyan); background: rgba(0,198,251,.1); border: 1px solid rgba(0,198,251,.2); }
.crms-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.crms-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; border-radius: 100px;
    background: #fff; color: #030305; font-weight: 700; text-decoration: none; font-size: 1.02rem;
    transition: transform .3s, box-shadow .3s, background .3s, color .3s;
    animation: crmsPulse 2.6s infinite;
}
.crms-btn:hover { transform: translateY(-3px); background: linear-gradient(90deg, #00C6FB, #005BEA); color: #fff; }
@keyframes crmsPulse { 0% { box-shadow: 0 0 0 0 rgba(0,198,251,.45); } 70% { box-shadow: 0 0 0 16px rgba(0,198,251,0); } 100% { box-shadow: 0 0 0 0 rgba(0,198,251,0); } }
.crms-link { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 600; }
.crms-link span { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); font-size: .8rem; transition: background .3s; }
.crms-link:hover span { background: #25D366; border-color: #25D366; }

/* ── visual: teléfono con chat animado ── */
.crms-visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.crms-glow { position: absolute; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,150,160,.6), rgba(127,0,255,.25), transparent); filter: blur(30px); }
.crms-phone {
    position: relative; width: 270px; height: 520px; border-radius: 42px; padding: 10px;
    background: #0b0c10; border: 1px solid rgba(255,255,255,.15);
    box-shadow: 0 40px 90px -20px rgba(0,0,0,.85), 0 0 0 2px #1d2029 inset;
    transform: rotate(-3deg); animation: crmsFloat 7s ease-in-out infinite;
}
@keyframes crmsFloat { 50% { transform: rotate(-3deg) translateY(-12px); } }
.crms-notch { position: absolute; top: 17px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 20px; background: #000; z-index: 2; }
.crms-screen { height: 100%; border-radius: 33px; overflow: hidden; display: flex; flex-direction: column; background: #efeae2; font-family: 'Segoe UI', Helvetica, sans-serif; text-align: left; }
.crms-head { display: flex; align-items: center; gap: 9px; padding: 44px 12px 10px; background: #008069; color: #fff; }
.crms-head b { display: block; font-size: 13px; }
.crms-head small { font-size: 10px; opacity: .9; }
.crms-stage { font-style: normal; background: rgba(255,255,255,.22); padding: 1px 6px; border-radius: 10px; transition: background .4s; }
.crms-stage.moved { background: #8b5cf6; }
.crms-av { width: 34px; height: 34px; border-radius: 50%; background: var(--crms-teal); display: grid; place-items: center; font-weight: 700; flex-shrink: 0; border: 2px solid rgba(255,255,255,.4); }
.crms-bot { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 12px; }
.crms-bot em { width: 26px; height: 15px; border-radius: 10px; background: #25D366; position: relative; transition: background .3s; }
.crms-bot em::after { content: ''; position: absolute; top: 2px; left: 13px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: left .3s; }
.crms-bot.off em { background: rgba(255,255,255,.3); }
.crms-bot.off em::after { left: 2px; }
.crms-thread {
    flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 10px; overflow: hidden;
    background-image: radial-gradient(rgba(0,0,0,.05) 1px, transparent 1.2px); background-size: 16px 16px;
}
.crms-msg { max-width: 84%; padding: 6px 9px; border-radius: 8px; font-size: 12px; line-height: 16px; color: #111b21; box-shadow: 0 1px .5px rgba(11,20,26,.13); }
.crms-msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 0; }
.crms-msg.out { align-self: flex-end; background: #d9fdd3; border-top-right-radius: 0; }
.crms-msg small { display: block; font-size: 10px; font-weight: 700; color: var(--crms-teal); }
.crms-btns { display: grid; gap: 3px; margin-top: 6px; }
.crms-btns span { background: rgba(255,255,255,.75); border-radius: 5px; text-align: center; padding: 4px; color: #027eb5; font-weight: 600; font-size: 11px; }
.crms-typing { align-self: flex-end; font-size: 10.5px; color: #54656f; background: rgba(255,255,255,.85); padding: 4px 10px; border-radius: 20px; display: flex; align-items: center; gap: 5px; }
.crms-typing i { color: var(--crms-teal); }
.crms-typing span { display: inline-flex; gap: 2px; }
.crms-typing b { width: 4px; height: 4px; border-radius: 50%; background: var(--crms-teal); animation: crmsDot 1.2s infinite; }
.crms-typing b:nth-child(2) { animation-delay: .2s; } .crms-typing b:nth-child(3) { animation-delay: .4s; }
@keyframes crmsDot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.crms-sys { align-self: center; font-size: 10.5px; background: #fff7d6; color: #54656f; padding: 4px 10px; border-radius: 7px; }
.crms-sys i { color: var(--crms-teal); }
.crms-thread [data-s] { display: none; }
.crms-thread [data-s].on { display: block; animation: crmsIn .45s cubic-bezier(.2,1.2,.4,1); }
.crms-thread .crms-typing.on { display: flex; }
@keyframes crmsIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.crms-composer { margin: 7px; background: #fff; border-radius: 20px; padding: 8px 13px; font-size: 12px; color: #8696a0; display: flex; justify-content: space-between; }
.crms-composer i { color: #008069; }

.crms-chip {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: 14px; font-size: .85rem; font-weight: 600; white-space: nowrap;
    background: rgba(15,18,28,.8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,.14); box-shadow: 0 16px 40px rgba(0,0,0,.45);
    opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .5s, transform .6s cubic-bezier(.2,1.4,.4,1);
}
.crms-chip.show { opacity: 1; transform: none; }
.crms-chip i { color: var(--crms-cyan); }
.crms-chip.c1 { left: 0; top: 18%; } .crms-chip.c1 i { color: #f97316; }
.crms-chip.c2 { right: 0; top: 42%; } .crms-chip.c2 i { color: #a78bfa; }
.crms-chip.c3 { left: 4%; bottom: 14%; } .crms-chip.c3 i { color: #38ef7d; }

@media (max-width: 1000px) {
    .crms-card { grid-template-columns: 1fr; padding: 40px 28px; }
    .crms-visual { min-height: 480px; }
}
@media (max-width: 600px) {
    .crms { padding: 60px 0; }
    .crms-card { padding: 32px 20px; border-radius: 24px; }
    .crms-feats { grid-template-columns: 1fr; }
    .crms-cta { flex-direction: column; align-items: stretch; text-align: center; }
    .crms-btn { justify-content: center; }
    .crms-link { justify-content: center; }
    .crms-chip { font-size: .72rem; padding: 7px 10px; }
    .crms-chip.c1 { left: -4px; } .crms-chip.c2 { right: -4px; } .crms-chip.c3 { left: -4px; }
    .crms-phone { width: 240px; height: 470px; }
}
@media (prefers-reduced-motion: reduce) {
    .crms-phone, .crms-btn { animation: none; }
}

/* ── Variante compacta para los diagnósticos (sos-profesional / sos-empresa) ── */
.crms-quiz {
    grid-column: 1 / -1; position: relative; overflow: hidden; text-align: left;
    display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center;
    padding: 28px 30px; border-radius: 22px;
    background: linear-gradient(135deg, rgba(0,150,160,.28), rgba(3,3,5,.5) 55%, rgba(127,0,255,.2));
    border: 1px solid rgba(0,198,251,.4); box-shadow: 0 20px 60px -20px rgba(0,150,160,.6);
    animation: crmsIn .7s cubic-bezier(.2,1.2,.4,1);
}
.crms-quiz-logo { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: rgba(3,3,5,.6); border: 1px solid rgba(255,255,255,.12); }
.crms-quiz-logo img { width: 46px; }
.crms-quiz .crms-quiz-tag { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #38ef7d; margin-bottom: 6px; }
.crms-quiz h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; color: #fff !important; margin: 0 0 6px !important; }
.crms-quiz p { color: #cbd5e1 !important; font-size: 1rem !important; margin: 0 0 10px !important; }
.crms-quiz ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 0; font-size: .88rem; color: #e5e7eb; }
.crms-quiz ul i { color: #38ef7d; margin-right: 5px; }
.crms-quiz .crms-btn { padding: 13px 22px; font-size: .95rem; white-space: nowrap; }
@media (max-width: 700px) {
    .crms-quiz { grid-template-columns: 1fr; padding: 24px 20px; gap: 16px; }
    .crms-quiz .crms-btn { justify-content: center; }
}
.crms-head small { white-space: nowrap; }
