/* ════════════════════════════════════════════════════════════════════════
   Axoryn Digital Studio · capa «premium»
   Se carga la última: manda sobre index.html y portfolio-refinements.css.
   Colores de la marca: negro morado #090711, morados #1C1530 / #7C4DBE, naranja #F59E0B / #FBBF24.
   Índice: 0 Base · 1 Hilo de luz · 2 Demo del inicio · 3 Títulos · 4 Servicios · 5 Proyectos
           6 Proceso · 7 Sobre mí y preguntas · 8 Llamadas a la acción y contacto · 9 Ancho grande
           10 Tablet y móvil · 11 Reducir movimiento
   ════════════════════════════════════════════════════════════════════════ */

:root {
  --ig-naranja: #F59E0B;
  --ig-naranja-claro: #FBBF24;
  --ig-morado: #7C4DBE;
  --ig-linea: rgba(167, 146, 205, .16);
  --ig-panel: linear-gradient(160deg, rgba(31, 24, 48, .94), rgba(15, 12, 25, .97));
  --ig-suave: cubic-bezier(.2, .8, .2, 1);
}

/* ── 0 · Base ─────────────────────────────────────────────────────────── */
main#contenido { position: relative; }
.btn { transition: transform .2s var(--ig-suave), box-shadow .25s, background .25s, border-color .25s, color .2s; }
.btn:active { transform: translateY(1px) scale(.97) !important; }
.sx-curva { display: none; }                         /* la sustituye el hilo de luz */

