/* Página del Fichaje por WhatsApp (fichaje.html). Lo esencial cabe en el
   primer golpe de vista: el hero (mensaje + escena animada del chat y la
   oficina) y una sola franja con ventajas, precio y llamada final. */

.fichaje-page {
  --wa: #25d366;
  --wa-dark: #128c4b;
  --wa-chat: #efeae2;
  --wa-yo: #d9fdd3;
  --noche: #0b1a30;
  --noche-2: #0f2c3a;
}

/* --- Botones propios --- */
.fz-btn-wa { background: linear-gradient(135deg, #25d366, #12a150); color: #fff; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .65); }
.fz-btn-wa:hover { background: linear-gradient(135deg, #22c35e, #0f8e46); }
.fz-btn-wa svg { width: 20px; height: 20px; }
.header-actions .fz-btn-wa { box-shadow: none; }
.fz-btn-cristal { background: rgba(255, 255, 255, .08); color: #fff; border: 1.5px solid rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.fz-btn-cristal:hover { background: rgba(255, 255, 255, .16); }

/* --- Hero --- */
.fz-hero {
  position: relative; overflow: hidden; color: #dbe6f5;
  min-height: calc(100vh - 64px); min-height: calc(100svh - 64px);
  display: flex; align-items: center; padding: 48px 0 56px;
  background: radial-gradient(1200px 600px at 85% 20%, rgba(37, 211, 102, .16), transparent 60%),
              radial-gradient(900px 500px at 10% 90%, rgba(47, 111, 237, .22), transparent 60%),
              linear-gradient(160deg, var(--noche) 0%, #0d2240 55%, var(--noche-2) 100%);
}
.fz-glow { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; animation: fzFlota 14s ease-in-out infinite; }
.fz-glow.g1 { width: 420px; height: 420px; background: #1fbf63; top: -140px; right: 8%; }
.fz-glow.g2 { width: 380px; height: 380px; background: #2f6fed; bottom: -160px; left: -80px; animation-delay: -7s; }
.fz-grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
@keyframes fzFlota { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(30px, 24px); } }

.fz-hero-grid > * { min-width: 0; }
.fz-hero-grid { position: relative; max-width: 1240px; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; width: 100%; }

.fz-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(37, 211, 102, .12); border: 1px solid rgba(37, 211, 102, .35); color: #7ef0ad;
  font-size: 13px; font-weight: 700; letter-spacing: .2px;
}
.fz-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wa); box-shadow: 0 0 0 0 rgba(37, 211, 102, .7); animation: fzLatido 2s infinite; }
@keyframes fzLatido { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .6); } 70% { box-shadow: 0 0 0 10px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }

.fz-text h1 { color: #fff; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.06; letter-spacing: -1.2px; margin: 18px 0 16px; }
.fz-grad { background: linear-gradient(100deg, #5bf29a 0%, #25d366 40%, #7cc4ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fz-lead { font-size: clamp(16px, 1.35vw, 19px); color: #c5d3e8; max-width: 560px; margin-bottom: 22px; }
.fz-lead b { color: #fff; }

.fz-pasos { list-style: none; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; }
.fz-pasos li { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.fz-pasos li > span { flex: none; width: 30px; height: 30px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #0b1a30; background: linear-gradient(135deg, #5bf29a, #25d366); }
.fz-pasos b { display: block; color: #fff; font-size: 14.5px; line-height: 1.2; }
.fz-pasos small { color: #9fb3cf; font-size: 13px; line-height: 1.3; white-space: nowrap; }
.fz-pasos li > div { min-width: 0; }

.fz-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.fz-sub { color: #8fa4c2; font-size: 13.5px; margin: 12px 0 0; }

.fz-pronto { display: inline-flex; gap: 10px; align-items: center; margin-top: 22px; padding: 9px 14px 9px 9px; border-radius: 14px; background: rgba(124, 196, 255, .08); border: 1px dashed rgba(124, 196, 255, .4); font-size: 13.5px; color: #c5d3e8; max-width: 560px; }
.fz-pronto b { color: #fff; }
.fz-pronto-tag { flex: none; padding: 4px 10px; border-radius: 8px; background: #7cc4ff; color: #0b1a30; font-weight: 800; font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; }

/* --- Escena: teléfono + oficina + aviso --- */
.fz-escena { position: relative; height: 600px; perspective: 1400px; }
.fz-telefono {
  position: absolute; right: 10px; top: 0; width: 300px; height: 600px; border-radius: 44px; padding: 12px;
  background: linear-gradient(145deg, #2a3446, #0d131d); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 0 0 2px rgba(255,255,255,.06);
  transform: rotateY(-10deg) rotateX(4deg); transform-style: preserve-3d; animation: fzMovil 9s ease-in-out infinite;
  display: flex; flex-direction: column; overflow: hidden;
}
@keyframes fzMovil { 0%, 100% { transform: rotateY(-10deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-6deg) rotateX(2deg) translateY(-10px); } }
.fz-notch { position: absolute; top: 18px; left: 50%; width: 92px; height: 24px; margin-left: -46px; border-radius: 14px; background: #05080d; z-index: 3; }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 46px 14px 10px; background: #075e54; border-radius: 32px 32px 0 0; color: #fff; }
.wa-avatar { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wa-avatar img { width: 26px; height: 26px; object-fit: contain; }
.wa-quien b { display: block; font-size: 14px; line-height: 1.2; }
.wa-quien small { font-size: 11.5px; color: #c8ede4; }
.wa-verif { display: inline-flex; width: 13px; height: 13px; border-radius: 50%; background: #25d366; color: #fff; font-size: 9px; align-items: center; justify-content: center; margin-right: 2px; }

.wa-chat {
  flex: 1; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden;
  background: var(--wa-chat) radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px) 0 0 / 14px 14px;
}
.wa-msg { position: relative; max-width: 82%; padding: 7px 10px 18px; border-radius: 12px; font-size: 13.5px; color: #111b21; box-shadow: 0 1px 1px rgba(0,0,0,.08); line-height: 1.35; }
.wa-msg p { margin: 0; }
.wa-msg time { position: absolute; right: 9px; bottom: 4px; font-size: 10.5px; color: #667781; }
.wa-msg.yo { align-self: flex-end; background: var(--wa-yo); border-top-right-radius: 3px; }
.wa-msg.yo time::after { content: ' ✓✓'; color: #53bdeb; }
.wa-msg.el { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.wa-boton { margin: 8px -10px -14px; padding: 9px 10px 22px; border-top: 1px solid #e9edef; color: #027eb5; font-weight: 600; text-align: center; display: flex; gap: 6px; justify-content: center; align-items: center; }
.wa-boton svg { width: 16px; height: 16px; }
.wa-boton.pulsado { background: #e7f3fb; border-radius: 0 0 12px 12px; }
.wa-ubic { padding: 4px 4px 18px; width: 190px; }
.wa-ubic p { padding: 4px 6px 0; font-size: 12.5px; color: #3b4a54; }
.wa-mapa {
  position: relative; height: 92px; border-radius: 9px; overflow: hidden;
  background:
    linear-gradient(115deg, transparent 46%, #fff 46%, #fff 52%, transparent 52%),
    linear-gradient(25deg, transparent 58%, #f7e7a8 58%, #f7e7a8 63%, transparent 63%),
    linear-gradient(160deg, transparent 30%, #fff 30%, #fff 34%, transparent 34%),
    #dfe9d8;
}
.wa-pin { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -18px 0 0 -9px; border-radius: 50% 50% 50% 0; background: #e53935; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.wa-pin::after { content: ''; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.wa-escribiendo { align-self: flex-start; background: #fff; border-radius: 12px; padding: 10px 12px; display: flex; gap: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: #9aa6ad; animation: fzPunto 1.2s infinite; }
.wa-escribiendo i:nth-child(2) { animation-delay: .15s; }
.wa-escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes fzPunto { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.wa-input { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; background: var(--wa-chat); border-radius: 0 0 32px 32px; }
.wa-input span { flex: 1; padding: 9px 14px; border-radius: 20px; background: #fff; color: #8696a0; font-size: 13px; }
.wa-input i { width: 38px; height: 38px; border-radius: 50%; background: #00a884; }
.wa-entra { animation: fzEntra .35s cubic-bezier(.2, .9, .3, 1.3) both; }
@keyframes fzEntra { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.fz-oficina {
  position: absolute; left: 0; top: 112px; width: 290px; z-index: 4; padding: 14px; border-radius: 18px;
  background: rgba(255, 255, 255, .97); color: var(--text); box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .7);
  transform: rotateY(8deg) rotateX(3deg); animation: fzOficina 9s ease-in-out infinite;
}
@keyframes fzOficina { 0%, 100% { transform: rotateY(8deg) rotateX(3deg) translateY(0); } 50% { transform: rotateY(5deg) rotateX(2deg) translateY(8px); } }
.of-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 13.5px; color: var(--navy); }
.of-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: #12a150; font-weight: 700; }
.of-vivo i { width: 7px; height: 7px; border-radius: 50%; background: #25d366; animation: fzLatido 2s infinite; }
.of-fila { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 8px 6px; border-radius: 12px; transition: background .4s; }
.of-fila + .of-fila { border-top: 1px solid #eef1f5; }
.of-fila b { display: block; font-size: 13px; color: var(--navy); line-height: 1.2; }
.of-fila small { font-size: 11.5px; color: var(--muted); }
.of-avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 800; color: #fff; }
.of-avatar.a1 { background: linear-gradient(135deg, #25d366, #128c4b); }
.of-avatar.a2 { background: linear-gradient(135deg, #7cc4ff, #2f6fed); }
.of-avatar.a3 { background: linear-gradient(135deg, #f7c46c, #e08a00); }
.of-estado { font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: #eef1f5; color: #6b7385; white-space: nowrap; }
.of-estado.on { background: #e3f8eb; color: #12814a; }
.of-estado.pausa { background: #fff3e0; color: #b46200; }
.of-fila.destello { background: #e9fbf0; }

.fz-toast {
  position: absolute; right: -24px; top: -26px; z-index: 5; display: flex; gap: 10px; align-items: center; width: 250px; padding: 11px 13px; border-radius: 14px;
  background: rgba(16, 35, 63, .92); color: #fff; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px); opacity: 0; transform: translateY(-8px) scale(.97); transition: opacity .35s, transform .35s;
}
.fz-toast.visible { opacity: 1; transform: none; }
.fz-toast b { display: block; font-size: 13px; }
.fz-toast small { font-size: 11.5px; color: #a9bbd4; }
.fz-toast-ico { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #25d366; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #0b1a30; }

/* --- Franja: ventajas + precio + llamada --- */
.fz-franja { padding: 46px 0 56px; background: linear-gradient(180deg, #eef3fb 0%, var(--bg) 100%); }
.fz-franja .wrap { max-width: 1240px; }
.fz-ventajas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -96px; position: relative; z-index: 2; }
.fz-v { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 18px 18px 14px; box-shadow: 0 18px 40px -26px rgba(16, 35, 63, .45); transition: transform .2s, box-shadow .2s; }
.fz-v:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -26px rgba(16, 35, 63, .55); }
.fz-v h3 { font-size: 16.5px; margin: 10px 0 6px; }
.fz-v p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.5; }
.fz-v-ico { width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.fz-v-ico svg { width: 22px; height: 22px; }
.fz-v-ico.wa { background: #e3f8eb; color: #12814a; }
.fz-v-ico.az { background: #e8f0fe; color: #2358c7; }
.fz-v-ico.mo { background: #f1ebfe; color: #6d33d9; }
.fz-v-ico.na { background: #fff3e0; color: #b46200; }

.fz-cierre { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 16px; }
.fz-precio, .fz-cta-final { border-radius: 20px; padding: 22px 24px; }
.fz-precio { background: #fff; border: 1px solid var(--border); }
.fz-precio-tag { display: inline-block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: var(--accent); background: var(--accent-soft); padding: 4px 10px; border-radius: 8px; }
.fz-precio-fila { display: flex; align-items: center; gap: 20px; margin: 12px 0 10px; flex-wrap: wrap; }
.fz-precio-fila strong { display: block; font-size: 34px; line-height: 1; color: var(--navy); letter-spacing: -1px; }
.fz-precio-fila small { color: var(--muted); font-size: 13.5px; }
.fz-mas { font-size: 30px; color: #c7cfdc; }
.fz-precio p { margin: 0; font-size: 13.5px; color: var(--muted); }
.fz-cta-final { position: relative; overflow: hidden; color: #dbe6f5; background: linear-gradient(140deg, #0d2240, #0f3a2f); }
.fz-cta-final::after { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(37, 211, 102, .35), transparent 70%); }
.fz-cta-final h2 { color: #fff; font-size: 24px; margin: 0 0 6px; position: relative; }
.fz-cta-final p { margin: 0 0 14px; font-size: 14px; position: relative; }
.fz-cta-final .btn { position: relative; z-index: 1; }

/* --- Pantallas más pequeñas --- */
@media (max-width: 1080px) {
  .fz-hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .fz-escena { height: 560px; max-width: 560px; margin: 0 auto; width: 100%; }
  .fz-telefono { height: 560px; right: 10px; }
  .fz-ventajas { grid-template-columns: repeat(2, 1fr); margin-top: 0; }
}
@media (max-width: 680px) {
  .fz-hero { padding: 32px 0 40px; }
  .fz-pasos { grid-template-columns: 1fr; }
  .fz-escena { height: 540px; }
  .fz-telefono { position: relative; right: auto; margin: 0 auto; width: 270px; height: 540px; transform: none; animation: none; }
  .fz-escena { height: auto; }
  .fz-oficina { position: relative; left: auto; top: auto; margin: -70px auto 0; transform: none; animation: none; width: min(300px, 100%); }
  .fz-toast { right: 50%; margin-right: -125px; top: -14px; }
  .fz-ventajas, .fz-cierre { grid-template-columns: 1fr; }
  .fz-franja { padding-top: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .fz-glow, .fz-telefono, .fz-oficina, .fz-dot, .of-vivo i, .wa-escribiendo i { animation: none !important; }
  .wa-entra { animation: none; }
}
