/* ServiHogar V12: contraste garantizado y alineacion centrada donde ayuda. */

/* El bloque de bienvenida usa texto claro real sobre azul oscuro. */
body.servihogar-app:not(.is-admin-route) .auth-aside{
  background:
    radial-gradient(circle at 92% 8%,rgba(255,151,91,.28),transparent 15rem),
    radial-gradient(circle at 4% 100%,rgba(87,157,232,.2),transparent 17rem),
    linear-gradient(145deg,#082e68,#0754ac 66%,#0d6abc);
  color:#fff
}
body.servihogar-app:not(.is-admin-route) .auth-aside .auth-kicker{color:#ffd3bb}
body.servihogar-app:not(.is-admin-route) .auth-aside h1{color:#fff;text-shadow:0 2px 12px rgba(0,28,67,.22)}
body.servihogar-app:not(.is-admin-route) .auth-aside p{color:#eef5ff}
body.servihogar-app:not(.is-admin-route) .auth-aside .check-list li{color:#fff}
body.servihogar-app:not(.is-admin-route) .auth-aside .check-list li::before{color:#ffd0b5}
body.servihogar-app:not(.is-admin-route) .auth-aside .brand-plate{background:#fffefa}

/* Portada centrada; formulario y datos conservan lectura alineada a la izquierda. */
body.is-home-page .home-search-heading{margin-inline:auto;text-align:center}
body.is-home-page .home-welcome h1{margin-inline:auto}
body.is-home-page .home-welcome p{margin-inline:auto}
body.is-home-page .home-search-primary{margin-inline:auto;text-align:left}
body.is-home-page .home-search-trust{justify-content:center}
body.is-home-page .section-heading{position:relative;justify-content:center;text-align:center}
body.is-home-page .section-heading .text-link{position:absolute;right:clamp(16px,3vw,30px)}

/* Estados, ayudas y textos tenues mantienen contraste AA sobre fondos claros. */
body.servihogar-app:not(.is-admin-route) .form-hint,
body.servihogar-app:not(.is-admin-route) .field small,
body.servihogar-app:not(.is-admin-route) .identity-disclaimer,
body.servihogar-app:not(.is-admin-route) .profile-stats span,
body.servihogar-app:not(.is-admin-route) .details-grid dt{color:#586d83}
body.servihogar-app:not(.is-admin-route) .register-progress>div:first-child,
body.servihogar-app:not(.is-admin-route) .register-step-heading p{color:#526981}
body.servihogar-app:not(.is-admin-route) .register-progress li{color:#52677e}

@media (max-width:859px){
  /* En celular la marca y las presentaciones quedan visualmente centradas. */
  .servihogar-app .header-inner{position:relative;justify-content:center}
  .servihogar-app .header-inner>.brand{margin-inline:auto}
  .servihogar-app .header-inner>.nav-toggle{position:absolute;right:16px}

  body.servihogar-app:not(.is-admin-route) .auth-aside{align-items:center;text-align:center}
  body.servihogar-app:not(.is-admin-route) .auth-aside .brand{align-self:center}
  body.servihogar-app:not(.is-admin-route) .auth-aside-copy{display:grid;justify-items:center}
  body.servihogar-app:not(.is-admin-route) .auth-aside p{margin-inline:auto}

  body.servihogar-app:not(.is-admin-route) .profile-hero{text-align:center}
  body.servihogar-app:not(.is-admin-route) .profile-intro{flex-direction:column;align-items:center}
  body.servihogar-app:not(.is-admin-route) .profile-intro>div{display:grid;justify-items:center;width:100%}
  body.servihogar-app:not(.is-admin-route) .profile-location{display:flex;align-items:center;justify-content:center;gap:4px}
  body.servihogar-app:not(.is-admin-route) .identity-disclaimer{width:max-content;max-width:100%;padding:5px 11px;border-left:0;border-radius:999px;background:#fff1e8;text-align:center}
  body.servihogar-app:not(.is-admin-route) .profile-badges{justify-content:center}
  body.servihogar-app:not(.is-admin-route) .profile-bio{text-align:center}
  body.servihogar-app:not(.is-admin-route) .profile-actions-inline{justify-items:stretch}

  body.is-home-page .section-heading{position:relative;display:grid;justify-items:center;gap:4px}
  body.is-home-page .section-heading .text-link{position:static}
}

@media (min-width:860px){
  /* En escritorio el contenido operativo vuelve a la izquierda para escanearlo mejor. */
  body.servihogar-app:not(.is-admin-route) .auth-aside{text-align:left}
  body.servihogar-app:not(.is-admin-route) .profile-hero{text-align:left}
}

@media (prefers-reduced-motion:reduce){
  body.servihogar-app:not(.is-admin-route) .auth-aside{background-color:#0754ac}
}
