/* CSS propio de la página «Interim Management» (grupo 4) */
/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.page-hero-im {
  position: relative; z-index: 1;
  padding: 12rem 6% 7rem; text-align: center; overflow: hidden;
  background-image: url('../theme/img/photo-1497366216548-37526070297c-1920.jpg');
  background-size: cover; background-position: center 35%;
  background-attachment: fixed;
}
.page-hero-im::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 70vw 50vh at 50% 0%, rgba(240,117,32,.22) 0%, transparent 60%),
    linear-gradient(to bottom, rgba(13,12,10,.88) 0%, rgba(13,12,10,.55) 55%, rgba(13,12,10,.92) 100%);
}
.page-hero-im > * { position: relative; z-index: 1; }
.page-hero-im h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.04; letter-spacing: -.03em;
}
.im-hero-line {
  width: 60px; height: 3px; margin: 2rem auto;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  border-radius: 2px;
}
.page-hero-im .hero-sub { max-width: 560px; margin: 0 auto; }

/* ═══════════════════════════════════
   DOS BLOQUES PRINCIPALES
═══════════════════════════════════ */
.im-blocks {
  position: relative; z-index: 1;
  background-color: var(--dark2);
  background-image:
    linear-gradient(rgba(20,19,16,.97), rgba(20,19,16,.95)),
    url('../theme/img/photo-1497366216548-37526070297c-1920.jpg');
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.im-blocks::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand1), transparent);
}
.im-blocks::after {
  content: '';
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 300px;
  background: radial-gradient(ellipse, rgba(240,117,32,.07) 0%, transparent 70%);
  pointer-events: none;
}
.im-blocks-inner {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 0;
}
.im-col-divider {
  border-right: 1px solid rgba(240,117,32,.15);
}
.im-col-divider:last-child { border-right: none; }

.im-card {
  padding: 5rem 3.5rem 4rem;
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 1.5rem;
  transition: background .3s;
}
.im-card:hover { background: rgba(240,117,32,.04); }

.im-card-icon {
  width: 80px; height: 80px; border-radius: 50%;
  border: 1.5px solid rgba(240,117,32,.5);
  background: linear-gradient(145deg, rgba(240,117,32,.12), rgba(224,92,0,.06));
  box-shadow: 0 0 0 10px rgba(240,117,32,.05);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; flex-shrink: 0;
  transition: box-shadow .3s, border-color .3s;
}
.im-card:hover .im-card-icon {
  border-color: rgba(240,117,32,.8);
  box-shadow: 0 0 0 14px rgba(240,117,32,.08), 0 8px 30px rgba(240,117,32,.2);
}

.im-card-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand1); margin-bottom: .2rem;
}
.im-card h3 {
  font-size: 1.2rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--text); line-height: 1.3;
}
.im-card p {
  font-size: .94rem; color: var(--muted); line-height: 1.8; flex: 1;
}
.im-card .btn-im {
  display: inline-block; margin-top: .5rem;
  padding: .75rem 1.6rem;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: #fff; border-radius: 50px;
  font-size: .84rem; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(240,117,32,.35);
  transition: transform .2s, box-shadow .2s;
}
.im-card .btn-im:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(240,117,32,.45); }

/* ═══════════════════════════════════
   DETALLE — 2 columnas
═══════════════════════════════════ */
.im-detail {
  position: relative; z-index: 1;
  padding: 7rem 6%;
}
.im-detail-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
}
.im-detail-inner.reverse { direction: rtl; }
.im-detail-inner.reverse > * { direction: ltr; }

/* step-label accent (igual que CE y CDG) */
.step-label {
  display: flex; align-items: center; gap: .7rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand1); margin-bottom: 1rem;
}
.step-label::before {
  content: ''; display: block;
  width: 28px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  flex-shrink: 0;
}

.im-detail-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900; line-height: 1.12; margin-bottom: 1.2rem;
}
.im-detail-text p {
  font-size: .96rem; color: var(--muted); line-height: 1.8; margin-bottom: 1rem;
}

.im-list { display: flex; flex-direction: column; gap: .8rem; margin-top: 1.5rem; }
.im-list-item {
  display: flex; align-items: flex-start; gap: .9rem;
  padding: .9rem 1.1rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px; backdrop-filter: blur(8px);
  transition: border-color .25s, background .25s;
}
.im-list-item:hover {
  border-color: rgba(240,117,32,.3);
  background: rgba(240,117,32,.04);
}
.im-list-item .chk {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700;
}
.im-list-item span { font-size: .9rem; color: var(--text); line-height: 1.5; padding-top: 4px; }

/* Visual card — richer version matching CE */
.im-visual {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,.04), rgba(240,117,32,.06));
  border: 1px solid rgba(240,117,32,.2);
  border-radius: 28px; padding: 3.5rem 3rem;
  backdrop-filter: blur(16px);
  display: flex; flex-direction: column; gap: 1.8rem;
  overflow: hidden;
}
.im-visual::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(240,117,32,.2) 0%, transparent 70%);
  border-radius: 50%; pointer-events: none;
}
.im-visual::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  opacity: .6;
}
.im-visual-num {
  font-size: 5rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.im-visual h3 {
  font-size: 1.25rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .04em;
}
.im-visual p { font-size: .92rem; color: var(--muted); line-height: 1.75; }

/* ═══════════════════════════════════
   STATS
═══════════════════════════════════ */
.im-stats {
  position: relative; z-index: 1;
  padding: 6rem 6%; text-align: center;
  background: var(--dark2);
}
.im-stats::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand1), transparent);
}
.im-stats-inner {
  max-width: 900px; margin: 3rem auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.im-stat {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 20px; padding: 2.5rem 1.5rem;
  backdrop-filter: blur(10px);
  position: relative; overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.im-stat::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  opacity: 0; transition: opacity .3s;
}
.im-stat:hover { transform: translateY(-5px); box-shadow: 0 20px 50px rgba(240,117,32,.1); }
.im-stat:hover::before { opacity: 1; }
.im-stat-num {
  font-size: 3rem; font-weight: 900;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.im-stat p { font-size: .88rem; color: var(--muted); margin-top: .5rem; line-height: 1.5; }

@media (max-width: 900px) {
  .im-blocks-inner,
  .im-detail-inner,
  .im-detail-inner.reverse,
  .im-stats-inner { grid-template-columns: 1fr; direction: ltr; gap: 2rem; }
  .im-col-divider { border-right: none; border-bottom: 1px solid rgba(240,117,32,.15); }
}
