/* ═══════════════════════════════════════════════════
   Modelo y Estrategia de Talento – met.css
   Hereda variables de styles.css
════════════════════════════════════════════════════ */

/* ── Variables locales ──────────────────────────── */
:root {
  --met-purple:      #6b21a8;
  --met-purple-mid:  #7c3aed;
  --met-purple-glow: rgba(139, 92, 246, 0.6);
  --met-purple-soft: rgba(139, 92, 246, 0.15);
  --met-dark:        #0d0020;
  --met-dark-mid:    #1a0035;
}

/* ── Hero ──────────────────────────────────────── */
.met-hero {
  position: relative;
  min-height: 100vh;
  background: url('../images/BANNER HOME Modelo y estrategia de talento.png') center center / cover no-repeat;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.met-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(43, 3, 63, 0.98)  0%,
    rgba(75, 5, 110, 0.82) 35%,
    rgba(100, 10, 150, 0.5) 65%,
    rgba(60, 0, 100, 0.25)  100%
  );
}

.met-hero-row {
  display: flex;
  min-height: 100vh;
  padding-top: 80px;
  padding-bottom: 5rem;
  align-items: flex-end;
}

.met-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font); font-size: .75rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: #c084fc;
  background: rgba(192, 132, 252, .12);
  border: 1px solid rgba(192, 132, 252, .3);
  padding: .4rem 1.1rem; border-radius: 50px;
  margin-bottom: 1.25rem; width: fit-content;
}

.met-hero-title {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 900; font-family: var(--font);
  color: #fff; line-height: 1.05; margin-bottom: 1rem;
}

.met-hero-accent {
  background: linear-gradient(90deg, #c084fc, #a855f7, #ffcd00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.met-hero-sub {
  font-size: 1.05rem; font-weight: 300;
  color: rgba(255,255,255,.75);
  max-width: 580px; line-height: 1.78;
}

/* ── Ecosistema en Detalle ──────────────────────── */
.met-ecosistema { background: #f9f9fb; }

.met-eco-hint {
  font-size: .9rem; font-weight: 400;
  color: var(--ta-muted); margin-top: .5rem;
}

/* Mini cards (click-expand) */
.met-ecocard {
  background: linear-gradient(145deg, #ffcd00 0%, #f4a800 100%);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s, box-shadow .3s;
  user-select: none;
  height: 100%;
}

.met-ecocard:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 48px rgba(255, 180, 0, .35);
}

.met-ecocard.open {
  box-shadow: 0 20px 56px rgba(255, 180, 0, .4);
  transform: translateY(-6px);
}

.met-ecocard-front {
  padding: 2.2rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .85rem;
}

.met-ecocard-icon {
  width: 68px; height: 68px;
  background: rgba(43, 3, 63, .1);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--ta-dark);
  flex-shrink: 0;
}

.met-ecocard-title {
  font-family: var(--font); font-size: .98rem; font-weight: 700;
  color: var(--ta-dark); line-height: 1.3; margin: 0;
}

.met-ecocard-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(43,3,63,.15);
  font-size: .9rem; color: var(--ta-dark);
  transition: transform .35s, background .2s;
  flex-shrink: 0;
}

.met-ecocard.open .met-ecocard-toggle {
  transform: rotate(45deg);
  background: rgba(43,3,63,.25);
}

/* Sliding description */
.met-ecocard-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.4,0,.2,1), padding .35s;
  padding: 0 1.75rem;
  background: rgba(43,3,63,.08);
}
.met-ecocard-body p {
  font-size: .88rem; font-weight: 400;
  color: rgba(43,3,63,.8); line-height: 1.7; margin: 0;
}

.met-ecocard.open .met-ecocard-body {
  max-height: 220px;
  padding: 1.1rem 1.75rem 1.5rem;
}

