/* ============================================================
   terminos.css — página pública de términos y condiciones.
   Reutiliza los tokens de assets/css/front.css y el tema oscuro
   de assets/css/theme-dark.css.
   ============================================================ */

.tyc-body { background: var(--front-bg); color: var(--front-ink); }
.tyc-app { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- Cabecera ---------- */
.tyc-header {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--front-card);
  border-bottom: 1px solid var(--front-line);
  box-shadow: var(--front-shadow);
  position: sticky; top: 0; z-index: 10;
}
.tyc-brand { display: inline-flex; align-items: center; gap: 10px; }
.tyc-brand img { height: 44px; max-width: 180px; object-fit: contain; display: block; }
.tyc-brand .tyc-logo-multi { height: 40px; width: auto; }
.tyc-titles { flex: 1 1 240px; min-width: 0; }
.tyc-title { font-size: 1.15rem; font-weight: 800; margin: 0; color: var(--brand-blue-dark); }
.tyc-sub { margin: 0; font-size: .82rem; color: var(--front-muted); }

.tyc-nav { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tyc-navlink {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 9px; text-decoration: none;
  color: var(--brand-blue-dark); font-weight: 600; font-size: .85rem;
  border: 1px solid transparent; background: transparent;
  transition: background .15s ease, color .15s ease;
}
.tyc-navlink:hover { background: #eaf3fb; color: var(--brand-blue-dark); }
.tyc-theme-toggle { font: inherit; cursor: pointer; }

/* ---------- Señal de entorno (APP_ENV) ---------- */
body.env-test .tyc-header { background: linear-gradient(135deg, #7a0f10, #E92E2F); border-bottom-color: transparent; }
body.env-local .tyc-header { background: linear-gradient(135deg, #000000, #2b2b2b); border-bottom-color: transparent; }
body.env-test .tyc-header .tyc-title,
body.env-local .tyc-header .tyc-title { color: #fff; }
body.env-test .tyc-header .tyc-sub,
body.env-local .tyc-header .tyc-sub { color: rgba(255, 255, 255, .82); }
body.env-test .tyc-header .tyc-navlink,
body.env-local .tyc-header .tyc-navlink { color: #fff; }
body.env-test .tyc-header .tyc-navlink:hover,
body.env-local .tyc-header .tyc-navlink:hover { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- Contenido ---------- */
.tyc-main {
  flex: 1 1 auto; display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
}
.tyc-card {
  max-width: 760px; width: 100%;
  background: var(--front-card);
  border: 1px solid var(--front-line);
  border-radius: var(--front-radius);
  box-shadow: var(--front-shadow-lg);
  padding: 42px 36px;
  text-align: center;
}
.tyc-icon {
  width: 76px; height: 76px; margin: 0 auto 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 2rem; color: #fff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  box-shadow: 0 8px 22px rgba(17, 70, 138, .28);
}
.tyc-badge {
  display: inline-block; margin-bottom: 14px;
  padding: .28rem .85rem; border-radius: 9999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .03em;
  color: var(--brand-blue-dark); background: #eaf3fb;
  border: 1px solid #d7e5f3;
}
.tyc-card h2 { font-size: 1.45rem; font-weight: 800; color: var(--brand-blue-dark); margin-bottom: 12px; }
.tyc-card p { color: var(--front-ink); font-size: .98rem; line-height: 1.65; margin-bottom: 12px; }
.tyc-card .tyc-note { color: var(--front-muted); font-size: .9rem; }
.tyc-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.tyc-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: .62rem 1.2rem; border-radius: 9999px;
  font-weight: 600; font-size: .9rem; text-decoration: none;
  transition: filter .15s ease, transform .15s ease;
}
.tyc-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.tyc-btn-primary {
  color: #fff; border: none;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-dark));
  box-shadow: 0 4px 12px rgba(17, 70, 138, .22);
}
.tyc-btn-primary:hover { color: #fff; }
.tyc-btn-outline {
  color: var(--brand-blue-dark); border: 1px solid var(--brand-blue-dark);
  background: transparent;
}
.tyc-btn-outline:hover { background: var(--brand-blue-dark); color: #fff; }

/* ---------- Pie ---------- */
.tyc-footer {
  display: flex; align-items: center; justify-content: center; gap: 10px 22px;
  flex-wrap: wrap; padding: 16px 20px;
  font-size: .8rem; color: var(--front-muted);
  border-top: 1px solid var(--front-line);
  background: var(--front-card);
}
.tyc-footer a { color: var(--brand-blue-dark); text-decoration: none; font-weight: 600; }
.tyc-footer a:hover { text-decoration: underline; }

/* ---------- Tema oscuro ---------- */
[data-bs-theme="dark"] .tyc-badge { background: #1b2735; border-color: var(--front-line); color: #8fc5ee; }
[data-bs-theme="dark"] .tyc-card h2 { color: #8fc5ee; }
[data-bs-theme="dark"] .tyc-navlink { color: #8fc5ee; }
[data-bs-theme="dark"] .tyc-navlink:hover { background: rgba(255, 255, 255, .08); color: #fff; }
[data-bs-theme="dark"] .tyc-btn-outline { color: #8fc5ee; border-color: #8fc5ee; }
[data-bs-theme="dark"] .tyc-btn-outline:hover { background: #8fc5ee; color: #0a101a; }
[data-bs-theme="dark"] .tyc-footer a { color: #8fc5ee; }

@media (max-width: 575.98px) {
  .tyc-header { padding: 12px 14px; }
  .tyc-brand img { height: 36px; }
  .tyc-titles { flex-basis: 100%; order: 3; }
  .tyc-card { padding: 30px 20px; }
  .tyc-card h2 { font-size: 1.25rem; }
}
