.bh-home-stitch {
  --bh-home-primary: #1152d4;
  --bh-home-primary-400: #4f7df0;
  --bh-home-background-light: #f6f6f8;
  --bh-home-background-dark: #101622;
  --bh-home-text-dark: #0f172a;
  --bh-home-text-light: #f8fafc;
  --bh-home-muted: #64748b;
  --bh-home-muted-dark: #94a3b8;
  --bh-home-input-bg: #17243a;
  --bh-home-input-text: #c6d0df;
  --bh-home-input-placeholder: #8fa1bb;
  --bh-home-border-soft: rgba(255, 255, 255, 0.03);
  --bh-home-card-border: rgba(255, 255, 255, 0.16);
  --bh-home-card-bg: rgba(86, 97, 114, 0.42);
  --bh-home-mobile-card-bg: rgba(17, 82, 212, 0.10);
  min-height: 100vh;
  background: var(--bh-home-background-light);
  color: var(--bh-home-text-dark);
  font-family: "Be Vietnam Pro", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

html.dark .bh-home-stitch {
  background: var(--bh-home-background-dark);
  color: var(--bh-home-text-light);
}

.bh-home-stitch,
.bh-home-stitch *,
.bh-home-stitch *::before,
.bh-home-stitch *::after {
  box-sizing: border-box;
}

.bh-home-stitch a {
  text-decoration: none;
}

.bh-home-stitch button,
.bh-home-stitch input {
  font: inherit;
}

.bh-home-stitch__layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bh-home-stitch__promo {
  display: none;
}

.bh-home-stitch__main {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bh-home-background-light);
  min-height: 100vh;
  overflow-y: auto;
}

html.dark .bh-home-stitch__main {
  background: var(--bh-home-background-dark);
}

.bh-home-stitch__main-inner {
  width: 100%;
  max-width: 32rem;
  padding: 1.5rem;
}

.bh-home-stitch__mobile-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.bh-home-stitch__mobile-brand-row,
.bh-home-stitch__brand-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.bh-home-stitch__mobile-brand-icon,
.bh-home-stitch__brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  background: var(--bh-home-primary);
  color: #ffffff;
}

.bh-home-stitch__mobile-brand-icon {
  width: 2rem;
  height: 2rem;
}

.bh-home-stitch__brand-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.bh-home-stitch__mobile-brand-icon .material-symbols-outlined {
  font-size: 1.25rem;
}

.bh-home-stitch__brand-icon .material-symbols-outlined {
  font-size: 1.5rem;
}

.bh-home-stitch__mobile-brand-text,
.bh-home-stitch__brand-text {
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  font-style: italic;
}

.bh-home-stitch__mobile-brand-text {
  font-size: 1.25rem;
  color: inherit;
}

.bh-home-stitch__brand-text {
  font-size: 1.5rem;
  color: #ffffff;
}

.bh-home-stitch__brand-accent {
  color: var(--bh-home-primary-400);
}

.bh-home-stitch__header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.bh-home-stitch__title {
  margin: 0 0 0.25rem;
  font-size: 1.875rem;
  line-height: 1.1;
  font-weight: 900;
  color: inherit;
}

.bh-home-stitch__subtitle {
  margin: 0;
  color: #64748b;
  font-size: 1rem;
}

html.dark .bh-home-stitch__subtitle {
  color: #94a3b8;
}

.bh-home-stitch__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bh-home-stitch__field-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.bh-home-stitch__field-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.bh-home-stitch__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #334155;
}

html.dark .bh-home-stitch__label {
  color: #cbd5e1;
}

.bh-home-stitch__help-link {
  color: var(--bh-home-primary);
  font-size: 0.75rem;
  font-weight: 600;
  transition: opacity 0.2s ease;
}

.bh-home-stitch__help-link:hover {
  opacity: 0.8;
}

.bh-home-stitch__input-shell {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 4.25rem;
  border-radius: 1.125rem;
  border: 1px solid var(--bh-home-border-soft);
  background: var(--bh-home-input-bg);
  box-shadow: none;
}

.bh-home-stitch__leading-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bh-home-input-placeholder);
  font-size: 1.75rem;
  pointer-events: none;
}

.bh-home-stitch__trailing-action {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  background: transparent;
  color: var(--bh-home-input-placeholder);
  cursor: pointer;
}

.bh-home-stitch__input {
  width: 100%;
  min-height: 4.25rem;
  padding: 0 1.375rem 0 4rem;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--bh-home-input-text);
  font-size: 1rem;
  font-weight: 500;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: none;
}

