/* ACCESIBILIDAD VISUAL HOLAZIVO */
:root body,
:root section,
:root nav {
  background-color: var(--superficie);
}

:root nav {
  background: rgba(255, 253, 248, 0.97);
  border-bottom-color: rgba(0, 58, 103, 0.14);
}

:root .hero,
:root .roles-section,
:root .confianza-section,
:root .testimonios-section {
  background: var(--gris-claro);
}

p,
li,
summary,
label,
input,
select,
button,
a {
  font-size: 1rem;
}

.nav-links a,
.nav-links button {
  font-size: 1rem;
  color: var(--azul);
}

:root .hero p,
:root .section-subtitle,
:root .servicio-card p,
:root .ayuda-card p,
:root .paso p,
:root .confianza-inner p,
:root .rol-card p,
:root .testimonio-texto,
:root .roles-unificado,
:root .banner-seguridad .seg-text p:last-child,
:root details p,
:root footer p {
  font-size: 1rem;
  color: var(--texto-suave);
  line-height: 1.75;
}

:root .section-label {
  color: var(--azul);
}

:root .btn-primary,
:root .btn-ziver,
.nav-links .nav-cta,
#btn-auth-submit,
#btn-auth-next {
  min-height: 56px;
  background: var(--naranja-cta);
  color: var(--hz-color-surface-white);
  border: 2px solid var(--naranja-cta);
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 1rem;
  box-shadow: none;
  text-decoration: none;
}

.nav-links .nav-cta,
.nav-links .nav-cta:hover,
#btn-registro,
#btn-registro:hover,
.btn-primary,
.btn-primary:hover,
.btn-ziver,
.btn-ziver:hover,
#btn-auth-submit,
#btn-auth-next,
.cta-final .btn-primary {
  color: var(--hz-color-surface-white);
}

:root .btn-secondary,
#btn-auth-prev,
.nav-links .nav-login {
  min-height: 56px;
  color: var(--azul);
  background: transparent;
  border: 2px solid var(--azul);
  border-radius: 999px;
  padding: 16px 28px;
  font-size: 1rem;
  box-shadow: none;
}

.cta-final .btn-secondary,
.cta-final .btn-secondary:hover {
  color: var(--hz-color-surface-white);
  border-color: rgba(255, 255, 255, 0.9);
  background: transparent;
}

.cta-final .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-ziver:hover,
.nav-cta:hover,
.servicio-card:hover,
.ayuda-card:hover,
.rol-card:hover,
.testimonio-card:hover,
.paso:hover .paso-num {
  transform: none;
}

.servicio-card,
.ayuda-card,
.rol-card,
.testimonio-card,
.confianza-inner,
details,
.hero-stat {
  background: var(--superficie);
  border-color: rgba(0, 58, 103, 0.16);
  box-shadow: none;
}

#pmv-grid > div:nth-child(2) {
  background: var(--superficie);
  border: 2px solid var(--azul);
  border-top: 5px solid var(--azul);
  transform: none;
  box-shadow: none;
}

#pmv-grid > div:nth-child(2) h3,
#pmv-grid > div:nth-child(2) p,
#pmv-grid > div:nth-child(2) strong {
  color: var(--texto-suave);
}

#pmv-grid > div:nth-child(2) h3 {
  color: var(--azul);
}

#pmv-grid > div:nth-child(2) p:first-child {
  color: var(--azul);
}

#pmv-grid > div:nth-child(2) .pmv-icon-featured {
  background: var(--azul-claro);
  color: var(--azul);
}

:root .como-funciona,
:root .cta-final,
:root footer {
  background: var(--azul);
  color: var(--hz-color-surface-white);
}

#trust-bar-inner,
#trust-bar-inner div,
#trust-bar-inner span {
  color: var(--hz-color-surface-white);
}

:root .como-funciona .section-subtitle,
:root .como-funciona p,
:root .cta-final p,
:root footer p,
:root footer a,
:root footer button,
:root .paso-detalle,
:root .uni-tag {
  color: rgba(255, 255, 255, 0.9);
}

:root .como-funciona .banner-seguridad .seg-text p:first-child {
  color: rgba(255, 255, 255, 0.9);
}

:root input,
:root select {
  min-height: 56px;
  padding: 14px 16px;
  border: 2px solid rgba(0, 58, 103, 0.22);
  border-radius: 12px;
  background: var(--superficie);
  color: var(--texto);
  font-family: 'Nunito', sans-serif;
}

:root input:focus,
:root select:focus,
:root button:focus-visible,
:root a:focus-visible,
:root summary:focus-visible {
  outline: 3px solid #d94716;
  outline-offset: 3px;
  border-color: var(--azul);
  box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.96);
}

@media (max-width: 900px) {
  .nav-links .nav-auth button {
    width: 100%;
    text-align: left;
  }

  .nav-links .nav-auth .nav-cta {
    padding: 14px 28px;
    border-radius: 0;
  }
}

