/* ── Servicios page ── */

/* Hero */
.sv-hero {
  padding: 140px 5% 90px;
  background: var(--bk);
  position: relative;
  overflow: hidden;
}
.sv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 70% at 20% 60%, rgba(123,191,62,.11) 0%, transparent 65%);
  pointer-events: none;
}
#nosotrosCanvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sv-hero-inner { max-width: 720px; position: relative; z-index: 1; }
.sv-hero-eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g2); margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.sv-hero-eyebrow span { width: 28px; height: 2px; background: var(--g2); display: inline-block; border-radius: 2px; }
.sv-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 1.2rem; }
.sv-hero h1 em { color: var(--g2); font-style: normal; }
.sv-hero p { font-size: 1rem; color: rgba(255,255,255,.6); line-height: 1.75; max-width: 520px; }

/* Branch sections */
.sv-section { padding: 72px 5% 80px; background: #fff; }
.sv-section.alt { background: var(--bg2); }

/* Sticky sub-section container */
.sv-subsection { position: relative; }

.sv-section-header {
  max-width: 1200px; margin: 0 auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  position: sticky;
  top: 60px;
  z-index: 10;
  background: #fff;
  padding: 1.4rem 0 1.2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.sv-section.alt .sv-section-header { background: var(--bg2); }


.sv-section-eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--g2); margin-bottom: .4rem; }
.sv-section-title { font-size: 1.45rem; font-weight: 700; color: var(--bk); margin: 0 0 .35rem; }
.sv-section-sub { font-size: .9rem; color: var(--muted); line-height: 1.6; max-width: 520px; margin: 0; }

.sv-grid-wrap { max-width: 1200px; margin: 0 auto; }

/* Two-column layout: content + sticky logo */
.sv-section-body {
  display: flex;
  gap: 3rem;
}

.sv-section-content {
  flex: 1;
  min-width: 0;
}

.sv-section-logo-col {
  width: 190px;
  flex-shrink: 0;
}

.sv-section-logo-sticky {
  position: sticky;
  top: 95px;
  display: flex;
  justify-content: flex-end;
  margin-top: 38px;
}

/* SAP logo (sección 1) */
.sv-section:not(.alt):not(.sv-databricks) .sv-section-logo-sticky img {
  max-width: 110px;
  opacity: .88;
}

/* Databricks logo (sección 2) */
.sv-databricks .sv-section-logo-sticky img {
  max-width: 150px;
  opacity: .9;
}

/* Structum logo (sección 2 - Propias) */
.sv-section.alt .sv-section-logo-sticky img {
  max-width: 200px;
  opacity: .88;
}

@media (max-width: 900px) {
  .sv-section-logo-col { display: none; }
}

/* Card grid */
.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 1.3rem; }

/* Card */
.sv-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: box-shadow .3s, transform .3s, background .3s, border-color .3s;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.sv-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--g), var(--o));
  transition: width .4s ease;
}

.sv-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  transform: translateY(-4px);
  background: linear-gradient(135deg, #f2fce8 0%, #fff 65%);
  border-color: rgba(123,191,62,.3);
}

.sv-card:hover::before {
  width: 100%;
}

.sv-card.featured {
  border-color: var(--border);
  background: #fff;
}

/* Icon */
.sv-card-icon {
  width: 46px; height: 46px;
  background: var(--g3);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-bottom: .2rem;
}
.sv-card-icon::before { color: var(--g2) !important; margin: 0 !important; font-size: 1.3rem; }
.sv-card-icon--img img { width: 28px; height: 28px; object-fit: contain; }

/* Text */
.sv-card-cat { font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--g2); }
.sv-card-title { font-size: 1rem; font-weight: 700; color: var(--bk); margin: 0; line-height: 1.35; }
.sv-card-desc { font-size: .87rem; color: var(--muted); line-height: 1.72; margin: 0; flex: 1; }

/* CTA link */
.sv-card-cta {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .82rem; font-weight: 700; color: var(--g2);
  text-decoration: none; margin-top: .4rem;
  transition: gap .15s;
}
.sv-card-cta:hover { gap: .65rem; }

/* "Próximamente" badge */
.sv-card-coming {
  display: inline-block; font-size: .7rem; font-weight: 600;
  color: var(--muted); background: var(--bg2);
  border: 1px solid var(--border); border-radius: 20px;
  padding: .22rem .7rem; margin-top: .4rem; letter-spacing: .04em;
}

/* Sub-category label (Planificación) */
.sv-subcat-label {
  grid-column: 1 / -1;
  font-size: .68rem; font-weight: 700; letter-spacing: .11em;
  text-transform: uppercase; color: var(--muted);
  padding: .5rem 0 .4rem;
  border-bottom: 1px solid var(--border);
  margin-top: .6rem;
}
.sv-subcat-label:first-child { margin-top: 0; }

/* Divider between own-solution branches */
.sv-branch-divider {
  max-width: 1200px; margin: 0 auto 2.4rem;
  border: none; border-top: 1px solid var(--border);
}

@media (max-width: 640px) {
  .sv-section { padding: 52px 5% 60px; }
  .sv-grid { grid-template-columns: 1fr; }
  .sv-section-header { flex-direction: column; align-items: flex-start; }
}
