/* ---------- Acceso: iniciar sesión y crear cuenta ---------- */
.acceso { display: flex; justify-content: center; align-items: flex-start; padding: 40px 20px 56px; min-height: calc(100vh - 81px - 110px); }
.acceso__tarjeta {
    width: 100%; max-width: 440px; background: #fff; border: 1px solid #e6e6e6; border-radius: 24px;
    padding: 30px 28px 26px; box-shadow: 0 18px 40px rgba(0, 0, 0, .06);
}
.acceso h1 { margin: 0; font-size: 1.8rem; line-height: 1.2; }
.acceso__intro { margin: 6px 0 22px; color: #555; }
.acceso__pie { margin: 22px 0 0; text-align: center; color: #555; }
.acceso__pie a { font-weight: 700; }
.acceso__nota { margin: 8px 0 0; font-size: .82rem; color: #777; text-align: center; }

.aviso { border-radius: 14px; padding: 12px 14px; margin: 0 0 18px; font-size: .93rem; line-height: 1.45; }
.aviso--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.aviso--ok { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.aviso--info { background: #fffbeb; color: #78350f; border: 1px solid #fde68a; }
.aviso--info strong { display: block; }

.formulario fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.formulario fieldset:disabled { opacity: .55; }
.campo { display: block; margin-bottom: 16px; }
.campo > span:first-child { display: block; font-size: .88rem; font-weight: 700; margin-bottom: 6px; }
.campo em { font-style: normal; font-weight: 400; color: #777; }
.campo input {
    width: 100%; font: inherit; font-size: 16px; color: #111; background: #fff;
    border: 2px solid #d6d6d6; border-radius: 12px; padding: 11px 14px; outline: none; transition: border-color .15s, box-shadow .15s;
}
.campo input:focus { border-color: #111; box-shadow: 0 0 0 4px rgba(17, 17, 17, .08); }
.campo--mal input { border-color: #dc2626; }
.ayuda { display: block; margin-top: 5px; font-size: .8rem; color: #777; line-height: 1.4; }
.error { display: block; margin-top: 5px; font-size: .84rem; color: #b91c1c; font-weight: 600; line-height: 1.4; }
.clave { position: relative; display: block; }
.clave input { padding-right: 50px; }
.ver-clave {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none;
    font-size: 18px; padding: 6px 8px; cursor: pointer; opacity: .55; border-radius: 8px;
}
.ver-clave:hover, .ver-clave--activa { opacity: 1; }

.casilla { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: #333; margin: 6px 0 4px; cursor: pointer; }
.casilla input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: #111; cursor: pointer; }
.casilla--mal { color: #b91c1c; }
.casilla--mal input { outline: 2px solid #dc2626; outline-offset: 2px; }

.boton {
    font: inherit; font-weight: 700; font-size: 16px; cursor: pointer;
    padding: 13px 18px; border-radius: 999px; border: 2px solid #111; background: #111; color: #fff;
    transition: transform .15s, opacity .15s;
}
.boton:hover:not(:disabled) { transform: translateY(-1px); }
.boton:disabled { opacity: .45; cursor: default; }
.boton--ancho { display: block; width: 100%; margin-top: 18px; }
.boton.cargando, .social-btn.cargando { opacity: .6; cursor: progress; }

.separador { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: #888; font-size: .85rem; }
.separador::before, .separador::after { content: ""; flex: 1; height: 1px; background: #e6e6e6; }

.sociales { display: grid; gap: 10px; }
.sociales form { margin: 0; }
.social-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    font: inherit; font-weight: 700; font-size: 15px; padding: 11px 16px; border-radius: 999px; cursor: pointer;
    border: 2px solid #d6d6d6; background: #fff; color: #111; transition: transform .15s, border-color .15s, opacity .15s;
}
.social-btn svg { width: 22px; height: 22px; flex: none; }
.social-btn:hover:not(:disabled) { transform: translateY(-1px); border-color: #111; }
.social-btn--facebook { background: #1877f2; border-color: #1877f2; color: #fff; }
.social-btn--facebook:hover:not(:disabled) { border-color: #0f5fc7; }
.social-btn--facebook svg { background: none; }
.social-btn:disabled { opacity: .45; cursor: default; }

@media (max-width: 480px) {
    .acceso { padding: 20px 14px 40px; }
    .acceso__tarjeta { padding: 24px 18px 22px; border-radius: 20px; }
}
.error[hidden] { display: none; }
