/* ============================================================
   SERVICIOS PAGE — Specific styles
   ============================================================ */

/* ---- Pillar Navigation ---- */
.pillar-nav-sticky {
  position: sticky;
  top: 70px;
  z-index: 500;
}
.pillar-nav {
  background: var(--white);
  border-bottom: 1px solid rgba(0,46,109,0.07);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 0;
  transition: max-width 0.48s cubic-bezier(0.16, 1, 0.3, 1),
              border-radius 0.48s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.48s cubic-bezier(0.16, 1, 0.3, 1);
}
.pillar-nav.pnav-docked {
  max-width: 860px;
  border-radius: 0 0 14px 14px;
  border-bottom-color: transparent;
  box-shadow: 0 8px 24px rgba(0,46,109,0.10), 0 1px 0 rgba(0,46,109,0.04);
}
.pillar-nav-inner {
  display: flex;
  align-items: stretch;
  padding: 0 40px;
}
.pnav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 2px solid transparent;
  transition: color 0.22s cubic-bezier(0.32, 0.72, 0, 1),
              background 0.22s cubic-bezier(0.32, 0.72, 0, 1),
              border-bottom-color 0.22s cubic-bezier(0.32, 0.72, 0, 1);
  color: var(--gray-600);
  white-space: nowrap;
}
.pnav-item:hover {
  color: var(--navy);
  background: rgba(0,46,109,0.03);
  border-bottom-color: rgba(232,104,42,0.35);
}
.pnav-item.pnav-active {
  color: var(--navy);
  border-bottom-color: var(--orange);
}
.pnav-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.06em;
  line-height: 1;
}
.pnav-label {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pnav-ai {
  margin-left: auto;
  background: rgba(232,104,42,0.04);
  border-left: 1px solid rgba(0,46,109,0.08);
}
.pnav-ai .pnav-num { font-size: 0.95rem; }
.pnav-ai:hover { background: rgba(232,104,42,0.08); }

/* ---- Service Sections ---- */
.svc-section { padding: 96px 0; }
.svc-advisory     { background: var(--white); }
.svc-build        { background: var(--gray-100); }
.svc-run          { background: var(--navy); }
.svc-transformation { background: var(--white); }
.svc-stability    { background: var(--white); }
.svc-modernization { background: var(--gray-100); }
.svc-intelligence { background: var(--white); }

/* Section header */
.svc-header {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  margin-top: -96px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--gray-200);
}
.svc-header-dark {
  border-bottom-color: rgba(255,255,255,0.08);
}
.svc-header-top {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.svc-header-text {
  position: relative;
  z-index: 2;
  max-width: 50%;
  padding-top: 96px;
  padding-right: 48px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-shadow: 0 1px 8px rgba(255,255,255,0.7);
}
.svc-header-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.svc-header-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.svc-stability .svc-header-img::before,
.svc-intelligence .svc-header-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, #ffffff 0%, #ffffff 28%, rgba(255,255,255,0) 40%);
  pointer-events: none;
}
.svc-modernization .svc-header-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to right, #f7f9fc 0%, #f7f9fc 28%, rgba(247,249,252,0) 40%);
  pointer-events: none;
}
.svc-num {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
}
.svc-num-dim { color: rgba(255,255,255,0.2); }
.svc-title {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin: 0;
}
.svc-title-white { color: var(--white); }
.svc-sub {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-light);
  font-style: italic;
  margin-top: 8px;
}
.svc-sub-white { color: rgba(255,255,255,0.45); }
.svc-desc {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.8;
  max-width: 520px;
  margin: 8px 0 0;
}
.svc-desc-white { color: rgba(255,255,255,0.6); }

/* ---- Service Cards ---- */
.svc-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.svc-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--orange);
}
.svc-build .svc-card {
  background: var(--white);
}

/* Dark variant (Run section) */
.svc-card-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.svc-card-dark:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(232,104,42,0.45);
  box-shadow: 0 4px 28px rgba(0,0,0,0.25);
  transform: translateY(-4px);
}
.svc-card-icon {
  font-size: 0.9rem;
  color: var(--orange);
  margin-bottom: 16px;
  line-height: 1;
}
.svc-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.svc-card-dark h4 { color: var(--white); }
.svc-card p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}
.svc-card-dark p { color: rgba(255,255,255,0.52); }

