/* Página de integraciones. Se apoya en solution.css y product.css (pd-*). Solo color de marca. */
.ih-hero .pd-hero__grid { align-items: center; }

/* ---------- Escena del hero: hub con herramientas en órbita ---------- */
.ih-scene { position: relative; container-type: inline-size; width: min(100%, 470px); aspect-ratio: 1; margin: 0 auto; }
.ih-wave { position: absolute; inset: 24%; border: 2px solid var(--c2); border-radius: 50%; opacity: 0; animation: ih-wave 4s ease-out infinite; }
.ih-wave--2 { animation-delay: 2s; }
.ih-core { position: absolute; left: 50%; top: 50%; z-index: 2; display: grid; place-items: center; width: 22cqw; height: 22cqw; margin: -11cqw 0 0 -11cqw; border-radius: 50%; background: #fff; box-shadow: 0 0 0 10px rgba(81, 217, 214, 0.25), 0 24px 44px -20px var(--c0); }
.ih-core img { width: 55%; height: auto; }
.ih-ring { position: absolute; inset: 0; animation: ih-spin 70s linear infinite; }
.ih-ring--in { animation-duration: 55s; animation-direction: reverse; }
.ih-ring::before { content: ""; position: absolute; left: 50%; top: 50%; border: 1.5px dashed rgba(11, 111, 108, 0.28); border-radius: 50%; transform: translate(-50%, -50%); }
.ih-ring--out::before { width: 86cqw; height: 86cqw; }
.ih-ring--in::before { width: 54cqw; height: 54cqw; }
.ih-item { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: rotate(var(--a)) translateX(var(--r)); }
.ih-ring--out { --r: 43cqw; --t: 14cqw; }
.ih-ring--in { --r: 27cqw; --t: 12cqw; }
.ih-tile { position: absolute; display: grid; place-items: center; width: var(--t); height: var(--t); margin: calc(var(--t) / -2) 0 0 calc(var(--t) / -2); padding: 22%; border: 1px solid var(--line); border-radius: 26%; background: #fff; box-shadow: 0 14px 26px -16px rgba(10, 79, 77, 0.6); animation: ih-counter 70s linear infinite; }
.ih-ring--in .ih-tile { animation-duration: 55s; animation-direction: reverse; }
.ih-tile img { width: 100%; height: 100%; object-fit: contain; }
.ih-badge { position: absolute; right: 0; bottom: -2%; z-index: 3; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--c1); box-shadow: 0 18px 30px -16px var(--c0); font-size: 0.85rem; font-weight: 800; color: #fff; animation: pd-float 6s ease-in-out infinite; }
.ih-badge svg { width: 18px; height: 18px; }
@keyframes ih-spin { to { transform: rotate(360deg); } }
@keyframes ih-counter { from { transform: rotate(calc(-1 * var(--a))); } to { transform: rotate(calc(-1 * var(--a) - 360deg)); } }
@keyframes ih-wave { 0% { transform: scale(0.7); opacity: 0.55; } 100% { transform: scale(1.5); opacity: 0; } }

/* ---------- Tres formas ---------- */
.ih-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.ih-way { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: 28px; background: #fff; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.ih-way:hover { transform: translateY(-6px); border-color: var(--c2); box-shadow: 0 24px 46px -28px var(--c1); }
.ih-way.is-featured { border: 2px solid var(--c2); background: linear-gradient(170deg, var(--soft), #fff 60%); box-shadow: 0 30px 56px -34px var(--c1); }
.ih-way__n { position: absolute; right: 22px; top: 18px; font-size: 3.2rem; font-weight: 900; line-height: 1; letter-spacing: -0.04em; color: rgba(81, 217, 214, 0.35); }
.ih-way__i { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 8px; border-radius: 16px; background: var(--soft); color: var(--c1); }
.ih-way.is-featured .ih-way__i { background: var(--c1); color: #fff; }
.ih-way__i svg { width: 26px; height: 26px; }
.ih-way__k { font-size: 0.74rem; font-weight: 800; letter-spacing: 0.07em; text-transform: uppercase; color: var(--c1); }
.ih-way__t { font-size: 1.25rem; font-weight: 800; line-height: 1.25; color: var(--ink); }
.ih-way__d { font-size: 0.95rem; line-height: 1.55; color: rgba(32, 32, 32, 0.74); }
.ih-way__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: auto 0 0; padding: 14px 0 0; list-style: none; }
.ih-way__tags li { padding: 5px 12px; border-radius: 999px; background: #f1f5f8; font-size: 0.8rem; font-weight: 700; color: rgba(32, 32, 32, 0.75); }
.ih-way.is-featured .ih-way__tags li { background: #fff; box-shadow: inset 0 0 0 1px var(--c2); color: var(--c1); }

/* ---------- Catálogo filtrable ---------- */
.ih-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 26px; }
.ih-tabs button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 0.9rem; font-weight: 700; color: var(--ink); cursor: pointer; transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease; }
.ih-tabs button:hover { border-color: var(--c2); }
.ih-tabs button em { padding: 1px 8px; border-radius: 999px; background: #eef2f6; font-style: normal; font-size: 0.74rem; font-weight: 800; color: rgba(32, 32, 32, 0.65); }
.ih-tabs button.is-on { border-color: var(--c1); background: var(--c1); color: #fff; }
.ih-tabs button.is-on em { background: rgba(255, 255, 255, 0.22); color: #fff; }
.ih-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.ih-tool { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px 12px 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; text-align: center; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; animation: pd-pop 0.4s ease both; }
.ih-tool:hover { transform: translateY(-5px); border-color: var(--c2); box-shadow: 0 18px 34px -24px var(--c1); }
.ih-tool[hidden] { display: none; }
.ih-tool__l { display: grid; place-items: center; width: 60px; height: 60px; }
.ih-tool__l img { max-width: 100%; max-height: 100%; object-fit: contain; }
.ih-tool__ico { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: var(--soft); color: var(--c1); }
.ih-tool__ico svg { width: 28px; height: 28px; }
.ih-tool__n { font-size: 0.88rem; font-weight: 800; line-height: 1.25; color: var(--ink); }

/* ---------- Qué conectar ---------- */
.ih-flows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ih-flow { padding: 24px 22px; border: 1px solid var(--line); border-radius: 24px; background: #fff; transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease; }
.ih-flow:hover { transform: translateY(-5px); border-color: var(--c2); box-shadow: 0 20px 40px -26px var(--c1); }
.ih-flow__route { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.ih-flow__route span { padding: 6px 14px; border-radius: 999px; background: var(--soft); font-size: 0.8rem; font-weight: 800; color: var(--c1); }
.ih-flow__route span:last-child { background: var(--c1); color: #fff; }
.ih-flow__route i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c2); }
.ih-flow__route svg { width: 14px; height: 14px; fill: none; stroke: #14201f; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ih-flow:hover .ih-flow__route i { animation: pd-flowdot 0.9s ease-in-out infinite; }
.ih-flow__t { margin-bottom: 6px; font-size: 1.1rem; font-weight: 800; line-height: 1.25; color: var(--ink); }
.ih-flow__d { font-size: 0.95rem; line-height: 1.5; color: rgba(32, 32, 32, 0.72); }

/* ---------- A medida ---------- */
.ih-blueprint { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 18px; padding: 22px 16px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 24px; background: rgba(255, 255, 255, 0.08); }
.ih-bp__node { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.1); text-align: center; }
.ih-bp__node b { font-size: 0.88rem; font-weight: 800; line-height: 1.2; }
.ih-bp__node small { font-size: 0.7rem; font-weight: 600; color: inherit; opacity: 0.85; }
.ih-bp__node svg { width: 24px; height: 24px; color: var(--c2); }
.ih-bp__node--main { background: var(--c2); color: #14201f; box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.5); }
.ih-bp__node--main svg { color: #14201f; }
.ih-bp__pipe { display: flex; flex-direction: column; gap: 4px; }
.ih-bp__pipe i { width: 7px; height: 7px; border-radius: 50%; background: var(--c2); animation: pd-flowdot 1.2s ease-in-out infinite; }
.ih-bp__pipe i:nth-child(2) { animation-delay: 0.2s; } .ih-bp__pipe i:nth-child(3) { animation-delay: 0.4s; }
.ih-process { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ih-process li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 18px; background: rgba(255, 255, 255, 0.08); }
.ih-process li > span { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--c2); font-size: 0.9rem; font-weight: 900; color: #14201f; }
.ih-process b { display: block; font-size: 0.98rem; font-weight: 800; }
.ih-process small { display: block; margin-top: 2px; font-size: 0.85rem; line-height: 1.4; opacity: 0.85; }

/* ---------- Formulario ---------- */
.ih-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 36px; align-items: center; padding: 40px; border: 1px solid var(--line); border-radius: 36px; background: linear-gradient(120deg, var(--soft), #fff 60%); box-shadow: 0 30px 60px -40px var(--c1); }
.ih-form__txt .sl-h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
.ih-form__list { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.ih-form__list li { display: flex; align-items: center; gap: 10px; font-size: 0.95rem; font-weight: 700; }
.ih-form__list i { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--c2); }
.ih-form__list svg { width: 12px; height: 12px; fill: none; stroke: #14201f; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ih-form__box { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 26px; background: #fff; box-shadow: 0 18px 40px -30px rgba(10, 79, 77, 0.6); }
.ih-f__l { font-size: 0.85rem; font-weight: 800; color: rgba(32, 32, 32, 0.75); }
.ih-f__ta, .ih-f__in { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; font: inherit; font-size: 0.97rem; color: var(--ink); resize: vertical; }
.ih-f__ta:focus, .ih-f__in:focus { border-color: var(--c2); outline: 3px solid rgba(81, 217, 214, 0.3); }
.ih-f__btn { justify-content: center; margin-top: 6px; }
.ih-form__ok { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border-radius: 22px; background: #fff; text-align: center; }
.ih-form__ok[hidden] { display: none; }
.ih-form__ok strong { font-size: 1.3rem; color: var(--c1); }

@media (max-width: 960px) {
  .ih-ways, .ih-flows { grid-template-columns: minmax(0, 1fr); }
  .ih-form { grid-template-columns: minmax(0, 1fr); padding: 24px; }
  .ih-scene { width: min(100%, 400px); }
}
@media (max-width: 520px) {
  .ih-blueprint { grid-template-columns: minmax(0, 1fr); }
  .ih-bp__pipe { flex-direction: row; justify-content: center; }
  .ih-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ih-tabs { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .ih-ring, .ih-tile, .ih-wave, .ih-badge, .ih-bp__pipe i, .ih-tool { animation: none; }
  .ih-tile { transform: rotate(calc(-1 * var(--a))); }
  .ih-way, .ih-flow { transition: none; }
}
