/* sections.css — Careers, Mapa, Perfiles, Modalidades, Beneficios, Proceso, Contacto, Footer */

.eyebrow--light { color: #8fb4f5; }
.eyebrow--light::before { border-color: var(--red); }
.eyebrow--light::after { background: var(--red); }

/* ============ Careers top (navy) ============ */
.careers-top { position: relative; overflow: hidden; }
.careers__circ { top: 30px; right: -40px; width: 560px; height: 200px; opacity: .5; }
.careers__intro { position: relative; z-index: 1; max-width: 880px; }
.careers__title { font-size: clamp(30px, 4.4vw, 50px); margin: 16px 0 22px; max-width: 20ch; }
.careers__intro .btn { margin-top: 28px; }
.careers__map-head { position: relative; z-index: 1; margin-top: 76px; }
.careers__map-title { font-size: clamp(22px, 2.6vw, 30px); margin-top: 12px; }

/* ---- Mapa (imagen real del deck + nodos interactivos) ---- */
.map { position: relative; z-index: 1; display: grid; grid-template-columns: 1.45fr 1fr; gap: 24px; margin-top: 28px; align-items: stretch; }
.map__canvas { position: relative; background: var(--panel-line); padding: 1.5px; }
.map__canvas .tcard__in { background: #eef1f3; overflow: hidden; }
.map__img { width: 100%; height: auto; display: block; }
.map__hot { position: absolute; transform: translate(-50%,-50%); width: 9%; aspect-ratio: 1; background: none; border: 0; padding: 0; z-index: 3; cursor: pointer; display: grid; place-items: center; }
.map__ring { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 2px transparent; transition: box-shadow .2s, transform .2s; }
.map__hot:hover .map__ring { box-shadow: 0 0 0 2px rgba(23,58,126,.5); transform: scale(1.08); }
.map__hot--expansion:hover .map__ring, .map__hot--refuerzo:hover .map__ring { box-shadow: 0 0 0 2px rgba(190,42,35,.55); }
.map__hot.is-sel .map__ring { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue-bright); animation: hotping 1.8s ease-out infinite; }
.map__hot--sede.is-sel .map__ring, .map__hot--expansion.is-sel .map__ring, .map__hot--refuerzo.is-sel .map__ring { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--red); }
@keyframes hotping { 0% { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue-bright), 0 0 0 5px rgba(10,91,239,.5); } 70%,100% { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue-bright), 0 0 0 16px rgba(10,91,239,0); } }
@media (prefers-reduced-motion: reduce) { .map__hot.is-sel .map__ring { animation: none; } }
.map__name { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -2px); margin-bottom: 2px; font-family: var(--font-head); font-size: 11.5px; font-weight: 700; color: var(--navy); background: rgba(255,255,255,.95); box-shadow: 0 0 0 1px var(--panel-line); padding: 3px 8px; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none;
  clip-path: polygon(4px 0,100% 0,100% 100%,4px 100%,0 50%); }
.map__hot--expansion .map__name, .map__hot--refuerzo .map__name, .map__hot--sede .map__name { color: var(--red-deep); }
.map__hot:hover .map__name, .map__hot.is-sel .map__name { opacity: 1; }
.map__legend { position: absolute; left: 14px; bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--font-mono); font-size: 11px; color: var(--slate); background: rgba(255,255,255,.9); box-shadow: 0 0 0 1px var(--panel-line); padding: 7px 11px; z-index: 4; }
.map__legend span { display: inline-flex; align-items: center; gap: 7px; }
.map__legend .dot { width: 9px; height: 9px; }

.map__detail { position: relative; }
.map__detail .tpanel__in { padding: 26px; display: flex; flex-direction: column; height: 100%; }
.map__detail-badge { align-self: flex-start; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 11px; margin-bottom: 14px;
  clip-path: polygon(5px 0,100% 0,100% 100%,5px 100%,0 50%); }