/* ---- Service Groups ---- */
.svc-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.svc-group {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.svc-modernization .svc-group { background: var(--white); }
.svc-group:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.svc-group-title {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--color-accent);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}
.svc-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.svc-group li {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  padding-left: 16px;
  position: relative;
}
.svc-group li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}
/* Dark variant (Intelligence) */
.svc-group-dark {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.svc-group-dark:hover {
  background: rgba(255,255,255,0.08);
  box-shadow: 0 4px 28px rgba(0,0,0,0.25);
}
/* svc-group-dark titles use same orange pill — works on dark bg */
.svc-group-dark li { color: rgba(255,255,255,0.62); }
/* AI Fusion group accent border */
.svc-group-aifusion {
  border-color: rgba(232,104,42,0.35);
}
/* CTA below Intelligence */
.svc-aifusion-cta {
  margin-top: 48px;
  text-align: center;
}
.btn-aifusion {
  display: inline-block;
  padding: 14px 36px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s;
}
.btn-aifusion:hover { background: var(--orange-dark); }
/* Hero accent line */
.page-hero-sub.accent-line {
  color: var(--orange);
  font-weight: 600;
  font-style: normal;
  margin-bottom: 6px;
}

/* ---- AI Fusion Spotlight ---- */
.ai-fusion-spotlight {
  background: #071a4d url('../img/blueaif.png') -30% center / 70% auto no-repeat;
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.aif-inner {
  display: grid;
  grid-template-columns: 1.15fr 1.3fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
  padding-left: 21%;
}
.aif-header {
  text-align: left;
}
.aif-eyebrow { color: var(--orange); }
.aif-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.1;
}
.aif-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 20px;
}
.aif-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.70);
  max-width: none;
  margin: 0 0 28px;
  line-height: 1.8;
}

/* Steps */
.aif-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: stretch;
  position: relative;
  z-index: 1;
}
.aif-step {
  background: rgba(95,141,181,0.20);
  border: 1px solid rgba(95,141,181,0.35);
  border-radius: var(--radius);
  padding: 56px 16px;
  text-align: center;
  transition: transform var(--transition), background var(--transition);
}
.aif-step:hover {
  transform: translateY(-4px);
  background: rgba(95,141,181,0.30);
}
.aif-step-icon {
  color: #aecad9;
  margin-bottom: 14px;
  display: flex;
  justify-content: center;
}
.aif-step-icon svg {
  width: 52px;
  height: 52px;
}
.aif-step h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 8px;
}
.aif-step p {
  font-size: 1rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.55;
}

/* ---- CTA ---- */
.svc-cta {
  background: var(--gray-100);
  padding: 80px 0;
  border-top: 1px solid var(--gray-200);
}
.svc-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.svc-cta-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 12px;
}
.svc-cta-copy p {
  font-size: 1rem;
  color: var(--text-light);
  line-height: 1.75;
  max-width: 500px;
}
.svc-cta-actions {
  display: flex;
  gap: 16px;
  flex-shrink: 0;
}

/* ---- Conoce más button ---- */
.svc-conoce-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.btn-conoce {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border: 1.5px solid var(--orange);
  border-radius: 100px;
  background: transparent;
  color: var(--orange);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.22s cubic-bezier(0.32, 0.72, 0, 1),
              color 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}
.btn-conoce svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}
.btn-conoce:hover,
.btn-conoce.is-active {
  background: var(--orange);
  color: var(--white);
}
.btn-conoce.is-active svg { transform: rotate(180deg); }

/* ---- Expand panel ---- */
.svc-expand {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.55s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease,
              margin-bottom 0.4s ease;
  margin-bottom: 0;
}
.svc-expand.is-open {
  opacity: 1;
  margin-top: 32px;
}
.svc-expand-inner {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid rgba(0,46,109,0.09);
  border-radius: var(--radius);
  padding: 48px 40px 36px;
}
.svc-modernization .svc-expand-inner { background: var(--white); }

.svc-expand-close {
  position: absolute;
  top: 18px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 14px;
  background: transparent;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.svc-expand-close:hover {
  border-color: var(--navy);
  color: var(--navy);
  background: rgba(0,46,109,0.04);
}

.svc-expand-header { margin-bottom: 28px; }
.svc-expand-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 10px;
}
.svc-expand-lead {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
  margin: 0;
}

