/* ─────────────────────────────────────────────────────────────────
   terminos.css — Vista "Términos y Condiciones" (blindada)
   Fondo de la sección 1 FIJO; solo la card blanca hace scroll.
   Reutiliza de app.css: @font-face AmsiPro, :root (--blue), .logout-button.
───────────────────────────────────────────────────────────────── */

.tyc-body {
  margin: 0;
  min-height: 100vh;
  background: url('../img/fondo1.png') center top / cover no-repeat fixed;
  /* Blindaje: sin selección ni menú contextual */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.tyc-layout {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 14px 18px;
  box-sizing: border-box;
}

.tyc-header {
  width: 100%;
  max-width: 760px;
  display: flex;
  justify-content: flex-start;
  margin-bottom: 12px;
  flex: 0 0 auto;
}

/* Card blanca flotante — único elemento que hace scroll */
.tyc-card {
  width: 100%;
  max-width: 760px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(10, 56, 153, 0.18);
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(4, 31, 84, 0.22);
  padding: 26px clamp(18px, 4vw, 40px) 32px;
  color: var(--blue);
  font-family: 'AmsiPro', sans-serif;
}

/* Encabezado del documento */
.tyc-doc-head {
  display: block;
  text-align: center;
  font-weight: 900;
  font-size: clamp(18px, 4.4vw, 26px);
  line-height: 1.25;
  color: var(--blue);
  padding-bottom: 16px;
  margin-bottom: 18px;
  border-bottom: 2px solid rgba(10, 56, 153, 0.15);
}

.tyc-card .tyc-h {
  font-weight: 900;
  font-size: clamp(15px, 3.8vw, 19px);
  color: var(--blue);
  margin: 22px 0 8px;
  letter-spacing: 0.01em;
}
.tyc-card .tyc-h3 {
  font-weight: 900;
  font-size: clamp(14px, 3.4vw, 17px);
  color: #CD3639;
  margin: 16px 0 6px;
}
.tyc-card p {
  font-weight: 600;
  font-size: clamp(13px, 3.2vw, 15px);
  line-height: 1.5;
  margin: 0 0 10px;
  color: #18306b;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.tyc-card ul.tyc-ul {
  margin: 0 0 12px;
  padding-left: 22px;
}
.tyc-card ul.tyc-ul li {
  font-weight: 600;
  font-size: clamp(13px, 3.2vw, 15px);
  line-height: 1.45;
  color: #18306b;
  margin-bottom: 6px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Tabla del Anexo (directorio de tiendas) */
.tyc-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: clamp(11px, 2.8vw, 13px);
}
.tyc-table th,
.tyc-table td {
  border: 1px solid rgba(10, 56, 153, 0.18);
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
  color: #18306b;
  font-weight: 600;
}
.tyc-table th {
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  position: sticky;
  top: 0;
}
.tyc-table tr:nth-child(even) td { background: rgba(10, 56, 153, 0.05); }
.tyc-table td:first-child { text-align: center; width: 34px; font-weight: 900; }

/* Botón Volver hereda .logout-button de app.css; aquí solo ajustamos foco */
.tyc-header .logout-button { font-size: clamp(13px, 3.4vw, 16px); }
