/* Fichas de servicios en la portada y páginas de detalle. */
#servicios-detalle {
  scroll-margin-top: 6rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem;
  background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
  color: #172033;
  overflow: hidden;
}
.ti-services-wrap { width: min(1120px, 100%); margin: 0 auto; }
.ti-services-intro { max-width: 760px; margin-bottom: 1.6rem; }
.ti-services-eyebrow { margin: 0 0 .5rem; color: #1d4ed8; font-size: .75rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.ti-services-intro h2 { margin: 0 0 .7rem; color: #172033; font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.15; letter-spacing: -.035em; }
.ti-services-intro > p:last-child { margin: 0; color: #52647b; line-height: 1.6; }
.ti-service-ribbon-shell { width: 100vw; max-width: 100vw; margin-top: 1.8rem; margin-left: calc(50% - 50vw); }
.ti-service-ribbon { position: relative; overflow: hidden; background: #1f4c91; box-shadow: 0 12px 26px rgba(21, 57, 111, .16); }
.ti-service-ribbon-track { display: flex; width: max-content; animation: ti-service-ribbon-scroll 42s linear infinite; will-change: transform; }
.ti-service-ribbon-group { display: flex; flex: 0 0 auto; align-items: center; gap: 1.15rem; padding: 1rem 1.1rem; }
@keyframes ti-service-ribbon-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ti-service-ribbon.is-paused .ti-service-ribbon-track { animation-play-state: paused; }
.ti-service-ribbon button { flex: 0 0 auto; padding: .15rem 0; border: 0; background: transparent; color: rgba(255, 255, 255, .78); font-size: .78rem; font-weight: 800; letter-spacing: .14em; white-space: nowrap; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; transition: color .2s ease, transform .2s ease; }
.ti-service-ribbon button:hover { color: #fff; transform: translateY(-1px); }
.ti-service-ribbon button[aria-selected="true"] { color: #fff; }
.ti-service-ribbon button[aria-selected="true"]::after { display: block; height: 2px; margin-top: .35rem; border-radius: 99px; background: #8ec5ff; content: ''; }
.ti-service-ribbon-group > span { flex: 0 0 auto; color: rgba(255, 255, 255, .45); font-size: .9rem; }
.ti-service-ribbon button:focus-visible { outline: 3px solid #b9dcff; outline-offset: 5px; border-radius: 3px; }
.ti-service-panel { position: relative; display: grid; grid-template-columns: auto minmax(0, 760px); justify-content: center; column-gap: clamp(1.5rem, 3vw, 3rem); width: min(1120px, calc(100% - 2rem)); min-height: 220px; margin: 1rem auto 0; overflow: hidden; border: 1px solid #dbe6f4; border-radius: 20px; background: #fff; box-shadow: 0 16px 38px rgba(15, 38, 78, .08); }
.ti-service-panel[hidden] { display: none; }
@keyframes ti-service-panel-enter { from { opacity: 0; transform: translateY(10px) scale(.992); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ti-service-panel-slide-left { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ti-service-panel-zoom { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@keyframes ti-service-panel-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ti-service-panel-flip { from { opacity: 0; transform: perspective(900px) rotateX(-8deg); transform-origin: top center; } to { opacity: 1; transform: perspective(900px) rotateX(0); } }
@keyframes ti-service-panel-pop { 0% { opacity: 0; transform: scale(.84); } 70% { opacity: 1; transform: scale(1.015); } 100% { opacity: 1; transform: scale(1); } }
@keyframes ti-service-panel-blur { from { opacity: 0; filter: blur(8px); transform: translateY(6px); } to { opacity: 1; filter: blur(0); transform: translateY(0); } }
@keyframes ti-service-panel-drift { from { opacity: 0; transform: translateX(20px) translateY(8px); } to { opacity: 1; transform: translateX(0) translateY(0); } }
@keyframes ti-service-panel-slide-right { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
@keyframes ti-service-panel-unfold { from { opacity: 0; transform: scaleY(.75); transform-origin: top center; } to { opacity: 1; transform: scaleY(1); } }
@keyframes ti-service-panel-rotate { from { opacity: 0; transform: rotate(-1.5deg) translateY(12px); } to { opacity: 1; transform: rotate(0) translateY(0); } }
@keyframes ti-service-panel-reveal { from { opacity: 0; clip-path: inset(0 14% 0 0 round 20px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 20px); } }
@keyframes ti-service-panel-drop { from { opacity: 0; transform: translateY(-24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ti-service-panel-expand { from { opacity: 0; transform: scaleX(.9); transform-origin: center; } to { opacity: 1; transform: scaleX(1); } }
@keyframes ti-service-panel-image-enter { from { opacity: 0; transform: translateX(-12px) scale(.97); } to { opacity: 1; transform: translateX(0) scale(1); } }
@keyframes ti-service-panel-copy-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.ti-service-panel.is-entering { animation: ti-service-panel-enter .48s cubic-bezier(.2, .75, .25, 1) both; }
.ti-service-panel.is-entering[data-service-animation="soporte"] { animation-name: ti-service-panel-slide-left; }
.ti-service-panel.is-entering[data-service-animation="seguridad"] { animation-name: ti-service-panel-zoom; }
.ti-service-panel.is-entering[data-service-animation="infraestructura"] { animation-name: ti-service-panel-rise; }
.ti-service-panel.is-entering[data-service-animation="office"] { animation-name: ti-service-panel-flip; }
.ti-service-panel.is-entering[data-service-animation="antivirus"] { animation-name: ti-service-panel-pop; }
.ti-service-panel.is-entering[data-service-animation="personalizacion"] { animation-name: ti-service-panel-blur; }
.ti-service-panel.is-entering[data-service-animation="servicios"] { animation-name: ti-service-panel-drift; }
.ti-service-panel.is-entering[data-service-animation="tickets"] { animation-name: ti-service-panel-slide-right; }
.ti-service-panel.is-entering[data-service-animation="respaldos"] { animation-name: ti-service-panel-unfold; }
.ti-service-panel.is-entering[data-service-animation="automatizacion"] { animation-name: ti-service-panel-rotate; }
.ti-service-panel.is-entering[data-service-animation="consultoria"] { animation-name: ti-service-panel-reveal; }
.ti-service-panel.is-entering[data-service-animation="renta"] { animation-name: ti-service-panel-drop; }
.ti-service-panel.is-entering[data-service-animation="venta"] { animation-name: ti-service-panel-expand; }
.ti-service-panel.is-entering .ti-service-panel-media { animation: ti-service-panel-image-enter .52s cubic-bezier(.2, .75, .25, 1) .04s both; }
.ti-service-panel.is-entering .ti-service-panel-copy > * { animation: ti-service-panel-copy-enter .4s cubic-bezier(.2, .75, .25, 1) both; }
.ti-service-panel.is-entering .ti-service-panel-label { animation-delay: .1s; }
.ti-service-panel.is-entering .ti-service-panel-copy h3 { animation-delay: .15s; }
.ti-service-panel.is-entering .ti-service-panel-description { animation-delay: .2s; }
.ti-service-panel.is-entering .ti-service-panel-list { animation-delay: .25s; }
.ti-service-panel.is-entering .ti-service-panel-link { animation-delay: .31s; }
.ti-service-panel.is-entering .ti-service-ribbon-resume { animation-delay: .36s; }
.ti-service-panel.is-entering .ti-service-panel-list li { animation: ti-service-panel-copy-enter .34s cubic-bezier(.2, .75, .25, 1) both; }
.ti-service-panel.is-entering .ti-service-panel-list li:nth-child(1) { animation-delay: .3s; }
.ti-service-panel.is-entering .ti-service-panel-list li:nth-child(2) { animation-delay: .36s; }
.ti-service-panel.is-entering .ti-service-panel-list li:nth-child(3) { animation-delay: .42s; }
.ti-service-panel-close { position: absolute; z-index: 2; top: .6rem; right: .6rem; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid rgba(203, 217, 237, .9); border-radius: 999px; background: rgba(255, 255, 255, .92); color: #172033; font-size: 1.1rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(15, 38, 78, .1); }
.ti-service-panel-close:hover { background: #172033; color: #fff; }
.ti-service-panel-close:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
.ti-service-panel-media { position: relative; display: grid; width: min(300px, 30vw); height: 220px; min-height: 0; margin: 1rem 0 1rem 1rem; place-items: center; overflow: hidden; border-radius: 14px; background: linear-gradient(145deg, #0a2850, #174f86); }
.ti-service-panel-media img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; object-position: center; }
.ti-service-panel-media[data-service-image] { background: transparent; }
.ti-service-panel-media[data-service-image="seguridad"] { width: min(120px, 20vw); }
.ti-service-panel-media[data-service-image="infraestructura"] { width: min(165px, 24vw); }
.ti-service-panel-media img[hidden], .ti-service-panel-fallback[hidden] { display: none; }
.ti-service-panel-fallback { display: grid; height: 100%; min-height: 0; place-items: center; color: rgba(255, 255, 255, .92); font-size: clamp(4rem, 9vw, 7rem); font-weight: 850; letter-spacing: -.08em; }
.ti-service-panel-copy { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(210px, .85fr); align-items: center; gap: clamp(1.2rem, 3vw, 2.3rem); width: 100%; max-width: 760px; padding: 1.15rem 0; }
.ti-service-panel-copy-main { min-width: 0; }
.ti-service-panel-label { margin: 0 0 .4rem; color: #2563eb; font-size: .7rem; font-weight: 850; letter-spacing: .14em; }
.ti-service-panel-copy h3 { margin: 0 0 .45rem; color: #172033; font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; letter-spacing: -.035em; }
.ti-service-panel-description { max-width: 620px; margin: 0 0 .15rem; color: #52647b; font-size: .95rem; line-height: 1.45; }
.ti-service-panel-list { display: grid; width: min(100%, 620px); gap: .35rem; margin: .7rem 0 .75rem; padding: .7rem 0 0; border-top: 1px solid #e5edf8; list-style: none; color: #334968; font-size: .92rem; line-height: 1.35; }
.ti-service-panel-list li { display: flex; align-items: flex-start; gap: .55rem; }
.ti-service-panel-list li::before { position: static; display: grid; flex: 0 0 1.05rem; width: 1.05rem; height: 1.05rem; margin-top: .08rem; place-items: center; border-radius: 999px; background: #e8f1ff; color: #2563eb; content: '✓'; font-size: .68rem; font-weight: 850; }
.ti-service-panel-link { margin-top: .1rem; color: #1d4ed8; font-weight: 800; text-decoration: none; }
.ti-service-panel-link:hover { text-decoration: underline; }
.ti-service-panel-link:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; border-radius: 3px; }
.ti-service-panel-outcome { position: relative; align-self: stretch; padding: 1.05rem 1.1rem 1.1rem; border: 1px solid #dbe7f5; border-radius: 16px; background: linear-gradient(145deg, #f7fbff, #edf5ff); box-shadow: inset 3px 0 #2563eb; }
.ti-service-panel-outcome-kicker { margin: 0 0 .45rem; color: #2563eb; font-size: .66rem; font-weight: 850; letter-spacing: .14em; }
.ti-service-panel-outcome h4 { margin: 0 0 .45rem; color: #173c78; font-size: 1.08rem; line-height: 1.2; letter-spacing: -.02em; }
.ti-service-panel-outcome > p:not(.ti-service-panel-outcome-kicker) { margin: 0; color: #52647b; font-size: .84rem; line-height: 1.42; }
.ti-service-panel-outcome ol { display: grid; gap: .45rem; margin: .9rem 0 0; padding: 0; counter-reset: service-step; list-style: none; }
.ti-service-panel-outcome li { display: grid; grid-template-columns: 1.45rem minmax(0, 1fr); align-items: center; gap: .45rem; color: #334968; font-size: .8rem; font-weight: 750; line-height: 1.25; }
.ti-service-panel-outcome li::before { display: grid; width: 1.45rem; height: 1.45rem; place-items: center; border: 1px solid #c9dcf7; border-radius: 999px; background: #fff; color: #2563eb; content: counter(service-step, decimal-leading-zero); counter-increment: service-step; font-size: .65rem; font-weight: 850; }
.ti-service-ribbon-resume { display: inline-flex; margin-top: .55rem; padding: .28rem .6rem; border: 1px solid #cbd9ed; border-radius: 999px; background: #f7faff; color: #52647b; font-size: .7rem; font-weight: 800; cursor: pointer; }
.ti-service-ribbon-resume:hover { border-color: #1d4ed8; color: #1d4ed8; }
.ti-service-ribbon-resume:focus-visible { outline: 3px solid #60a5fa; outline-offset: 3px; }
/* Páginas estáticas: su contenido sigue disponible aunque JavaScript no cargue. */
body.ti-detail-page { margin: 0; background: #f7faff; color: #172033; font-family: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.6; }
.ti-detail-page * { box-sizing: border-box; }
.ti-detail-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem max(1.25rem, calc((100vw - 1120px) / 2)); border-bottom: 1px solid #e2eaf5; background: #fff; }
.ti-detail-brand { display: inline-flex; align-items: center; gap: .45rem; color: #172033; font-size: 1rem; font-weight: 800; text-decoration: none; white-space: nowrap; }
.ti-detail-brand img { display: block; width: 116px; height: auto; }
.ti-detail-back { color: #1d4ed8; font-weight: 750; text-decoration: none; }
.ti-detail-back:hover { text-decoration: underline; }
.ti-detail-page a:focus-visible { outline: 3px solid #60a5fa; outline-offset: 4px; border-radius: 4px; }
.ti-detail-main { width: min(1120px, calc(100% - 2.5rem)); margin: 0 auto; padding: clamp(2rem, 5vw, 4.5rem) 0 4rem; }
.ti-detail-breadcrumb { margin: 0 0 1.5rem; color: #64748b; font-size: .9rem; }
.ti-detail-breadcrumb a { color: #1d4ed8; text-decoration: none; }
.ti-detail-hero { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid #dbe6f4; border-radius: 24px; background: linear-gradient(135deg, #fff 35%, #edf5ff); box-shadow: 0 20px 50px rgba(15, 38, 78, .07); }
.ti-detail-hero h1 { margin: 0 0 1rem; color: #172033; font-size: clamp(2.15rem, 5vw, 3.7rem); line-height: 1.07; letter-spacing: -.045em; }
.ti-detail-hero .ti-detail-lead { max-width: 680px; margin: 0 0 1.5rem; color: #52647b; font-size: clamp(1rem, 1.7vw, 1.18rem); }
.ti-detail-button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .72rem 1.1rem; border-radius: 9px; background: #1d4ed8; color: #fff !important; font-weight: 750; text-decoration: none; box-shadow: 0 8px 20px rgba(29, 78, 216, .18); }
.ti-detail-button:hover { background: #1e40af; }
.ti-detail-aside { padding: 1.2rem; border: 1px solid #dbe6f4; border-radius: 16px; background: #fff; }
.ti-detail-aside strong { display: block; margin-bottom: .35rem; color: #1d4ed8; }
.ti-detail-aside p { margin: 0; color: #52647b; }
.ti-detail-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.ti-detail-panel { padding: clamp(1.4rem, 3vw, 2rem); border: 1px solid #dbe6f4; border-radius: 18px; background: #fff; }
.ti-detail-panel h2 { margin: 0 0 .7rem; color: #172033; font-size: 1.45rem; }
.ti-detail-panel p { margin: 0; color: #52647b; }
.ti-detail-panel ul, .ti-detail-panel ol { margin: .3rem 0 0; padding-left: 1.25rem; color: #52647b; }
.ti-detail-panel li + li { margin-top: .55rem; }
.ti-detail-next { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 1rem; padding: 1.5rem 2rem; border-radius: 18px; background: #eaf2ff; }
.ti-detail-next h2 { margin: 0 0 .25rem; font-size: 1.3rem; }
.ti-detail-next p { margin: 0; color: #52647b; }
.ti-detail-footer { padding: 1.5rem; border-top: 1px solid #dbe6f4; background: #fff; color: #64748b; text-align: center; font-size: .9rem; }
.ti-detail-footer a { color: #1d4ed8; }
@media (max-width: 850px) { .ti-detail-hero, .ti-detail-columns { grid-template-columns: 1fr; } .ti-service-panel { grid-template-columns: auto minmax(0, 1fr); column-gap: 1.25rem; width: calc(100% - 1.5rem); } .ti-service-panel-media { height: 195px; } }
@media (max-width: 760px) { .ti-service-ribbon-shell { width: calc(100% + 2.5rem); max-width: none; margin-left: -1.25rem; } }
@media (max-width: 560px) { .ti-service-ribbon-group { gap: .85rem; padding: .85rem .9rem; } .ti-service-ribbon button { font-size: .68rem; letter-spacing: .11em; } .ti-service-panel { display: block; width: calc(100% - 1rem); } .ti-service-panel-media, .ti-service-panel-media img, .ti-service-panel-fallback, .ti-service-panel-media[data-service-image="seguridad"], .ti-service-panel-media[data-service-image="infraestructura"] { width: 100%; min-height: 0; height: 155px; } .ti-service-panel-media { margin: 0; border-radius: 14px 14px 0 0; } .ti-service-panel-copy { display: block; min-height: 0; padding: 1.1rem; } .ti-service-panel-copy h3 { font-size: 1.45rem; } .ti-service-panel-description { font-size: .92rem; } .ti-service-panel-list { margin: .7rem 0 .85rem; font-size: .88rem; } .ti-service-panel-outcome { margin-top: 1rem; } }
@media (prefers-reduced-motion: reduce) { .ti-service-ribbon-track { animation: none; } .ti-service-ribbon button, .ti-service-panel { transition: none; } .ti-service-panel.is-entering, .ti-service-panel.is-entering .ti-service-panel-media, .ti-service-panel.is-entering .ti-service-panel-copy > *, .ti-service-panel.is-entering .ti-service-panel-list li { animation: none; } }
@media (max-width: 560px) { .ti-detail-header { flex-wrap: wrap; } .ti-detail-brand img { width: 92px; } .ti-detail-next { display: block; padding: 1.4rem; } .ti-detail-next .ti-detail-button { margin-top: 1rem; } }