/* 3-col grid — Stability */
.svc-expand-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc-expand-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 24px;
}
.svc-modernization .svc-expand-card { background: var(--bg-secondary); }
.svc-expand-card h4 {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.svc-expand-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.svc-expand-list li {
  font-size: 0.88rem;
  color: var(--text-light);
  padding-left: 14px;
  position: relative;
  line-height: 1.5;
}
.svc-expand-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* 4-col steps — Modernization */
.svc-expand-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.svc-expand-step {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
}
.svc-expand-step-num {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--orange);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.svc-expand-step h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.svc-expand-step p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
}
.svc-expand-partners {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--gray-200);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-light);
}
.svc-expand-partner-badge {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0,46,109,0.06);
  border: 1px solid rgba(0,46,109,0.12);
  border-radius: 100px;
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
}

/* 3-col horizons — Intelligence */
.svc-expand-horizons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc-expand-horizon {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 26px 22px;
}
.svc-expand-horizon-mid { border-color: rgba(0,46,109,0.18); }
.svc-expand-horizon-ai {
  border-color: rgba(230,83,0,0.28);
  background: rgba(230,83,0,0.025);
}
.svc-expand-horizon-num {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--color-accent);
  padding: 4px 11px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.svc-expand-horizon h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.svc-expand-horizon-ai h4 { color: var(--orange); }
.svc-expand-horizon p {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* ============================================================
   SERVICE INSIGHT BLOCK  (quote + results grid)
   ============================================================ */
.svc-insight {
  display: flex;
  gap: 0;
  margin-bottom: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--gray-200);
}
.svc-insight-left {
  flex: 0 0 38%;
  padding-right: 52px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.svc-insight-quote {
  font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.55;
  color: var(--color-primary);
  margin: 0 0 4px;
}
.svc-insight-left p {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
  margin: 0;
}
.svc-insight-right {
  flex: 1;
  padding-left: 52px;
  border-left: 1px solid var(--gray-200);
}
.svc-modernization .svc-insight-right,
.svc-intelligence .svc-insight-right {
  border-left-color: var(--gray-200);
}
.svc-insight-results-title {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  margin-bottom: 28px;
}
.svc-results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 16px;
}
.svc-result-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.svc-result-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(95, 141, 181, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-secondary);
  flex-shrink: 0;
}
.svc-result-item p {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.4;
  margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .svc-cards { grid-template-columns: repeat(2, 1fr); }
  .svc-groups { grid-template-columns: 1fr; gap: 16px; }
  .svc-cta-inner { flex-direction: column; align-items: flex-start; }
  .svc-insight { flex-direction: column; gap: 40px; }
  .svc-insight-left { flex: none; width: 100%; padding-right: 0; }
  .svc-insight-right { padding-left: 0; border-left: none; border-top: 1px solid var(--gray-200); padding-top: 40px; }
  .svc-results-grid { grid-template-columns: repeat(4, 1fr); }
  .aif-inner { grid-template-columns: 1fr; gap: 48px; }
  .aif-steps { grid-template-columns: repeat(2, 1fr); }
  .svc-header { margin-top: 0; min-height: 200px; }
  .svc-header-text { max-width: 75%; padding-top: 28px; padding-right: 24px; padding-bottom: 24px; }
  .svc-stability .svc-header-img::before,
  .svc-intelligence .svc-header-img::before { background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0) 80%); }
  .svc-modernization .svc-header-img::before { background: linear-gradient(to right, #f7f9fc 0%, rgba(247,249,252,0) 80%); }
}

@media (max-width: 1024px) {
  .svc-expand-grid     { grid-template-columns: 1fr; }
  .svc-expand-steps    { grid-template-columns: repeat(2, 1fr); }
  .svc-expand-horizons { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pillar-nav-sticky { top: 62px; }
  .pillar-nav.pnav-docked { max-width: calc(100% - 24px); }
  .pillar-nav-inner { overflow-x: auto; padding: 0 20px; }
  .pnav-item { padding: 14px 16px; }
  .pnav-ai { margin-left: 0; }
  .svc-num { font-size: 2.4rem; }
  .svc-cards { grid-template-columns: 1fr; }
  .svc-results-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .aif-steps { grid-template-columns: 1fr; }
  .svc-cta-actions { flex-direction: column; width: 100%; }
  .svc-cta-actions .btn { text-align: center; }
  .svc-expand-inner { padding: 42px 20px 28px; }
  .svc-expand-steps { grid-template-columns: 1fr; }
}
