/* Cuenta ELORE: botón del header, menú y modal "Entrar". Usa los tokens de cada página. */
.auth-slot{position:relative;display:flex;align-items:center;min-width:40px;min-height:40px}
.auth-enter{min-height:40px;padding:0 .875rem;background:none;border:1px solid var(--border-strong);border-radius:6px;color:var(--text);font:600 .875rem/1 'Montserrat',-apple-system,sans-serif;cursor:pointer;transition:background-color .15s ease-out,border-color .15s ease-out,transform .14s var(--ease-out)}
.auth-avatar{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;overflow:hidden;background:var(--surface-2);border:1px solid var(--border-strong);border-radius:50%;color:var(--text);font:600 .9375rem/1 'Montserrat',-apple-system,sans-serif;cursor:pointer;transition:border-color .15s ease-out,transform .14s var(--ease-out)}
.auth-avatar--wait{cursor:default}
.auth-avatar img{display:block;width:100%;height:100%;object-fit:cover}
@media(hover:hover) and (pointer:fine){.auth-enter:hover{background:var(--surface-2)}.auth-avatar:hover{border-color:var(--accent)}}

.auth-menu{position:absolute;top:calc(100% + .5rem);right:0;z-index:120;width:min(260px,calc(100vw - 2rem));padding:.375rem;background:var(--surface-1);border:1px solid var(--border);border-radius:8px;opacity:0;visibility:hidden;transform:translateY(-4px) scale(.98);transform-origin:top right;transition:opacity .12s ease-out,transform .12s var(--ease-out),visibility 0s .12s}
.auth-menu.is-open{opacity:1;visibility:visible;transform:none;transition:opacity .15s ease-out,transform .18s var(--ease-out)}
.auth-menu__who{padding:.625rem .75rem;border-bottom:1px solid var(--border);margin-bottom:.375rem}
.auth-menu__name{display:block;color:var(--text);font-size:.875rem;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auth-menu__mail{display:block;color:var(--text-2);font-size:.8125rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.auth-menu__item{display:flex;align-items:center;width:100%;min-height:44px;padding:0 .75rem;background:none;border:0;border-radius:6px;color:var(--text);font:500 .9375rem/1.2 'Montserrat',-apple-system,sans-serif;text-align:left;text-decoration:none;cursor:pointer;transition:background-color .15s ease-out}
.auth-menu__item:focus-visible{background:var(--surface-2)}

html.auth-lock{overflow:hidden;scrollbar-gutter:stable}
.auth-dialog{position:fixed;inset:0;width:min(420px,calc(100vw - 2rem));max-height:calc(100dvh - 2rem);margin:auto;padding:0;overflow-y:auto;overscroll-behavior:contain;background:var(--surface-1);border:1px solid var(--border);border-radius:12px;color:var(--text);font-family:'Montserrat',-apple-system,sans-serif;line-height:1.5;opacity:0;transform:translateY(10px) scale(.985);transition:opacity .15s ease-out,transform .15s var(--ease-out)}
.auth-dialog.is-open{opacity:1;transform:none;transition:opacity .2s ease-out,transform .28s var(--ease-out)}
.auth-dialog::backdrop{background:rgba(10,10,12,.78);opacity:0;transition:opacity .15s ease-out}
.auth-dialog.is-open::backdrop{opacity:1;transition:opacity .2s ease-out}
.auth-dialog [hidden]{display:none!important}
.auth-close{position:absolute;top:.625rem;right:.625rem;z-index:1;display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:none;border:0;border-radius:6px;color:var(--text-2);cursor:pointer;transition:background-color .15s ease-out,color .15s ease-out}

/* Escena: la vizcacha despacha el correo por la línea de puntos. */
.auth-stage{position:relative;height:90px;padding:12px 1.5rem 0;border-bottom:1px solid var(--border);overflow:hidden}
.auth-vz{display:block;width:63px;height:66px;margin-top:12px;shape-rendering:crispEdges}
.auth-track{position:absolute;left:96px;right:calc(1.5rem + 8px);bottom:15px;border-bottom:2px dotted var(--border-strong)}
.auth-mail{position:absolute;left:92px;right:calc(1.5rem + 27px);bottom:11px;color:var(--accent);opacity:0;transform:translateX(0);transition:transform .6s var(--ease-in-out),opacity .2s ease-out,color .2s ease-out}
.auth-mail svg{display:block;width:27px;height:21px;background:var(--surface-1);shape-rendering:crispEdges}
.auth-dialog[data-mail="listo"] .auth-mail{opacity:1}
.auth-dialog[data-mail="viaje"] .auth-mail{opacity:1;transform:translateX(72%)}
.auth-dialog[data-mail="llego"] .auth-mail{opacity:1;color:var(--data);transform:translateX(100%)}
.vz-ear-b,.vz-eye-b{opacity:0}
.auth-dialog.is-open .vz-eye-a{animation:authShut 4s steps(1) infinite}
.auth-dialog.is-open .vz-eye-b{animation:authShow 4s steps(1) infinite}
.auth-dialog.is-open .vz-ear-a{animation:authShutEar 5.5s steps(1) infinite}
.auth-dialog.is-open .vz-ear-b{animation:authShowEar 5.5s steps(1) infinite}
@keyframes authShut{0%{opacity:1}96%{opacity:0}}
@keyframes authShow{0%{opacity:0}96%{opacity:1}}
@keyframes authShutEar{0%{opacity:1}95.3%{opacity:0}}
@keyframes authShowEar{0%{opacity:0}95.3%{opacity:1}}

.auth-body{padding:1.5rem}
.auth-tag{margin-bottom:.5rem;color:var(--text-2);font:400 .6875rem/1.2 'Silkscreen',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-transform:uppercase}
.auth-title{margin-bottom:.375rem;font-size:1.5rem;line-height:1.2;font-weight:700;letter-spacing:-.01em}
.auth-text{margin-bottom:1.25rem;color:var(--text-2);font-size:.9375rem}
.auth-text strong{color:var(--text);font-weight:600;overflow-wrap:anywhere}
.auth-check{display:flex;gap:.625rem;align-items:flex-start;margin-bottom:1rem;color:var(--text-2);font-size:.875rem;cursor:pointer}
.auth-check input{flex:none;width:18px;height:18px;margin-top:2px;accent-color:var(--accent-solid);cursor:pointer}
.auth-check a,.auth-link{color:var(--accent);text-underline-offset:2px}
.auth-google{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:44px;padding:0 12px;background:#131314;border:1px solid #8E918F;border-radius:6px;color:#E3E3E3;font:500 14px/20px Roboto,'Montserrat',-apple-system,sans-serif;cursor:pointer;transition:background-color .15s ease-out,transform .14s var(--ease-out)}
.auth-google svg{flex:none;width:18px;height:18px}
.auth-or{display:flex;align-items:center;gap:.75rem;margin:1rem 0;color:var(--text-2);font-size:.8125rem}
.auth-or::before,.auth-or::after{content:"";flex:1;border-top:1px solid var(--border)}
.auth-label{display:block;margin-bottom:.375rem;font-size:.875rem;font-weight:500}
.auth-input{display:block;width:100%;min-height:44px;margin-bottom:.75rem;padding:0 .75rem;background:var(--bg);border:1px solid var(--border-strong);border-radius:6px;color:var(--text);font:400 1rem/1.2 'Montserrat',-apple-system,sans-serif}
.auth-input--code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:1.25rem;letter-spacing:.2em}
.auth-input[aria-invalid="true"]{border-color:var(--accent)}
.auth-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:44px;padding:0 1rem;background:var(--accent-solid);border:1px solid transparent;border-radius:6px;color:#fff;font:600 .9375rem/1.2 'Montserrat',-apple-system,sans-serif;cursor:pointer;transition:background-color .15s ease-out,transform .14s var(--ease-out)}
.auth-btn--ghost{margin-top:.5rem;background:none;border-color:var(--border-strong);color:var(--text)}
@media(hover:hover) and (pointer:fine){
  .auth-menu__item:hover,.auth-close:hover,.auth-btn--ghost:not(:disabled):hover{background:var(--surface-2)}
  .auth-close:hover{color:var(--text)}
  .auth-google:not(:disabled):hover{background:#1F1F21}
  .auth-btn:not(.auth-btn--ghost):not(:disabled):hover{background:#7C5FEA}
}
.auth-dialog button:disabled{opacity:.6;cursor:not-allowed}
.auth-row{display:flex;flex-wrap:wrap;justify-content:space-between;gap:.25rem 1rem;margin-top:.875rem}
.auth-plain{min-height:40px;padding:0;background:none;border:0;color:var(--accent);font:500 .875rem/1.2 'Montserrat',-apple-system,sans-serif;cursor:pointer}
.auth-plain:disabled{color:var(--text-2)}
.auth-error{margin-top:.875rem;padding:.625rem .75rem;background:var(--surface-2);border-left:2px solid var(--accent);border-radius:0 4px 4px 0;color:var(--text);font-size:.875rem}

.download__status{min-height:1.5em;margin-top:.625rem;color:var(--text-2);font-size:.875rem}

.auth-toast{position:fixed;left:50%;bottom:1.25rem;z-index:130;max-width:calc(100vw - 2rem);padding:.625rem .875rem;background:var(--surface-2);border:1px solid var(--border-strong);border-radius:6px;color:var(--text);font:500 .875rem/1.4 'Montserrat',-apple-system,sans-serif;overflow-wrap:anywhere;opacity:0;visibility:hidden;transform:translate(-50%,8px);transition:opacity .2s ease-out,transform .3s var(--ease-out),visibility .3s}
.auth-toast.is-open{opacity:1;visibility:visible;transform:translate(-50%,0)}

@media(prefers-reduced-motion:no-preference){
  .auth-enter:active,.auth-avatar:active,.auth-btn:not(:disabled):active,.auth-google:not(:disabled):active{transform:scale(.97)}
}
@media(prefers-reduced-motion:reduce){
  /* Sin desplazamiento: solo un fundido corto, para que abrir y cerrar no sea un salto. */
  .auth-menu,.auth-menu.is-open,.auth-dialog,.auth-dialog.is-open{transform:none;transition:opacity .15s ease-out,visibility 0s}
  .auth-toast,.auth-toast.is-open{transform:translate(-50%,0);transition:opacity .15s ease-out,visibility 0s}
  .auth-mail{transition:opacity .15s ease-out,color .15s ease-out}
  .auth-dialog.is-open .vz-eye-a,.auth-dialog.is-open .vz-eye-b,.auth-dialog.is-open .vz-ear-a,.auth-dialog.is-open .vz-ear-b{animation:none}
}
@media(max-width:400px){.header__container{gap:.5rem}.header .logo img{height:30px}.header__controls{gap:.25rem}}
@media(max-width:380px){.auth-enter{padding:0 .625rem}.auth-body{padding:1.25rem}.auth-stage{padding-left:1.25rem;padding-right:1.25rem}}
