/* ── VARIABLES Y ESTILOS BASE DE MÓDULOS ── */
:root {
  --navy: #04101f;
  --navy-mid: #071829;
  --navy-card: #0a1f35;
  --navy-card2: #0d2540;
  --blue-primary: #1a6bff;
  --blue-bright: #2ec6ff;
  --blue-light: #cadeff;
  --action: #3865f5;
  --dark-ui: #2a303f;
  --white: #ffffff;
  --text-muted: rgba(255,255,255,0.55);
  --text-body: rgba(255,255,255,0.75);
  --card-border: rgba(255,255,255,0.07);
  --card-bg: rgba(10,30,55,0.85);
}

/* ── VARIANTES DE COLOR POR MÓDULO ── */
.mod-reclutamiento { --mod-color: #1a6bff; }
.mod-aprendizaje { --mod-color: #1a6bff; }
.mod-desempeno { --mod-color: #00c853; }
.mod-encuestas { --mod-color: #00bcd4; }
.mod-operaciones { --mod-color: #ff9800; }

/* ── HERO ── */
.hero-modulos {
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #0d3a7a 0%, #071829 55%, #04101f 100%);
  padding: 11rem 40px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-modulos::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 40% at 50% -10%, rgba(42,100,255,0.35) 0%, transparent 70%);
  pointer-events: none;
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-body);
  letter-spacing: 0.01em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(52px, 8vw, 80px);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}

/* ── MODULES GRID ── */
.modules-section {
  background: linear-gradient(180deg, #04101f 0%, #071829 40%, #04101f 100%);
  padding: 20px 32px 40px;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.module-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--mod-color);
  opacity: 0.4;
  transition: opacity 0.3s;
}

.module-card:hover {
  border-color: var(--mod-color);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
}

.module-card:hover::before { opacity: 1; }

.module-icon {
  width: 40px;
  height: 40px;
  background: var(--mod-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 15px var(--mod-color);
}

.module-icon svg {
  width: 20px; height: 20px;
  fill: white;
}

.module-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
}

.module-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.module-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.module-features li {
  font-size: 12px;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 7px;
  line-height: 1.4;
}

.module-features li::before {
  content: '✓';
  color: var(--mod-color);
  font-weight: 700;
  font-size: 11px;
  margin-top: 1px;
  flex-shrink: 0;
}

.module-btn {
  margin-top: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  transition: all 0.2s;
  text-decoration: none;
}

.module-btn:hover {
  background: var(--mod-color);
  border-color: var(--mod-color);
  color: #fff;
}

/* ── DETAIL SECTION ── */
.detail-section {
  background: linear-gradient(180deg, #04101f 0%, #06152a 100%);
  padding: 40px 32px 0;
}

.detail-header {
  text-align: center;
  margin-bottom: 24px;
}

.detail-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}

.detail-desc {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* ── VIDEO PLAYER ── */
.video-container {
  max-width: 760px;
  margin: 0 auto 48px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: #040e1c;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}
