/* srv-hero — hero de /servicios/. Fondo propio «tablero»: mosaico de teclas redondeadas, inclinado, sobre tinta;
   algunas se encienden en naranja o lima (srv-hero.js). A la derecha el test «Encuentra tu servicio».
   Móvil primero: texto compacto y el test justo debajo. Solo transform/opacity en el movimiento. */

/* La cabecera es transparente aquí: el hero arranca bajo ella (m360.css da 76/64px a main en interiores) */
body:not(.home) main.srv-pag { padding-top: 0; }

.srvh { position: relative; isolation: isolate; overflow: hidden; background: #121011; color: #fff; }
.srvh__in { display: grid; gap: 28px; max-width: 1320px; margin: 0 auto; padding: 96px var(--m) 40px; }

/* ── Fondo «tablero» ── */
.srvh__fondo { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.srvh__tablero { position: absolute; left: 50%; top: 50%; display: grid; grid-template-columns: repeat(8, 120px); gap: 14px; transform: translate(-30%, -50%) rotate(-14deg); -webkit-mask-image: radial-gradient(60% 60% at 55% 50%, #000 20%, transparent 78%); mask-image: radial-gradient(60% 60% at 55% 50%, #000 20%, transparent 78%); }
.srvh__tablero i { display: block; aspect-ratio: 1; border-radius: 24px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); transition: background-color 1.2s var(--ease), box-shadow 1.2s var(--ease); }
.srvh__tablero i:nth-child(7n + 3) { background: rgba(255, 255, 255, .045); }
.srvh__tablero i.is-on { background: rgba(255, 91, 35, .2); box-shadow: inset 0 0 0 1px rgba(255, 91, 35, .7), 0 0 40px -6px rgba(255, 91, 35, .55); transition-duration: .35s; }
.srvh__tablero i.is-lima { background: rgba(210, 251, 140, .13); box-shadow: inset 0 0 0 1px rgba(210, 251, 140, .6), 0 0 36px -8px rgba(210, 251, 140, .5); transition-duration: .35s; }
/* Velo: oscurece arriba (cabecera) y a la izquierda (texto) hacia la misma tinta, nunca hacia blanco */
.srvh__velo { position: absolute; inset: 0; background: linear-gradient(180deg, #121011 0, rgba(18, 16, 17, .7) 90px, transparent 220px), linear-gradient(90deg, rgba(18, 16, 17, .85) 0, rgba(18, 16, 17, .35) 50%, transparent 75%); }
.srvh::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: rgba(255, 255, 255, .1); }

/* ── Texto ── */
.srvh__txt { min-width: 0; }
.srvh__txt > * { animation: srvh-sube .9s var(--ease) both; }
.srvh__txt > :nth-child(2) { animation-delay: .08s; }
.srvh__txt > :nth-child(3) { animation-delay: .16s; }
.srvh__txt > :nth-child(4) { animation-delay: .24s; }
@keyframes srvh-sube { from { opacity: 0; transform: translate3d(0, 16px, 0); } }

.srvh__ceja { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; color: rgba(255, 255, 255, .7); font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.srvh__ceja::before { content: ""; width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--accent); background: linear-gradient(var(--accent), var(--accent)) center / 6px 6px no-repeat; }
.srvh h1 { max-width: 15ch; font-family: 'Marko Display', var(--f) !important; font-weight: 800 !important; font-size: clamp(36px, 5.2vw, 78px); line-height: 1.02 !important; letter-spacing: .004em !important; word-spacing: -.06em; text-transform: lowercase; color: #fff; text-wrap: balance; }
.srvh__lead { max-width: 46ch; margin-top: 16px; color: rgba(255, 255, 255, .74); font-size: clamp(15.5px, 1.3vw, 19px); line-height: 1.55; }
.srvh__atajos { display: none; }

/* ── Test ── */
.srvh__test [hidden] { display: none !important; }
.srvh__test { position: relative; min-width: 0; padding: 20px; border-radius: 24px; background: #201A17; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -30px #000; animation: srvh-sube .9s .2s var(--ease) both; }
.srvh__cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.srvh__marca { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; font-weight: 600; color: #fff; }
.srvh__punto { width: 8px; height: 8px; border-radius: 50%; background: var(--lima); box-shadow: 0 0 0 4px rgba(210, 251, 140, .15); }
.srvh__cuenta { margin: 0; color: rgba(255, 255, 255, .6); font-size: 13px; }
.srvh__progreso { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 18px; padding: 0; list-style: none; }
.srvh__progreso li { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.srvh__progreso li::before { content: ""; display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.srvh__progreso li.is-on::before { transform: scaleX(.35); }
.srvh__progreso li.is-hecha::before { transform: scaleX(1); background: var(--lima); }

.srvh__paso:not([hidden]), .srvh__res:not([hidden]) { animation: srvh-paso .45s var(--ease) both; }
@keyframes srvh-paso { from { opacity: 0; transform: translate3d(14px, 0, 0); } }
.srvh__p { margin: 0 0 14px; font-family: var(--f) !important; font-size: clamp(20px, 1.8vw, 26px); font-weight: 700 !important; letter-spacing: -.015em !important; line-height: 1.15 !important; text-transform: none !important; color: #fff; outline: none; }
.srvh__ops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.srvh__ops .srvh__op:last-child:nth-child(odd) { grid-column: 1 / -1; }
.srvh__op { display: grid; gap: 3px; align-content: center; min-height: 66px; padding: 12px 14px; border: 0; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: #fff; font: inherit; text-align: left; cursor: pointer; transition: background-color .25s, box-shadow .25s, transform .25s var(--ease); }
.srvh__op strong { font-size: 15.5px; font-weight: 600; line-height: 1.2; }
.srvh__op span { color: rgba(255, 255, 255, .62); font-size: 13px; line-height: 1.3; }
.srvh__op:hover { background: rgba(255, 91, 35, .14); box-shadow: inset 0 0 0 1px rgba(255, 91, 35, .65); transform: translateY(-2px); }
.srvh__op[aria-pressed="true"] { background: var(--lima); box-shadow: none; color: #121011; }
.srvh__op[aria-pressed="true"] span { color: rgba(18, 16, 17, .72); }
.srvh__op[aria-pressed="true"]:hover { background: #c3f070; }
.srvh__op:active { transform: scale(.98); }
.srvh__test :is(button, a):focus-visible { outline: 2px solid var(--lima); outline-offset: 3px; }

.srvh__atras { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 8px; padding: 0 10px 0 4px; border: 0; background: none; color: rgba(255, 255, 255, .72); font: inherit; font-size: 14px; cursor: pointer; transition: color .2s; }
.srvh__atras:hover { color: var(--lima); }

/* Resultado */
.srvh__recs { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.srvh__rec { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 44px; gap: 4px 12px; align-items: center; padding: 14px 14px 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); transition: background-color .25s, box-shadow .25s; }
.srvh__rec.is-primero { background: rgba(255, 91, 35, .12); box-shadow: inset 0 0 0 1px rgba(255, 91, 35, .55); }
.srvh__rec-n { grid-column: 1 / -1; color: var(--lima); font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.srvh__rec strong { display: block; font-size: 17px; font-weight: 600; color: #fff; }
.srvh__rec p { margin: 3px 0 0; color: rgba(255, 255, 255, .7); font-size: 13.5px; line-height: 1.4; }
.srvh__rec-ir { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; color: #121011; transition: background-color .25s, transform .25s var(--ease); }
.srvh__rec-ir::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* toda la fila es clicable */
.srvh__rec:hover { background: rgba(255, 255, 255, .09); }
.srvh__rec.is-primero:hover { background: rgba(255, 91, 35, .2); }
.srvh__rec:hover .srvh__rec-ir { background: var(--lima); transform: translateX(3px); }
.srvh__combo { margin: 12px 0 0; color: rgba(255, 255, 255, .72); font-size: 14px; }
.srvh__combo a { color: var(--lima); font-weight: 600; text-underline-offset: 3px; }
.srvh__combo a:hover { color: #fff; }
.srvh__acc { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 16px; }
.srvh__wa { min-height: 48px; }
.srvh__otra { min-height: 44px; padding: 0 6px; border: 0; background: none; color: rgba(255, 255, 255, .78); font: inherit; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.srvh__otra:hover { color: var(--lima); }

/* ── Tableta ── */
@media (min-width: 768px) {
	.srvh__in { padding: 128px var(--m) 64px; gap: 40px; }
	.srvh__test { padding: 26px; max-width: 620px; }
	.srvh__atajos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
	.srvh__atajos a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .86); font-size: 14px; font-weight: 500; text-decoration: none; transition: background-color .25s, color .25s, box-shadow .25s; }
	.srvh__atajos a:hover { background: #fff; color: #121011; box-shadow: none; }
	.srvh__atajos a:focus-visible { outline: 2px solid var(--lima); outline-offset: 3px; }
	.srvh__op { min-height: 76px; padding: 14px 16px; }
}

/* ── Escritorio: texto | test ── */
@media (min-width: 1024px) {
	.srvh__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(32px, 5vw, 80px); min-height: min(100svh, 860px); padding: 140px var(--m) 80px; }
	.srvh__test { justify-self: end; width: 100%; max-width: 540px; padding: 28px; }
	.srvh__tablero { transform: translate(-22%, -50%) rotate(-14deg); grid-template-columns: repeat(8, 140px); gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
	.srvh__txt > *, .srvh__test, .srvh__paso:not([hidden]), .srvh__res:not([hidden]) { animation: none; }
}
