/* Páginas de servicio de EMP Solutions Tech (catálogo, páginas web, tarjeta digital, reservas, fidelización,
   encuestas, automatizaciones y apps en camino). Cada página define su propia paleta en :root con estas variables:
   --fondo, --fondo-2, --tinta, --suave, --acento (fondo de botón, texto blanco ≥ 4,5:1), --acento-txt (texto sobre
   --fondo ≥ 4,5:1), --sec (decorativo, nunca texto sobre fondo claro), --linea, --oscuro (secciones oscuras). */
@font-face { font-family: 'Manrope'; src: url('/fuente/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Bricolage'; src: url('/fuente/bricolage.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fuente/fraunces.woff2') format('woff2'); font-weight: 300 800; font-display: swap; }
:root { --curva: cubic-bezier(.2,.8,.2,1); --resorte: cubic-bezier(.34,1.56,.64,1); --radio: 22px; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; font-size: 1.0625rem; line-height: 1.6; color: var(--tinta); background: var(--fondo); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--acento-txt); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--acento-txt); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.envoltura { width: min(1140px, 100% - 40px); margin-inline: auto; }
.saltar { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--tinta); color: var(--fondo); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.saltar:focus { left: 12px; }
.titulo-s { font-family: 'Bricolage', 'Manrope', sans-serif; font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin: 0; text-wrap: balance; }

/* Botones */
.botones { display: flex; flex-wrap: wrap; gap: 12px; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .2s var(--curva), background-color .2s, color .2s, box-shadow .25s; }
.boton:active { transform: scale(.97); }
.boton.lleno { background: var(--acento); color: #fff; }
.boton.lleno:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px var(--acento); }
.boton.borde { border-color: var(--tinta); color: var(--tinta); background: transparent; }
.boton.borde:hover { background: var(--tinta); color: var(--fondo); }
.boton svg { width: 20px; height: 20px; }

/* Cabecera */
.cab-s { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--fondo) 90%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--linea); }
.cab-s .envoltura { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.marca-emp { display: inline-flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; font-size: 1.02rem; }
.marca-emp b { font-weight: 800; }
.cab-s nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.cab-s nav a:not(.boton) { color: var(--tinta); text-decoration: none; font-weight: 700; padding: 10px 12px; border-radius: 10px; }
.cab-s nav a:not(.boton):hover { background: var(--fondo-2); }
.cab-s .boton { min-height: 44px; padding: 8px 18px; }
@media (max-width: 760px) { .solo-escritorio { display: none !important; } .marca-emp span { font-size: .95rem; } }

/* Portada */
.portada-s { padding: 56px 0 72px; overflow: hidden; }
.portada-s .envoltura { display: grid; gap: 48px; align-items: center; }
@media (min-width: 920px) { .portada-s .envoltura { grid-template-columns: 1.1fr .9fr; } }
.portada-s .titulo-s { font-size: clamp(2.3rem, 6vw, 4rem); }
.portada-s .titulo-s em { font-style: normal; color: var(--acento-txt); }
.etiqueta-s { display: inline-block; font-weight: 800; font-size: .92rem; color: var(--acento-txt); margin: 0 0 14px; }
.bajada { font-size: 1.15rem; color: var(--suave); max-width: 56ch; margin: 18px 0 28px; }
.datos-rapidos { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--suave); font-weight: 700; font-size: .95rem; }
.datos-rapidos li { display: flex; align-items: center; gap: 8px; }
.datos-rapidos li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--sec); flex: none; }

