/* Órbita: la portada y sus páginas legales con el mundo de Alba Vision.
   Se apoya en landing.css, amanecer.css y subpagina.css; aquí sólo va lo propio. */

/* El menú lleva un botón más largo que el de las otras subpáginas: que no se parta */
.nav-links a, .nav-cta { white-space: nowrap; }

/* Portada: texto y el teléfono donde pasa la conversación */
.or-portada { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + var(--s7)) 0 var(--s8); overflow: hidden; }
.or-portada-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); gap: var(--s8); align-items: center; }
.or-portada .sub-title { max-width: 12ch; }
.or-marca { margin: 0 0 var(--s5); font-size: 14px; letter-spacing: .04em; color: var(--soft); }
.or-piloto { margin-top: var(--s6); }

.or-video { margin: 0; justify-self: center; width: min(100%, 360px); }
.tel { display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; height: min(640px, 76svh); border: 9px solid #0b1f3b; border-radius: 48px; background: #eef2f8; overflow: hidden; box-shadow: 0 50px 90px -45px rgba(11,31,59,.6), 0 0 0 1px rgba(11,31,59,.12); }
.tel-estado { display: flex; justify-content: space-between; align-items: center; padding: 10px 24px 6px; background: #fff; font-size: 12px; color: #0b1f3b; font-variant-numeric: tabular-nums; }
.tel-senal { display: flex; align-items: flex-end; gap: 2px; height: 10px; }
.tel-senal i { width: 3px; border-radius: 1px; background: #0b1f3b; }
.tel-senal i:nth-child(1) { height: 4px; } .tel-senal i:nth-child(2) { height: 6px; } .tel-senal i:nth-child(3) { height: 8px; } .tel-senal i:nth-child(4) { height: 10px; }
.tel-cabeza { display: flex; align-items: center; gap: var(--s3); padding: 8px 16px 12px; background: #fff; border-bottom: 1px solid rgba(11,31,59,.08); }
.tel-cabeza > span { display: grid; gap: 1px; }
.tel-cabeza b { font-weight: 400; font-size: 15px; color: #0b1f3b; }
.tel-cabeza [data-tel-estado] { font-size: 12px; color: rgba(11,31,59,.6); transition: color .3s; }
.tel-cabeza [data-tel-estado].activo { color: #2563eb; }
.tel-cuerpo { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 14px 12px; overflow: hidden; }
.tel-escribir { display: flex; align-items: center; gap: 8px; padding: 8px 10px 14px; }
.tel-escribir span { flex: 1; min-width: 0; overflow: hidden; padding: 9px 14px; border-radius: 999px; background: #fff; font-size: 13px; color: #0b1f3b; white-space: nowrap; text-overflow: clip; direction: ltr; }
.tel-escribir span.vacio { color: rgba(11,31,59,.45); }
.tel-escribir span:not(.vacio)::after { content: ""; display: inline-block; width: 1px; height: 1em; margin-left: 1px; vertical-align: -2px; background: #2563eb; animation: cursor 1s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }
.tel-escribir i { position: relative; width: 34px; height: 34px; border-radius: 50%; background: #2563eb; flex: none; transition: transform .2s var(--ease); }
.tel-escribir i::after { content: ""; position: absolute; left: 12px; top: 10px; border: 7px solid transparent; border-left: 11px solid #fff; border-right: 0; }
.tel-escribir i.pulsa { transform: scale(.86); }
.tm-palomitas { margin-left: 8px; font-size: 10.5px; letter-spacing: -2px; color: rgba(244,246,250,.45); transition: color .4s; }
.tm-cliente.leido .tm-palomitas { color: #8fb2ff; }

.tm { flex: none; max-width: 84%; margin: 0; padding: 8px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; white-space: pre-line; }
.tm-cliente { align-self: flex-end; background: #0b1f3b; color: #f4f6fa; border-bottom-right-radius: 5px; }
.tm-orbita { align-self: flex-start; background: #fff; color: #0b1f3b; border-bottom-left-radius: 5px; box-shadow: 0 1px 0 rgba(11,31,59,.06); }
.tm-agente { display: flex; align-items: center; gap: 6px; align-self: flex-start; max-width: 100%; padding: 2px 4px; background: none; color: #2563eb; font-size: 11.5px; letter-spacing: .01em; }
.tm-agente::before { content: ""; width: 9px; height: 9px; flex: none; background: currentColor; clip-path: polygon(50% 0,60% 40%,100% 50%,60% 60%,50% 100%,40% 60%,0 50%,40% 40%); }
.tm-sistema { align-self: center; max-width: 100%; padding: 6px 12px; border-radius: 999px; background: rgba(37,99,235,.12); color: #2563eb; font-size: 12px; text-align: center; }
.tm-escribiendo { display: flex; gap: 4px; padding: 12px 14px; }
.tm-escribiendo i { width: 6px; height: 6px; border-radius: 50%; background: rgba(11,31,59,.4); animation: punto 1s ease-in-out infinite; }
.tm-escribiendo i:nth-child(2) { animation-delay: .15s; }
.tm-escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-3px); opacity: 1; } }
.tm-cot { white-space: normal; }
.tm-cot p { margin: 0; }
.tm-cot dl { display: grid; grid-template-columns: 1fr auto; gap: 3px var(--s4); margin: 6px 0; padding: 6px 0; border-block: 1px solid rgba(11,31,59,.1); font-size: 12.5px; }
.tm-cot dt { color: rgba(11,31,59,.7); }
.tm-cot dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.tm.entra { animation: llega .45s var(--ease) both; }
@keyframes llega { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }

.or-video-pie { display: flex; align-items: flex-start; gap: var(--s4); margin-top: var(--s3); }
.or-video-pie figcaption { font-size: 13px; font-style: italic; color: var(--faint); }
.or-video-boton { flex: none; min-height: 32px; padding: 0 12px; border: 1px solid rgba(11,31,59,.2); border-radius: 999px; background: none; color: var(--paper); font: inherit; font-size: 13px; cursor: pointer; }
.or-video-boton:hover { background: rgba(11,31,59,.05); }
.reduce .or-video-boton, html:not(.js) .or-video-boton { display: none; }

/* Mientras Órbita conversa: la bandeja de tu equipo cambia en cada paso */
.or-tiempos { height: 320svh; }
.or-equipo { margin: 0; justify-self: center; width: min(100%, 520px); }
.or-equipo figcaption { margin-top: var(--s3); font-size: 13px; font-style: italic; color: var(--faint); }
.bandeja { padding: var(--s5); border-radius: 24px; background: #fff; box-shadow: 0 30px 70px -36px rgba(11,31,59,.45), 0 0 0 1px rgba(11,31,59,.06); }
.bandeja-cabeza { display: flex; align-items: center; justify-content: space-between; margin: 0 0 var(--s4); font-size: 15px; color: #0b1f3b; }
.bandeja ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.bandeja li { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: var(--s4); padding: var(--s3) var(--s2); border-radius: 14px; }
.fila-viva { background: rgba(37,99,235,.07); }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #e3eaf7; color: #0b1f3b; font-weight: 400; font-size: 13px; letter-spacing: .02em; flex: none; }
.avatar-alba { background: #0b1f3b; }
.avatar-alba img { width: 24px; height: 24px; }
.quien { display: grid; gap: 1px; min-width: 0; }
.quien b { font-weight: 400; font-size: 15px; color: #0b1f3b; }
.quien span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 13.5px; color: rgba(11,31,59,.66); }
.estado { padding: 4px 10px; border-radius: 999px; background: #eef2f8; color: rgba(11,31,59,.75); font-size: 12px; white-space: nowrap; transition: background .4s, color .4s; }
.estado-lista { background: #2563eb; color: #fff; animation: latido 2.6s var(--ease) infinite; }
.estado-equipo { background: #0b1f3b; color: #f4f6fa; }
@keyframes latido { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,.45); } 60% { box-shadow: 0 0 0 8px rgba(37,99,235,0); } }
.pill { padding: 3px 10px; border-radius: 999px; background: rgba(37,99,235,.1); color: #2563eb; font-size: 12px; }
.solicitud { max-height: 0; overflow: hidden; margin-top: 0; padding: 0 var(--s4); border-radius: 16px; background: #f4f6fa; color: #0b1f3b; opacity: 0; transition: max-height .7s var(--ease), opacity .5s, margin-top .7s var(--ease), padding .7s var(--ease); }
.solicitud.abierta, .or-tiempos.corrida .solicitud { max-height: 320px; margin-top: var(--s4); padding: var(--s4); opacity: 1; }
.solicitud-cabeza { display: flex; justify-content: space-between; align-items: baseline; margin: 0; font-size: 15px; }
.solicitud-cabeza b { font-weight: 400; }
.solicitud-cabeza span { font-size: 12.5px; color: #2563eb; }
.solicitud dl { display: grid; grid-template-columns: auto 1fr; gap: 4px var(--s5); margin: var(--s3) 0; font-size: 13.5px; }
.solicitud dt { color: rgba(11,31,59,.6); }
.solicitud dd { margin: 0; text-align: right; }
.solicitud-nota { margin: 0; font-size: 12.5px; color: rgba(11,31,59,.7); }

/* Tus datos */
.or-datos { align-items: start; }
.or-datos .sub-cta { margin-top: var(--s5); }
.or-numero { color: var(--paper); text-decoration: underline; text-decoration-color: rgba(37,99,235,.4); text-underline-offset: 5px; white-space: nowrap; }
.or-numero:hover { color: var(--soft); }

/* Páginas legales: el texto de Alan tal cual, con la letra de Alba */
.legal { padding: calc(var(--nav-h) + var(--s8)) 0 var(--s10); }
.legal .wrap { max-width: 820px; }
.legal .eyebrow { margin: 0 0 var(--s4); font-size: 13px; letter-spacing: .08em; color: var(--soft); }
.legal h1 { font-size: clamp(38px,5vw,60px); line-height: 1.05; letter-spacing: -.03em; }
.legal h2 { margin: var(--s8) 0 var(--s3); font-size: clamp(22px,2.2vw,28px); letter-spacing: -.015em; }
.legal p, .legal li, .legal dd { max-width: 68ch; font-size: 17px; line-height: 1.7; color: var(--dim); }
.legal p { margin: var(--s3) 0 0; }
.legal .meta { font-size: 14px; color: var(--faint); }
.legal strong { font-weight: 400; color: var(--paper); }
.legal a { color: var(--soft); text-decoration: underline; text-underline-offset: 4px; }
.legal ol, .legal ul { margin: var(--s4) 0 0; padding-left: 24px; }
.legal li { margin-bottom: var(--s2); }
.legal dl { margin: var(--s4) 0 0; }
.legal dt { margin-top: var(--s4); font-size: 14px; letter-spacing: .02em; color: var(--faint); }
.legal dd { margin: 2px 0 0; }
.legal .note { margin: var(--s6) 0; padding: var(--s4) var(--s5); border-left: 3px solid #2563eb; border-radius: 0 12px 12px 0; background: rgba(37,99,235,.07); }
.legal .note p { margin: 0; }

/* Pie: los enlaces legales de Órbita, arriba de los íconos de redes */
.footer-legal { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--dim); }
.footer-legal a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); text-decoration: underline; text-decoration-color: rgba(143,178,255,.4); text-underline-offset: 5px; }
.footer-legal a:hover { color: var(--soft); }

@media (max-width: 1080px) {
  .or-portada-grid { grid-template-columns: 1fr; gap: var(--s7); }
  .or-portada { min-height: 0; }
}
@media (min-width: 761px) and (max-width: 1080px) {
  .or-tiempos .lb-tiempos-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: var(--s6); }
  .or-tiempos .lb-pasos b { font-size: 24px; }
  .or-tiempos:not(.corrida) .bandeja li:nth-child(n+3) { display: none; }
}
@media (max-width: 760px) {
  .or-portada { padding-top: calc(var(--nav-h) + var(--s6)); }
  /* La demo del teléfono, más chica: antes ocupaba casi toda la pantalla (visto bueno de Alan) */
  .or-video { width: min(100%, 260px); }
  .tel { height: min(440px, 54svh); border-width: 6px; border-radius: 34px; }
  .tm { font-size: 13px; }
  .bandeja { padding: var(--s4) var(--s3); border-radius: 20px; }
  .bandeja li { gap: var(--s3); padding: var(--s2); }
  .or-tiempos:not(.corrida) .bandeja li:nth-child(n+2) { display: none; }
  .avatar { width: 34px; height: 34px; font-size: 12px; }
  .estado { font-size: 11px; padding: 3px 8px; }
  .solicitud dl { font-size: 12.5px; }
  .or-tiempos .lb-tiempos-texto h2 { font-size: clamp(26px,7.4vw,32px); }
  .or-tiempos:not(.corrida) .lb-pasos button:not([aria-current="true"]) span { display: none; }
  .or-tiempos .lb-pasos b { font-size: 19px; }
  .or-tiempos .lb-tiempos-grid { gap: var(--s4); }
  .or-equipo figcaption { margin-top: var(--s2); font-size: 12px; }
  .legal p, .legal li, .legal dd { font-size: 16px; }
}