/* ── STARAPP Cyber ──────────────────────────────── */
.met-starapp {
  position: relative;
  background: linear-gradient(135deg, var(--met-dark) 0%, var(--met-dark-mid) 50%, #2d0055 100%);
  padding: 7rem 0;
  overflow: hidden;
}

/* Grid background */
.met-sa-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(139,92,246,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139,92,246,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* Animated glow orbs */
.met-sa-orb {
  position: absolute; border-radius: 50%;
  filter: blur(80px); pointer-events: none;
  animation: orbFloat 8s ease-in-out infinite;
}
.met-sa-orb--1 {
  width: 360px; height: 360px;
  background: rgba(109, 40, 217, .35);
  top: -80px; left: -60px;
  animation-delay: 0s;
}
.met-sa-orb--2 {
  width: 280px; height: 280px;
  background: rgba(168, 85, 247, .25);
  bottom: -40px; right: -40px;
  animation-delay: 3s;
}
.met-sa-orb--3 {
  width: 200px; height: 200px;
  background: rgba(255, 205, 0, .08);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation-delay: 5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%       { transform: translateY(-30px) scale(1.06); }
}

/* Eyebrow + Title */
.met-sa-eyebrow {
  display: inline-block;
  font-family: var(--font); font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: #c084fc;
  background: rgba(192,132,252,.12);
  border: 1px solid rgba(192,132,252,.3);
  padding: .35rem 1rem; border-radius: 50px;
  margin-bottom: 1rem;
}

.met-sa-title {
  font-family: var(--font);
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  font-weight: 900; color: #fff; line-height: 1.2;
  margin-bottom: 1rem;
}

.met-sa-brand {
  background: linear-gradient(90deg, #c084fc, #a855f7, #ffcd00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}

.met-sa-sub {
  font-size: .95rem; font-weight: 300;
  color: rgba(255,255,255,.65); line-height: 1.78;
  max-width: 500px; margin-bottom: 0;
}

/* Feature list */
.met-sa-features { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }

.met-sa-feature {
  display: flex; align-items: flex-start; gap: 1.1rem;
  padding: 1.1rem 1.25rem;
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.25);
  border-radius: 14px;
  transition: background .3s, border-color .3s;
}
.met-sa-feature:hover {
  background: rgba(139,92,246,.18);
  border-color: rgba(139,92,246,.5);
}

.met-sa-feat-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: #fff;
  box-shadow: 0 4px 16px rgba(139,92,246,.45);
}

.met-sa-feat-title {
  font-family: var(--font); font-size: .95rem; font-weight: 700;
  color: #fff; margin-bottom: .3rem; line-height: 1.3;
}

.met-sa-feat-desc {
  font-size: .82rem; font-weight: 300;
  color: rgba(255,255,255,.58); line-height: 1.65; margin: 0;
}

/* CTA button */
.met-sa-btn {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff; font-family: var(--font); font-weight: 700; font-size: .9rem;
  padding: .9rem 2.2rem; border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(139,92,246,.5);
  transition: transform .25s, box-shadow .25s;
}
.met-sa-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(139,92,246,.7);
}

/* ── Cyber Monitor ──────────────────────────────── */
.met-monitor-wrap {
  position: relative;
  width: 100%; max-width: 480px;
}

.met-monitor {
  background: linear-gradient(160deg, #0e0025 0%, #1a0040 60%, #22005a 100%);
  border: 1.5px solid rgba(139,92,246,.5);
  border-radius: 16px 16px 0 0;
  box-shadow:
    0 0 0 1px rgba(139,92,246,.15),
    0 0 40px rgba(139,92,246,.3),
    0 0 80px rgba(139,92,246,.12),
    inset 0 0 30px rgba(100,0,200,.08);
  overflow: hidden;
}

/* Top bar */
.met-monitor-bar {
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem;
  background: rgba(139,92,246,.12);
  border-bottom: 1px solid rgba(139,92,246,.2);
}
.met-monitor-dots { display: flex; gap: .4rem; }
.met-dot {
  width: 10px; height: 10px; border-radius: 50%;
}
.met-dot--r { background: #ff5f57; box-shadow: 0 0 6px #ff5f57; }
.met-dot--y { background: #febc2e; box-shadow: 0 0 6px #febc2e; }
.met-dot--g { background: #28c840; box-shadow: 0 0 6px #28c840; }

.met-monitor-title {
  flex: 1; text-align: center;
  font-family: 'Courier New', monospace; font-size: .72rem;
  color: rgba(192,132,252,.8); letter-spacing: .08em;
}
.met-monitor-blink {
  animation: blink .9s step-end infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.met-monitor-status {
  font-family: 'Courier New', monospace; font-size: .65rem; font-weight: 700;
  color: #28c840; letter-spacing: .06em;
}
.met-monitor-status .bi { font-size: .5rem; animation: blink 1.4s step-end infinite; }

/* Screen content */
.met-monitor-screen {
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
  overflow: hidden;
}

.met-screen-label {
  font-family: 'Courier New', monospace; font-size: .65rem;
  color: rgba(192,132,252,.5); letter-spacing: .1em;
  text-transform: uppercase; margin-bottom: 1.25rem;
}

/* Progress bars */
.met-bar-row {
  display: flex; align-items: center; gap: .75rem;
  margin-bottom: .85rem;
}
.met-bar-name {
  font-family: 'Courier New', monospace; font-size: .68rem;
  color: rgba(255,255,255,.6); min-width: 100px;
}
.met-bar-track {
  flex: 1; height: 6px;
  background: rgba(139,92,246,.15);
  border-radius: 6px; overflow: hidden;
}
.met-bar-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, #7c3aed, #c084fc, #ffcd00);
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(192,132,252,.6);
  animation: barGrow .9s cubic-bezier(.4,0,.2,1) both;
}
@keyframes barGrow {
  from { width: 0; }
  to   { width: var(--w); }
}
.met-bar-pct {
  font-family: 'Courier New', monospace; font-size: .68rem;
  color: #c084fc; min-width: 2.5rem; text-align: right;
}

/* Divider */
.met-screen-divider {
  height: 1px;
  background: rgba(139,92,246,.2);
  margin: 1.1rem 0;
}

/* KPI row */
.met-kpi-row {
  display: flex; justify-content: space-between; gap: .5rem;
}
.met-kpi {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(139,92,246,.1);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 10px;
  padding: .6rem .5rem;
  flex: 1;
}
.met-kpi-num {
  font-family: var(--font); font-size: 1rem; font-weight: 900;
  background: linear-gradient(135deg, #c084fc, #ffcd00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text; line-height: 1.1;
}
.met-kpi-lbl {
  font-family: 'Courier New', monospace; font-size: .58rem;
  color: rgba(255,255,255,.4); text-align: center; margin-top: .2rem;
  text-transform: uppercase; letter-spacing: .04em;
}

/* Scan line */
.met-scanline {
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(192,132,252,.5), transparent);
  animation: scanMove 3s linear infinite;
  pointer-events: none;
}
@keyframes scanMove {
  0%   { top: 0; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 0.6; }
  100% { top: 100%; opacity: 0; }
}

/* Monitor neck + base */
.met-monitor-neck {
  width: 60px; height: 28px;
  background: linear-gradient(to bottom, rgba(139,92,246,.25), rgba(139,92,246,.1));
  margin: 0 auto;
  border-left: 1px solid rgba(139,92,246,.2);
  border-right: 1px solid rgba(139,92,246,.2);
}
.met-monitor-base {
  width: 160px; height: 10px;
  background: linear-gradient(90deg, rgba(139,92,246,.1), rgba(139,92,246,.3), rgba(139,92,246,.1));
  border-radius: 50px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(139,92,246,.3);
}

/* Floating badges */
.met-badge {
  position: absolute;
  display: flex; align-items: center; gap: .4rem;
  background: rgba(139,92,246,.2);
  border: 1px solid rgba(192,132,252,.4);
  backdrop-filter: blur(8px);
  padding: .45rem .9rem; border-radius: 50px;
  font-family: var(--font); font-size: .72rem; font-weight: 600;
  color: #c084fc;
  box-shadow: 0 4px 16px rgba(139,92,246,.3);
  white-space: nowrap;
}
.met-badge--tl { top: 8%;  left: -16px; }
.met-badge--br { bottom: 18%; right: -14px; }

/* ── CTA Final ─────────────────────────────────── */
.met-cta { background: var(--ta-dark); }
.met-cta-inner {
  background: linear-gradient(90deg,
    rgba(107,33,168,1)  0%,
    rgba(124,58,237,.95) 35%,
    rgba(168,85,247,.9) 65%,
    rgba(255,205,0,.8)  100%);
  padding: 7rem 0;
}
.met-cta-logo {
  height: 52px; display: block; margin: 0 auto 1.5rem;
  filter: brightness(0);
}
.met-cta-tagline {
  font-family: var(--font); font-size: .9rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.6); margin-bottom: 1.25rem;
}
.met-cta-title {
  font-family: var(--font);
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900; color: #fff;
  line-height: 1.2; margin-bottom: 1rem;
}
.met-cta-sub {
  font-size: 1rem; font-weight: 300;
  color: rgba(255,255,255,.72); line-height: 1.78;
  max-width: 540px; margin: 0 auto;
}
.met-cta-btn {
  display: inline-flex; align-items: center;
  background: #fff; color: var(--ta-dark);
  font-family: var(--font); font-weight: 700; font-size: .95rem;
  padding: 1rem 2.5rem; border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(0,0,0,.2);
  transition: var(--ta-trans);
}
.met-cta-btn:hover {
  background: var(--ta-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.met-cta-contact {
  display: flex; flex-wrap: wrap;
  justify-content: center; gap: 1.5rem;
}
.met-cta-contact a,
.met-cta-contact span {
  display: flex; align-items: center; gap: .5rem;
  font-size: .88rem; font-weight: 500;
  font-family: var(--font); color: rgba(255,255,255,.75);
  text-decoration: none; transition: color .2s;
}
.met-cta-contact a:hover { color: #fff; }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 991.98px) {
  .met-monitor-wrap { max-width: 420px; }
  .met-badge--tl { left: 0; }
  .met-badge--br { right: 0; }
}

@media (max-width: 767.98px) {
  .met-hero-title { font-size: 2.5rem; }
  .met-hero-sub   { font-size: .95rem; }
  .met-starapp    { padding: 4rem 0; }
  .met-monitor-wrap { max-width: 100%; }
  .met-badge      { display: none; }
  .met-kpi-lbl    { font-size: .52rem; }
  .met-cta-inner  { padding: 4rem 0; }
  .met-cta-contact{ flex-direction: column; align-items: center; gap: 1rem; }
  .met-sa-orb     { filter: blur(60px); }
}

@media (max-width: 480px) {
  .met-bar-name { min-width: 80px; font-size: .62rem; }
  .met-kpi      { padding: .5rem .3rem; }
  .met-kpi-num  { font-size: .85rem; }
}
