/* srv-lista — tarjetas de servicios de /servicios/ sobre crema. Móvil: carrusel con snap y puntos; tableta: 2 columnas;
   escritorio: mosaico 7/5 + 4/4/4. Tarjetas tinta y blancas alternadas. Las maquetas son CSS puro (transform/opacity)
   y se congelan fuera de pantalla con .is-pausado (srv-lista.js) o con movimiento reducido. */

.srvl { background: #FBF8F4; color: #121011; padding: var(--sep) 0; }
.srvl__in { max-width: 1320px; margin: 0 auto; padding: 0 var(--m); }
.srvl__cab { max-width: 640px; margin-bottom: 28px; }
.srvl__ceja { margin: 0 0 10px; color: #C8410F; font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.srvl__cab h2 { font-size: clamp(30px, 4vw, 56px); color: #121011; text-wrap: balance; }
.srvl__sub { margin-top: 12px; color: #4a4446; font-size: clamp(15.5px, 1.2vw, 18px); line-height: 1.55; }

/* ── Pista: carrusel en móvil ── */
.srvl__lista { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 380px); gap: 12px; margin: 0 calc(var(--m) * -1); padding: 4px var(--m) 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--m); scrollbar-width: none; overscroll-behavior-x: contain; }
.srvl__lista::-webkit-scrollbar { display: none; }
.srvl__puntos { display: flex; justify-content: center; gap: 6px; margin-top: 14px; }
.srvl__puntos i { width: 6px; height: 6px; border-radius: 6px; background: rgba(18, 16, 17, .2); transition: width .35s var(--ease), background-color .35s; }
.srvl__puntos i.is-on { width: 22px; background: #121011; }

/* ── Tarjeta ── */
.srvl__card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 16, 17, .07); overflow: hidden; scroll-snap-align: start; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.srvl__card--web, .srvl__card--diseno { background: #201A17; color: #fff; box-shadow: none; }
.srvl__maq { position: relative; height: 150px; margin: 10px 10px 0; border-radius: 16px; background: #F4F1EC; overflow: hidden; }
.srvl__card--web .srvl__maq, .srvl__card--diseno .srvl__maq { background: #121011; }
.srvl__cuerpo { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 18px; }
.srvl__eti { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 8px; color: #6C6A6C; font-size: 12.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.srvl__eti span { color: #C8410F; }
.srvl__card--web .srvl__eti, .srvl__card--diseno .srvl__eti { color: rgba(255, 255, 255, .62); }
.srvl__card--web .srvl__eti span, .srvl__card--diseno .srvl__eti span { color: var(--accent); }
.srvl__rec { display: none; padding: 3px 9px; border-radius: 999px; background: var(--lima); color: #121011; font-style: normal; font-size: 11px; letter-spacing: .06em; }
.srvl__card h3 { margin: 0; font-size: clamp(20px, 1.7vw, 26px); line-height: 1.15; text-wrap: balance; }
.srvl__ir { color: inherit; text-decoration: none; }
.srvl__ir::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; } /* toda la tarjeta lleva a la página */
.srvl__txt { margin-top: 8px; color: #4a4446; font-size: 15px; line-height: 1.5; }
.srvl__card--web .srvl__txt, .srvl__card--diseno .srvl__txt { color: rgba(255, 255, 255, .72); }
.srvl__ven { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.srvl__ven li { display: flex; align-items: flex-start; gap: 6px; font-size: 13.5px; line-height: 1.3; font-weight: 500; }
.srvl__ven svg { flex: none; margin-top: 1px; color: #C8410F; }
.srvl__card--web .srvl__ven svg, .srvl__card--diseno .srvl__ven svg { color: var(--lima); }
.srvl__acc { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 16px; }
.srvl__ver { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; }
.srvl__ver svg { transition: transform .35s var(--ease); }
.srvl__wa { position: relative; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #F4F1EC; color: #121011; transition: background-color .25s, color .25s, transform .25s var(--ease); }
.srvl__card--web .srvl__wa, .srvl__card--diseno .srvl__wa { background: rgba(255, 255, 255, .1); color: #fff; }
.srvl__wa:hover, .srvl__card--web .srvl__wa:hover, .srvl__card--diseno .srvl__wa:hover { background: var(--lima); color: #121011; transform: scale(1.06); }
.srvl__card :is(a):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.srvl__ir:focus-visible { outline: none; }
.srvl__ir:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }

@media (hover: hover) {
	.srvl__card:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px rgba(18, 16, 17, .1), 0 24px 48px -28px rgba(18, 16, 17, .45); }
	.srvl__card--web:hover, .srvl__card--diseno:hover { box-shadow: 0 24px 48px -26px rgba(18, 16, 17, .7); }
	.srvl__card:hover .srvl__ver { color: #C8410F; }
	.srvl__card--web:hover .srvl__ver, .srvl__card--diseno:hover .srvl__ver { color: var(--lima); }
	.srvl__card:hover .srvl__ver svg { transform: translateX(4px); }
}

/* Recomendada por el test */
.srvl__card.is-recomendado { box-shadow: 0 0 0 2px var(--accent); }
.srvl__card.is-recomendado .srvl__rec { display: inline-block; }

/* ═══ Maquetas ═══ */
.srvl__maq > div { position: absolute; inset: 0; }
.srvl__maq i, .srvl__maq b, .srvl__maq span, .srvl__maq em { display: block; }
.is-pausado .srvl__maq *, .is-pausado .srvl__maq *::before { animation-play-state: paused !important; }

/* Web: navegador con tienda y un celular encima; el botón «Comprar» late y los productos entran */
.srvm-web { padding: 14px 16px; }
.srvm-web__nav { display: flex; gap: 5px; align-items: center; }
.srvm-web__nav i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.srvm-web__nav b { flex: 1; height: 8px; margin-left: 8px; border-radius: 8px; background: rgba(255, 255, 255, .08); }
.srvm-web__hero { margin-top: 12px; width: 62%; }
.srvm-web__hero i { height: 9px; border-radius: 6px; background: #fff; }
.srvm-web__hero i + i { width: 70%; margin-top: 6px; background: rgba(255, 255, 255, .35); }
.srvm-web__hero span { display: inline-block !important; margin-top: 10px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 10.5px; font-weight: 600; animation: srvm-late 2.6s ease-in-out infinite; }
.srvm-web__prods { display: flex; gap: 8px; margin-top: 12px; width: 62%; }
.srvm-web__prods i { flex: 1; height: 34px; border-radius: 8px; background: rgba(255, 255, 255, .08); animation: srvm-entra 4.5s var(--ease) infinite; }
.srvm-web__prods i:nth-child(2) { animation-delay: .2s; background: rgba(210, 251, 140, .22); }
.srvm-web__prods i:nth-child(3) { animation-delay: .4s; }
.srvm-web__cel { position: absolute; right: 18px; top: 18px; bottom: -20px; width: 30%; max-width: 104px; padding: 12px 8px; border-radius: 16px; background: #FBF8F4; box-shadow: 0 16px 30px -12px #000; animation: srvm-flota 5s ease-in-out infinite; }
.srvm-web__cel i { height: 7px; border-radius: 4px; background: #121011; }
.srvm-web__cel i + i { width: 70%; margin-top: 5px; background: rgba(18, 16, 17, .3); }
.srvm-web__cel span { height: 40%; margin-top: 10px; border-radius: 8px; background: var(--accent); opacity: .9; }

/* Publicidad: búsqueda → anuncio arriba → barras que suben */
.srvm-pub { padding: 14px 16px; }
.srvm-pub__bus { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 16, 17, .1); color: #121011; font-size: 11.5px; }
.srvm-pub__bus span { overflow: hidden; white-space: nowrap; animation: srvm-escribe 5s steps(20) infinite; width: 0; max-width: 20ch; }
.srvm-pub__ad { margin-top: 10px; width: 64%; padding: 8px 10px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1.5px var(--accent); animation: srvm-entra 5s var(--ease) infinite; }
.srvm-pub__ad em { color: #C8410F; font-style: normal; font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.srvm-pub__ad b { height: 7px; margin-top: 5px; border-radius: 4px; background: #121011; }
.srvm-pub__ad i { width: 70%; height: 6px; margin-top: 4px; border-radius: 4px; background: rgba(18, 16, 17, .25); }
.srvm-pub__barras { position: absolute; right: 16px; bottom: 14px; display: flex; align-items: flex-end; gap: 5px; height: 70%; width: 28%; }
.srvm-pub__barras i { flex: 1; height: 100%; border-radius: 4px 4px 2px 2px; background: #121011; transform: scaleY(var(--h)); transform-origin: bottom; animation: srvm-sube 5s var(--ease) infinite; }
.srvm-pub__barras i:last-child { background: var(--accent); }
.srvm-pub__barras i:nth-child(2) { animation-delay: .1s; } .srvm-pub__barras i:nth-child(3) { animation-delay: .2s; } .srvm-pub__barras i:nth-child(4) { animation-delay: .3s; } .srvm-pub__barras i:nth-child(5) { animation-delay: .4s; } .srvm-pub__barras i:nth-child(6) { animation-delay: .5s; }

/* Redes: cuadrícula de publicaciones que se llena y un contador de me gusta */
.srvm-rs { display: grid; place-items: center; }
.srvm-rs__grid { display: grid; grid-template-columns: repeat(3, 44px); gap: 5px; }
.srvm-rs__grid i { aspect-ratio: 1; border-radius: 8px; background: #121011; animation: srvm-pop 6s var(--ease) infinite; }
.srvm-rs__grid i:nth-child(2) { background: var(--accent); animation-delay: .25s; }
.srvm-rs__grid i:nth-child(3) { background: #D2FB8C; animation-delay: .5s; }
.srvm-rs__grid i:nth-child(4) { background: #FFB494; animation-delay: .75s; }
.srvm-rs__grid i:nth-child(5) { background: #201A17; animation-delay: 1s; }
.srvm-rs__grid i:nth-child(6) { background: #FF5B23; opacity: .55; animation-delay: 1.25s; }
.srvm-rs__like { position: absolute; right: 16%; top: 18%; display: inline-flex !important; align-items: center; gap: 4px; padding: 5px 9px; border-radius: 999px; background: #fff; box-shadow: 0 8px 18px -8px rgba(18, 16, 17, .4); color: #C8410F; font-size: 11.5px; font-weight: 700; animation: srvm-flota 4s ease-in-out infinite; }

/* Diseño: el logo se construye con tres piezas, muestras de color y tipografía */
.srvm-ds { display: flex; align-items: center; justify-content: center; gap: 22px; }
.srvm-ds__logo { position: relative; width: 74px; height: 74px; }
.srvm-ds__logo i { position: absolute; }
.srvm-ds__logo i:nth-child(1) { inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.srvm-ds__logo i:nth-child(2) { left: 14px; top: 14px; width: 46px; height: 46px; border-radius: 14px; background: var(--accent); animation: srvm-gira 6s var(--ease) infinite; }
.srvm-ds__logo i:nth-child(3) { right: 6px; bottom: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--lima); animation: srvm-pop 6s var(--ease) infinite; }
.srvm-ds__mues { display: grid; gap: 6px; }
.srvm-ds__mues i { width: 46px; height: 12px; border-radius: 6px; background: #FBF8F4; transform-origin: left; animation: srvm-crece 6s var(--ease) infinite; }
.srvm-ds__mues i:nth-child(2) { background: var(--accent); animation-delay: .15s; }
.srvm-ds__mues i:nth-child(3) { background: var(--lima); animation-delay: .3s; }
.srvm-ds__mues i:nth-child(4) { background: #201A17; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); animation-delay: .45s; }
.srvm-ds__aa { color: #fff; font-family: 'Instrument Serif', serif; font-size: 46px; line-height: 1; font-style: italic; }

/* Sistemas: tablero tipo CRM, una tarjeta cambia de columna; sale un PDF de cotización */
.srvm-sis { display: flex; gap: 8px; padding: 16px; }
.srvm-sis__col { flex: 1; display: grid; align-content: start; gap: 6px; padding: 8px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px rgba(18, 16, 17, .06); }
.srvm-sis__col em { width: 50%; height: 6px; border-radius: 4px; background: rgba(18, 16, 17, .3); }
.srvm-sis__col:nth-child(3) em { background: #C8410F; }
.srvm-sis__col i { height: 24px; border-radius: 6px; background: #F4F1EC; box-shadow: inset 3px 0 0 #121011; }
.srvm-sis__col i.is-mueve { box-shadow: inset 3px 0 0 var(--accent); animation: srvm-mueve 5s var(--ease) infinite; }
.srvm-sis__pdf { position: absolute; right: 14px; bottom: 12px; padding: 6px 9px; border-radius: 6px; background: #121011; color: var(--lima); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; animation: srvm-flota 4.5s ease-in-out infinite; }

@keyframes srvm-late { 50% { transform: scale(1.08); } }
@keyframes srvm-entra { 0%, 8% { opacity: 0; transform: translate3d(0, 8px, 0); } 22%, 100% { opacity: 1; transform: none; } }
@keyframes srvm-flota { 50% { transform: translate3d(0, -6px, 0); } }
@keyframes srvm-sube { 0%, 6% { transform: scaleY(.05); } 30%, 100% { transform: scaleY(var(--h)); } }
@keyframes srvm-escribe { 0% { width: 0; } 40%, 100% { width: 20ch; } }
@keyframes srvm-pop { 0%, 6% { opacity: 0; transform: scale(.6); } 18%, 100% { opacity: 1; transform: none; } }
@keyframes srvm-gira { 0%, 10% { transform: rotate(-90deg) scale(.4); opacity: 0; } 30%, 100% { transform: none; opacity: 1; } }
@keyframes srvm-crece { 0%, 10% { transform: scaleX(0); } 30%, 100% { transform: none; } }
@keyframes srvm-mueve { 0%, 30% { transform: none; } 50%, 85% { transform: translate3d(calc(100% + 24px), -30px, 0); } 100% { transform: none; } }

/* ── Tableta: 2 columnas, sin carrusel ── */
@media (min-width: 768px) {
	.srvl__cab { margin-bottom: 40px; }
	.srvl__lista { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; overflow: visible; }
	.srvl__puntos { display: none; }
	.srvl__card--web { grid-column: 1 / -1; }
	.srvl__maq { height: 180px; }
	.srvl__cuerpo { padding: 22px 24px 22px; }
}

/* ── Escritorio: 7/5 arriba y 4/4/4 abajo ── */
@media (min-width: 1024px) {
	.srvl__cab { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 0 48px; max-width: none; }
	.srvl__cab .srvl__ceja { grid-column: 1 / -1; }
	.srvl__lista { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 18px; }
	.srvl__card { grid-column: span 4; }
	.srvl__card--web { grid-column: span 7; }
	.srvl__card--publicidad { grid-column: span 5; }
	.srvl__maq { height: 200px; }
	.srvl__card--web .srvl__maq, .srvl__card--publicidad .srvl__maq { height: 230px; }
	.srvl__cuerpo { padding: 24px 26px 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.srvl__maq *, .srvl__maq *::before { animation: none !important; }
	.srvm-pub__bus span { width: 20ch; }
}

/* Registro de marca: la palabra se estampa con el ® naranja (misma idea que el hero de /registro-de-marca/). */
.srvl__card--marca .srvl__maq { background: #121011; }
.srvm-rm { display: flex; align-items: center; justify-content: center; gap: 2px; }
.srvm-rm b { color: #fff; font-family: 'Marko Display', var(--f); font-size: 34px; letter-spacing: .02em; }
.srvm-rm span { align-self: flex-start; margin-top: 46px; color: var(--accent); font-size: 18px; font-weight: 700; animation: srvm-pop 6s var(--ease) infinite; }
