/* CSS propio de la página «Consultoría Estratégica» (grupo 2) */
/* ═══════════════════════════════════
   HERO
═══════════════════════════════════ */
.page-hero-ce {
  position: relative; z-index: 1;
  padding: 12rem 6% 7rem; text-align: center;
  overflow: hidden;
  background-image: url('../theme/img/photo-1552664730-d307ca884978-1920.jpg');
  background-size: cover; background-position: center 40%;
  background-attachment: fixed;
}
.page-hero-ce::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-ce > * { position: relative; z-index: 1; }
.page-hero-ce h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 900; line-height: 1.04; letter-spacing: -.03em;
}
.ce-hero-line {
  width: 60px; height: 3px; margin: 2rem auto;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  border-radius: 2px;
}
.page-hero-ce .hero-sub { max-width: 560px; margin: 0 auto; }

/* ═══════════════════════════════════
   TRES PASOS
═══════════════════════════════════ */
.ce-steps {
  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-1486325212027-8081e485255e-1920.jpg');
  background-size: cover;
  background-position: center;
  padding: 7rem 6%;
}
.ce-steps::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand1), transparent);
}
.ce-steps-header {
  text-align: center; max-width: 650px; margin: 0 auto 5rem;
}
.ce-steps-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr);
  position: relative;
}
/* Línea conectora entre pasos */
.ce-steps-inner::before {
  content: '';
  position: absolute;
  top: 3.2rem; left: calc(16.66% + 1rem); right: calc(16.66% + 1rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(240,117,32,.4), rgba(240,117,32,.15), rgba(240,117,32,.4));
  z-index: 0;
}
.ce-step-card {
  padding: 0 2.5rem 3rem;
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  gap: 1.4rem;
  border-right: 1px solid var(--glass-border);
  position: relative; z-index: 1;
}
.ce-step-card:last-child { border-right: none; }

/* Círculo con número */
.ce-step-num-wrap {
  width: 72px; height: 72px; border-radius: 50%;
  border: 1.5px solid rgba(240,117,32,.45);
  background: var(--dark2);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 0 8px rgba(240,117,32,.07), 0 0 30px rgba(240,117,32,.12);
  flex-shrink: 0;
}
.ce-step-num {
  font-size: 1.8rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-family: Georgia, serif;
}
.ce-step-card h3 {
  font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text); line-height: 1.6;
}
.ce-step-card p {
  font-size: .91rem; color: var(--muted);
  line-height: 1.85; max-width: 290px;
}

/* ═══════════════════════════════════
   BLOQUES DETALLE
═══════════════════════════════════ */
.ce-detail { position: relative; z-index: 1; padding: 7rem 6%; }
.ce-detail::before {
  content: '';
  position: absolute; left: 6%; top: 0; width: 40px; height: 3px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
}
.ce-detail.alt { background: var(--dark2); }
.ce-detail.alt::before { left: auto; right: 6%; }
.ce-detail-inner {
  max-width: 1180px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 6rem; align-items: center;
}
.ce-detail-inner.reverse { direction: rtl; }
.ce-detail-inner.reverse > * { direction: ltr; }
.ce-detail-text .step-label {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .72rem; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand1);
  margin-bottom: 1.2rem;
}
.ce-detail-text .step-label::before {
  content: '';
  width: 24px; height: 2px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  border-radius: 1px;
}
.ce-detail-text h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  font-weight: 900; line-height: 1.12; margin-bottom: 1.4rem;
}
.ce-detail-text p { font-size: .95rem; color: var(--muted); line-height: 1.85; margin-bottom: .9rem; }
.ce-list { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.8rem; }
.ce-list-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .85rem 1.2rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(240,117,32,.12);
  border-radius: 10px;
  transition: border-color .25s, background .25s;
}
.ce-list-item:hover { border-color: rgba(240,117,32,.3); background: rgba(240,117,32,.05); }
.ce-list-item .chk {
  width: 26px; height: 26px; border-radius: 7px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; color: #fff;
}
.ce-list-item span { font-size: .88rem; color: var(--text); line-height: 1.55; padding-top: 3px; }

/* Tarjeta visual derecha */
.ce-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;
}
.ce-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;
}
.ce-visual::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  border-radius: 0 0 28px 28px;
}
.ce-visual-num {
  font-size: 6rem; font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--brand1) 0%, rgba(240,117,32,.25) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  font-family: Georgia, serif;
  letter-spacing: -.04em;
}
.ce-visual h3 {
  font-size: 1.15rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--text);
}
.ce-visual p { font-size: .9rem; color: var(--muted); line-height: 1.8; }

/* ═══════════════════════════════════
   BENEFICIOS
═══════════════════════════════════ */
.ce-benefits {
  position: relative; z-index: 1;
  padding: 7rem 6%;
  background: var(--dark);
}
.ce-benefits::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--brand1), transparent);
}
.ce-benefits-header { text-align: center; max-width: 680px; margin: 0 auto 4rem; }
.ce-benefits-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.ce-benefit {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px; padding: 2.2rem 1.6rem; text-align: center;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.ce-benefit::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand1), var(--brand2));
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s ease;
}
.ce-benefit:hover { transform: translateY(-6px); border-color: rgba(240,117,32,.25); box-shadow: 0 16px 40px rgba(240,117,32,.1); }
.ce-benefit:hover::after { transform: scaleX(1); }
.ce-benefit-icon {
  width: 56px; height: 56px; border-radius: 16px; margin: 0 auto 1.2rem;
  background: linear-gradient(135deg, rgba(240,117,32,.15), rgba(224,92,0,.25));
  border: 1px solid rgba(240,117,32,.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.ce-benefit h4 { font-size: .95rem; font-weight: 700; margin-bottom: .6rem; color: var(--text); }
.ce-benefit p { font-size: .84rem; color: var(--muted); line-height: 1.65; }

/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1000px) {
  .ce-steps-inner { grid-template-columns: 1fr; }
  .ce-steps-inner::before { display: none; }
  .ce-step-card { border-right: none; border-bottom: 1px solid var(--glass-border); padding: 2.5rem; }
  .ce-step-card:last-child { border-bottom: none; }
  .ce-benefits-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ce-detail-inner, .ce-detail-inner.reverse { grid-template-columns: 1fr; direction: ltr; gap: 3rem; }
}
@media (max-width: 600px) {
  .ce-benefits-grid { grid-template-columns: 1fr; }
}
