/* RENDRAX · selfserve-home.css · v68.91 · el HOME del cliente + el escenario de Rex (la casa: "que la mascotita no moleste pero que pase
   por ahi saludando, durmiendo, haciendo poses"). Rex vive en una franja al pie del saludo: nunca encima de botones ni textos. */
.hm-hero { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 18px; padding-bottom: 150px !important; overflow: hidden;
  background: radial-gradient(520px 260px at 92% 8%, rgba(215,243,90,.75), transparent 70%), radial-gradient(520px 320px at 4% 110%, rgba(29,78,216,.16), transparent 70%),
              radial-gradient(380px 220px at 55% 120%, rgba(255,122,69,.14), transparent 70%), #fff !important; }
.hm-hero::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; border: 18px solid rgba(215,243,90,.55);
  animation: hm-flota 9s ease-in-out infinite; pointer-events: none; }
.hm-hero::after { content: ""; position: absolute; left: 46%; top: 24px; width: 18px; height: 18px; border-radius: 6px; background: #1D4ED8; transform: rotate(18deg);
  box-shadow: 180px 60px 0 -3px #FF7A45, -120px 110px 0 -5px #D7F35A, 260px -6px 0 -6px #111318; animation: hm-flota 7s ease-in-out infinite reverse; pointer-events: none; opacity: .85; }
@keyframes hm-flota { 0%, 100% { translate: 0 0; } 50% { translate: 0 12px; } }
.hm-hola, .hm-anillo { position: relative; z-index: 1; }
/* v68.99.15: la vidriera (lo hecho para el cliente pasando como figuritas) */
.hm-vidriera { position: relative; margin: 18px 0; padding: 26px 0 30px; border-radius: 26px; background: #111318; color: #fff; overflow: hidden;
  box-shadow: 0 24px 60px rgba(17,19,24,.18); }
.hm-vidriera::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 200px at 90% 0%, rgba(215,243,90,.25), transparent 70%),
  radial-gradient(500px 220px at 0% 100%, rgba(29,78,216,.35), transparent 70%); pointer-events: none; }
