/* Servicios del inicio */
body #services.si { padding: 100px 0; }
body .si-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 14px; }
body .si-panel { position: relative; overflow: hidden; border-radius: 34px; background: var(--lime); min-height: 700px; isolation: isolate; }
body .si-panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(118deg, transparent 34%, rgba(255,255,255,.28) 34% 50%, transparent 50%), linear-gradient(62deg, transparent 58%, rgba(13,13,14,.06) 58% 72%, transparent 72%); }
body #services .si-panel h2 { color: #0D0D0E; font-size: clamp(2.4rem, 4vw, 3.7rem); font-weight: 800; line-height: 1.02; letter-spacing: -1.5px; margin: 0; padding: 36px 36px 0; max-width: 480px; text-align: left; text-transform: none; }
body .si-panel img { position: absolute; right: -2%; bottom: -8px; width: auto; height: 72%; max-width: none; }
body .si-grid { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: minmax(0, 1fr); gap: 14px; }
body .si-card { --n: 66px; --r: 22px; --c: #4E4E4E; position: relative; display: block; min-height: 164px; padding: 24px 24px 70px; border-radius: 26px; color: #fff; isolation: isolate; }
body .si-card::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 26px 26px 0 26px; background: var(--c); transition: background-color .3s;
  --m: linear-gradient(#000 0 0) 0 0 / 100% calc(100% - var(--n) - var(--r) + 1px), linear-gradient(#000 0 0) 0 0 / calc(100% - var(--r) + 1px) calc(100% - var(--n)), linear-gradient(#000 0 0) 0 0 / calc(100% - var(--w, var(--n))) calc(100% - var(--r) + 1px), linear-gradient(#000 0 0) 0 0 / calc(100% - var(--w, var(--n)) - var(--r) + 1px) 100%, radial-gradient(circle var(--r), #000 97%, transparent) right 0 bottom var(--n) / calc(2 * var(--r)) calc(2 * var(--r)), radial-gradient(circle var(--r), #000 97%, transparent) right var(--w, var(--n)) bottom 0 / calc(2 * var(--r)) calc(2 * var(--r)), radial-gradient(circle var(--r) at 100% 100%, transparent 97%, #000) right calc(var(--w, var(--n)) - var(--r) + .5px) bottom calc(var(--n) - var(--r) + .5px) / var(--r) var(--r);
  -webkit-mask: var(--m); mask: var(--m); -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
body #services .si-card h3 { color: inherit; font-size: 1.3rem; font-weight: 800; line-height: 1.15; margin: 0 0 8px; transition: color .3s; }
body .si-card p { margin: 0; font-size: .95rem; line-height: 1.4; color: rgba(255,255,255,.88); transition: color .3s; }
body .si-go, body .si-fila > span { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--lime); color: #0D0D0E; font-size: 1.25rem; transition: background-color .3s, color .3s; }
body .si-go { position: absolute; right: 0; bottom: 0; }
body .si-card:is(:hover, :focus-visible, :active) { --c: var(--lime); color: #0D0D0E; }
body .si-card:is(:hover, :focus-visible, :active) p { color: #0D0D0E; }
body .si-card:is(:hover, :focus-visible, :active) :is(.si-go, .si-ult) { background: #fff; color: #0D0D0E; }
body #services .si-card:focus-visible { outline: 2px solid var(--cta-yellow); outline-offset: 3px; }
body .si-todos { grid-column: 1 / -1; --w: 424px; }
body .si-fila { position: absolute; right: 0; bottom: 0; display: flex; gap: 6px; }
body .si-fila > span { background: var(--surface-2); color: var(--lime); border: 1px solid #55555a; }
body .si-fila > .si-ult { background: var(--lime); color: #0D0D0E; border-color: transparent; }
@media (max-width: 1199.98px) { body .si-card { padding: 20px 18px 70px; } body #services .si-card h3 { font-size: 1.15rem; } }
@media (max-width: 991.98px) { body .si-in { grid-template-columns: minmax(0, 1fr); } body .si-panel { min-height: 560px; } body .si-panel img { height: 74%; right: 4%; } }
@media (max-width: 575.98px) {
  body #services.si { padding: 60px 0; }
  body .si-panel { min-height: 500px; border-radius: 28px; }
  body #services .si-panel h2 { padding: 26px 24px 0; font-size: 2.4rem; }
  body .si-panel img { height: 70%; right: -4%; }
  body .si-grid { gap: 10px; }
  body .si-card { --n: 54px; --r: 18px; padding: 18px 14px 62px; border-radius: 22px; min-height: 190px; }
  body #services .si-card h3 { font-size: 1.05rem; overflow-wrap: anywhere; }
  body .si-card p { font-size: .86rem; }
  body .si-go { width: 44px; height: 44px; font-size: 1.05rem; }
  body .si-todos { --w: 262px; min-height: 118px; padding-bottom: 62px; }
  body .si-fila { gap: 3px; } body .si-fila > span { width: 33px; height: 33px; font-size: .85rem; } body .si-fila { bottom: 5px; right: 2px; }
}
@media (max-width: 359.98px) { body .si-grid { grid-template-columns: 1fr; } body .si-card { min-height: 130px; } }
@media (prefers-reduced-motion: reduce) { body .si * , body .si-card::before { transition: none; } }
/* título en tres líneas */
body #services .si-panel h2 { max-width: 6.2em; font-size: clamp(2.8rem, 4.9vw, 4.1rem); }
@media (max-width: 991.98px) { body #services .si-panel h2 { font-size: 3.4rem; } body .si-grid { grid-auto-rows: auto; } }
@media (max-width: 575.98px) { body #services .si-panel h2 { font-size: 2.7rem; } body .si-panel { min-height: 540px; } body .si-panel img { height: 66%; } body #services .si-todos { padding-bottom: 76px; } }
@media (min-width: 992px) { body .si-panel img { height: 69%; } }
@media (max-width: 359.98px) { body .si-todos { --w: 236px; } body .si-fila { gap: 2px; } body .si-fila > span { width: 29px; height: 29px; font-size: .78rem; } body .si-fila { bottom: 7px; } }
/* Nueve servicios: la fila de iconos de "Ver todos" más compacta */
body .si-todos { --w: 474px; }
body .si-fila { gap: 4px; }
body .si-fila > span { width: 44px; height: 44px; font-size: 1.05rem; }
@media (max-width: 575.98px) { body .si-todos { --w: 288px; } body .si-fila { gap: 2px; } body .si-fila > span { width: 27px; height: 27px; font-size: .72rem; } }
@media (max-width: 359.98px) { body .si-todos { --w: 240px; } body .si-fila > span { width: 22px; height: 22px; font-size: .6rem; } }
/* Si el número de servicios es impar, el último ocupa el ancho completo (sin hueco) */
body .si-grid > .si-card:nth-last-child(2):nth-child(odd) { grid-column: 1 / -1; min-height: 140px; }
@media (max-width: 359.98px) { body .si-grid > .si-card:nth-last-child(2):nth-child(odd) { grid-column: auto; } }
