/* =============== VARIABLES (EDITABLES) =============== */
:root {
  --color-bg-header: #ffffff;
  --color-bg-footer: #050608;      /* si quieres también blanco, cámbialo */
  --color-primary-store: #1d3e8a;        /* azul botón "Iniciar sesión" */
  --color-text: #111827;           /* texto oscuro */
  --color-border-soft: rgba(0, 0, 0, 0.06);
  --max-width: 1200px;

  --color-nav-text: #111827;
  --color-nav-active-bar: #cfa655; /* dorado de la pestaña activa */
  --trust-blue-dark: #1d3e8a;
  --trust-blue: #2f80ed;
  --trust-blue-soft: #f0f5ff;
  --trust-gray-text: #4b5563;
}

body {
  padding-top: 80px;
}

/* =============== HEADER =============== */
.site-header {
  width: 100%;
  background: var(--color-bg-header);
  border-bottom: 1px solid var(--color-border-soft);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo img {
  height: 48px;
  display: block;
}

/* Ocultamos el checkbox */
.nav-toggle {
  display: none;
}

/* Menú hamburguesa */
.menu-toggle {
  width: 32px;
  height: 32px;
  cursor: pointer;
  flex-shrink: 0;
  display: none; /* solo móvil */
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: #111827;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Wrapper que contiene nav + botones */
.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: 12px;
}

.main-nav li {
  position: relative;
}

.main-nav a {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-nav-text);
  letter-spacing: 0.03em;
  padding: 24px 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Barra dorada arriba (hover y activo) */
.main-nav a::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s ease;
}

/* al pasar el mouse */
.main-nav a:hover::before {
  background: rgba(207, 166, 85, 0.5);
}

/* enlace activo (página actual) */
.main-nav a.is-active::before {
  background: var(--color-nav-active-bar);
}

.header-btns {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Botón bordeado tipo "Iniciar sesión" */
.btn-secondary {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid #111827;
  background-color: #253979;
  color: #fff!important;
  border-color: #253979;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-secondary:hover {
  background: rgb(11,141,168);
  color: #ffffff;
}

/* Botón azul tipo "Crear cuenta" / "Iniciar sesión" */
.btn-primary {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 999px;
  border: none;
  background: var(--color-primary-store);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(29, 62, 138, 0.35);
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.2s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(29, 62, 138, 0.45);
  opacity: 0.95;
}

/* =============== RESPONSIVE HEADER =============== */

/* Desktop */
@media (min-width: 901px) {
  .menu-toggle {
    display: none;
  }
}

/* Móvil */
@media (max-width: 900px) {
  .header-inner {
    padding-block: 10px;
  }

  .menu-toggle {
    display: flex;
  }

  /* Menú oculto por defecto en móvil */
  .nav-wrapper {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--color-border-soft);
    display: none;
    flex-direction: column;
    gap: 12px;
    padding: 14px 20px 18px;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-right: 0;
  }

  .main-nav a {
    padding: 10px 0;
  }

  .main-nav a::before {
    /* en móvil mejor sin barra arriba para que no se vea raro */
    display: none;
  }

  .main-ul {
    font-weight: bold!important;
  }

  .header-btns {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  /* Mostrar menú cuando está checked */
  .nav-toggle:checked ~ .nav-wrapper {
    display: flex;
  }

  /* Animación hamburguesa a "X" */
  .nav-toggle:checked + .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle:checked + .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle:checked + .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

.text-footer{
  font-style: normal;
  font-weight: 300;
  font-size: 14px;
  line-height: 28px;
  text-transform: none;
  letter-spacing: 0px;
  color: #676666;
  font-weight: bold;
  line-height: inherit;
}

/* =============== TRUST ID STYLE FOOTER =============== */

.trust-footer {
  background: #ffffff;
  padding: 40px 20px 50px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

/* Logos (ISO, Azure, etc.) */
.trust-footer-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.trust-footer-logos img {
  height: 55px;
  object-fit: contain;
  display: block;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.trust-footer-logos img:hover {
  opacity: 1;
}

/* Textos de registro NOM, REPSE, etc. */
.trust-footer-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: #444;
  opacity: 0.9;
}

.trust-footer-info span {
  white-space: nowrap;
}


/* Footer responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .footer-container {
    grid-template-columns: 1fr;
  }
}

/*MODAL*/

/* Contenedor general */
.trust-modal .modal-dialog {
  max-width: 520px;
}

.trust-modal-content {
  border-radius: 24px;
  border: none;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
}

/* ===== Header ===== */
.trust-modal-header {
  position: relative;
  padding: 18px 22px 26px;
  background: linear-gradient(135deg, var(--trust-blue-dark), var(--trust-blue));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.trust-modal-titlewrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.trust-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
}

.trust-modal-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
}

.trust-modal-subtitle {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Curvita blanca bajo el header */
.trust-modal-header::after {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -18px;
  height: 36px;
  background: var(--trust-blue-soft);
  border-radius: 50%;
}

/* ===== Body ===== */
.trust-modal-body {
  padding: 32px 26px 26px;
  background: radial-gradient(circle at top, var(--trust-blue-soft), #ffffff 55%);
}

.trust-modal-text {
  margin: 0 0 24px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--trust-gray-text);
}

/* ===== Opciones ===== */
.trust-option {
  width: 100%;
  border: none;
  outline: none;
  text-align: left;
  border-radius: 20px;
  padding: 16px 18px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

/* Soy nuevo */
.trust-option-primary {
  background: linear-gradient(135deg, var(--trust-blue), #336dff);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(47, 128, 237, 0.45);
}

.trust-option-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(47, 128, 237, 0.55);
}

/* Ya tengo cuenta */
.trust-option-secondary {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.trust-option-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.12);
}

/* Iconos dentro de las opciones */
.trust-option-icon {
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.trust-option-icon-secondary {
  background: #f3f4f6;
}

/* Textos dentro de las opciones */
.trust-option-text {
  display: flex;
  flex-direction: column;
}

.trust-option-title {
  font-size: 1rem;
  font-weight: 600;
}

.trust-option-subtitle {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Responsive pequeño */
@media (max-width: 480px) {
  .trust-modal-body {
    padding: 26px 18px 20px;
  }

  .trust-option {
    padding: 14px 14px;
  }
}

.btnBackOpciones{
  color: black;
}

.btnBackOpciones:hover{
  color: black;
}

/* Password Wrapper */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: color 0.3s ease;
}

.password-toggle:hover {
  color: #1e293b;
}

.eye-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke-width: 2;
}

.glyphicon{
  display: none!important;
}

.help-block{
  color: red;
}

.links-terms{
  color: black;
  font-weight: bold;
}

.links-terms:hover{
  color: black;
  text-decoration: underline;
}