/* Open Touch — marca web (alineada con la app MAUI) */
:root {
  --ot-primary: #163057;
  --ot-primary-dark: #0f213d;
  --ot-secondary: #46b6e6;
  --ot-tertiary: #a6c7db;
  --ot-surface: #f5f9fc;
  --ot-page: #ffffff;
  --ot-muted: #4a708a;
  --ot-border: #d4e4ef;
  --ot-danger: #c0392b;
  --ot-success: #1e8a4c;
  --ot-radius: 14px;
  --ot-shadow: 0 8px 28px rgba(22, 48, 87, 0.08);
  --ot-shadow-sm: 0 2px 10px rgba(22, 48, 87, 0.06);
  --bs-primary: #163057;
  --bs-primary-rgb: 22, 48, 87;
  --bs-link-color: #163057;
  --bs-link-hover-color: #0f213d;
  --bs-body-color: #163057;
  --bs-body-bg: #ffffff;
  --bs-border-color: #d4e4ef;
  --bs-secondary-color: #4a708a;
}

html {
  font-size: 15px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  color: var(--ot-primary);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(70, 182, 230, 0.18), transparent 55%),
    radial-gradient(900px 400px at 100% 0%, rgba(166, 199, 219, 0.35), transparent 50%),
    var(--ot-page);
}

body > .ot-main {
  flex: 1 0 auto;
}

/* ——— Navbar ——— */
.ot-navbar {
  background: linear-gradient(135deg, var(--ot-primary) 0%, var(--ot-primary-dark) 100%) !important;
  border-bottom: 3px solid var(--ot-secondary) !important;
  box-shadow: 0 4px 18px rgba(15, 33, 61, 0.18);
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}

.ot-navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
  color: #fff !important;
  text-decoration: none;
}

/* PNG oficial + leyenda a la derecha */
.ot-navbar .navbar-brand .ot-brand-mark {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
  border: 0;
  padding: 0;
  flex-shrink: 0;
  /* Contorno luminoso: se aparta del fondo primary */
  filter:
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.95))
    drop-shadow(0 0 3px rgba(70, 182, 230, 0.95))
    drop-shadow(0 0 8px rgba(70, 182, 230, 0.55))
    drop-shadow(0 0 14px rgba(166, 199, 219, 0.35));
}

.ot-navbar .navbar-brand .ot-brand-text {
  display: flex;
  flex-direction: column;
  align-items: center; /* "Condominios" centrado bajo "Open Touch" */
  justify-content: center;
  line-height: 1.12;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: #fff;
  white-space: nowrap;
  text-align: center;
}

.ot-navbar .navbar-brand .ot-brand-text small {
  display: block;
  margin-top: 0.15rem;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ot-tertiary);
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .ot-navbar .navbar-brand .ot-brand-mark {
    width: 56px;
    height: 56px;
  }

  .ot-navbar .navbar-brand .ot-brand-text {
    font-size: 1.25rem;
  }

  .ot-navbar .navbar-brand .ot-brand-text small {
    font-size: 0.65rem;
  }
}

.ot-navbar .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  border-radius: 8px;
  padding: 0.4rem 0.75rem !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.ot-navbar .nav-link:hover,
.ot-navbar .nav-link:focus {
  color: #fff !important;
  background: rgba(70, 182, 230, 0.22);
}

.ot-navbar .navbar-text {
  color: var(--ot-tertiary) !important;
  font-size: 0.9rem;
}

.ot-navbar .navbar-toggler {
  border-color: rgba(166, 199, 219, 0.5);
}

.ot-navbar .navbar-toggler-icon {
  filter: invert(1) brightness(1.2);
}

.ot-btn-outline-light {
  --bs-btn-color: #fff;
  --bs-btn-border-color: var(--ot-tertiary);
  --bs-btn-hover-bg: var(--ot-secondary);
  --bs-btn-hover-border-color: var(--ot-secondary);
  --bs-btn-hover-color: var(--ot-primary);
  --bs-btn-active-bg: var(--ot-secondary);
  --bs-btn-active-border-color: var(--ot-secondary);
  --bs-btn-active-color: var(--ot-primary);
  border-radius: 10px;
  font-weight: 600;
}

/* Ingresar (navbar, visitante) */
.ot-btn-login {
  --bs-btn-color: var(--ot-primary);
  --bs-btn-bg: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: var(--ot-secondary);
  --bs-btn-hover-border-color: var(--ot-secondary);
  --bs-btn-hover-color: var(--ot-primary);
  border-radius: 10px;
  font-weight: 700;
  padding: 0.4rem 1rem;
}