.hm-vid-cab { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 14px; flex-wrap: wrap; padding: 0 26px 18px; }
.hm-vid-kicker { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: #111318; background: #D7F35A; padding: 5px 10px; border-radius: 8px; }
.hm-vid-cab h2 { margin: 10px 0 0; font-size: clamp(24px, 4vw, 36px); letter-spacing: -.02em; color: #fff; }
.hm-vid-cinta { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.hm-vid-pista { display: flex; gap: 18px; width: max-content; padding: 14px 26px 10px; animation: hm-cinta 60s linear infinite; }
.hm-vid-pista.quieta { animation: none; }
.hm-vid-cinta:hover .hm-vid-pista, .hm-vid-cinta:focus-within .hm-vid-pista { animation-play-state: paused; }
@keyframes hm-cinta { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.hm-vid-item { position: relative; flex: none; width: 168px; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #22262E; border: 4px solid #fff;
  transform: rotate(var(--r, 0deg)); box-shadow: 0 14px 30px rgba(0,0,0,.35); transition: transform .25s ease; }
.hm-vid-item:hover { transform: rotate(0deg) scale(1.06); z-index: 2; }
.hm-vid-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-vid-item span { position: absolute; left: 8px; bottom: 8px; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: #D7F35A; color: #111318; padding: 3px 7px; border-radius: 6px; }
.hm-vid-play { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(17,19,24,.7); color: #fff; display: grid; place-items: center; font-size: 11px; font-style: normal; }
@media (max-width: 640px) { .hm-vid-item { width: 132px; } .hm-vid-cab { padding: 0 18px 14px; } .hm-vid-btn { width: 100%; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .hm-vid-pista { animation: none; } .hm-vid-cinta { overflow-x: auto; } .hm-hero::before, .hm-hero::after { animation: none; } }
.hm-hola h1 { font-size: clamp(28px, 5vw, 44px); margin: 10px 0 6px; letter-spacing: -.02em; }
.hm-hola p { margin: 0 0 14px; color: #4B5563; font-size: 16px; max-width: 560px; }
.hm-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hm-anillo { position: relative; width: 132px; height: 132px; align-self: center; }
.hm-anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.hm-anillo circle { fill: none; stroke-width: 12; }
.hm-anillo-fondo { stroke: #EEF0F3; }
.hm-anillo-valor { stroke: #1FAE7A; stroke-linecap: round; stroke-dasharray: 327; transition: stroke-dashoffset 1.2s ease; }
.hm-anillo > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.hm-anillo b { font-size: 28px; line-height: 1; } .hm-anillo span { font-size: 10px; color: #6B7280; max-width: 80px; }

/* el escenario de Rex */
.rex-escena { position: absolute; left: 0; right: 0; bottom: 0; height: 140px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(238,244,250,.9)); border-top: 1px dashed #E4E6EC; }
.rex { position: absolute; bottom: 8px; left: 20px; width: 92px; height: 120px; pointer-events: auto; cursor: pointer; transition: left 3.8s linear; }
.rex img { width: 100%; height: 100%; object-fit: contain; display: block; transform-origin: 50% 100%; user-select: none; filter: drop-shadow(0 8px 6px rgba(17,19,24,.18)); }
.rex.izq img { transform: scaleX(-1); }
.rex.caminando img { animation: rex-paso .45s ease-in-out infinite; }
.rex.izq.caminando img { animation-name: rex-paso-izq; }
@keyframes rex-paso { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes rex-paso-izq { 0%, 100% { transform: scaleX(-1) translateY(0) rotate(-3deg); } 50% { transform: scaleX(-1) translateY(-6px) rotate(3deg); } }
.rex.saluda img { animation: rex-hola .6s ease-in-out 3; }
@keyframes rex-hola { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
.rex.salta img { animation: rex-salto .7s cubic-bezier(.3,.7,.4,1) 2; }
@keyframes rex-salto { 0%, 100% { transform: translateY(0) scale(1, 1); } 15% { transform: translateY(0) scale(1.1, .9); } 50% { transform: translateY(-38px) scale(.95, 1.05); } }
.rex.festeja img { animation: rex-giro 1s ease-in-out 1; }
@keyframes rex-giro { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(1.1); } 100% { transform: rotate(360deg) scale(1); } }
.rex.duerme.sin-pose img { transform: rotate(-78deg) translateX(30px); transition: transform .6s; }
.rex.duerme::after { content: "z  Z  z"; position: absolute; left: 62px; top: 0; font-weight: 800; color: #6B7280; letter-spacing: 4px; animation: rex-zzz 2.4s ease-in-out infinite; }
@keyframes rex-zzz { 0% { opacity: 0; transform: translate(0, 10px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(14px, -16px); } }
.rex.piensa img { animation: rex-piensa 2s ease-in-out infinite; }
@keyframes rex-piensa { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-6deg) translateY(-2px); } }
.rex-globo { position: absolute; bottom: 112px; left: 50%; transform: translateX(-50%) scale(.6); opacity: 0; background: #111318; color: #fff; font-size: 12px; font-weight: 600;
  padding: 7px 11px; border-radius: 14px; white-space: nowrap; transition: opacity .25s, transform .25s; pointer-events: none; }
.rex-globo::after { content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-top-color: #111318; border-bottom: 0; }
.rex-globo.on { opacity: 1; transform: translateX(-50%) scale(1); }
.rex-ocultar { position: absolute; right: 12px; bottom: 8px; z-index: 2; border: 0; background: rgba(255,255,255,.8); border-radius: 999px; font-size: 11px; padding: 4px 10px; color: #6B7280; cursor: pointer; }
.hm-hero.sin-rex { padding-bottom: 46px !important; } .hm-hero.sin-rex .rex-escena { display: none; }
@media (prefers-reduced-motion: reduce) { .rex { transition: none; } .rex img, .rex::after { animation: none !important; } }

/* metricas */
.hm-metricas { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 0 0 16px; }
.hm-met { background: #fff; border: 1px solid #E4E6EC; border-radius: 18px; padding: 14px 12px; box-shadow: 0 8px 24px -16px rgba(17,19,24,.25); display: flex; flex-direction: column; gap: 2px; }
.hm-met i { font-style: normal; font-size: 18px; } .hm-met b { font-size: 26px; line-height: 1.1; letter-spacing: -.02em; } .hm-met span { font-size: 11px; color: #6B7280; }
.hm-met-lima { background: #D7F35A; border-color: #D7F35A; } .hm-met-lima span { color: #111318; }

.hm-grilla { display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px; }
.hm-hoy-lista { display: grid; gap: 10px; }
.hm-hoy-item { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: start; }
.hm-hoy-item .ss-sem-img { aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; position: relative; display: block; background: #F2F3F6; }
.hm-hoy-item .ss-sem-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-hoy-item b { display: block; font-size: 14px; margin: 4px 0; }
.hm-mas { float: right; font-size: 13px; font-weight: 600; }
.hm-semana-fila { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.hm-dia { text-decoration: none; color: #111318; display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border-radius: 12px; }
.hm-dia.hoy { background: #111318; color: #fff; } .hm-dia.hoy b { color: #D7F35A; }
.hm-dia b { font-size: 10px; text-transform: uppercase; color: #6B7280; } .hm-dia span { font-weight: 800; font-size: 16px; }
.hm-dia-cuad { display: grid; gap: 3px; margin-top: 4px; width: 100%; }
.hm-dia-cuad em { display: block; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #EEF0F3; box-shadow: inset 0 0 0 2px transparent; }
.hm-dia-cuad em img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-dia-cuad em.ok { box-shadow: 0 0 0 2px #1FAE7A; } .hm-dia-cuad em.lista { box-shadow: 0 0 0 2px #D7F35A; }
.hm-dia-cuad em.hace { background: linear-gradient(100deg, #E3E6EC 20%, #F7F8FA 50%, #E3E6EC 80%); background-size: 200% 100%; animation: hl-cuad 1.4s linear infinite; }

.hm-atajos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.hm-atajo { text-decoration: none; color: #111318; display: flex; flex-direction: column; gap: 4px; padding: 16px !important; transition: transform .15s; }
.hm-atajo:hover { transform: translateY(-2px); }
.hm-atajo i { font-style: normal; font-size: 22px; } .hm-atajo b { font-size: 15px; } .hm-atajo span { font-size: 12px; color: #6B7280; }

@media (max-width: 900px) {
  .hm-metricas { grid-template-columns: repeat(3, 1fr); }
  .hm-grilla { grid-template-columns: 1fr; }
  .hm-atajos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hm-hero { grid-template-columns: 1fr; padding-bottom: 140px !important; }
  .hm-anillo { position: absolute; right: 12px; top: 12px; width: 84px; height: 84px; }
  .hm-anillo b { font-size: 18px; } .hm-anillo span { font-size: 8px; max-width: 56px; }
  .hm-hola h1 { padding-right: 90px; }
  .hm-metricas { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .hm-met b { font-size: 22px; }
  .rex { width: 76px; height: 100px; }
}
/* v68.99.1: Rex tambien en el Mes, en su franja propia (no tapa nada) */
.rex-tira-panel { position: relative; height: 162px; padding: 0 !important; overflow: hidden; }
.rex-tira-panel.sin-rex { height: 40px; } .rex-tira-panel.sin-rex .rex-escena { display: none; }
/* v68.99.12: preguntas frecuentes en Soporte */
.ss-faq .faq-item { border: 1px solid #E4E6EC; border-radius: 14px; background: #fff; margin: 0 0 8px; }
.ss-faq .faq-item summary { cursor: pointer; list-style: none; padding: 14px 16px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; }
.ss-faq .faq-item summary::-webkit-details-marker { display: none; }
.ss-faq .faq-item summary::after { content: "+"; font-weight: 800; }
.ss-faq .faq-item[open] summary::after { content: "\2212"; }
.ss-faq .faq-item p { margin: 0; padding: 0 16px 14px; color: #5B6472; line-height: 1.55; }

/* v68.99.113 (la casa: "la mascota a la vista en el home; carteles, relojitos, peras y manzanas") */
.hm-masc { display: flex; align-items: center; gap: 18px; margin: 0 0 16px; }
.hm-masc-img { flex: 0 0 150px; width: 150px; height: 150px; border-radius: 22px; overflow: hidden; background: #F4F5F8; border: 3px solid #111318; box-shadow: 6px 6px 0 #111318; display: flex; align-items: center; justify-content: center; }
.hm-masc-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-masc-txt { flex: 1; min-width: 0; }
.hm-masc-txt h2 { margin: 2px 0 6px; font-size: 26px; line-height: 1.1; }
.hm-masc-txt p { margin: 0 0 12px; color: #4B5563; }
.hm-dia-cuad em.hace-vacio { display: flex; align-items: center; justify-content: center; font-size: 14px; font-style: normal; }
.marq-art { position: relative; }
.marq-art .marq-reloj { font-size: 40px; display: block; margin: 0 auto 6px; }
.marq-art .ss-creando-pct { font-size: 22px; }
@media (max-width: 560px) { .hm-masc { flex-direction: column; text-align: center; } .hm-masc-img { width: 170px; height: 170px; flex-basis: auto; } }
