/* Páginas de funciones (/funciones) y de tipos de cliente (/para). Va encima de app.css y web.css y reutiliza sus clases */

/* Cabecera oscura: la de la portada, con el título algo más contenido */
.fx-portada { padding: clamp(28px, 4vw, 44px) 0 clamp(64px, 8vw, 104px); }
.fx-portada .ancho-web { align-items: center; }
.fx-portada h1 { font-size: clamp(2.2rem, 4.8vw, 3.7rem); line-height: 1.04; }
.fx-portada .antetitulo img { width: 22px; height: 22px; background: #fff; border-radius: 6px; padding: 2px; }
.fx-portada .acciones { margin-top: 26px; }
.fx-portada-maqueta { min-width: 0; display: flex; justify-content: center; }
.fx-portada-indice h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); }
.fx-no-existe { display: inline-block; margin: 0 0 16px; padding: 8px 14px; border-radius: 12px; background: rgba(248, 113, 113, .14); color: #fecaca; font-weight: 600; }

/* Migas */
.fx-migas ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .88rem; color: rgba(255, 255, 255, .6); }
.fx-migas li + li::before { content: "›"; margin-right: 8px; color: rgba(255, 255, 255, .4); }
.fx-migas a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.fx-migas a:hover { color: #fff; text-decoration: underline; }
.fx-migas [aria-current] { color: rgba(255, 255, 255, .6); }

/* Chips de plan */
.fx-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-style: normal; font-weight: 700; font-size: .8rem; line-height: 1.3; background: #eef1f8; color: #14213d; white-space: nowrap; }
.fx-chip.plan-esencial { background: #e9f7ee; color: #15803d; }
.fx-chip.plan-pro { background: #fdf3e3; color: #b45309; }
.fx-chip.plan-completo { background: #14213d; color: #ffd27a; }
.fx-chip.ok { background: #e9f7ee; color: #15803d; }
.fx-chip.aviso { background: #fef3c7; color: #92400e; }
.fx-chip.marca { background: #eef1f8; color: #14213d; }
.fx-plan-chip { margin: 18px 0 0; color: rgba(255, 255, 255, .75); font-size: .95rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Maquetas: tarjetas claras con sombra, como las de «Más que un check-in» */
.fx-maqueta { width: min(440px, 100%); padding: 18px; border-radius: 24px; background: #f4f6f8; color: #14161a; font-size: .88rem; box-shadow: 0 40px 100px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(1.5deg); }
.fx-m-cabeza { display: grid; gap: 2px; padding: 4px 4px 14px; }
.fx-m-cabeza b { font-size: 1rem; letter-spacing: -.01em; }
.fx-m-cabeza span { color: #5d6470; font-size: .82rem; }
.fx-ok { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #e9f7ee; color: #15803d; font-weight: 800; font-size: .78rem; }
.fx-m-pie { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fx-m-nota { display: block; margin-top: 10px; text-align: center; color: #5d6470; font-size: .78rem; }
.fx-movil { width: min(340px, 100%); }
.fx-escena { width: min(340px, 100%); }

/* Parte de viajeros: línea de tiempo */
.fx-linea-tiempo { list-style: none; margin: 0; padding: 4px 14px; border-radius: 16px; background: #fff; border: 1px solid #e3e6eb; }
.fx-linea-tiempo li { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; }
.fx-linea-tiempo li + li { border-top: 1px solid #eef0f3; }
.fx-linea-tiempo b { display: block; }
.fx-linea-tiempo span { color: #5d6470; font-size: .8rem; }
.fx-linea-tiempo .ultimo b { color: #15803d; }
.fx-m-policias { display: flex; gap: 6px; margin-top: 12px; flex-wrap: wrap; }
.fx-m-policias span { padding: 5px 11px; border-radius: 999px; background: #fff; border: 1px solid #e3e6eb; font-weight: 600; font-size: .78rem; color: #5d6470; }
.fx-m-policias .activa { background: #14213d; color: #ffd27a; border-color: #14213d; }

/* Web de la estancia, dentro del móvil */
.fx-p { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding-bottom: 16px; }
.fx-p .movil-cabeza { margin-bottom: 4px; }
.fx-p-ok { padding: 9px 12px; border-radius: 12px; background: #e9f7ee; color: #15803d; font-weight: 700; }
.fx-p-tarjeta { display: grid; gap: 1px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #e3e6eb; }
.fx-p-tarjeta span { color: #5d6470; font-size: .74rem; font-weight: 600; }
.fx-p-tarjeta b { font-size: .95rem; }
.fx-p-tarjeta small { color: #5d6470; font-size: .74rem; }
.fx-p-tarjeta.codigo { background: linear-gradient(135deg, #14213d, #23408e); border-color: transparent; color: #fff; }
.fx-p-tarjeta.codigo span, .fx-p-tarjeta.codigo small { color: rgba(255, 255, 255, .75); }
.fx-p-tarjeta.codigo b { font-size: 1.35rem; letter-spacing: .12em; color: #ffd27a; }
.fx-p-tarjeta.fila { grid-template-columns: 1fr auto; align-items: center; }
.fx-p-tarjeta.fila div { display: grid; gap: 1px; }
.fx-p-tarjeta.fila em { font-style: normal; font-weight: 700; padding: 6px 12px; border-radius: 10px; background: linear-gradient(135deg, #fbbf24, #f5a524); color: #0e1730; }
.fx-p-guia { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-p-guia span { padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid #e3e6eb; font-weight: 600; font-size: .74rem; }
.fx-p-ia { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #e3e6eb; color: #5d6470; font-size: .76rem; }
.fx-p-ia span { flex: 1; }
.fx-p-ia i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #14213d; }

/* Channel manager */
.fx-aviso-canal { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: #14213d; color: #fff; }
.fx-aviso-canal b { display: block; font-size: .86rem; }
.fx-aviso-canal span { color: rgba(255, 255, 255, .7); font-size: .78rem; }

/* Web de reservas directas */
.fx-foto { position: relative; height: 120px; border-radius: 16px; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden;
  background: linear-gradient(180deg, rgba(11, 18, 38, 0) 35%, rgba(11, 18, 38, .78)), #c9a27a url("../img/web/atico-plaza.jpg") 50% 45% / cover no-repeat; }
.fx-foto span { font-weight: 800; font-size: 1.05rem; }
.fx-foto small { opacity: .85; }
.fx-campos { display: grid; grid-template-columns: 1fr 1fr .7fr; gap: 6px; margin: 12px 0; }
.fx-campos div { padding: 8px 10px; border-radius: 12px; background: #fff; border: 1px solid #e3e6eb; }
.fx-campos small { display: block; color: #5d6470; font-size: .7rem; font-weight: 600; }
.fx-desglose { margin: 0; padding: 4px 12px; border-radius: 14px; background: #fff; border: 1px solid #e3e6eb; }
.fx-desglose div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; }
.fx-desglose div + div { border-top: 1px solid #eef0f3; }
.fx-desglose dt { color: #5d6470; }
.fx-desglose dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.fx-desglose .total dt, .fx-desglose .total dd { color: #14161a; font-weight: 800; }
.fx-desglose .ahora dd { color: #b45309; font-weight: 800; }
.fx-desglose .sub dt, .fx-desglose .sub dd { font-size: .8rem; }
.fx-boton { display: block; margin-top: 12px; padding: 12px; border-radius: 12px; text-align: center; font-weight: 800; background: linear-gradient(135deg, #fbbf24, #f5a524 45%, #f97316); color: #0e1730; }

/* Cobros */
.fx-pagos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-pagos li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 14px; background: #fff; border: 1px solid #e3e6eb; }
.fx-pagos span { font-weight: 600; }
.fx-pagos b { font-variant-numeric: tabular-nums; }

/* Cerradura */
.fx-cerradura { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid #e3e6eb; }
.fx-teclado { display: grid; grid-template-columns: repeat(3, 34px); gap: 6px; }
.fx-teclado i { transition: background .15s, color .15s, transform .15s; display: grid; place-items: center; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #ffd27a; font-style: normal; font-weight: 700; font-size: .85rem; }
.fx-teclado i.vacia { background: none; }
.fx-codigo small { display: block; color: #5d6470; font-weight: 600; font-size: .76rem; }
.fx-codigo b { display: block; font-size: clamp(1.5rem, 4vw, 2rem); letter-spacing: .14em; color: #14213d; margin: 2px 0 4px; }
.fx-codigo span { color: #5d6470; font-size: .8rem; }
.fx-pasos-codigo { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.fx-pasos-codigo li { display: flex; align-items: center; gap: 8px; color: #5d6470; font-size: .82rem; }
.fx-pasos-codigo li:not(.hecho)::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%; border: 2px dashed #ccd3dd; box-sizing: border-box; }
.fx-pasos-codigo .hecho { color: #14161a; font-weight: 600; }

/* Precios dinámicos: calendario de dos semanas */
.fx-calendario { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.fx-calendario span { display: grid; gap: 2px; padding: 7px 4px; border-radius: 10px; background: #fff; border: 1px solid #e3e6eb; text-align: center; min-width: 0; }
.fx-calendario small { color: #5d6470; font-size: .66rem; font-weight: 600; }
.fx-calendario b { font-size: .78rem; font-variant-numeric: tabular-nums; white-space: nowrap; letter-spacing: -.02em; }
.fx-calendario .finde { background: #fdf3e3; border-color: #f6d9a8; }
.fx-calendario .festivo { background: #fde7d4; border-color: #f8bf8f; }
.fx-calendario .hueco { background: #e9f7ee; border-color: #b9e4c7; }
.fx-calendario .ocupado { background: repeating-linear-gradient(135deg, #e7eaf0 0 6px, #f1f3f6 6px 12px); }
.fx-calendario .ocupado b { font-size: .6rem; color: #5d6470; font-weight: 700; }
.fx-leyenda { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .76rem; font-weight: 600; color: #3b414b; }
.fx-leyenda li { display: flex; align-items: center; gap: 6px; }
.fx-leyenda li::before { content: ""; width: 12px; height: 12px; border-radius: 4px; }
.fx-leyenda .finde::before { background: #f6d9a8; }
.fx-leyenda .festivo::before { background: #f8bf8f; }
.fx-leyenda .hueco::before { background: #b9e4c7; }

/* Factura */
.fx-m-factura { background: #fff; }
.fx-fac-cabeza { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 2px 2px 14px; flex-wrap: wrap; }
.fx-fac-cabeza b { display: block; font-size: 1rem; }
.fx-fac-cabeza span:not(.fx-chip) { color: #5d6470; font-size: .78rem; }
.fx-m-factura .fx-desglose { background: #f8f9fb; }
.fx-fac-pie { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.fx-fac-pie small { color: #5d6470; font-size: .76rem; line-height: 1.4; }
.fx-qr { flex: none; display: grid; grid-template-columns: repeat(9, 7px); gap: 1px; padding: 6px; border-radius: 8px; background: #fff; border: 1px solid #e3e6eb; }
.fx-qr i { width: 7px; height: 7px; background: #fff; }
.fx-qr i.si { background: #14161a; }

/* Perfil: lo que más le importa */
.fx-perfil-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fx-perfil-lista li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid #e3e6eb; }
.fx-perfil-lista b { display: block; font-size: .9rem; }
.fx-perfil-lista div span { color: #5d6470; font-size: .78rem; line-height: 1.35; display: block; }

/* Pasos numerados (sobre .flujo de la portada) */
.fx-pasos { list-style: none; padding: 0; text-align: center; }
.fx-pasos.n4 { grid-template-columns: repeat(4, 1fr); }
.fx-pasos.n4::before { left: 12%; right: 12%; }
.fx-num { font-size: 2rem; font-weight: 800; letter-spacing: -.04em; color: var(--marca); }
.fx-pasos .paso-flujo h3 { margin-bottom: 8px; }
@media (max-width: 980px) {
  .fx-pasos.n4 { grid-template-columns: 1fr 1fr; gap: 40px 22px; }
  .fx-pasos.n4::before { display: none; }
}
@media (max-width: 820px) { .fx-pasos.n4 { grid-template-columns: 1fr; } }

/* Ventajas: tarjetas de .pieza en una rejilla propia */
.fx-ventajas { list-style: none; padding: 0; margin: 52px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.fx-ventajas.n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fx-ventajas .pieza { grid-column: auto; }
.fx-marca { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 14px; background: #fff8ec; border: 1px solid #f6e3bf; color: #b45309; font-weight: 800; }
@media (max-width: 900px) { .fx-ventajas, .fx-ventajas.n4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fx-ventajas, .fx-ventajas.n4 { grid-template-columns: 1fr; } }
.fx-nota { max-width: 800px; margin: 28px auto 0; padding: 16px 20px; border-radius: 16px; background: var(--aviso-claro); color: var(--aviso); font-weight: 600; text-align: center; }

/* Bloque del plan */
.fx-plan { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.fx-plan-texto .lista-ok { margin-top: 22px; }
.fx-plan-texto .lista-ok li { color: var(--suave); }
.fx-plan-texto .lista-ok li.plan-todo { color: var(--tinta); }
.fx-plan-cuadro { padding: 28px; border-radius: 28px; background: var(--papel); border: 1px solid var(--borde); box-shadow: 0 30px 70px rgba(20, 33, 61, .1); }
.fx-planes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-plan-mini { position: relative; display: grid; gap: 4px; align-content: start; padding: 34px 14px 16px; border-radius: 18px; border: 1px solid var(--borde); background: var(--fondo); text-align: center; }
.fx-plan-mini.marcado { background: var(--papel); border: 2px solid #f5a524; box-shadow: 0 16px 36px rgba(245, 165, 36, .22); }
.fx-plan-mini.apagado { opacity: .55; }
.fx-plan-mini .plan-sello { top: 8px; right: 50%; translate: 50% 0; padding: 3px 10px; font-size: .72rem; white-space: nowrap; }
.fx-plan-nombre { font-size: 1.1rem; }
.fx-plan-precio { color: var(--suave); font-size: .85rem; }
.fx-plan-precio b { display: block; color: var(--tinta); font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.04em; line-height: 1.1; }
.fx-plan-ano { color: var(--suave); font-size: .78rem; }
.fx-plan-si { margin-top: 6px; font-weight: 700; font-size: .84rem; color: var(--ok); }
.fx-plan-si i { font-style: normal; }
.fx-plan-mini.apagado .fx-plan-si { color: var(--suave); }
.fx-plan-pie { margin: 16px 0 0; color: var(--suave); font-size: .88rem; text-align: center; }
.fx-plan-cuadro .acciones { margin-top: 18px; justify-content: center; gap: 10px; }
@media (max-width: 960px) { .fx-plan { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 460px) {
  .fx-plan-cuadro { padding: 18px 14px; }
  .fx-planes { gap: 6px; }
  .fx-plan-mini { padding: 30px 6px 12px; }
  .fx-plan-mini .plan-sello { font-size: .66rem; padding: 2px 7px; }
  .fx-plan-cuadro .btn { width: 100%; }
}

/* Tarjetas que enlazan a funciones y perfiles */
.fx-tarjetas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0 14px; }
.fx-tarjetas.grandes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 44px; }
.fx-perfiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 44px; }
.fx-perfiles.grandes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fx-tarjeta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 20px; border-radius: 22px; background: var(--papel); border: 1px solid var(--borde); color: var(--tinta); text-decoration: none; transition: transform .25s, box-shadow .25s, border-color .25s; }
.fx-tarjeta:hover { transform: translateY(-3px); border-color: #f5a524; box-shadow: 0 20px 44px rgba(20, 33, 61, .1); }
.fx-tarjeta b { font-size: 1.05rem; letter-spacing: -.01em; }
.fx-tarjeta-texto { color: var(--suave); font-size: .92rem; flex: 1; }
.fx-tarjeta-lista { color: var(--suave); font-size: .82rem; font-weight: 600; }
.fx-tarjeta-ico { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 14px; background: #fff8ec; border: 1px solid #f6e3bf; margin-bottom: 6px; }
.fx-perfil-lista .fx-tarjeta-ico { width: 40px; height: 40px; border-radius: 12px; margin: 0; }
.fx-tarjeta .fx-chip { margin-top: 6px; }
.fx-tarjeta-mas { margin-top: 8px; color: var(--marca); font-weight: 700; font-size: .92rem; }
.fx-tarjeta-mas::after { content: " →"; }
.fx-tarjetas.grandes .fx-tarjeta { padding: 26px; }
@media (max-width: 1000px) { .fx-perfiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .fx-tarjetas.grandes, .fx-perfiles.grandes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .fx-tarjetas, .fx-tarjetas.grandes, .fx-perfiles, .fx-perfiles.grandes { grid-template-columns: 1fr; } }

.fx-chips-perfiles { list-style: none; padding: 0; margin: 16px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.fx-chips-perfiles a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 8px; border-radius: 999px; background: var(--papel); border: 1px solid var(--borde); color: var(--tinta); font-weight: 600; font-size: .9rem; text-decoration: none; transition: border-color .2s; }
.fx-chips-perfiles a:hover { border-color: #f5a524; }
.fx-chips-perfiles img { width: 22px; height: 22px; border-radius: 6px; background: #fff; }

/* Grupos del índice */
.fx-grupo-cabeza { max-width: 760px; }
.fx-grupo-cabeza h2 { margin-bottom: 10px; }

/* Guías y relacionados */
.fx-relacionado { padding: clamp(56px, 8vw, 88px) 0; }
.fx-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.fx .fx-h2-peq { font-size: clamp(1.35rem, 2.4vw, 1.7rem); margin: 0 0 4px; }
.fx-dos > div > .fx-h2-peq ~ .fx-h2-peq { margin-top: 18px; }
.fx-guias { margin-top: 18px; }
@media (max-width: 900px) { .fx-dos { grid-template-columns: 1fr; gap: 32px; } }

/* Llamada final */
.fx-final-bloque { padding-bottom: 0; }
.fx-garantias { justify-content: center; margin-top: 22px; }

/* Móvil */
@media (max-width: 960px) {
  .fx-portada .ancho-web { gap: 44px; }
  .fx-maqueta { transform: none; }
}
@media (max-width: 560px) {
  .fx-maqueta { padding: 14px; border-radius: 20px; }
  .fx-cerradura { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .fx-perfil-lista li { grid-template-columns: auto 1fr; }
  .fx-perfil-lista li .fx-chip { grid-column: 2; justify-self: start; }
  .fx-calendario { gap: 3px; }
  .fx-calendario span { padding: 6px 2px; }
  .fx-calendario b { font-size: .7rem; }
  .fx-pagos li { grid-template-columns: 1fr auto; }
  .fx-pagos li .fx-chip { grid-column: 1 / -1; justify-self: start; }
  .fx-portada .acciones .btn { width: 100%; }
}

/* ===================================================================================
   Maquetas con vida (assets/js/funciones.js): .fx-vida se anima en bucle con .fx-anda mientras se ve.
   Sin .fx-anda (sin JS o con movimiento reducido) se ve el estado final, quieto.
   =================================================================================== */
.fx-vida [data-en] { transition: opacity .45s ease, transform .55s cubic-bezier(.2, 1.25, .4, 1); }
/* Lo que aparece en su paso: oculto hasta entonces, pero guarda su sitio */
.fx-anda [data-en]:not(.fx-si):not(.fx-estado) { opacity: 0; transform: translateY(8px) scale(.97); }
/* Solo mientras dura su paso (en quieto no se ve), guardando su sitio */
.fx-solo:not(.fx-si) { opacity: 0; pointer-events: none; }
/* Solo mientras dura su paso, sin guardar sitio */
.fx-antes:not(.fx-si) { display: none !important; }
.fx-anda .fx-antes.fx-si { animation: fx-entra .45s cubic-bezier(.2, 1.25, .4, 1) both; }
@keyframes fx-entra { from { opacity: 0; transform: translateY(8px) scale(.96); } }
/* Sello: salta un poco al llegar */
.fx-anda .fx-sello.fx-si { animation: fx-sello .6s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes fx-sello { 0% { opacity: 0; transform: scale(.7); } 60% { opacity: 1; transform: scale(1.05); } 100% { transform: none; } }
/* El primer paso se pone sin transiciones */
.fx-sin-paso, .fx-sin-paso * { transition: none !important; animation-duration: 0s !important; animation-delay: 0s !important; }
/* Capas que se sustituyen en el mismo sitio */
.fx-pila { display: grid; }
.fx-pila > .fx-capa, .fx-vida .fx-pila > .fx-capa { grid-area: 1 / 1; min-width: 0; }
/* Dedo que toca */
.fx-toque { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: rgba(20, 33, 61, .28); box-shadow: 0 0 0 2px rgba(255, 255, 255, .7); pointer-events: none; }
.fx-anda .fx-toque.fx-si { animation: fx-toque 1s ease-out .2s both; }
@keyframes fx-toque { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(.75); } 100% { opacity: 0; transform: scale(1.5); } }
.fx-pulsa { transition: transform .15s, filter .15s; }
.fx-pulsa.fx-si { transform: scale(.95); filter: brightness(.94); }
/* Rueda de espera */
.fx-espera { display: inline-block; flex: none; width: 24px; height: 24px; border-radius: 50%; border: 3px solid #f6d9a8; border-top-color: #f5a524; box-sizing: border-box; }
.fx-anda .fx-espera { animation: fx-gira .8s linear infinite; }
@keyframes fx-gira { to { transform: rotate(360deg); } }

/* Barra de estado del móvil (va sobre la isla del marco de web.css) */
.fx-estado-movil { position: absolute; z-index: 4; top: 12px; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 0 24px 0 30px; color: #14161a; font-size: .76rem; line-height: 18px; pointer-events: none; }
.fx-estado-movil b { font-weight: 700; letter-spacing: .01em; }
.fx-estado-movil span { display: flex; align-items: center; gap: 5px; }
.fx-estado-movil svg { display: block; width: auto; height: 11px; fill: currentColor; }
.fx-estado-movil.clara { color: #fff; }

/* WhatsApp: aviso en la pantalla y conversación */
.fx-wa-escena { position: relative; width: min(340px, 100%); }
.fx-wa-escena .fx-movil { width: 100%; }
.fx-wa .wa-pantalla { min-height: 610px; }
.fx-wa .wa-msg.envia time::after { content: none; }
.fx-tic { text-decoration: none; color: #53bdeb; transition: color .4s; }
.fx-anda .fx-tic:not(.fx-si) { color: #8696a0; }
.fx-escribe { flex: none; }
.fx-notif.flotante { top: 40px; left: 8px; right: 8px; width: auto; opacity: 1; transform: none; z-index: 5; box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
.fx-anda .fx-notif.fx-si { animation: fx-baja .5s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes fx-baja { from { opacity: 0; transform: translateY(-24px); } }

/* Llamada */
.fx-ll { display: flex; flex-direction: column; gap: 12px; min-height: 600px; padding: 54px 14px 18px; background: linear-gradient(180deg, #23345f, #0b1226 62%); color: #fff; }
.fx-ll-cabeza { display: grid; justify-items: center; gap: 2px; text-align: center; padding-top: 4px; }
.fx-ll-cabeza .fx-ll-avatar { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: 6px; border-radius: 50%; background: linear-gradient(135deg, #fbbf24, #f97316); color: #0e1730; font-weight: 800; font-size: 1.25rem; }
.fx-ll-cabeza b { font-size: 1.12rem; letter-spacing: -.01em; }
.fx-ll-cabeza span { color: rgba(255, 255, 255, .65); font-size: .74rem; }
.fx-ll-cabeza time { margin-top: 4px; font-weight: 700; color: #86efac; font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.fx-ll-ia { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .07); }
.fx-ll-ia small { color: rgba(255, 255, 255, .78); font-size: .72rem; font-weight: 600; line-height: 1.3; }
.fx-onda { display: flex; align-items: center; justify-content: center; gap: 3px; flex: none; height: 30px; }
.fx-onda i { width: 3px; height: 10px; border-radius: 3px; background: #86efac; }
.fx-onda i:nth-child(3n) { height: 18px; } .fx-onda i:nth-child(4n + 1) { height: 6px; } .fx-onda i:nth-child(5n + 2) { height: 22px; }
.fx-anda .fx-onda i { animation: fx-onda 1.1s ease-in-out infinite; }
.fx-anda .fx-onda i:nth-child(2n) { animation-duration: .85s; animation-delay: .2s; }
.fx-anda .fx-onda i:nth-child(3n) { animation-duration: 1.3s; animation-delay: .35s; }
.fx-anda .fx-onda i:nth-child(5n) { animation-duration: .7s; animation-delay: .1s; }
@keyframes fx-onda { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(1.35); } }
.fx-dialogo { display: grid; gap: 7px; }
.fx-dialogo p { margin: 0; max-width: 88%; padding: 8px 11px; border-radius: 14px; line-height: 1.38; font-size: .76rem; }
.fx-dialogo small { display: block; font-size: .64rem; font-weight: 700; opacity: .7; margin-bottom: 2px; }
.fx-dialogo .huesped { justify-self: end; background: rgba(255, 255, 255, .12); border-bottom-right-radius: 4px; }
.fx-dialogo .ia { justify-self: start; background: #fff; color: #14161a; border-bottom-left-radius: 4px; }
.fx-ll .fx-m-pie { margin-top: 2px; }
.fx-ll .fx-chip { background: rgba(255, 255, 255, .12); color: #fff; font-size: .72rem; }
.fx-ll .fx-chip.ok { background: rgba(134, 239, 172, .16); color: #86efac; }
.fx-ll-botones { display: flex; justify-content: space-between; margin-top: auto; padding: 6px 10px 0; }
.fx-ll-botones i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.fx-ll-botones svg { width: 22px; height: 22px; fill: #fff; }
.fx-ll-botones .colgar { background: #ef4444; }

/* Channel manager: calendario de dos semanas */
.fx-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto 26px 26px 26px 26px; padding: 10px 8px; border-radius: 16px; background: #fff; border: 1px solid #e3e6eb; }
.fx-cal small { padding-bottom: 6px; text-align: center; color: #5d6470; font-size: .68rem; font-weight: 700; }
.fx-cal span { display: grid; place-items: center; border-top: 1px solid #eef0f3; color: #3b414b; font-size: .8rem; font-weight: 600; }
.fx-barra { position: relative; z-index: 1; align-self: center; height: 22px; margin: 0 3px; padding: 0 8px; border-radius: 7px; color: #fff; font-size: .68rem; font-weight: 700; line-height: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform-origin: left center; }
.fx-barra.airbnb { background: #ff385c; }
.fx-barra.booking { background: #003580; margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.fx-barra.booking.sigue { margin: 0 3px 0 0; border-radius: 0 7px 7px 0; }
.fx-barra.vrbo { background: #245abc; }
.fx-anda .fx-cal .fx-barra:not(.fx-si) { opacity: 0; transform: scaleX(.12); }
.fx-anda .fx-cal .fx-barra.sigue { transition-delay: .3s; }
.fx-anda .fx-cal .fx-barra.fx-si { animation: fx-brilla 1.4s ease-out .4s; }
@keyframes fx-brilla { 0% { box-shadow: 0 0 0 0 rgba(245, 165, 36, .7); } 100% { box-shadow: 0 0 0 10px rgba(245, 165, 36, 0); } }
.fx-portales { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.fx-portal { position: relative; display: grid; place-items: center; height: 38px; padding: 0 8px; border-radius: 12px; background: #fff; border: 1px solid #e3e6eb; }
.fx-portal img { max-width: 100%; max-height: 17px; }
.fx-portal i { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.fx-anda[data-paso="1"] .fx-portal i, .fx-anda[data-paso="2"] .fx-portal i { animation: fx-sincro 1s ease-out 2; }
@keyframes fx-sincro { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); } 100% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } }
.fx-texto-logo { font-weight: 800; color: #1f2f6b; letter-spacing: -.02em; font-size: .86rem; }
.fx-avisos { margin-top: 10px; }
.fx-aviso-canal.tranquilo { background: #fff; color: #14161a; border: 1px solid #e3e6eb; }
.fx-aviso-canal.tranquilo span { color: #5d6470; }

/* Reservas directas: la web de reservas en el móvil */
.fx-r { display: flex; flex-direction: column; gap: 8px; min-height: 600px; padding: 44px 12px 16px; font-size: .78rem; }
.fx-url { display: flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 10px; border-radius: 999px; background: #e3e7ee; color: #3b414b; font-size: .68rem; font-weight: 600; white-space: nowrap; overflow: hidden; }
.fx-url svg { flex: none; width: 10px; height: 10px; fill: #5d6470; }
.fx-r .fx-foto { flex: none; height: 104px; padding: 12px; border-radius: 14px; }
.fx-r .fx-foto span { font-size: .95rem; }
.fx-r-mes { display: flex; justify-content: space-between; align-items: baseline; padding: 0 2px; }
.fx-r-mes b { font-size: .88rem; }
.fx-r-mes span { color: #5d6470; font-size: .72rem; font-weight: 600; }
.fx-r-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px 0; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid #e3e6eb; text-align: center; }
.fx-r-cal small { padding: 1px 0 3px; color: #8a919c; font-size: .6rem; font-weight: 700; }
.fx-dia { position: relative; display: grid; place-items: center; height: 27px; font-weight: 600; transition: background .35s, color .35s, border-radius .35s; }
.fx-dia.ocupado { color: #b6bcc6; text-decoration: line-through; }
.fx-dia.ini, .fx-dia.fin { background: #14213d; color: #ffd27a; }
.fx-dia.ini { border-radius: 9px 0 0 9px; }
.fx-dia.fin { border-radius: 0 9px 9px 0; }
.fx-dia.rango { background: #fdf3e3; color: #14213d; }
.fx-anda .fx-dia.fx-estado:not(.fx-si) { background: transparent; color: #14161a; }
.fx-anda[data-paso="1"] .fx-dia.ini { border-radius: 9px; }
.fx-r .fx-campos { margin: 0; gap: 5px; }
.fx-r .fx-campos div { padding: 6px 8px; border-radius: 10px; }
.fx-r .fx-campos b { font-size: .82rem; }
.fx-r .fx-desglose { padding: 2px 10px; border-radius: 12px; }
.fx-r .fx-desglose div { padding: 4px 0; }
.fx-r-pie { margin-top: auto; }
.fx-r .fx-boton, .fx-c .fx-boton { position: relative; overflow: hidden; margin: 0; padding: 11px; }
.fx-r-ok { display: grid; gap: 1px; place-content: center; padding: 6px 8px; border-radius: 12px; background: #e9f7ee; color: #15803d; text-align: center; }
.fx-r-ok b { font-size: .86rem; }
.fx-r-ok small { color: #3b414b; font-size: .7rem; }

/* Cobros: la web de la estancia, con la hoja de pago */
.fx-c { display: flex; flex-direction: column; gap: 8px; min-height: 580px; }
.fx-c .movil-cabeza { margin-bottom: 2px; }
.fx-c-titulo { margin: 2px 2px 0; font-weight: 800; font-size: .95rem; }
.fx-c .fx-pagos { gap: 6px; }
.fx-c .fx-pagos li { gap: 8px; padding: 10px 11px; font-size: .78rem; }
.fx-c .fx-pagos .fx-chip { font-size: .7rem; padding: 3px 9px; }
.fx-c .fx-pagos .fx-pila { justify-items: end; }
.fx-c .fx-pagos li { grid-template-columns: minmax(0, 1fr) auto auto; }
.fx-c .fx-pagos li > .fx-chip, .fx-c .fx-pagos li > .fx-pila { grid-column: auto; justify-self: end; }
.fx-c .fx-pagos li > span:first-child { min-width: 0; }
.fx-c-nota { margin: 2px 2px 0; color: #5d6470; font-size: .72rem; line-height: 1.4; }
.fx-velo { position: absolute; inset: 0; z-index: 5; background: rgba(11, 18, 38, .45); transition: opacity .4s; }
.fx-hoja { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; gap: 3px; padding: 22px 16px 24px; border-radius: 22px 22px 0 0; background: #fff; box-shadow: 0 -12px 34px rgba(0, 0, 0, .22); }
.fx-vida .fx-hoja { transition: transform .5s cubic-bezier(.2, 1, .3, 1), opacity .3s; }
.fx-hoja::before { content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: #dfe3e8; }
.fx-hoja:not(.fx-si), .fx-anda .fx-c .fx-hoja:not(.fx-si) { transform: translateY(105%); }
.fx-hoja > b { font-size: 1rem; }
.fx-hoja > span { color: #5d6470; font-size: .74rem; }
.fx-tarjeta-pago { display: flex; align-items: center; gap: 8px; margin: 10px 0 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid #e3e6eb; font-weight: 700; letter-spacing: .06em; }
.fx-tarjeta-pago i { width: 28px; height: 19px; border-radius: 4px; background: linear-gradient(135deg, #14213d, #23408e); }
.fx-tarjeta-pago small { margin-left: auto; color: #5d6470; font-weight: 600; letter-spacing: 0; }
.fx-procesa, .fx-pagado { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 12px; font-weight: 800; }
.fx-procesa { background: #f4f6f8; color: #3b414b; }
.fx-pagado { background: #e9f7ee; color: #15803d; }
.fx-pagado i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #16a34a; color: #fff; font-style: normal; font-size: .8rem; }
.fx-anda .fx-pagado.fx-si i { animation: fx-sello .6s cubic-bezier(.2, 1.5, .4, 1) both; }

/* Cerradura: teclado, puntos y candado */
.fx-aparato { display: grid; justify-items: center; gap: 10px; padding: 14px 12px; border-radius: 22px; background: linear-gradient(160deg, #23345f, #0b1226); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 26px rgba(11, 18, 38, .3); color: #fff; }
.fx-aparato-cabeza { display: flex; align-items: center; gap: 7px; font-size: .78rem; }
.fx-led { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 10px #22c55e; transition: background .3s, box-shadow .3s; }
.fx-anda .fx-led:not(.fx-si) { background: #f5a524; box-shadow: 0 0 8px rgba(245, 165, 36, .8); }
.fx-candado { width: 18px; height: 18px; color: #86efac; transition: color .3s; }
.fx-asa { transform: translateY(-3px); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1); }
.fx-anda .fx-candado:not(.fx-si) { color: #ffd27a; }
.fx-anda .fx-candado:not(.fx-si) .fx-asa { transform: none; }
.fx-puntos { display: flex; gap: 7px; }
.fx-puntos i { width: 9px; height: 9px; border-radius: 50%; background: #ffd27a; transition: background .15s, transform .2s; }
.fx-anda .fx-puntos i:not(.fx-si) { background: rgba(255, 255, 255, .18); transform: scale(.8); }
.fx-teclado .fx-pulsa.fx-si { background: #ffd27a; color: #14213d; transform: scale(.9); filter: none; }

/* Precios: la regla que se está aplicando */
.fx-regla { margin: -4px 0 10px; }
.fx-calendario span { transition: background .5s, border-color .5s; }
.fx-anda .fx-calendario span.fx-estado:not(.fx-si) { background: #fff; border-color: #e3e6eb; }
.fx-anda .fx-calendario span.fx-si b { animation: fx-cifra .7s ease-out; }
@keyframes fx-cifra { 40% { transform: scale(1.18); color: #b45309; } }
.fx-leyenda li { transition: opacity .4s; }
.fx-anda .fx-leyenda li:not(.fx-si) { opacity: .35; }

/* Factura: filas, QR que se dibuja y respuesta de la AEAT */
.fx-fac-cabeza > .fx-pila { justify-items: end; }
.fx-chip .fx-espera { width: 13px; height: 13px; border-width: 2px; }
.fx-m-factura .fx-desglose > div:nth-child(2) { transition-delay: .12s; }
.fx-m-factura .fx-desglose > div:nth-child(3) { transition-delay: .24s; }
.fx-m-factura .fx-desglose > div:nth-child(5) { transition-delay: .1s; }
.fx-m-factura .fx-desglose > div:nth-child(6) { transition-delay: .2s; }
.fx-m-factura .fx-desglose > div:nth-child(7) { transition-delay: .32s; }
.fx-qr i.si { transition: transform .22s calc(var(--i, 0) * 13ms); }
.fx-anda .fx-qr:not(.fx-si) i.si { transform: scale(0); transition-delay: 0s; }

/* Parte: el último hito espera y se acepta */
.fx-linea-tiempo li.fx-pila { display: grid; }
.fx-linea-tiempo .fx-capa { display: flex; gap: 12px; align-items: flex-start; }
.fx-linea-tiempo .fx-espera { width: 26px; height: 26px; }

/* Web de la estancia: lo delicado se desbloquea y el asistente contesta */
.fx-revela b, .fx-revela small { transition: filter .6s; }
.fx-anda .fx-revela:not(.fx-si) b, .fx-anda .fx-revela:not(.fx-si) small { filter: blur(5px); }
.fx-p-resp { margin: 0; align-self: flex-start; max-width: 90%; padding: 7px 11px; border-radius: 14px 14px 14px 4px; background: #fff; border: 1px solid #e3e6eb; font-size: .74rem; line-height: 1.35; }
.fx-p-resp small { display: block; color: #b45309; font-size: .64rem; font-weight: 700; }
.fx-teclea { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.fx-anda .fx-teclea:not(.fx-si) { clip-path: inset(0 100% 0 0); }
.fx-anda .fx-teclea.fx-si { animation: fx-teclea 1.5s steps(34) both; }
@keyframes fx-teclea { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@media (max-width: 560px) {
  .fx-barra { padding: 0 5px; font-size: .62rem; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-vida *, .fx-vida { animation: none !important; transition: none !important; }
}

/* Modo oscuro: las maquetas siguen claras (como en la portada); lo que usa colores fijos se ajusta */
@media (prefers-color-scheme: dark) {
  .fx-marca, .fx-tarjeta-ico { background: #2e2412; border-color: #4a3a17; }
  .fx-tarjeta-ico img, .fx-chips-perfiles img { background: #fff; border-radius: 8px; padding: 3px; }
  .fx-maqueta .fx-tarjeta-ico { background: #fff8ec; border-color: #f6e3bf; }
  .fx-maqueta .fx-tarjeta-ico img { padding: 0; }
  .fx-chip.plan-completo { background: #fbbf24; color: #14213d; }
}

@media (prefers-reduced-motion: reduce) {
  .fx-tarjeta, .fx-tarjeta:hover { transition: none; transform: none; }
}
