/* ==========================================================================
   ITPS One · Secciones v2
   Cada sección hereda el fondo animado de la página y define su propia escala.
   ========================================================================== */

/* ---------- Banda cinética ---------- */
.kinetic {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 6vw, 110px) 0;
  color: var(--on-dark);
}
.kinetic-row {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.4vw, 46px);
  width: max-content;
  translate: var(--mx, 0) 0;
  font-size: clamp(58px, 9.6vw, 190px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.06em;
  white-space: nowrap;
  will-change: translate;
}
.kinetic-row + .kinetic-row { margin-top: clamp(4px, .8vw, 14px); }
.kinetic-row i { flex: none; width: .26em; height: .26em; border-radius: 50%; background: var(--mint); }
.kinetic-row-outline { margin-left: -12vw; color: transparent; -webkit-text-stroke: 1.5px #ffffff59; }
.kinetic-row-outline i { background: var(--indigo-soft); }

/* ---------- Común a secciones de contenido ---------- */
.official-section, .institutional-section, .capabilities, .official-contact {
  padding-block: clamp(80px, 10vw, 180px);
}
:is(.official-section, .official-contact, .institutional-section, .capabilities) { scroll-margin-top: 60px; }
[data-theme="paper"] .section-lead, [data-theme="light"] .section-lead { color: var(--muted); opacity: 1; }
[data-theme="dark"] .section-lead, [data-theme="deep"] .section-lead, [data-theme="indigo"] .section-lead { color: var(--on-dark-2); opacity: 1; }
:is([data-theme="paper"], [data-theme="light"]) .eyebrow { color: #3f4566; }
:is([data-theme="dark"], [data-theme="deep"], [data-theme="indigo"]) .eyebrow { color: var(--mint-soft); }

.offer-problem { max-width: 46ch; font-size: .98rem; line-height: 1.5; }
.offer-problem b {
  display: block;
  margin-bottom: .35rem;
  color: #1f8a70;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.offer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1.4rem; margin-top: 1.4rem; }
.offer-primary { background: var(--ink); color: #fff; }
.offer-primary:hover { background: var(--indigo); }
.offer-ext { font-family: Arial, sans-serif; }

/* ---------- 04 · Ecosistema SAP (fondo oscuro) ---------- */
#region {
  --region-ink: #1b2035;
  background: transparent;
  color: var(--on-dark);
  padding-block: clamp(80px, 9vw, 170px);
}
#region .region-head { color: var(--on-dark); }
#region .region-head h2 { font-size: clamp(50px, 7vw, 138px); line-height: .92; letter-spacing: -.066em; font-weight: 700; }
#region .region-head h2 em { color: var(--mint-soft); }
#region .region-description { color: var(--on-dark-2); }
#region .region-atlas {
  margin-top: clamp(20px, 3vw, 50px);
  border: 0;
  border-radius: clamp(20px, 2.4vw, 36px);
  box-shadow: 0 60px 120px -40px #000000c0, 0 0 0 1px #ffffff14;
  color: var(--region-ink);
}
#region .region-links { color: var(--on-dark-2); }
#region .region-links a:hover { color: #fff; }
#region .text-action:hover { color: var(--mint-soft); }

/* ---------- 05 · Cumplimiento y Tax ---------- */
.official-compliance { background: transparent; color: var(--ink); }
.official-compliance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(16rem, 1fr);
  align-items: start;
  gap: clamp(1.5rem, 4.5vw, 5rem);
}
.official-compliance-topics { border-top: 1px solid var(--line); }
.official-compliance-topics details { border-bottom: 1px solid var(--line); }
.official-compliance-topics summary {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 2.6rem;
  align-items: center;
  gap: 1rem;
  padding-block: clamp(1.2rem, 2vw, 2rem);
  list-style: none;
  cursor: pointer;
}
.official-compliance-topics summary::-webkit-details-marker { display: none; }
.official-compliance-topics summary::after {
  content: "";
  justify-self: end;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 12px no-repeat;
  transition: rotate .45s var(--ease), background-color .3s, color .3s;
}
.official-compliance-topics details[open] summary::after { rotate: 45deg; background-color: var(--ink); color: #fff; }
.topic-index { color: #8a8fac; font-size: .8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.topic-text { display: grid; gap: .3rem; }
.topic-name { font-size: clamp(1.4rem, 2.5vw, 2.6rem); font-weight: 700; letter-spacing: -.05em; line-height: 1.04; transition: color .3s; }
.topic-hint { color: var(--muted); font-size: .95rem; line-height: 1.45; }
.official-compliance-topics details[open] :is(.topic-name, .topic-index) { color: var(--indigo); }
.official-compliance-topics summary:hover .topic-name { color: var(--indigo); }
.official-compliance-topics picture { display: block; padding: .2rem 0 1.6rem 4rem; }
.official-compliance-topics details[open] picture { animation: topic-open .7s var(--ease); }
@keyframes topic-open { from { opacity: 0; transform: translateY(-14px); filter: blur(6px); } }
.official-compliance-topics img { display: block; width: 100%; height: auto; border-radius: 18px; }
.official-whitepaper {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: clamp(1.5rem, 2.6vw, 2.6rem);
  border-radius: 28px;
  background: var(--ink);
  color: var(--on-dark);
  box-shadow: 0 40px 80px -40px #11132a99;
}
.official-whitepaper .offer-problem { margin-bottom: 1.4rem; padding-bottom: 1.3rem; border-bottom: 1px solid var(--line-dark); color: var(--on-dark); }
.official-whitepaper .offer-problem b { color: var(--mint-soft); }
.official-whitepaper h3 { font-size: clamp(1.3rem, 1.8vw, 1.8rem); letter-spacing: -.04em; line-height: 1.1; margin-bottom: .6rem; }
.official-whitepaper > p:not(.offer-problem) { color: var(--on-dark-2); line-height: 1.55; font-size: .95rem; }
.official-whitepaper .offer-primary { background: var(--mint-soft); color: var(--ink); }
.official-whitepaper .offer-primary:hover { background: #fff; }

/* ---------- 06 · Servicios ---------- */
.capabilities { background: transparent; color: var(--on-dark); padding-bottom: 0; }
.services-anchor { display: block; height: 0; }
.services-fallback { display: grid; gap: .8rem; padding-bottom: 3rem; }
.services-fallback .text-action { justify-self: start; }
itps-gallery .ig-sequence { background: transparent; }

/* ---------- 10 · Clientes y casos ---------- */
.ix-clientes { background: transparent; }
.ix-clientes-label { display: inline-flex; align-items: center; gap: .9em; font-size: .7rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
#ix-clientes-title { font-size: clamp(40px, 4.6vw, 86px); }
.ix-cases { margin-top: clamp(40px, 6vw, 100px); }
#ix-cases-title { font-size: clamp(36px, 4.4vw, 80px); font-weight: 700; letter-spacing: -.06em; line-height: .95; margin-bottom: clamp(20px, 2.6vw, 40px); }
.ix-cb-kicker, .ix-cb-result dt { margin: 1.1rem 0 .25rem; color: #1f8a70; font-size: .68rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.ix-cb-copy .ix-cb-kicker + .ix-cb-work { margin-top: 0; }
.ix-cb-result dt { margin-top: 0; }
.ix-cb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; margin-top: clamp(1.1rem, 1.6vw, 1.8rem); }
.ix-cb-actions .ix-cb-zoom { position: static; width: auto; height: auto; padding: 0; display: inline-flex; }
.ix-cb-actions .ix-cb-zoom span { min-height: 46px; padding: .7rem 1.2rem; border-color: var(--ink); background: var(--ink); color: #fff; font-size: .95rem; box-shadow: none; }
.ix-cb-actions .ix-cb-zoom:hover span { background: var(--indigo); border-color: var(--indigo); }
.ix-casebrowser .ix-cb-actions a.ix-cb-link { margin: 0; border: 1px solid #cfcfe2; background: #fff; color: var(--ink); }
.ix-casebrowser .ix-cb-actions a.ix-cb-link:hover { background: #f1f0fb; }
.ix-cb-paper { border-radius: 30px !important; overflow: hidden; box-shadow: 0 40px 80px -50px #11132a66 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  .official-compliance-layout { grid-template-columns: minmax(0, 1fr); }
  .official-whitepaper { position: static; }
  .official-compliance-topics picture { padding-left: 0; }
}
@media (max-width: 600px) {
  .official-compliance-topics summary { grid-template-columns: 1.8rem minmax(0, 1fr) 2.4rem; gap: .6rem; }
  .official-compliance-topics summary::after { width: 2.4rem; height: 2.4rem; }
  .kinetic-row { font-size: clamp(48px, 15vw, 90px); }
}
