/* GEMA, plantilla de páginas de servicio. Se carga después de gema.css y usa sus mismos tokens. */
/* ---------- Cabecera ---------- */
.shead { padding: 128px 0 56px; background: linear-gradient(180deg, var(--plum-soft) 0%, var(--bg) 100%); }
.shead__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.crumbs a:hover { color: var(--plum); }
.crumbs i { font-size: 12px; color: var(--steel); }
.crumbs span { color: var(--ink); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.aud { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 99px; background: #fff; color: var(--plum); font-weight: 600; font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.shead h1 { margin-top: 16px; font-size: clamp(38px, 4.8vw, 64px); letter-spacing: -0.035em; max-width: 14ch; }
.shead .lead { margin-top: 18px; }
.shead__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; font-size: 15px; font-weight: 500; }
.facts li { display: flex; align-items: center; gap: 8px; }
.facts i { font-size: 20px; color: var(--plum); }
.shead__photo { position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--steel-soft); }
.shead__photo img { width: 100%; height: 100%; object-fit: cover; }
.shead__badge { position: absolute; left: 16px; bottom: 16px; max-width: 330px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #fff; font-size: 14.5px; line-height: 1.4; color: var(--muted); box-shadow: 0 20px 40px -20px rgba(40, 12, 32, .45); transition: transform .4s var(--ease); }
.shead__badge b { color: var(--ink); }
.shead__badge > i { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--plum-soft); color: var(--plum); }
a.shead__badge:hover { transform: translateY(-3px); }