/* ——— Landing pública ——— */
.ot-main-full main {
  padding: 0;
}

.ot-landing {
  margin: 0;
}

.ot-hero {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  color: #fff;
}

.ot-hero-bg {
  position: absolute;
  inset: 0;
  /* Fondo de marca (sin foto de pantalla); el celular va a la derecha */
  background:
    radial-gradient(900px 480px at 85% 40%, rgba(70, 182, 230, 0.28), transparent 55%),
    radial-gradient(700px 400px at 10% 80%, rgba(166, 199, 219, 0.2), transparent 50%),
    linear-gradient(135deg, #0f213d 0%, #163057 45%, #1a3a5c 100%);
}

.ot-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 33, 61, 0.15) 0%, rgba(15, 33, 61, 0.55) 100%);
  pointer-events: none;
}

.ot-hero-content {
  position: relative;
  z-index: 1;
}

.ot-hero-kicker {
  color: var(--ot-secondary);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.ot-hero-title {
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.ot-hero-lead {
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 34rem;
}

.ot-hero-phone-wrap {
  max-width: 420px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
}

/* Mockup de celular: sin recorte tipo “tarjeta”, deja ver el marco del phone */
.ot-hero-phone-wrap.ot-hero-phone-device {
  max-width: 300px;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  background: transparent;
  backdrop-filter: none;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.ot-hero-phone {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.ot-hero-phone-device .ot-hero-phone {
  max-height: min(72vh, 560px);
  width: auto;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.btn-ot-cta {
  background: var(--ot-secondary);
  border: none;
  color: var(--ot-primary);
  font-weight: 700;
  border-radius: 12px;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 8px 24px rgba(70, 182, 230, 0.35);
}

.btn-ot-cta:hover {
  background: #5fc4ef;
  color: var(--ot-primary);
}

.btn-ot-ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.65);
  color: #fff;
  font-weight: 600;
  border-radius: 12px;
  padding: 0.7rem 1.4rem;
}

.btn-ot-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.ot-feature-card {
  background: #fff;
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius);
  box-shadow: var(--ot-shadow-sm);
  padding: 1.35rem 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ot-feature-card:hover {
  box-shadow: var(--ot-shadow);
  transform: translateY(-2px);
}

.ot-feature-icon {
  font-size: 1.6rem;
  line-height: 1;
  margin-bottom: 0.65rem;
}

.ot-feature-card h3 {
  color: var(--ot-primary);
  margin-bottom: 0.65rem;
}

.ot-feature-card li {
  margin-bottom: 0.35rem;
}

.ot-compare-band {
  background: var(--ot-surface);
  border-top: 1px solid var(--ot-border);
  border-bottom: 1px solid var(--ot-border);
}

.ot-compare-card {
  background: #fff;
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius);
  padding: 1.25rem 1.35rem;
  height: 100%;
  box-shadow: var(--ot-shadow-sm);
}

.ot-compare-card-ok {
  border-color: rgba(70, 182, 230, 0.55);
  box-shadow: 0 8px 24px rgba(70, 182, 230, 0.12);
}

.ot-compare-card li {
  margin-bottom: 0.4rem;
}

@media (max-width: 767.98px) {
  .ot-hero {
    min-height: 0;
  }

  .ot-hero-title {
    font-size: 1.85rem;
  }

  .ot-hero-phone-wrap {
    max-width: 100%;
    margin-top: 0.5rem;
  }

  .ot-hero-phone-wrap.ot-hero-phone-device {
    max-width: 240px;
  }

  .ot-hero-phone-device .ot-hero-phone {
    max-height: 48vh;
  }
}

/* ——— Main / cards ——— */
.ot-main > .container {
  padding-top: 0.5rem;
  padding-bottom: 2.5rem;
}

.card {
  border: 1px solid var(--ot-border);
  border-radius: var(--ot-radius);
  box-shadow: var(--ot-shadow-sm);
  background: #fff;
}

.card.ot-card {
  border: 1px solid var(--ot-border);
  box-shadow: var(--ot-shadow);
}

.card.ot-card .card-header {
  background: var(--ot-surface);
  border-bottom: 1px solid var(--ot-border);
  font-weight: 600;
  color: var(--ot-primary);
}

/* ——— Buttons ——— */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--ot-primary);
  --bs-btn-border-color: var(--ot-primary);
  --bs-btn-hover-bg: var(--ot-primary-dark);
  --bs-btn-hover-border-color: var(--ot-primary-dark);
  --bs-btn-active-bg: var(--ot-primary-dark);
  --bs-btn-active-border-color: var(--ot-primary-dark);
  --bs-btn-disabled-bg: var(--ot-tertiary);
  --bs-btn-disabled-border-color: var(--ot-tertiary);
  border-radius: 10px;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
}