#modal-overlay,
#modal-google-registro {
  background: rgba(23, 32, 51, 0.66);
  backdrop-filter: none;
  box-sizing: border-box;
  height: 100dvh;
  left: 0;
  padding: 18px;
  right: 0;
  width: 100vw;
}

#modal-overlay > div,
#modal-google-registro > div {
  background: var(--superficie);
  position: relative;
  max-width: 520px;
  width: min(94vw, 520px);
  max-height: calc(100dvh - 36px);
  overflow: hidden;
  border-radius: 14px;
  padding: 46px 34px 34px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.22);
}

#modal-contenido {
  max-height: calc(100dvh - 126px);
  overflow-y: auto;
  padding-right: 2px;
}

#btn-cerrar-auth {
  align-items: center;
  background: var(--superficie);
  border: 1px solid rgba(0, 58, 103, 0.16);
  border-radius: 999px;
  color: var(--texto);
  display: inline-flex;
  font-size: 1.45rem;
  height: 44px;
  justify-content: center;
  line-height: 1;
  min-width: 44px;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
}

#modal-titulo,
#modal-subtitulo {
  text-align: left;
}

#modal-titulo {
  color: var(--azul);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

#modal-subtitulo {
  color: var(--texto-suave);
  font-size: 1rem;
  margin-bottom: 18px;
}

.auth-step-box {
  display: none;
  background: var(--azul-claro);
  border: 1px solid rgba(0, 58, 103, 0.16);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
}

.auth-step-count {
  color: var(--azul);
  font-size: 0.9rem;
  font-weight: 900;
  margin: 0 0 4px;
}

.auth-step-helper {
  color: var(--texto-suave);
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.auth-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: var(--superficie);
  padding-top: 10px;
}

.auth-field-error {
  display: none;
  margin: -5px 0 2px;
  color: #a12814;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
}

.auth-field-error.visible {
  display: block;
}
#auth-form .auth-campo-invalido {
  border-color: #a12814;
  box-shadow: 0 0 0 3px rgba(161, 40, 20, 0.12);
}

#toast-index {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: #166534;
  color: white;
  padding: 16px 22px;
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  z-index: 9999;
  max-width: 340px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.auth-actions button {
  flex: 1;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
}

#campo-terminos label {
  color: var(--texto);
  font-size: 1rem;
  line-height: 1.55;
}

#acepta-terminos {
  width: 22px;
  height: 22px;
  min-width: 22px;
  accent-color: var(--azul);
}

@media (max-width: 600px) {
  html {
    font-size: 18px;
  }
  #modal-overlay > div,
  #modal-google-registro > div {
    padding: 58px 22px 28px;
  }
  #modal-contenido {
    max-height: calc(100dvh - 122px);
  }
  .auth-actions {
    flex-direction: column;
  }

  nav {
    padding: 12px 18px;
  }

  .hamburger {
    width: 44px;
    height: 44px;
    padding: 9px;
    align-items: center;
    justify-content: center;
  }

  .nav-logo img {
    width: auto;
    height: 54px;
    max-width: 54px;
  }

  .nav-tagline {
    font-size: 0.82rem;
    max-width: 118px;
    white-space: normal;
    line-height: 1.1;
    padding-left: 8px;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary,
  .cta-final-actions .btn-primary,
  .cta-final-actions .btn-secondary {
    max-width: none;
    min-height: 58px;
  }

  #trust-bar-inner .trust-label {
    font-size: 0.9rem;
    line-height: 1.35;
  }

  #toast-index {
    left: 18px;
    right: 18px;
    bottom: 18px;
    max-width: none;
  }
}

#pmv-grid .pmv-kicker,
#campos-ubicacion p,
#campo-nacimiento label {
  font-size: 1rem;
  letter-spacing: 0.08em;
}

footer a,
footer button {
  font-size: 1rem;
}

#btn-login:hover {
  background: var(--hz-color-accent-orange);
  border-color: var(--hz-color-accent-orange);
}
#google-nacimiento:focus {
  border-color: var(--azul-medio);
}
#btn-confirmar-google:hover {
  background: #003a6b;
}
#btn-google-login:hover {
  background: var(--hz-color-surface-cool);
}
.instagram-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(255, 107, 53, 0.45);
}
.footer-register:hover {
  color: var(--hz-color-accent-orange);
}
.como-funciona .paso-detalle span {
  color: var(--hz-color-surface-white);
}
footer .footer-register {
  background: none;
  border: none;
  color: var(--hz-color-surface-white);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: color 0.2s;
}
footer .footer-register:hover {
  color: var(--hz-color-surface-white);
  text-decoration: underline;
}

.trust-bar {
  background: var(--azul-medio);
  padding: 20px 20px;
}

.trust-bar-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  text-align: center;
}

.trust-item {
  text-align: center;
  color: white;
}

.trust-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 4px;
}

.trust-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--hz-color-accent-orange);
  line-height: 1;
}

.trust-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
}

.trust-label-offset {
  margin-top: 4px;
}

.trust-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