/* ---------- Navegación entre servicios ---------- */
.schips { display: none; }
.sbody { padding: 56px 0 var(--sec); }
.sbody__grid { display: grid; grid-template-columns: 272px 1fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.sside { position: sticky; top: 104px; display: grid; gap: 12px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.sside nav { padding: 18px 10px 12px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sside__title { padding: 0 10px 4px; font-family: var(--display); font-weight: 600; font-size: 17px; }
.sside__group p { display: flex; align-items: center; gap: 6px; padding: 12px 10px 4px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.sside__group a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; font-size: 15px; font-weight: 500; line-height: 1.3; transition: background .2s, color .2s; }
.sside__group a i { font-size: 18px; color: var(--steel); transition: color .2s; }
.sside__group a:hover { background: var(--plum-soft); color: var(--plum); }
.sside__group a:hover i { color: var(--plum); }
.sside__group a[aria-current] { background: var(--plum); color: #fff; }
.sside__group a[aria-current] i { color: #fff; }
.sside__help { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 18px; background: var(--plum-deep); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.3; transition: background .2s; }
.sside__help i { font-size: 26px; }
.sside__help small { display: block; margin-top: 2px; font-weight: 500; font-size: 13.5px; color: rgba(255, 255, 255, .75); }
.sside__help:hover { background: var(--plum); }

/* ---------- Contenido ---------- */
.scontent { display: grid; gap: clamp(48px, 5vw, 64px); min-width: 0; }
.sblock__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.sblock h2 { font-size: clamp(26px, 2.6vw, 34px); }
.sblock__note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.count { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: var(--plum-soft); color: var(--plum); font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Segmentos: título + texto del cliente */
.segs { display: grid; }
.seg { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: 12px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.seg h3 { display: flex; gap: 14px; font-size: 20px; letter-spacing: -0.015em; line-height: 1.25; }
.seg h3 span { flex: none; padding-top: 3px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--plum); }
.seg__text { display: grid; gap: 12px; color: var(--muted); line-height: 1.65; }
.seg__list { display: grid; gap: 6px; }
.seg__list--cols { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.seg__list li { position: relative; padding-left: 18px; line-height: 1.5; }
.seg__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--plum); }
.sblock__about { display: grid; gap: 12px; margin: 16px 0 8px; padding: 24px 26px; border-radius: var(--r-card); background: var(--steel-soft); color: var(--muted); line-height: 1.65; }
.seg__group { margin-top: 36px; padding: 0 0 14px; border-bottom: 1.5px solid var(--plum); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--plum); }

/* Tarjetas: viñetas del cliente */
.icards { margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.icard { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, transform .4s var(--ease); }
.icard:hover { box-shadow: inset 0 0 0 1.5px var(--plum); transform: translateY(-3px); }
.icard__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 21px; background: var(--plum-soft); color: var(--plum); transition: background .25s, color .25s; }
.icard:hover .icard__icon { background: var(--plum); color: #fff; }
.icard h3 { font-size: 17px; letter-spacing: -0.015em; line-height: 1.2; }

/* Cierre (igual en todos los servicios) */
.scta { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center; padding: clamp(32px, 4vw, 48px); border-radius: 28px; background: var(--plum); color: #fff; }
.scta::after { content: ""; position: absolute; width: 360px; height: 360px; right: -150px; bottom: -190px; border-radius: 50%; border: 52px solid rgba(255, 255, 255, .07); pointer-events: none; }
.scta h2 { font-size: clamp(26px, 2.6vw, 34px); }
.scta p { margin-top: 10px; color: rgba(255, 255, 255, .82); max-width: 44ch; }
.scta__actions { position: relative; z-index: 1; display: grid; gap: 10px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pager a { display: grid; gap: 4px; padding: 20px 22px; border-radius: var(--r-card); background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s; }
.pager a:hover { box-shadow: inset 0 0 0 1.5px var(--plum); }
.pager span { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--muted); }
.pager b { font-family: var(--display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.pager__next { text-align: right; justify-items: end; }

/* ---------- Páginas institucionales (Quiénes somos) ---------- */
.psec { padding-top: var(--sec); }
.psec--last { padding-bottom: var(--sec); }
.story { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.story__photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 3; }
.story__photo img { width: 100%; height: 100%; object-fit: cover; }
.story__copy > p { margin-top: 18px; font-size: 18px; line-height: 1.65; color: var(--muted); max-width: 58ch; }
.story__copy .h2 { margin-bottom: 4px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mv__card { position: relative; overflow: hidden; display: grid; align-content: start; gap: 14px; padding: clamp(28px, 4vw, 44px); border-radius: 28px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.mv__card h2 { font-size: clamp(28px, 3vw, 40px); }
.mv__card p { line-height: 1.7; color: var(--muted); }
.mv__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--plum-soft); color: var(--plum); }
.mv__card--plum { background: var(--plum); color: #fff; box-shadow: none; }
.mv__card--plum p { color: rgba(255, 255, 255, .84); }
.mv__card--plum .mv__icon { background: rgba(255, 255, 255, .14); color: #fff; }
.mv__card--plum::after { content: ""; position: absolute; width: 320px; height: 320px; right: -140px; top: -140px; border-radius: 50%; border: 46px solid rgba(255, 255, 255, .07); pointer-events: none; }
.svcgroups { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; }
.svcgroup { display: grid; gap: 10px; align-content: start; }
.svcgroup__title { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
a.icard { color: inherit; }
.icard__go { margin-left: auto; font-size: 18px; color: var(--plum); transition: transform .3s var(--ease); }
a.icard:hover .icard__go { transform: translateX(4px); }

/* ---------- Blog ---------- */
.phead { padding: 128px 0 8px; background: linear-gradient(180deg, var(--plum-soft) 0%, var(--bg) 100%); }
.phead h1 { margin-top: 22px; font-size: clamp(38px, 4.8vw, 64px); letter-spacing: -0.035em; }
.phead .lead { margin-top: 14px; }
.bsec { padding: 48px 0 var(--sec); }
.bsec--more { padding-top: var(--sec); border-top: 1px solid var(--line); }
.blist { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post__body { display: grid; gap: 10px; align-content: start; }
.post--featured { display: grid; grid-template-columns: 1.15fr 1fr; gap: 12px 40px; align-items: center; padding: 14px; }
.post--featured img { aspect-ratio: 16 / 10; border-radius: 18px; }
.post--featured .post__body { padding: 20px 20px 20px 0; gap: 14px; }
.post--featured h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -0.02em; }
.post--featured p { padding: 0 8px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.post--featured .link { padding: 0 8px; }

/* Noticia */
.ahead { padding: 128px 0 32px; background: linear-gradient(180deg, var(--plum-soft) 0%, var(--bg) 100%); }
.ahead .tags { margin-top: 22px; }
.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: var(--plum); font-size: 13.5px; font-weight: 600; }
.ahead h1 { margin-top: 16px; font-size: clamp(32px, 4vw, 52px); letter-spacing: -0.03em; line-height: 1.12; }
.ahead__meta { margin-top: 18px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 15px; font-weight: 500; }
.acover { border-radius: 24px; overflow: hidden; background: var(--steel-soft); }
.acover img { width: 100%; max-height: 460px; object-fit: cover; }
.prose { margin-top: 36px; display: grid; gap: 18px; font-size: 18px; line-height: 1.75; color: #3a3540; }
.prose ul { display: grid; gap: 12px; padding-left: 4px; }
.prose li { position: relative; padding-left: 22px; }
.prose li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--plum); }
.prose__doc { justify-self: start; }
.source { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--steel-soft); font-size: 16px; line-height: 1.45; font-weight: 600; color: var(--ink); transition: box-shadow .25s; }
.source > i:first-child { font-size: 26px; color: var(--plum); flex: none; }
.source small { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
.source__go { margin-left: auto; font-size: 20px; color: var(--plum); flex: none; }
.source:hover { box-shadow: inset 0 0 0 1.5px var(--plum); }
.share { margin: 40px 0 var(--sec); padding-top: 24px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.share a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: #fff; color: var(--plum); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s, color .2s; }
.share a:hover { background: var(--plum); color: #fff; }

/* ---------- Contacto ---------- */
.csec { padding-top: 56px; }
.cpage { display: grid; grid-template-columns: 1fr 360px; gap: 16px; align-items: start; }
.cpage__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cpage .ccard--phones { grid-column: span 2; }
.cpage .ccard--social { grid-column: span 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.cpage .ccard--social .ccard__icon { margin: 0; }
.cpage .ccard--social .ccard__label { display: none; }
.cpage .ccard--social .sbtns { margin-left: auto; padding: 0; }
.hours--page { width: auto; position: sticky; top: 104px; box-shadow: inset 0 0 0 1px var(--line); animation: none; }
.cmap { border-radius: 28px; overflow: hidden; background: var(--steel-soft); box-shadow: inset 0 0 0 1px var(--line); }
.cmap iframe { display: block; width: 100%; height: 440px; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .post--featured { grid-template-columns: 1fr; }
  .post--featured .post__body { padding: 8px 6px 14px; }
  .blist { grid-template-columns: 1fr 1fr; }
  .cpage { grid-template-columns: 1fr; }
  .hours--page { position: static; }
  .story, .mv, .svcgroups { grid-template-columns: 1fr; }
  .shead { padding: 116px 0 40px; }
  .shead__grid { grid-template-columns: 1fr; }
  .shead__photo { aspect-ratio: 16 / 10; }
  .schips { display: block; position: sticky; top: 82px; z-index: 40; padding: 10px 0; background: var(--bg); border-bottom: 1px solid var(--line); }
  .schips__title { padding: 0 var(--pad) 8px; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
  .schips__track { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--pad); scrollbar-width: none; }
  .schips__track::-webkit-scrollbar { display: none; }
  .schips a { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; font-weight: 500; white-space: nowrap; }
  .schips a i { font-size: 17px; color: var(--plum); }
  .schips a[aria-current] { background: var(--plum); color: #fff; box-shadow: none; }
  .schips a[aria-current] i { color: #fff; }
  .sbody { padding-top: 40px; }
  .sbody__grid { grid-template-columns: 1fr; }
  .sside { display: none; }
  .icards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .blist, .cpage__cards { grid-template-columns: 1fr; }
  .cpage .ccard--phones, .cpage .ccard--social { grid-column: auto; }
  .cpage .ccard--social .sbtns { margin-left: 0; padding-top: 12px; }
  .prose { font-size: 17px; }
  .cmap iframe { height: 340px; }
  .schips { top: 74px; }
  .shead h1 { font-size: 38px; }
  .shead__ctas .btn { flex: 1 1 100%; }
  .shead__photo { aspect-ratio: auto; overflow: visible; background: none; }
  .shead__photo img { aspect-ratio: 16 / 10; border-radius: 22px; }
  .shead__badge { position: static; max-width: none; margin-top: 10px; box-shadow: inset 0 0 0 1px var(--line); }
  .seg { grid-template-columns: 1fr; padding: 22px 0; }
  .seg h3 { font-size: 18px; }
  .seg__text { padding-left: 32px; }
  .seg__list--cols { grid-template-columns: 1fr; }
  .sblock__about { padding: 20px; }
  .icards { gap: 10px; }
  .icard { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .icard__icon { width: 36px; height: 36px; font-size: 18px; }
  .icard h3 { font-size: 15px; overflow-wrap: anywhere; hyphens: auto; }
  a.icard { flex-direction: row; align-items: center; gap: 12px; }
  a.icard h3 { font-size: 16px; }
  .scta { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager__next { text-align: left; justify-items: start; }
}