/* Teléfono de vitrina */
.vitrina { position: relative; display: grid; place-items: center; min-height: 520px; }
.tel { position: relative; width: min(300px, 82vw); aspect-ratio: 9 / 18.5; border-radius: 44px; background: #10131a; padding: 11px; box-shadow: 0 40px 80px -30px rgba(10, 14, 30, .55), 0 0 0 1px rgba(255,255,255,.06) inset; }
.tel::before { content: ''; position: absolute; top: 18px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 20px; background: #10131a; z-index: 3; }
.tel-pant { position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: #fff; color: #1a1d26; font-size: .82rem; line-height: 1.35; }
.flotante { position: absolute; z-index: 4; background: #fff; color: #1a1d26; border-radius: 18px; padding: 12px 14px; box-shadow: 0 18px 40px -18px rgba(10,14,30,.45); font-size: .85rem; font-weight: 700; display: flex; align-items: center; gap: 10px; max-width: 230px; }
.flotante small { display: block; font-weight: 600; color: #5b6170; }
.flotante .punto { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--fondo-2); flex: none; }
.flotante .punto svg { width: 20px; height: 20px; }
.f1 { left: -4px; top: 18%; } .f2 { right: -6px; bottom: 16%; }
@media (max-width: 520px) { .f1 { left: 0; } .f2 { right: 0; } .vitrina { min-height: 480px; } }
.js .portada-s .tel { animation: sube 1s var(--curva) both .1s; }
.js .portada-s .flotante { animation: aparece .7s var(--resorte) both; }
.js .portada-s .f1 { animation-delay: .7s; } .js .portada-s .f2 { animation-delay: 1s; }
.js .portada-s .entra-1 { animation: sube .8s var(--curva) both .05s; }
.js .portada-s .entra-2 { animation: sube .8s var(--curva) both .15s; }
.js .portada-s .entra-3 { animation: sube .8s var(--curva) both .25s; }
.js .portada-s .entra-4 { animation: sube .8s var(--curva) both .35s; }
@keyframes sube { from { opacity: 0; transform: translateY(28px); } }
@keyframes aparece { from { opacity: 0; transform: scale(.7) translateY(10px); } }
@keyframes respira { 50% { transform: translateY(-8px); } }
.js .portada-s .f1, .js .portada-s .f2 { animation-fill-mode: both; }

/* Secciones */
.bloque-s { padding: 84px 0; }
.bloque-s.alterno { background: var(--fondo-2); }
.bloque-s.oscuro { background: var(--oscuro); color: #f3f5fa; }
.bloque-s.oscuro .intro-s { color: #c8cfdc; }
.bloque-s .titulo-s { font-size: clamp(1.9rem, 4.4vw, 2.9rem); max-width: 20ch; }
.intro-s { color: var(--suave); font-size: 1.1rem; max-width: 58ch; margin: 14px 0 0; }

.para-quien { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.para-quien li { padding: 10px 18px; border-radius: 999px; background: var(--fondo); border: 1.5px solid var(--linea); font-weight: 700; transition: transform .25s var(--resorte), border-color .2s; }
.para-quien li:hover { transform: translateY(-3px) rotate(-1.5deg); border-color: var(--acento-txt); }

.incluye-s { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.incluye-s li { background: var(--fondo); border: 1px solid var(--linea); border-radius: var(--radio); padding: 22px; transition: transform .3s var(--curva), box-shadow .3s; }
.incluye-s li:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(10,14,30,.45); }
.incluye-s .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--fondo-2); margin-bottom: 14px; }
.incluye-s .ico svg { width: 24px; height: 24px; }
.incluye-s h3 { margin: 0 0 6px; font-size: 1.08rem; }
.incluye-s p { margin: 0; color: var(--suave); }
.alterno .incluye-s li { background: #fff; }

.pasos-s { list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 18px; counter-reset: paso; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); position: relative; }
.pasos-s li { counter-increment: paso; position: relative; padding: 24px 22px; border-radius: var(--radio); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.pasos-s li::before { content: counter(paso); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--sec); color: var(--oscuro); font-weight: 800; margin-bottom: 14px; }
.pasos-s h3 { margin: 0 0 6px; font-size: 1.1rem; }
.pasos-s p { margin: 0; color: #c8cfdc; }

/* Bloque del ejemplo */
.ejemplo-s { display: grid; gap: 36px; align-items: center; }
@media (min-width: 860px) { .ejemplo-s { grid-template-columns: 1fr auto; } }
.qr-s { background: #fff; border-radius: 26px; padding: 20px; text-align: center; box-shadow: 0 24px 50px -30px rgba(10,14,30,.5); border: 1px solid var(--linea); width: max-content; margin-inline: auto; }
.qr-s img { width: 170px; height: 170px; }
.qr-s p { margin: 10px 0 0; font-weight: 800; color: #1a1d26; font-size: .95rem; }
.lista-check { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.lista-check li { display: flex; gap: 12px; align-items: flex-start; }
.lista-check li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--acento) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-8' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }

/* Preguntas */
.faq-s { margin-top: 30px; display: grid; gap: 10px; max-width: 820px; }
.faq-s details { background: var(--fondo); border: 1px solid var(--linea); border-radius: 18px; padding: 0 20px; transition: background-color .2s; }
.alterno .faq-s details { background: #fff; }
.faq-s summary { cursor: pointer; font-weight: 800; padding: 18px 30px 18px 0; list-style: none; position: relative; }
.faq-s summary::-webkit-details-marker { display: none; }
.faq-s summary::after { content: ''; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--curva); }
.faq-s details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq-s details p { margin: 0 0 18px; color: var(--suave); }

/* Llamado final */
.cta-s { padding: 90px 0; background: var(--acento); color: #fff; position: relative; overflow: hidden; }
.cta-s .titulo-s { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 18ch; }
.cta-s p { max-width: 54ch; color: rgba(255,255,255,.88); font-size: 1.1rem; }
.cta-s .boton.claro { background: #fff; color: var(--tinta); }
.cta-s .boton.claro:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(0,0,0,.4); }
.cta-s .boton.linea { border-color: #fff; color: #fff; }
.cta-s .boton.linea:hover { background: #fff; color: var(--tinta); }
.cta-s .aro { position: absolute; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); pointer-events: none; }
.cta-s .aro.a1 { width: 420px; height: 420px; right: -120px; top: -160px; }
.cta-s .aro.a2 { width: 260px; height: 260px; right: 80px; bottom: -150px; }
.js .cta-s .aro { animation: gira-lento 30s linear infinite; }
@keyframes gira-lento { to { transform: rotate(360deg) scale(1.04); } }

/* Otros servicios */
.otros-s { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.otros-s a { display: block; height: 100%; padding: 18px 20px; border-radius: 18px; background: #fff; border: 1px solid var(--linea); color: var(--tinta); text-decoration: none; transition: transform .25s var(--curva), border-color .2s; }
.otros-s a:hover { transform: translateY(-3px); border-color: var(--acento-txt); }
.otros-s b { display: block; }
.otros-s span { color: var(--suave); font-size: .92rem; }

/* Pie */
.pie-s { padding: 36px 0 44px; font-size: .92rem; color: var(--suave); border-top: 1px solid var(--linea); }
.pie-s .envoltura { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: space-between; }
.pie-s p { margin: 0; }

/* Aparición al hacer scroll (sin JS todo se ve) */
.revela { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--curva), transform .7s var(--curva); }
.revela.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .revela { opacity: 1; transform: none; }
}