.map__detail-badge--sede { background: var(--red-tint); color: var(--red-deep); }
.map__detail-badge--activo { background: var(--blue-tint); color: var(--navy); }
.map__detail-badge--expansion, .map__detail-badge--refuerzo { background: var(--red-tint); color: var(--red-deep); }
.map__detail-name { font-size: 25px; margin-bottom: 10px; }
.map__detail-txt { font-size: 14.5px; color: var(--body); }
.map__detail-meta { margin: 20px 0; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line); padding-top: 18px; }
.map__detail-meta span { display: block; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.map__detail-meta strong { font-size: 13px; color: var(--navy); font-weight: 700; line-height: 1.4; }
.map__detail .btn { margin-top: auto; justify-content: center; }
@media (max-width: 880px) { .map { grid-template-columns: 1fr; } }

/* ---- Perfiles ---- */
.profiles { position: relative; z-index: 1; margin-top: 88px; }
.profiles__head { margin-bottom: 28px; }
.profiles__title { color: #fff; font-size: clamp(24px, 3vw, 36px); margin-top: 12px; }
.profiles__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.profile { position: relative; background: rgba(255,255,255,.045); box-shadow: inset 0 0 0 1.5px rgba(143,180,245,.4); padding: 30px 28px; transition: transform .3s var(--ease), box-shadow .3s, background .3s;
  clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px); }
.profile--red { box-shadow: inset 0 0 0 1.5px rgba(238,80,70,.5); }
.profile:hover { transform: translateY(-5px); background: rgba(255,255,255,.075); box-shadow: inset 0 0 0 1.5px rgba(143,180,245,.75); }
.profile--red:hover { box-shadow: inset 0 0 0 1.5px rgba(238,80,70,.8); }
.profile__ico { width: 64px; height: 64px; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(143,180,245,.5); color: #8fb4f5; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.profile--red .profile__ico { box-shadow: inset 0 0 0 2px rgba(238,80,70,.6); color: #f08a84; }
.profile__ico svg { width: 28px; height: 28px; }
.profile__k { color: #fff; font-size: 21px; margin-bottom: 10px; }
.profile--red .profile__k { color: #f3938d; }
.profile__desc { font-size: 14px; color: #b9c8e4; line-height: 1.55; }
.profile__tags { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-direction: column; gap: 10px; }
.profile__tags li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #d4def0; }
.profile__tick { width: 16px; height: 16px; color: var(--red-bright); flex: 0 0 auto; }
.profile--red .profile__tick { color: #f08a84; }
@media (max-width: 880px) { .profiles__grid { grid-template-columns: 1fr; } }

/* ============ Careers bottom (light) ============ */
.careers-bottom { position: relative; z-index: 1; }
.careers-bottom > * + * { margin-top: clamp(64px, 8vw, 100px); }

/* ---- Modalidades ---- */
.mods__head { margin-bottom: 30px; }
.mods__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.mod { position: relative; background: #fff; box-shadow: inset 0 0 0 1.5px var(--blue); padding: 32px; transition: transform .3s var(--ease), box-shadow .3s;
  clip-path: polygon(15px 0, calc(100% - 15px) 0, 100% 15px, 100% calc(100% - 15px), calc(100% - 15px) 100%, 15px 100%, 0 calc(100% - 15px), 0 15px); }
.mod--shared { box-shadow: inset 0 0 0 1.5px var(--red); }
.mod:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 2px var(--blue), var(--shadow); }
.mod--shared:hover { box-shadow: inset 0 0 0 2px var(--red), var(--shadow); }
.mod__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mod__ico { width: 52px; height: 52px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.mod--shared .mod__ico { background: var(--red-tint); color: var(--red); }
.mod__ico svg { width: 25px; height: 25px; }
.mod__tag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.mod__k { font-size: 23px; margin-bottom: 10px; }
.mod--shared .mod__k { color: var(--red); }
.mod__desc { font-size: 15px; color: var(--body); }
.mod__points { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 11px; }
.mod__points li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--ink); }
.mod__tick { width: 18px; height: 18px; color: var(--blue); flex: 0 0 auto; }
.mod--shared .mod__tick { color: var(--red); }
@media (max-width: 760px) { .mods__grid { grid-template-columns: 1fr; } }

/* ---- Beneficios ---- */
.benefits__head { margin-bottom: 28px; }
.benefits__title { font-size: clamp(24px, 3vw, 36px); margin-top: 12px; }
.benefits__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.benefit { position: relative; background: #fff; box-shadow: inset 0 0 0 1.5px var(--panel-line); padding: 26px; transition: transform .3s var(--ease), box-shadow .3s;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
.benefit:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--blue); }
.benefit__ico { width: 52px; height: 52px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.benefit:nth-child(3) .benefit__ico, .benefit:nth-child(5) .benefit__ico { background: var(--red-tint); color: var(--red); }
.benefit__ico svg { width: 25px; height: 25px; }
.benefit__k { font-size: 18px; margin-bottom: 8px; }
.benefit__d { font-size: 14px; color: var(--body); line-height: 1.55; }
@media (max-width: 820px) { .benefits__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .benefits__grid { grid-template-columns: 1fr; } }

/* ---- Proceso ---- */
.proc__head { max-width: 720px; margin-bottom: 36px; }
.proc__head .lead { margin-top: 16px; }
.proc__track { display: flex; gap: 8px; margin-bottom: 26px; position: relative; }
.proc__step { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 13px; background: none; border: 0; padding: 4px; position: relative; }
.proc__step::before { content: ""; position: absolute; top: 23px; left: -50%; width: 100%; height: 2px; background: var(--panel-line); z-index: 0; }
.proc__step:first-child::before { display: none; }
.proc__step.is-done::before, .proc__step.is-active::before { background: var(--blue); }
.proc__step:nth-child(5).is-active::before, .proc__step:nth-child(5).is-done::before { background: var(--red); }
.proc__step .octnode { position: relative; z-index: 1; transition: transform .25s var(--ease); }
.proc__step:hover .octnode { transform: translateY(-2px); }
.proc__step.is-active .octnode { transform: scale(1.08); }
.proc__step-k { font-family: var(--font-head); font-size: 12.5px; font-weight: 600; color: var(--body); text-align: center; }
.proc__step.is-active .proc__step-k { color: var(--navy); }
.proc__step:nth-child(5).is-active .proc__step-k { color: var(--red); }
.proc__detail { position: relative; max-width: 760px; }
.proc__detail .tpanel__in { padding: 30px clamp(24px,3vw,38px); display: flex; flex-direction: column; gap: 6px; }
.proc__detail-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.proc__detail-n { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.proc__detail-k { font-size: clamp(22px,2.6vw,28px); margin: 4px 0 6px; }
.proc__detail-d { font-size: 15.5px; color: var(--body); }
.proc__detail-meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-mono); font-size: 12.5px; color: var(--navy); background: var(--blue-tint); align-self: flex-start; padding: 8px 14px;
  clip-path: polygon(7px 0,100% 0,100% 100%,7px 100%,0 50%); }
.proc__detail-meta svg { width: 15px; height: 15px; }
@media (max-width: 680px) {
  .proc__track { flex-wrap: wrap; gap: 18px 8px; }
  .proc__step { flex: 0 0 calc(33.33% - 8px); }
  .proc__step::before { display: none; }
}

/* ============ Contacto / Control Panel ============ */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: start; position: relative; z-index: 1; }
.contact__info .lead { margin-top: 20px; }
.ctrl { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ctrl__node { display: flex; align-items: center; gap: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--panel-line); transition: box-shadow .2s, transform .2s;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 10px 100%, 0 50%); }
.ctrl__node:hover { box-shadow: inset 0 0 0 1.6px var(--blue); transform: translateX(3px); }
.ctrl__node--red:hover { box-shadow: inset 0 0 0 1.6px var(--red); }
.ctrl__ico { width: 56px; height: 56px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; background: var(--blue); margin-left: 6px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px); }
.ctrl__node--red .ctrl__ico { background: var(--red); }
.ctrl__ico svg { width: 24px; height: 24px; }
.ctrl__txt { padding: 12px 18px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ctrl__k { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.ctrl__v { font-family: var(--font-head); font-size: 15.5px; color: var(--navy); font-weight: 700; transition: color .2s; overflow-wrap: anywhere; }
a.ctrl__node:hover .ctrl__v { color: var(--blue); }

.contact__form { position: relative; }
.contact__form .tpanel__in { padding: clamp(26px, 3vw, 38px); }
.contact__intent { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.contact__intent-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.seg { display: inline-flex; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--panel-line); padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; padding: 8px 18px; font-family: var(--font-head); font-size: 13.5px; font-weight: 600; color: var(--body); transition: background .2s, color .2s;
  clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px); }
.seg button.is-on { background: var(--navy); color: #fff; }
.field { margin-bottom: 18px; display: flex; flex-direction: column; gap: 7px; }
.field label { font-family: var(--font-head); font-size: 13px; font-weight: 700; color: var(--navy); }
.field input, .field textarea { font-family: var(--font-body); font-size: 15px; color: var(--ink); padding: 13px 15px; border: 0; box-shadow: inset 0 0 0 1.5px var(--panel-line); background: var(--paper-2); transition: box-shadow .2s, background .2s; resize: vertical;
  clip-path: polygon(7px 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%, 0 7px); }
.field input::placeholder, .field textarea::placeholder { color: #98a4bb; }
.field input:focus, .field textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--blue); background: #fff; }
.field input.has-err, .field textarea.has-err { box-shadow: inset 0 0 0 2px var(--red); background: #fff6f5; }
.field__err { font-family: var(--font-mono); font-size: 12px; color: var(--red-deep); }
.contact__submit { width: 100%; justify-content: center; margin-top: 6px; }
.contact__legal { margin-top: 14px; font-family: var(--font-mono); font-size: 11px; color: var(--mute); text-align: center; }
.contact__done { text-align: center; padding: 30px 10px; display: flex; flex-direction: column; align-items: center; }
.contact__done-ico { width: 66px; height: 66px; background: var(--blue-tint); color: var(--blue); display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
  clip-path: polygon(11px 0, calc(100% - 11px) 0, 100% 11px, 100% calc(100% - 11px), calc(100% - 11px) 100%, 11px 100%, 0 calc(100% - 11px), 0 11px); }
.contact__done-ico svg { width: 32px; height: 32px; }
.contact__done h3 { font-size: 26px; margin-bottom: 10px; }
.contact__done p { font-size: 15.5px; color: var(--body); max-width: 38ch; margin: 0 auto 24px; }
@media (max-width: 820px) { .contact { grid-template-columns: 1fr; } }

/* ============ Footer ============ */
.app-footer { background: var(--navy-900); color: #c7d2e8; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; padding-top: clamp(56px, 7vw, 80px); padding-bottom: 48px; position: relative; z-index: 1; }
.foot__brand .wordmark { color: #fff; margin-bottom: 30px; }
.foot__tag { font-size: 14px; color: #8a99b8; max-width: 38ch; line-height: 1.6; }
.foot__col { display: flex; flex-direction: column; gap: 13px; }
.foot__h { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #6b7da6; margin-bottom: 4px; }
.foot__col a, .foot__col span:not(.foot__h) { font-size: 14px; color: #c7d2e8; transition: color .2s; }
.foot__col a:hover { color: #fff; }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 26px; padding-bottom: 30px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12.5px; color: #6b7da6; }
.foot__bottom .mono { font-size: 11.5px; letter-spacing: .05em; }
@media (max-width: 820px) {
  .foot { grid-template-columns: 1fr 1fr; gap: 32px; }
  .foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .foot { grid-template-columns: 1fr; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
}