.bh-home-stitch__input-shell--with-trailing-action .bh-home-stitch__input {
  padding-right: 4rem;
}

.bh-home-stitch__input::placeholder {
  color: var(--bh-home-input-placeholder);
  opacity: 1;
}

.bh-home-stitch__input:-webkit-autofill,
.bh-home-stitch__input:-webkit-autofill:hover,
.bh-home-stitch__input:-webkit-autofill:focus,
.bh-home-stitch__input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--bh-home-input-text);
  -webkit-box-shadow: 0 0 0 1000px var(--bh-home-input-bg) inset;
  box-shadow: 0 0 0 1000px var(--bh-home-input-bg) inset;
  transition: background-color 9999s ease-in-out 0s;
  caret-color: var(--bh-home-input-text);
}

.bh-home-stitch__submit {
  margin-top: 0.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 3.75rem;
  padding: 1rem 1.5rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--bh-home-primary);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 20px 30px rgba(17, 82, 212, 0.20);
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.bh-home-stitch__submit:hover {
  background: #0f49bd;
}

.bh-home-stitch__submit:hover .material-symbols-outlined {
  transform: translateX(0.25rem);
}

.bh-home-stitch__submit .material-symbols-outlined {
  transition: transform 0.2s ease;
}

.bh-home-stitch__mobile-cta {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
}

html.dark .bh-home-stitch__mobile-cta {
  border-top-color: #1e293b;
}

.bh-home-stitch__mobile-cta-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(17, 82, 212, 0.20);
  background: var(--bh-home-mobile-card-bg);
}

html.dark .bh-home-stitch__mobile-cta-card {
  background: rgba(17, 82, 212, 0.05);
}

.bh-home-stitch__mobile-cta-icon,
.bh-home-stitch__cta-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--bh-home-primary);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(17, 82, 212, 0.20);
}

.bh-home-stitch__mobile-cta-icon {
  width: 2.5rem;
  height: 2.5rem;
}

.bh-home-stitch__cta-icon {
  width: 3rem;
  height: 3rem;
}

.bh-home-stitch__mobile-cta-copy,
.bh-home-stitch__cta-copy {
  min-width: 0;
}

.bh-home-stitch__mobile-cta-title,
.bh-home-stitch__cta-title {
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.bh-home-stitch__mobile-cta-title {
  font-size: 1rem;
}

.bh-home-stitch__cta-title {
  color: #ffffff;
  font-size: 1.125rem;
}

.bh-home-stitch__mobile-cta-text,
.bh-home-stitch__cta-text {
  margin: 0 0 0.75rem;
  line-height: 1.6;
}

.bh-home-stitch__mobile-cta-text {
  font-size: 0.75rem;
  color: #475569;
}

html.dark .bh-home-stitch__mobile-cta-text {
  color: #94a3b8;
}

.bh-home-stitch__cta-text {
  font-size: 0.875rem;
  color: rgba(226, 232, 240, 0.92);
}

.bh-home-stitch__mobile-cta-link,
.bh-home-stitch__cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: gap 0.2s ease, color 0.2s ease;
}

.bh-home-stitch__mobile-cta-link {
  color: var(--bh-home-primary);
  font-size: 0.75rem;
}

.bh-home-stitch__cta-link {
  color: var(--bh-home-primary-400);
  font-size: 0.875rem;
}

.bh-home-stitch__mobile-cta-link:hover,
.bh-home-stitch__cta-link:hover {
  gap: 0.5rem;
}

.bh-home-stitch__footer {
  margin-top: 1.5rem;
  text-align: center;
}

.bh-home-stitch__footer p {
  margin: 0;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #64748b;
}

