/* Regulus v2.1 — formas de marcar, organigrama, portal del empleado, sedes interconectadas */

/* ---------- Formas de marcar ---------- */
.mk3 { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--paper); }
.mk3 > div { padding: 30px 28px 34px; display: grid; gap: 10px; align-content: start; border-left: 1px dashed #bdb7a5; }
.mk3 > div:first-child { border-left: 0; }
.mk3 .vz { height: 150px; display: grid; place-items: center; position: relative; margin-bottom: 8px; }
.mk3 .vz svg { width: 130px; height: 130px; overflow: visible; }
.mk3 .tg { font: 500 .68rem 'Geist Mono', monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--reg); }
.mk3 h3 { font-size: 1.3rem; letter-spacing: -.025em; } .mk3 p { color: var(--mut); font-family: var(--serif); font-size: 1.08rem; line-height: 1.4; }
.mk3 .scanl { fill: #0c5078; opacity: .85; filter: drop-shadow(0 0 5px rgba(12,80,120,.6)); animation: scanY 2.6s ease-in-out infinite; }
.mk3 .v2 .scanl { fill: #da3a2b; filter: drop-shadow(0 0 5px rgba(218,58,43,.55)); }
@keyframes scanY { 0% { transform: translateY(8px); opacity: 0; } 12%, 88% { opacity: .9; } 50% { transform: translateY(112px); } 100% { transform: translateY(8px); opacity: 0; } }
.mk3 .fpv path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: drawfp 3.2s ease-in-out infinite; }
@keyframes drawfp { 0% { stroke-dashoffset: 100; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
.mk3 .gz { fill: rgba(12,80,120,.06); stroke: #0c5078; stroke-width: 1.2; stroke-dasharray: 4 4; } .mk3 .gz.g2 { fill: rgba(12,80,120,.09); }
.mk3 .ping { fill: none; stroke: #0c5078; stroke-width: 1.6; transform-origin: 60px 64px; animation: pingr 2.2s ease-out infinite; } @keyframes pingr { from { transform: scale(.6); opacity: .9; } to { transform: scale(5.2); opacity: 0; } }
.mk3 .pin { fill: #0c5078; animation: pinb 2.2s ease-in-out infinite; transform-origin: 60px 72px; } @keyframes pinb { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.mkw { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.mkw .w { display: inline-flex; gap: 9px; align-items: center; padding: .55rem 1rem; border-radius: 99px; border: 1px solid #cfc9b8; background: var(--white); font-weight: 500; font-size: .92rem; } .mkw svg { width: 16px; height: 16px; color: var(--reg); }
@media (max-width: 860px) { .mk3 { grid-template-columns: 1fr; } .mk3 > div { border-left: 0; border-top: 1px dashed #bdb7a5; } .mk3 > div:first-child { border-top: 0; } }

/* ---------- Organigrama ---------- */
.og { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(20px, 4vw, 70px); align-items: center; }
.og > * { min-width: 0; }
#og-svg { width: 100%; height: auto; display: block; }
#og-svg .lk path { fill: none; stroke: #3a3a36; stroke-width: 1.6; transition: stroke .4s; } #og-svg .lk path.on { stroke: var(--reg-g); stroke-width: 2.2; }
#og-svg .nd rect { fill: #111; stroke: #3a3a36; stroke-width: 1.3; transition: all .4s; } #og-svg .nd.on rect { stroke: var(--reg-g); fill: #0e2230; }
#og-svg .nd .t1 { fill: #fff; font: 600 13px 'Geist', sans-serif; } #og-svg .nd .t2 { fill: #8d897d; font: 500 11px 'Geist Mono', monospace; letter-spacing: .06em; text-transform: uppercase; }
#og-svg .em circle { fill: #1a1a1a; stroke: #3a3a36; stroke-width: 1.3; transition: all .4s; } #og-svg .em.on circle { fill: #0c5078; stroke: var(--reg-g); } #og-svg .em text { fill: #cbd5e1; font: 700 11px 'Geist', sans-serif; }
#og-svg .lbl { fill: #8d897d; font: 500 11px 'Geist Mono', monospace; letter-spacing: .12em; text-transform: uppercase; }
#og-svg #og-chip { fill: #fff; } #og-svg #og-chip-t { fill: #0c5078; font: 600 12px 'Geist', sans-serif; }
#og-svg #og-ok rect { fill: #d9f0e1; stroke: #10b981; } #og-svg #og-ok text { fill: #047857; font: 700 12px 'Geist', sans-serif; }
@media (max-width: 960px) { .og { grid-template-columns: 1fr; } }

/* ---------- Portal del empleado ---------- */
.pe { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 5vw, 90px); align-items: center; }
.pe > * { min-width: 0; }
.pe-phone { justify-self: center; }
.pe-phone .ph { position: relative; width: min(300px, 78vw); background: #fff; border: 8px solid #1c1b18; border-radius: 40px; padding: 38px 18px 22px; box-shadow: 0 40px 70px -30px rgba(28,27,24,.55); transform: rotate(-2deg); display: grid; gap: 12px; }
.pe-phone .nt { position: absolute; top: 10px; left: 50%; translate: -50% 0; width: 84px; height: 22px; border-radius: 99px; background: #1c1b18; }
.ph-h { display: flex; gap: 12px; align-items: center; } .ph-h .av { width: 42px; height: 42px; border-radius: 50%; background: #0c5078; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; } .ph-h b { display: block; } .ph-h small { color: var(--mut); font-size: .76rem; }
.ph-t { display: flex; justify-content: space-between; align-items: baseline; padding-top: 8px; border-top: 1px solid var(--line); font-weight: 600; } .ph-t em { font: 500 .68rem 'Geist Mono', monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--reg); font-style: normal; }
.ph-r { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #f6f3ea; font-size: .88rem; animation: notIn .6s var(--ease) both; } .ph-r:nth-of-type(2) { animation-delay: .1s; } .ph-r:nth-of-type(3) { animation-delay: .2s; } .ph-r:nth-of-type(4) { animation-delay: .3s; }
.ph-r b { font: 600 .95rem 'Geist Mono', monospace; letter-spacing: -.03em; } .ph-r .bd { font: 700 .62rem 'Geist'; padding: 2px 8px; border-radius: 99px; background: #d9f0e1; color: #047857; } .ph-r .bd:empty { display: none; } .ph-r.dim { opacity: .5; }
.ph-w { padding: 12px; border-radius: 14px; background: #0c5078; color: #fff; display: grid; gap: 8px; font-size: .84rem; } .ph-w .dots { display: flex; gap: 6px; } .ph-w .dots i { flex: 1; height: 8px; border-radius: 99px; background: #7cc0f5; } .ph-w small { font-size: .78rem; opacity: .85; }
@media (max-width: 900px) { .pe { grid-template-columns: 1fr; } }

/* ---------- Sedes interconectadas (mapa grande) ---------- */
.rg-map { grid-template-columns: .5fr 1.5fr; }
.rg-map .bo-stage { aspect-ratio: 1 / .94; max-height: 96vh; }
.rg-branches { grid-template-columns: 1fr 1fr; gap: 8px; }
.rg-br { padding: 11px 14px; gap: 10px; } .rg-br .n { font-size: 1.05rem; }
@media (max-width: 960px) { .rg-map { grid-template-columns: 1fr; } .rg-map .bo-stage { aspect-ratio: 1 / 1.05; } }
.bo-grid { grid-template-columns: minmax(0, .62fr) minmax(0, 1.6fr) minmax(0, .62fr); }
.bo-stage { aspect-ratio: 1 / .98; max-height: 86vh; }
.btn-wa { background: #1fa855; color: #fff; } .btn-wa svg { width: 18px; height: 18px; }

/* el texto de los botones dentro de bloques con <span> descriptivo no hereda el gris */
.plan-more .btn, .plan-more .btn span { color: #fff; display: inline-flex; max-width: none; }
.plan-more .btn.btn-wa { background: #1fa855; font-weight: 600; padding-inline: 1.4rem; }
.plan-more .btn.btn-wa:hover { background: #17924a; }
.plan-more .btn svg { width: 18px; height: 18px; flex: none; }
.rg-branches { grid-template-columns: 1fr 1fr; }
.rg-br { padding: 9px 12px; } .rg-br b { font-size: .95rem; }
.rg-map { grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); }
@media (max-width: 960px) { .rg-map { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .rg-branches { grid-template-columns: 1fr 1fr; gap: 6px; }
  .rg-br { padding: 8px 10px; gap: 7px; } .rg-br b { font-size: .86rem; } .rg-br .n { font-size: .92rem; } .rg-br .n small { display: none; }
}
