:root {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #12223a;
  background: #fff;
  line-height: 1.6;
  --navy: #07152e;
  --ink: #12223a;
  --muted: #435571;
  --line: #cad8eb;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, h3, h4 { margin: 0 0 .55em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.35rem, 4.5vw, 4.85rem); letter-spacing: -.062em; max-width: 15ch; }
h2 { font-size: clamp(1.7rem, 3.5vw, 3rem); letter-spacing: -.04em; }
h3 { font-size: 1.26rem; }
h4 { font-size: 1.04rem; }
p { margin: 0 0 1.1rem; }
a { color: #114c99; text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #1677ff; outline-offset: 3px; }
.wrap { width: min(92%, 1240px); margin-inline: auto; }
.prose > p { max-width: 75ch; }
.skip { position: absolute; z-index: 1; top: .5rem; left: 1rem; translate: 0 -150%; padding: .65rem; background: white; }
.skip:focus { translate: 0; }
.top { background: #080b12; color: white; border-bottom: 1px solid #253b5d; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .2rem 1rem; padding-block: .3rem; }
.top a { color: white; padding-block: .55rem; }
.brand { display: inline-flex; align-items: center; gap: .4rem; font-weight: 780; text-decoration: none; }
.brand span { color: #cbd5e1; font-weight: 500; }
.hero, .closing { color: white; background: radial-gradient(ellipse at 84% 36%, #204879, var(--navy) 60%); }
.hero { padding: clamp(1rem, 2vw, 2rem) 0 clamp(2.1rem, 5vw, 5rem); }
.hero a:not(.button), .closing a:not(.button) { color: #e1efff; }
.hero p { color: #e4edfc; max-width: 53ch; }
.hero .hero-lead { color: #ffd600; font-size: 1.22rem; font-weight: 740; }
.crumb { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 1.6rem; font-size: .9rem; color: #cbd5e1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); align-items: center; gap: clamp(1.4rem, 4vw, 4.3rem); }
.hero-image { width: 100%; height: auto; display: block; border-radius: 1.25rem; border: 1px solid #5fa5ff; box-shadow: 0 0 2rem #1677ff48; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.button {
  --accent: #63a7ff;
  display: inline-flex; min-height: 46px; align-items: center; justify-content: center; text-align: center;
  padding: .55rem .95rem; border: 1px solid var(--accent); border-radius: .55rem;
  background: #10264b; color: #fff; box-shadow: 0 0 .7rem color-mix(in srgb, var(--accent) 43%, transparent);
  text-decoration: none; font: inherit; font-weight: 740; cursor: pointer;
  transition: box-shadow .18s ease, background .18s ease;
}
.button:hover { background: #163965; box-shadow: 0 0 1.1rem color-mix(in srgb, var(--accent) 63%, transparent); text-decoration: none; }
.yellow { --accent: #ffd600; }.green { --accent: #39e3a9; }.violet { --accent: #ba9bff; }.silver { --accent: #cbd5e1; }
.index { background: #eaf3ff; border-bottom: 1px solid var(--line); }
.index nav { display: flex; flex-wrap: wrap; gap: .05rem .9rem; padding-block: .5rem; }
.index a { display: inline-flex; align-items: center; min-height: 44px; font-size: .92rem; font-weight: 700; }
.section { padding-block: clamp(2.6rem, 6vw, 5.2rem); }
.soft { background: #f3f7fd; }
.note { margin-block: 1.35rem 0; padding: 1rem; border-left: .28rem solid #1677ff; background: #e9f2ff; border-radius: .25rem .7rem .7rem .25rem; max-width: 75ch; }
.tiles, .vendors, .questions, .faq { display: grid; gap: 1rem; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-block: 1.2rem; }
.tiles.two, .questions, .faq { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles article, .vendor, .question, .faq details { border: 1px solid var(--line); border-radius: .9rem; padding: 1.2rem; background: #fff; min-width: 0; }
.tiles article:nth-child(3n+1), .vendor:nth-child(3n+1) { border-color: #85ade7; box-shadow: 0 0 .8rem #1677ff20; }
.tiles article:nth-child(3n+2), .vendor:nth-child(3n+2) { border-color: #8dbfb0; box-shadow: 0 0 .8rem #10b98120; }
.tiles article:nth-child(3n+3), .vendor:nth-child(3n+3) { border-color: #b5a2df; box-shadow: 0 0 .8rem #8b5cf626; }
.tiles article p:last-child, .feedback:last-child, .faq details p:last-child { margin-bottom: 0; }
.flow { list-style: none; padding: 0; margin: 1.45rem 0; display: grid; gap: .8rem; grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }
.flow li { counter-increment: step; padding: 1rem; border: 1px solid #82a7df; border-radius: .7rem; background: #edf5ff; }
.flow li::before { content: counter(step, decimal-leading-zero); display: block; font-size: 1.15rem; color: #1552a1; font-weight: 800; }
.flow strong, .flow span { display: block; }
.product { font-weight: 760; color: #184b8a; }
.vendor dl { margin-block: 1rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.vendor dt { font-weight: 760; }
.vendor dd { margin: 0 0 .45rem; color: var(--muted); }
.extra { font-size: .94rem; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .93rem; overflow-wrap: anywhere; }
caption { text-align: left; font-weight: 750; margin: .55rem 0; }
th, td { text-align: left; vertical-align: top; border: 1px solid var(--line); padding: .7rem .58rem; }
thead th { background: #17375f; color: #fff; }
tbody tr:nth-child(even) { background: #f0f6ff; }
.compare th:first-child, .compare th:last-child { width: 11%; }
.compare th:nth-child(6) { width: 23%; }
.mobile-label { display: none; }
.compact { margin-block: 1rem; }
.compact th:first-child { width: 25%; }
.sap-feature { background: linear-gradient(135deg, #e8f3ff, #fbf8ed 80%); }
.scenarios article { border-style: dashed; }
.learning { padding-left: 1.5rem; }
.learning li { margin-bottom: .3rem; }
.question fieldset { border: 0; min-width: 0; padding: 0; margin: 0 0 .68rem; }
.question legend { font-weight: 750; margin-bottom: .45rem; }
.question label { display: flex; align-items: center; gap: .5rem; min-height: 44px; padding: .38rem .55rem; margin-bottom: .3rem; border: 1px solid var(--line); border-radius: .4rem; background: #f2f7ff; cursor: pointer; }
.question input { accent-color: #104b9a; flex: 0 0 auto; width: 1.05rem; height: 1.05rem; }
.question label:has(input:checked) { background: #e0edff; border-color: #1677ff; }
.feedback { margin-top: .58rem; font-weight: 720; }
.feedback[data-state="correct"] { color: #086344; }
.feedback[data-state="retry"] { color: #8f3815; }
summary { font-weight: 735; cursor: pointer; padding-block: .55rem; min-height: 44px; }
.faq { gap: .7rem; align-items: start; }
.faq details { padding: .28rem .85rem; }
.faq details p { padding-bottom: .55rem; }
footer { background: #e9eff8; padding-block: 2rem; font-size: .94rem; }
footer h2 { font-size: 1.35rem; }
@media (max-width: 940px) {
  .vendors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare, .compare caption, .compare tbody { display: block; }
  .compare thead { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
  .compare tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line); margin-bottom: .75rem; border-radius: .65rem; }
  .compare th:first-child { grid-column: 1 / -1; width: 100%; background: #17375f; color: white; border-radius: .6rem .6rem 0 0; }
  .compare th, .compare td { border: 0; }
  .compare td { border-bottom: 1px solid var(--line); }
  .mobile-label { display: block; font-weight: 765; color: #294871; }
}
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-image { max-height: 350px; object-fit: cover; object-position: 50% 40%; }
  h1 { max-width: 20ch; }
}
@media (max-width: 580px) {
  .brand span { display: none; }
  .tiles, .tiles.two, .vendors, .flow, .questions, .faq, .compare tr { grid-template-columns: minmax(0, 1fr); }
  .compare td { padding: .56rem .75rem; }
  .compare td:last-child { border-bottom: 0; }
  .compact th, .compact td { padding: .4rem .3rem; font-size: .88rem; }
  .actions .button { flex: 1 1 13rem; }
}
@media (prefers-reduced-motion: reduce) { .button { transition: none; } }

/* Give each part of the guide a distinct colour while keeping text on solid surfaces. */
#contenido .hero {
  background: radial-gradient(ellipse at 95% 16%, #4251a3 0, transparent 56%),
    linear-gradient(125deg, #07152e 25%, #083c67 70%, #225b79);
}
.hero h1 span { display: block; color: #ffdd47; }
.hero .hero-lead { color: #eff6ff; }
.hero-image {
  border-color: #7fc5ff;
  box-shadow: .5rem .5rem 0 #49d8c447, 0 0 2rem #459aff59;
}
.actions .button.yellow { background: #ffd600; color: #07152e; }
.actions .button.yellow:hover { background: #ffea79; }
.actions .button:focus-visible { outline-color: #fff; }
.index { background: #dcecff; border-block: 1px solid #a8c5ec; }
.index a { color: #143768; }
.index a:is([href="#caso"], [href="#comparativa"], [href="#ejercicios"]) {
  color: #31196a;
  background: #f4ebff;
  border: 1px solid #a085d5;
  border-radius: .5rem;
  padding-inline: .65rem;
}
.index nav { gap: .35rem .95rem; }

#definicion { background: linear-gradient(128deg, #fff9df, #fff 65%); }
#usos { background: #e6f6f7; }
#caso { background: #fff4d8; }
#directorio { background: #e6efff; }
#comparativa { background: #efebff; }
#elegir { background: #eaf7ef; }
#despliegue { background: #f6f3ff; }
#crm { background: #e3f6f5; }
#s4hana { background: #fff7dc; }
#carrera { background: #ebf2ff; }
#ejercicios { background: #ede5fa; }
#faq { background: #edf7fb; }
#definicion h2, #caso h2, #s4hana h2 { color: #643918; }
#usos h2, #elegir h2, #crm h2 { color: #09514b; }
#comparativa h2, #despliegue h2, #ejercicios h2 { color: #45237e; }

.editorial-split {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
  gap: clamp(1.2rem, 4vw, 3.6rem);
  margin-bottom: 1.4rem;
}
.editorial-photo { margin: 0; }
.editorial-photo img {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid #b37e28;
  border-radius: 1rem;
  box-shadow: .35rem .35rem 0 #c7792940;
}
#comparativa .editorial-photo img { border-color: #825cb9; box-shadow: .35rem .35rem 0 #8b5cf638; }
.flow-hint { color: #653908; font-weight: 730; margin-bottom: 0; }
.flow { align-items: start; }
.flow li { padding: 0; min-width: 0; overflow: hidden; border-color: #bc9350; background: #fffdfa; }
.flow li::before { content: none; }
.flow summary {
  position: relative;
  display: block;
  min-height: 6.9rem;
  padding: .75rem 2.1rem .75rem .9rem;
  background: #ffebaf;
}
.flow summary::-webkit-details-marker { display: none; }
.flow summary::before { content: counter(step, decimal-leading-zero); display: block; color: #644208; font-weight: 800; }
.flow summary::after { content: "+"; position: absolute; top: .6rem; right: .85rem; font-size: 1.25rem; }
.flow details[open] summary::after { content: "−"; }
.flow summary:hover { text-decoration: underline; }
.flow summary:focus-visible { outline-offset: -4px; }
.flow li:nth-child(3n+2) { border-color: #689fa3; }
.flow li:nth-child(3n+2) summary { background: #cdeff1; }
.flow li:nth-child(3n+3) { border-color: #8f77bc; }
.flow li:nth-child(3n+3) summary { background: #e9dffc; }
.flow details p { padding: .8rem .9rem; margin: 0; }

.vendor { --vendor-tint: #dfedff; --vendor-edge: #6095cb; border-top: 5px solid var(--vendor-edge); }
.vendor:nth-child(3n+2) { --vendor-tint: #daefe8; --vendor-edge: #448975; }
.vendor:nth-child(3n+3) { --vendor-tint: #f0e6ff; --vendor-edge: #8864b1; }
.vendor:nth-child(4n) { --vendor-tint: #fff0c3; --vendor-edge: #a77824; border-color: #b99a52; }
.vendor h3 {
  padding: .7rem .9rem;
  margin: -1.2rem -1.2rem .8rem;
  border-radius: .62rem .62rem 0 0;
  background: var(--vendor-tint);
}
.filters { display: block; padding: .9rem 1rem; border: 1px solid #ae99d9; border-radius: .85rem; background: white; }
.filters fieldset { padding: 0; border: 0; margin: 0; min-width: 0; }
.filters legend { color: #45237e; font-weight: 800; padding: 0; }
.filter-options { display: flex; flex-wrap: wrap; gap: .48rem; margin: .55rem 0 .65rem; }
.filter-chip { position: relative; }
.filter-chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.filter-chip span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .42rem .75rem;
  border: 1px solid #9683bc;
  border-radius: .48rem;
  background: #f5eeff;
  color: #3e2369;
  font-weight: 720;
}
.filter-chip:hover span { background: #e8dbff; }
.filter-chip input:checked + span { color: #fff; background: #442477; border-color: #442477; }
.filter-chip input:focus-visible + span { outline: 3px solid #1677ff; outline-offset: 3px; }
.filters p { color: #45237e; font-weight: 720; }
.compare { background: #fff; }
.compare thead th, .compare tbody th { background: #23164c; color: white; }
.compare tbody tr:nth-child(even) { background: #f7f3ff; }
.question, .faq details { border-color: #ad9ecb; }
.question { border-top: 4px solid #8154be; }
.question details[open], .faq details[open] { background: #f5eeff; }

@media (max-width: 820px) {
  .editorial-split { grid-template-columns: minmax(0, 1fr); }
  .editorial-photo img { max-height: 300px; object-fit: cover; }
}
@media (max-width: 580px) {
  .flow summary { min-height: 0; }
  .hero-image { box-shadow: .22rem .25rem 0 #49d8c447, 0 0 1rem #459aff59; }
}

.erp-carousel {
  color: #fff;
  background: linear-gradient(120deg, #102346 10%, #202c66 60%, #243952);
}
.erp-carousel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  margin-bottom: 1rem;
}
.erp-carousel-heading p { margin: 0; color: #e4edff; }
.erp-carousel-controls { display: flex; gap: .55rem; }
.erp-carousel-controls button {
  min-width: 48px;
  min-height: 48px;
  border: 1px solid #a9c6ff;
  border-radius: .55rem;
  background: #e7efff;
  color: #172752;
  font: bold 1.38rem system-ui, sans-serif;
  cursor: pointer;
}
.erp-carousel-controls button:hover { background: #ffdf61; }
.erp-carousel-controls button:focus-visible, .erp-slide-list:focus-visible { outline-color: #ffdc4b; }
.erp-carousel-controls button:disabled { opacity: .52; cursor: default; }
.erp-slide-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3rem) / 4);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-color: #ccdbff #273860;
  list-style: none;
  margin: 0;
  padding: .25rem .1rem .9rem;
}
.erp-slide {
  --slide: #d9ebff;
  --slide-border: #56a8ff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  scroll-snap-align: start;
  background: var(--slide);
  color: #17233f;
  border: 2px solid var(--slide-border);
  box-shadow: 0 0 .45rem var(--slide-border);
  border-radius: .8rem;
  padding: 1rem;
  min-width: 0;
}
.erp-slide:nth-child(4n+2) { --slide: #ffedb1; --slide-border: #e5aa2a; }
.erp-slide:nth-child(4n+3) { --slide: #d6f4e8; --slide-border: #4cd4ad; }
.erp-slide:nth-child(4n+4) { --slide: #f0e0ff; --slide-border: #b48bf4; }
.erp-slide p { margin-bottom: .5rem; }
.erp-slide a { margin-top: auto; min-height: 44px; display: inline-flex; align-items: center; font-weight: 740; }
.vendor:target { outline: 3px solid #1658a8; outline-offset: 3px; }
.vendor { scroll-margin-top: 1rem; }

@media (max-width: 940px) {
  .erp-slide-list { grid-auto-columns: calc((100% - 2rem) / 3); }
}
@media (max-width: 700px) {
  .erp-slide-list { grid-auto-columns: calc((100% - 1rem) / 2); }
}
@media (max-width: 520px) {
  .erp-slide-list { grid-auto-columns: 83%; }
}