@media (min-width: 768px) {
  .bh-home-stitch__layout {
    flex-direction: row;
  }

  .bh-home-stitch__promo {
    position: relative;
    display: flex;
    width: 50%;
    min-height: 100vh;
    background-image: linear-gradient(rgba(17, 82, 212, 0.4), rgba(16, 22, 34, 0.8)), url("../img/stitch-home-bh-hero.png");
    background-size: cover;
    background-position: center;
    overflow: hidden;
  }

  .bh-home-stitch__promo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 22, 34, 0.90), transparent, transparent);
  }

  .bh-home-stitch__promo-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    padding: 3rem;
  }

  .bh-home-stitch__headline {
    margin: 0;
    max-width: 40rem;
    color: #ffffff;
    font-size: 2.25rem;
    line-height: 1.1;
    font-weight: 900;
  }

  .bh-home-stitch__lead {
    max-width: 32rem;
    margin: 0.5rem 0 0;
    color: rgba(226, 232, 240, 0.92);
    font-size: 1.125rem;
    line-height: 1.7;
    font-weight: 500;
  }

  .bh-home-stitch__cta-card {
    display: flex;
    gap: 1rem;
    max-width: 32rem;
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid var(--bh-home-card-border);
    border-radius: 1rem;
    background: var(--bh-home-card-bg);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
  }

  .bh-home-stitch__main {
    width: 50%;
    padding: 3rem;
  }

  .bh-home-stitch__main-inner {
    padding: 0;
  }

  .bh-home-stitch__mobile-brand,
  .bh-home-stitch__mobile-cta {
    display: none;
  }

  .bh-home-stitch__header {
    text-align: left;
  }
}

@media (min-width: 1024px) {
  .bh-home-stitch__promo {
    width: 60%;
  }

  .bh-home-stitch__promo-content,
  .bh-home-stitch__main {
    padding: 5rem;
  }

  .bh-home-stitch__main {
    width: 40%;
  }

  .bh-home-stitch__headline {
    font-size: 3.75rem;
    max-width: 36rem;
  }
}


/* Ajustes migrados desde Home.razor para evitar estilos inline en Razor */
.bh-home-stitch__main {
  background: #081226;
}

.bh-home-stitch__main-inner {
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem;
}

.bh-home-stitch__header {
  margin-bottom: 1.5rem;
  text-align: left;
}

.bh-home-stitch__title {
  margin: 0 0 0.5rem;
  font-size: 3.125rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: #ffffff;
}

.bh-home-stitch__subtitle {
  margin: 0;
  max-width: 25rem;
  color: #8fa1bb;
  font-size: 1.0625rem;
  line-height: 1.4;
}

.bh-home-stitch__form {
  gap: 1rem;
}

.bh-home-stitch__field-group {
  gap: 0.375rem;
}

.bh-home-stitch__field-header {
  align-items: center;
}

.bh-home-stitch__label {
  font-size: 0.75rem;
  line-height: 1;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #ffffff;
}

.bh-home-stitch__help-link {
  color: #1152d4;
  font-size: 0.75rem;
  font-weight: 700;
}

.bh-home-stitch__input-shell {
  min-height: 3.75rem;
  border-radius: 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  background: #17243a;
}

.bh-home-stitch__leading-icon {
  left: 1.25rem;
  font-size: 1.75rem;
  color: #8fa1bb;
}

.bh-home-stitch__trailing-action {
  right: 1.125rem;
  width: 1.75rem;
  height: 1.75rem;
  color: #8fa1bb;
}

.bh-home-stitch__input {
  min-height: 3.75rem;
  padding: 0 1.375rem 0 4rem;
  color: #c6d0df;
  font-size: 1rem;
  font-weight: 600;
}

.bh-home-stitch__input-shell--with-trailing-action .bh-home-stitch__input {
  padding-right: 3.75rem;
}

.bh-home-stitch__input-shell--error {
  border-color: rgba(248, 113, 113, 0.5);
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.18);
}

.bh-home-stitch__field-error {
  display: block;
  margin: 0.125rem 0 0;
  color: #fca5a5;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25;
}

.bh-home-stitch__form-error {
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  background: rgba(127, 29, 29, 0.28);
  color: #fecaca;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
}

.bh-home-stitch__submit:disabled {
  cursor: not-allowed;
  opacity: 0.88;
}

.bh-home-stitch__submit {
  margin-top: 0.25rem;
  min-height: 3.75rem;
  border-radius: 1.125rem;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: 0 18px 28px rgba(17, 82, 212, 0.20);
}

.bh-home-stitch__footer {
  margin-top: 1.5rem;
  text-align: center;
}

.bh-home-stitch__footer p {
  margin: 0;
  color: #64748b;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

@media (min-width: 768px) {
  .bh-home-stitch__main {
    padding: 3rem;
    overflow: hidden;
  }

  .bh-home-stitch__main-inner {
    padding: 0;
  }

  .bh-home-stitch__mobile-brand,
  .bh-home-stitch__mobile-cta {
    display: none !important;
  }
}

@media (min-width: 1024px) {
  .bh-home-stitch__main {
    padding: 5rem;
  }
}