/* ── 1 · Hilo de luz ──────────────────────────────────────────────────── */
.ig-hilo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ig-hilo svg { position: absolute; top: 0; left: 0; overflow: visible; }
.ig-hilo path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hilo-base { stroke: rgba(245, 158, 11, .13); stroke-width: 1.4; }
.hilo-brillo { stroke: rgba(245, 158, 11, .16); stroke-width: 7; }
.hilo-luz { stroke: #F8A92A; stroke-width: 1.8; }
.hilo-cabeza { position: absolute; top: -5px; left: -5px; width: 10px; height: 10px; border-radius: 50%; opacity: 0;
  background: #FFE0A3; box-shadow: 0 0 0 3px rgba(245, 158, 11, .28), 0 0 16px 4px rgba(245, 158, 11, .55);
  transition: opacity .3s; will-change: transform; }
.hilo-nodo { position: absolute; top: -7px; left: -7px; width: 14px; height: 14px; border-radius: 50%;
  background: #0E0A18; border: 2px solid rgba(245, 158, 11, .3); transition: border-color .4s, box-shadow .4s, background .4s; }
.hilo-nodo::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: transparent; transition: background .4s; }
.hilo-nodo.on { border-color: var(--ig-naranja); box-shadow: 0 0 12px rgba(245, 158, 11, .55); animation: nodoPop .55s var(--ig-suave); }
.hilo-nodo.on::after { background: var(--ig-naranja-claro); }
@keyframes nodoPop { 0% { scale: .6; } 60% { scale: 1.35; } 100% { scale: 1; } }

/* ── 2 · Demo del inicio ──────────────────────────────────────────────── */
.hero-confianza { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 20px 0 0; padding: 0; }
.hero-confianza li { display: inline-flex; align-items: center; gap: 8px; color: #CFC8DB; font-size: .86rem; font-weight: 500; }
.hero-confianza li::before { content: "✓"; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; flex: none;
  font-size: .7rem; font-weight: 800; color: #1B1204; background: var(--ig-naranja-claro); }
.hero-confianza a { color: inherit; text-decoration: underline; text-decoration-color: rgba(251, 191, 36, .45); text-underline-offset: 4px; }
.hero-confianza a:hover { color: var(--ig-naranja-claro); }

/* La web de reservas donde «reserva» el cliente */
.demo-web { position: absolute; z-index: 9; left: -1%; bottom: 112px; width: 228px; border-radius: 14px; overflow: hidden;
  background: #FBF8F4; color: #2A2233; box-shadow: 0 22px 50px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .5);
  translate: calc(var(--mx, 0) * -22px) calc(var(--my, 0) * -16px);
  animation: hvAparece .8s ease 1.4s both, demoSube .9s var(--ig-suave) 1.4s both; }
@keyframes demoSube { from { transform: translateY(24px); } to { transform: none; } }
.dw-top { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 10px; background: #EFE8E1; border-bottom: 1px solid #E2D8CE; }
.dw-dots { display: flex; gap: 4px; }
.dw-dots i { width: 6px; height: 6px; border-radius: 50%; background: #E26D5C; }
.dw-dots i:nth-child(2) { background: #E7B33E; }
.dw-dots i:nth-child(3) { background: #58B368; }
.dw-url { font-size: .6rem; color: #7A6E82; letter-spacing: .02em; }
.dw-body { display: grid; gap: 7px; padding: 12px 13px 13px; }
.dw-kicker { font-size: .62rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #B4602A; }
.dw-campo { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 6px 9px; border-radius: 8px; background: #fff; border: 1px solid #ECE3DA; }
.dw-campo small, .dw-label { font-size: .58rem; color: #8B8090; }
.dw-campo b { font-size: .7rem; color: #2A2233; text-align: right; }
.dw-horas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.dw-horas span { padding: 5px 0; text-align: center; border-radius: 7px; font-size: .64rem; font-weight: 600; color: #4A3F52; background: #fff; border: 1px solid #ECE3DA;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ig-suave); }
.dw-horas span.elegida { background: #2A2233; color: #FFD27A; border-color: #2A2233; transform: scale(1.06); }
.dw-btn { margin-top: 2px; padding: 8px 0; text-align: center; border-radius: 999px; font-size: .7rem; font-weight: 800; color: #1B1204;
  background: linear-gradient(135deg, #FFC044, #F28B11); transition: transform .2s var(--ig-suave), background .3s, color .3s; }
.dw-btn.pulsado { transform: scale(.93); }
.dw-btn.hecho { background: #2F9E5B; color: #fff; }

/* El punto que viaja de la web al panel */
.demo-vuelo { position: absolute; z-index: 12; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; opacity: 0; pointer-events: none;
  background: #FFE0A3; box-shadow: 0 0 0 4px rgba(245, 158, 11, .3), 0 0 22px 6px rgba(245, 158, 11, .6); }

/* Etiqueta clara de demostración */
.demo-etiqueta { position: absolute; z-index: 9; top: 12px; left: 2%; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px;
  border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: #E9E3F1;
  background: rgba(20, 15, 32, .9); border: 1px solid rgba(167, 146, 205, .3); animation: hvAparece .8s ease 1.2s both; }
.demo-etiqueta i { width: 7px; height: 7px; border-radius: 50%; background: var(--ig-naranja); box-shadow: 0 0 8px rgba(245, 158, 11, .8); animation: hvPulsoTxt 1.2s ease-in-out infinite alternate; }

/* El panel se corre a la derecha y la web de reservas ocupa el hueco de la izquierda:
   así no tapa la agenda ni los contadores, que es donde pasa la demo */
@media (min-width: 1101px) {
  .hero-vivo .app-stage { margin-left: 19%; }
  .demo-web { left: 0; bottom: 118px; width: 204px; }
  .hero-vivo .hero-visual .chip-bottom { left: 0; right: auto; top: 27%; bottom: auto; }
}
.hero-vivo .hero-visual .chip-top { top: 3%; right: 0; }

/* Los 4 pasos de la demo */
.demo-pasos { position: relative; z-index: 8; list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  animation: hvAparece .8s ease 1.6s both; }
.demo-pasos li { position: relative; display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 12px; min-width: 0;
  background: rgba(20, 15, 32, .78); border: 1px solid var(--ig-linea); color: #A79FB6; font-size: .74rem; line-height: 1.3;
  transition: border-color .35s, color .35s, background .35s; }
.demo-pasos b { flex: none; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; font-size: .72rem;
  color: #CFC6DD; background: rgba(167, 146, 205, .14); transition: background .35s, color .35s, box-shadow .35s; }
.demo-pasos li.activo { border-color: rgba(245, 158, 11, .7); color: #F5EFFA; background: rgba(42, 30, 20, .7); }
.demo-pasos li.activo b { color: #1B1204; background: var(--ig-naranja-claro); box-shadow: 0 0 14px rgba(245, 158, 11, .55); }
.demo-pasos li.hecho { color: #CFC8DB; }
.demo-pasos li.hecho b { color: #0F2A1A; background: #7BD6A0; }
/* La cita que sale de la agenda se recorta mientras se cierra (si no, su texto pisa a la siguiente) */
.hero-vivo .agenda-row { overflow: hidden; }

/* ── 3 · Títulos de sección: una raya de luz que nace debajo, como el hilo ── */
.sx-titulo::after { content: ""; display: block; width: 72px; height: 2px; margin: 16px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--ig-naranja), transparent); transform: scaleX(0); transition: transform .9s var(--ig-suave) .25s; }
.sx-titulo.in::after, html:not(.js) .sx-titulo::after { transform: scaleX(1); }

/* ── 4 · Servicios ────────────────────────────────────────────────────── */
.svc { box-shadow: 0 10px 30px rgba(0, 0, 0, .22); overflow: hidden; isolation: isolate; }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(380px circle at 0% 0%, rgba(245, 158, 11, .1), transparent 60%); }
.svc:hover::before, .svc:focus-visible::before { opacity: 1; }
.svc:hover, .svc:focus-visible { box-shadow: 0 18px 44px rgba(0, 0, 0, .32); }
.svc-grid .svc:nth-child(1) { transition-delay: 0s; }
.svc-grid .svc:nth-child(2) { transition-delay: .14s; }
.svc-grid .svc:nth-child(3) { transition-delay: .28s; }
.svc-grid .svc.in:hover { transition-delay: 0s; }
/* El icono se dibuja al aparecer la tarjeta */
.js .svc-ico svg *, .js .px-ico svg *, .js .px-escudo svg * { stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.3s cubic-bezier(.6, 0, .2, 1); }
.js .svc.in .svc-ico svg * { stroke-dashoffset: 0; transition-delay: .45s; }
.js .svc-grid .svc:nth-child(2).in .svc-ico svg * { transition-delay: .6s; }
.js .svc-grid .svc:nth-child(3).in .svc-ico svg * { transition-delay: .75s; }
.js .px-paso.in .px-ico svg *, .js .px-soporte.in .px-escudo svg * { stroke-dashoffset: 0; transition-delay: .4s; }
.svc:hover .svc-ico { border-color: rgba(245, 158, 11, .55); }
.svc-ico { transition: border-color .3s, transform .4s var(--ig-suave); }
.svc:hover .svc-ico { transform: rotate(-6deg) scale(1.06); }

/* ── 5 · Proyectos: reto · solución · qué aporta · tecnologías ───────── */
.p-caso { display: grid; gap: 12px; margin-top: 2px; }
.caso-fila { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: start; padding-top: 12px; border-top: 1px solid var(--ig-linea); }
.caso-fila:first-child { border-top: 0; padding-top: 0; }
#proyectos .projects-bento .tag { font-size: .72rem; }
.p-destacado { font-size: .74rem; }
.caso-et { position: relative; padding-left: 13px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #F2B95A; line-height: 1.9; }
.caso-et::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--ig-naranja); box-shadow: 0 0 8px rgba(245, 158, 11, .6); }
#proyectos .projects-bento .caso-fila p, #proyectos .projects-bento .caso-fila ul { font-size: .9rem; line-height: 1.6; color: #B5AEC2; }
#proyectos .projects-bento .caso-fila ul { gap: 4px; }
.caso-fila .p-stack { margin-top: 0; }
/* Aparición: la captura entra desde abajo y las filas del caso, una a una */
.js #proyectos .projects-bento .project .p-frame { opacity: 0; translate: 0 34px; transition: opacity .9s ease .15s, translate 1s var(--ig-suave) .15s, transform .6s var(--ig-suave), box-shadow .5s; }
.js #proyectos .projects-bento .project.in .p-frame { opacity: 1; translate: 0 0; }
.js #proyectos .caso-fila { opacity: 0; translate: -14px 0; transition: opacity .6s ease, translate .7s var(--ig-suave); }
.js #proyectos .project.in .caso-fila { opacity: 1; translate: 0 0; }
.js #proyectos .project.in .caso-fila:nth-child(1) { transition-delay: .25s; }
.js #proyectos .project.in .caso-fila:nth-child(2) { transition-delay: .37s; }
.js #proyectos .project.in .caso-fila:nth-child(3) { transition-delay: .49s; }
.js #proyectos .project.in .caso-fila:nth-child(4) { transition-delay: .61s; }
/* Hover: un barrido de luz cruza la captura */
.p-frame { position: relative; }
.p-frame::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .13) 50%, transparent 65%); transform: translateX(-110%); }
.project:hover .p-frame::after { transform: translateX(110%); transition: transform 1.1s ease; }
.project-star .p-info { gap: 18px; }
#proyectos .projects-bento .project { box-shadow: 0 16px 44px rgba(0, 0, 0, .24); }

/* ── 6 · Proceso: los pasos conectados por una línea que se rellena ──── */
.px-pasos { position: relative; isolation: isolate; }
.px-paso + .px-paso::before { display: none; }       /* fuera las flechas: ahora los une la línea */
.px-ico { position: relative; z-index: 2; border-color: rgba(167, 146, 205, .32); color: #9C93AE; box-shadow: none;
  transition: border-color .5s, color .5s, box-shadow .5s, background .5s; }
.px-pasos.pista-h::before, .px-pasos.pista-h::after,
.px-pasos.pista-v::before, .px-pasos.pista-v::after { content: ""; position: absolute; z-index: 1; left: var(--pista-x); top: var(--pista-y); border-radius: 2px; pointer-events: none; }
.px-pasos.pista-h::before, .px-pasos.pista-h::after { width: var(--pista-w); height: 2px; margin-top: -1px; }
.px-pasos.pista-v::before, .px-pasos.pista-v::after { width: 2px; height: var(--pista-h); margin-left: -1px; }
.px-pasos::before { background: rgba(167, 146, 205, .2); opacity: 0; transition: opacity .6s; }
.px-pasos.conectado::before { opacity: 1; }
.px-pasos.pista-h::after { background: linear-gradient(90deg, var(--ig-naranja), var(--ig-naranja-claro)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s cubic-bezier(.6, 0, .2, 1) .2s; }
.px-pasos.pista-v::after { background: linear-gradient(180deg, var(--ig-naranja), var(--ig-naranja-claro)); transform: scaleY(0); transform-origin: top; transition: transform 1.8s cubic-bezier(.6, 0, .2, 1) .2s; }
/* En vertical (móvil) la línea cruzaría el texto de las tarjetas: solo se encienden los iconos uno a uno */
.px-pasos.pista-v::before, .px-pasos.pista-v::after { display: none; }
.px-pasos.conectado::after { transform: none; box-shadow: 0 0 10px rgba(245, 158, 11, .5); }
.px-pasos.conectado .px-ico { border-color: var(--ig-naranja); color: #FBB13C; background: #221829; box-shadow: 0 0 18px rgba(245, 158, 11, .22); }
.px-pasos.conectado .px-paso:nth-child(1) .px-ico { transition-delay: .2s; }
.px-pasos.conectado .px-paso:nth-child(2) .px-ico { transition-delay: .75s; }
.px-pasos.conectado .px-paso:nth-child(3) .px-ico { transition-delay: 1.3s; }
.px-pasos.conectado .px-paso:nth-child(4) .px-ico { transition-delay: 1.85s; }
.px-soporte { box-shadow: 0 0 30px rgba(245, 158, 11, .08); }
.px-condiciones { display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; font-size: .78rem; font-weight: 700; color: var(--ig-naranja-claro); text-decoration: none; }
.px-condiciones span { transition: transform .25s var(--ig-suave); }
.px-condiciones:hover span { transform: translateX(4px); }

/* ── 7 · Sobre mí y preguntas frecuentes ──────────────────────────────── */
.duo-sobre { grid-template-columns: minmax(200px, .8fr) minmax(0, 1.2fr); gap: 30px; padding: 30px; align-items: start; }
.sobre-foto { position: sticky; top: 100px; margin: 0; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column;
  border: 1px solid rgba(245, 158, 11, .22); background: #100C1B; }
.sobre-foto .sobre-marca { flex: 1; aspect-ratio: auto; border: 0; border-radius: 0; }
.sobre-foto figcaption { padding: 11px 14px; font-size: .74rem; font-weight: 600; color: #BDB5CB; letter-spacing: .02em; background: rgba(12, 9, 20, .92); border-top: 1px solid var(--ig-linea); }
.sobre-foto.con-foto > img { width: 100%; flex: 1; min-height: 0; object-fit: cover; display: block; }
.foto-esquina { position: absolute; z-index: 2; width: 18px; height: 18px; border-color: var(--ig-naranja); border-style: solid; border-width: 0; opacity: .8; }
.fe-1 { top: 10px; left: 10px; border-top-width: 2px; border-left-width: 2px; border-top-left-radius: 6px; }
.fe-2 { top: 10px; right: 10px; border-top-width: 2px; border-right-width: 2px; border-top-right-radius: 6px; }
.fe-3 { bottom: 52px; left: 10px; border-bottom-width: 2px; border-left-width: 2px; border-bottom-left-radius: 6px; }
.fe-4 { bottom: 52px; right: 10px; border-bottom-width: 2px; border-right-width: 2px; border-bottom-right-radius: 6px; }
/* Con la foto real del setup: la foto (apaisada) va a todo el ancho de la tarjeta, encima del texto */
.duo-sobre--foto { grid-template-columns: minmax(0, 1fr); gap: 26px; }
.duo-sobre--foto .sobre-foto { position: relative; top: auto; aspect-ratio: 16 / 10; border-radius: 16px; border-color: rgba(245, 158, 11, .3);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.sobre-foto.con-foto picture { position: absolute; inset: 0; }
/* En reposo sin transformar (con una transformación permanente, algunos equipos sin aceleración gráfica no la pintan);
   el zoom suave solo existe al pasar el ratón */
.sobre-foto.con-foto picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transition: transform 1.4s var(--ig-suave); }
@media (hover: hover) and (pointer: fine) {
  .duo-sobre--foto:hover .sobre-foto picture img { transform: scale(1.04); }
}
.sobre-foto.con-foto figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 4px 12px; padding: 40px 20px 15px; border-top: 0; background: linear-gradient(180deg, transparent, rgba(8, 6, 14, .9)); }
.foto-firma { color: #F3EEF9; font-weight: 700; font-size: .86rem; }
.foto-lugar { color: #FBC45E; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.sobre-foto.con-foto .foto-esquina { z-index: 3; }
.sobre-foto.con-foto .fe-3, .sobre-foto.con-foto .fe-4 { bottom: 10px; }
.sobre-confianza { list-style: none; margin: 20px 0 0; padding: 18px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--ig-linea); }
.sobre-confianza li { position: relative; display: grid; gap: 1px; padding-left: 32px; }
.sobre-confianza li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%;
  font-size: .68rem; font-weight: 800; color: var(--ig-naranja-claro); background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); }
.sobre-confianza b { font-size: .9rem; color: #F3EEF9; }
.sobre-confianza span { font-size: .82rem; color: #A9A1B8; }
.duo-faq .faq-item[open] .faq-a { animation: faqAbre .35s ease; }
@keyframes faqAbre { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── 8 · Llamadas a la acción y contacto ──────────────────────────────── */
.cta-franja { box-shadow: 0 18px 50px rgba(0, 0, 0, .28); }
.cta-btn svg, .form-enviar::before { transition: transform .3s var(--ig-suave); }
.cta-btn:hover svg { transform: translate(3px, -3px); }
.form-enviar:hover::before { transform: translate(3px, -3px); }
.canal-wa { background: #1E9E57; border-color: #1E9E57; color: #fff; }
.canal-wa .c-wa { fill: #fff; }
.canal-wa:hover { background: #22B463; border-color: #22B463; box-shadow: 0 10px 26px rgba(30, 158, 87, .28); }

/* ── 9 · Monitores grandes: aprovechar el ancho ───────────────────────── */
@media (min-width: 1600px) {
  .layout, .sx-proceso .container, .sx-duo .container, .sx-cta .container, .sx-contacto .container, footer .container { max-width: 1520px; }
  .svc-grid { gap: 24px; }
  .px-pasos { gap: 34px; }
}

/* ── 10 · Tablet y móvil ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  /* La web de reservas pasa debajo del panel, a lo ancho */
  .demo-web { position: relative; z-index: 9; left: auto; bottom: auto; width: auto; margin: 18px 4% 0; translate: none; }
  .dw-body { grid-template-columns: 1fr 1fr; align-items: end; }
  .dw-kicker { grid-column: 1 / -1; }
  .dw-label { display: none; }
  .dw-horas { grid-column: 1 / 2; }
  .dw-btn { grid-column: 2 / 3; }
  /* Los chips dejan de flotar encima del panel y van en fila debajo de la web de reservas */
  .hero-vivo .hero-visual .float-chip { position: relative; inset: auto; display: inline-flex; align-items: center; margin: 14px 8px 0 4%; translate: none; max-width: none; white-space: nowrap; }
  .hero-vivo .hero-visual .chip-bottom { margin-left: 0; }
}
@media (max-width: 980px) {
  .duo-sobre { grid-template-columns: minmax(180px, .7fr) minmax(0, 1.3fr); }
}
@media (max-width: 820px) {
  .demo-pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 16px; }
  .hero-vivo .hero-visual { padding-top: 50px !important; }
  .demo-etiqueta { top: 6px; left: 0; }
  .hilo-nodo { width: 10px; height: 10px; top: -5px; left: -5px; border-width: 1.5px; }
  .hilo-nodo::after { inset: 2px; }
  .hilo-brillo { stroke-width: 5; }
}
@media (max-width: 760px) {
  .caso-fila { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
@media (max-width: 640px) {
  .duo-sobre { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .sobre-foto { position: relative; top: auto; aspect-ratio: 16 / 10; }
  .hero-confianza li { font-size: .82rem; }
  .hero-tech li { font-size: .72rem; }
  .demo-pasos li { font-size: .7rem; padding: 8px; }
  .dw-body { grid-template-columns: minmax(0, 1fr); }
  .dw-horas, .dw-btn { grid-column: auto; }
}
@media (max-width: 380px) {
  .demo-pasos { grid-template-columns: minmax(0, 1fr); }
}

/* ── 12 · Capturas: WebP en <picture> y visor en la misma página ─────── */
img.shot { height: auto; }                        /* las capturas llevan width/height reales: que no se estiren */
.p-frame picture, .gallery picture, .pcontent picture { display: block; }
#proyecto-modal .pcontent img.shot, a.ver-captura { cursor: zoom-in; }
a.ver-captura { position: relative; display: block; }
a.ver-captura::after { content: "⤢"; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; font-size: 1rem; color: #fff; background: rgba(12, 9, 20, .78); border: 1px solid rgba(255, 255, 255, .2);
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s var(--ig-suave); }
a.ver-captura:hover::after, a.ver-captura:focus-visible::after { opacity: 1; transform: none; }

.visor { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 64px 72px 28px;
  background: rgba(6, 4, 12, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .25s ease; }
.visor[hidden] { display: none; }
.visor.abierto { opacity: 1; }
.visor-marco { margin: 0; max-width: min(1500px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px;
  transform: scale(.97); transition: transform .3s var(--ig-suave); }
.visor.abierto .visor-marco { transform: none; }
.visor-marco picture { display: block; min-height: 0; }
.visor-marco img { display: block; max-width: 100%; max-height: calc(100vh - 150px); max-height: calc(100dvh - 150px); width: auto; height: auto;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); background: #0D0A16; }
.visor-marco figcaption { display: flex; gap: 14px; align-items: baseline; justify-content: center; flex-wrap: wrap; color: #D9D2E5; font-size: .9rem; text-align: center; }
.visor-cuenta { color: var(--ig-naranja-claro); font-weight: 700; font-size: .82rem; }
.visor-cerrar { position: absolute; top: 14px; right: 16px; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  font-size: 1.9rem; line-height: 1; color: #fff; background: rgba(30, 23, 46, .95); border: 1px solid rgba(255, 255, 255, .22);
  transition: background .2s, border-color .2s, transform .25s var(--ig-suave); }
.visor-cerrar:hover { background: var(--ig-naranja); border-color: var(--ig-naranja); color: #1B1204; transform: rotate(90deg); }
.visor-nav { position: absolute; top: 50%; translate: 0 -50%; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  font-size: 2rem; line-height: 1; color: #fff; background: rgba(30, 23, 46, .9); border: 1px solid rgba(255, 255, 255, .18); transition: background .2s, border-color .2s; }
.visor-nav:hover { background: rgba(245, 158, 11, .9); border-color: var(--ig-naranja); color: #1B1204; }
.visor-ant { left: 14px; }
.visor-sig { right: 14px; }
.visor.solo-una .visor-nav { display: none; }
@media (max-width: 640px) {
  .visor { padding: 64px 10px 20px; }
  .visor-nav { top: auto; bottom: 18px; translate: none; width: 44px; height: 44px; }
  .visor-ant { left: 12px; }
  .visor-sig { right: 12px; }
  .visor-marco { padding-bottom: 56px; }
  .visor-marco figcaption { font-size: .82rem; }
}

/* ── 11 · Reducir movimiento: todo terminado y quieto ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  .demo-web, .demo-etiqueta, .demo-pasos, .demo-etiqueta i { animation: none !important; }
  .js .svc-ico svg *, .js .px-ico svg *, .js .px-escudo svg * { stroke-dashoffset: 0 !important; transition: none !important; }
  .js #proyectos .projects-bento .project .p-frame, .js #proyectos .caso-fila { opacity: 1 !important; translate: none !important; transition: none !important; }
  .px-pasos::after, .sx-titulo::after { transition: none !important; }
  .sx-titulo::after { transform: scaleX(1); }
  .hilo-nodo.on { animation: none; }
  .p-frame::after { display: none; }
  .visor, .visor-marco, .visor-cerrar { transition: none !important; }
}

/* Sin trazados decorativos que crucen el contenido. */
.ig-hilo, .px-pasos::before, .px-pasos::after { display: none !important; content: none !important; }