.btn-outline-primary {
  --bs-btn-color: var(--ot-primary);
  --bs-btn-border-color: var(--ot-primary);
  --bs-btn-hover-bg: var(--ot-primary);
  --bs-btn-hover-border-color: var(--ot-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--ot-primary-dark);
  --bs-btn-active-border-color: var(--ot-primary-dark);
  border-radius: 10px;
  font-weight: 600;
}

.btn-outline-secondary {
  --bs-btn-color: var(--ot-primary);
  --bs-btn-border-color: var(--ot-tertiary);
  --bs-btn-hover-bg: var(--ot-surface);
  --bs-btn-hover-border-color: var(--ot-secondary);
  --bs-btn-hover-color: var(--ot-primary);
  border-radius: 10px;
  font-weight: 500;
}

.btn-secondary {
  --bs-btn-bg: var(--ot-secondary);
  --bs-btn-border-color: var(--ot-secondary);
  --bs-btn-color: var(--ot-primary);
  --bs-btn-hover-bg: #35a6d6;
  --bs-btn-hover-border-color: #35a6d6;
  --bs-btn-hover-color: var(--ot-primary);
  border-radius: 10px;
  font-weight: 600;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(255, 255, 255, 0.6), 0 0 0 0.28rem rgba(70, 182, 230, 0.45);
}

/* ——— Forms ——— */
.form-label {
  font-weight: 600;
  color: var(--ot-primary);
  font-size: 0.9rem;
}

.form-control,
.form-select {
  border-color: var(--ot-border);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  color: var(--ot-primary);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--ot-secondary);
}

.form-check-input:checked {
  background-color: var(--ot-secondary);
  border-color: var(--ot-secondary);
}

/* ——— Badges / text ——— */
.badge.text-bg-primary {
  background-color: var(--ot-primary) !important;
}

.text-muted {
  color: var(--ot-muted) !important;
}

a:not(.btn):not(.nav-link):not(.navbar-brand) {
  color: var(--ot-primary);
  text-decoration-color: var(--ot-secondary);
}

a:not(.btn):not(.nav-link):not(.navbar-brand):hover {
  color: var(--ot-secondary);
}

code {
  color: var(--ot-primary-dark);
  background: var(--ot-surface);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

/* ——— Footer ——— */
.ot-footer {
  flex-shrink: 0;
  background: var(--ot-surface);
  border-top: 1px solid var(--ot-border);
  color: var(--ot-muted);
  padding: 1.1rem 0;
  font-size: 0.88rem;
}

.ot-footer a {
  color: var(--ot-primary);
  text-decoration: none;
  font-weight: 500;
}

.ot-footer a:hover {
  color: var(--ot-secondary);
}

/* ——— Login / auth shell ——— */
.ot-auth-wrap {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 2rem;
}

.ot-auth-card {
  width: 100%;
  max-width: 440px;
  border: 1px solid var(--ot-border);
  border-radius: 18px;
  box-shadow: var(--ot-shadow);
  overflow: hidden;
  background: #fff;
}

.ot-auth-card .ot-auth-header {
  text-align: center;
  padding: 1.75rem 1.5rem 0.75rem;
  background: linear-gradient(180deg, var(--ot-surface) 0%, #fff 100%);
}

.ot-auth-card .ot-auth-header img {
  height: 110px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 0.5rem;
  background: transparent;
}

.ot-auth-card .ot-auth-header h1 {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ot-primary);
  margin: 0;
}

.ot-auth-card .ot-auth-header p {
  margin: 0.35rem 0 0;
  color: var(--ot-muted);
  font-size: 0.9rem;
}

.ot-auth-card .ot-auth-body {
  padding: 1rem 1.65rem 1.75rem;
}

.ot-auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ot-muted);
  font-size: 0.8rem;
  margin: 1.25rem 0;
}

.ot-auth-divider::before,
.ot-auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ot-border);
}

.ot-demo-box {
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  background: var(--ot-surface);
  border: 1px dashed var(--ot-tertiary);
  border-radius: 12px;
  font-size: 0.8rem;
  color: var(--ot-muted);
}

.ot-demo-box strong {
  color: var(--ot-primary);
  display: block;
  margin-bottom: 0.25rem;
}

.alert-warning {
  border-radius: 10px;
  border-color: #f0d78c;
  background: #fff8e6;
  color: #6b5200;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}
