/* ═══════════════════════════════════════════════════════════
   terminos.css — MEDICEA  ·  Términos y Condiciones
   Extiende auth.css; usa las mismas variables CSS
═══════════════════════════════════════════════════════════ */

/* ─── PÁGINA BASE ────────────────────────────────────────── */
.tc-page {
  min-height: 100vh;
  background: var(--bg);
  font-family: var(--font-body);
  color: var(--text);
}

/* ─── TOP BAR ────────────────────────────────────────────── */
.tc-topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
}

.tc-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tc-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.tc-brand-icon {
  color: var(--primary);
  font-size: 1.05rem;
}

.tc-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tc-meta i { font-size: 0.7rem; }

/* ─── HERO ───────────────────────────────────────────────── */
.tc-hero {
  position: relative;
  overflow: hidden;
  background: #0d2665;
  background-image:
    radial-gradient(ellipse 120% 80% at 50% 0%,   #1a56db 0%, transparent 65%),
    radial-gradient(ellipse 80%  60% at 100% 100%, #1246b5 0%, transparent 55%),
    linear-gradient(180deg, #0d2665 0%, #071540 100%);
  padding: 56px 24px 60px;
  color: white;
}

.tc-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tc-hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.tc-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.tc-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: 14px;
  color: white;
}

.tc-hero-content p {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 300;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.tc-hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tc-stat {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 99px;
}
.tc-stat i { font-size: 0.72rem; }

/* ─── LAYOUT ─────────────────────────────────────────────── */
.tc-layout {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 36px;
  align-items: start;
}

/* ─── SIDEBAR ────────────────────────────────────────────── */
.tc-sidebar {
  position: sticky;
  top: 72px;
}

.tc-sidebar-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 0;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.tc-sidebar-title {
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-faint);
  padding: 0 18px 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.tc-nav {
  display: flex;
  flex-direction: column;
  padding: 0 8px;
}

.tc-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-xs);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-sec);
  text-decoration: none;
  transition: background var(--t), color var(--t);
  line-height: 1.3;
}

.tc-nav-link:hover {
  background: var(--bg);
  color: var(--text);
}

.tc-nav-link.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.tc-nav-num {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--text-faint);
  flex-shrink: 0;
  min-width: 18px;
}

.tc-nav-link.active .tc-nav-num { color: var(--primary); }

/* Barra de progreso de lectura */
.tc-sidebar-progress {
  margin: 14px 18px 4px;
  height: 4px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.tc-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary), #60a5fa);
  border-radius: 99px;
  transition: width 0.2s ease;
}

.tc-progress-label {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-faint);
  text-align: center;
  padding-bottom: 4px;
  letter-spacing: 0.3px;
}

/* ─── CONTENIDO PRINCIPAL ────────────────────────────────── */
.tc-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

/* ─── RESUMEN EJECUTIVO ──────────────────────────────────── */
.tc-summary {
  background: var(--white);
  border: 1px solid rgba(26,86,219,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(26,86,219,0.06);
}

.tc-summary-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tc-summary-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tc-summary-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.85rem;
  color: var(--text-sec);
  line-height: 1.5;
}

.tc-summary-list li i {
  color: var(--success);
  font-size: 0.75rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* ─── SECCIONES ──────────────────────────────────────────── */
.tc-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  scroll-margin-top: 80px;
  transition: border-color var(--t);
}

.tc-section:hover { border-color: var(--border-strong); }

.tc-section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  background: #fafcff;
}

.tc-section-num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid rgba(26,86,219,0.18);
  border-radius: 8px;
  padding: 5px 10px;
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.tc-section-header h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.tc-section-body {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.tc-section-body p {
  font-size: 0.88rem;
  color: var(--text-sec);
  line-height: 1.75;
  font-weight: 300;
}

.tc-section-body h3 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: 6px;
}

/* ─── LISTAS ─────────────────────────────────────────────── */
.tc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 2px;
}

.tc-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--text-sec);
  line-height: 1.6;
  font-weight: 300;
  padding-left: 4px;
}

.tc-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* Lista de prohibidos */
.tc-list.prohibited li {
  background: #fff8f8;
  border: 1px solid rgba(220,38,38,0.1);
  border-radius: var(--radius-xs);
  padding: 8px 12px;
}

.tc-list.prohibited li::before { display: none; }

.tc-list.prohibited i {
  color: var(--error);
  font-size: 0.72rem;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ─── HIGHLIGHTS / CALLOUTS ──────────────────────────────── */
.tc-highlight {
  display: flex;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.84rem;
}

.tc-highlight > i { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }

.tc-highlight > div > strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.tc-highlight > div > p {
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
  font-weight: 300;
}

.tc-highlight.info {
  background: var(--primary-light);
  border-color: rgba(26,86,219,0.2);
  color: #1e40af;
}
.tc-highlight.info > i { color: var(--primary); }

.tc-highlight.warning {
  background: var(--warning-bg);
  border-color: rgba(217,119,6,0.25);
  color: #78350f;
}
.tc-highlight.warning > i { color: var(--warning); }

.tc-highlight.error {
  background: var(--error-bg);
  border-color: var(--error-border);
  color: var(--error);
}

.tc-highlight.medical {
  background: #f0fdf4;
  border-color: rgba(5,150,105,0.2);
  color: #064e3b;
}
.tc-highlight.medical > i { color: var(--success); }

/* ─── TARJETAS DE CARACTERÍSTICAS ───────────────────────── */
.tc-feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tc-feature-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  transition: border-color var(--t), background var(--t);
}

.tc-feature-card:hover {
  border-color: rgba(26,86,219,0.25);
  background: var(--white);
}

.tc-feature-icon {
  width: 34px;
  height: 34px;
  background: var(--primary-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.tc-feature-card strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.tc-feature-card p {
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  line-height: 1.5 !important;
  margin: 0 !important;
}

/* ─── DO / DON'T TABLE ───────────────────────────────────── */
.tc-do-dont {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tc-dont,
.tc-do {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid transparent;
}

.tc-dont { border-color: rgba(220,38,38,0.2); }
.tc-do   { border-color: rgba(5,150,105,0.2); }

.tc-dont-header,
.tc-do-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tc-dont-header { background: #fef2f2; color: var(--error); }
.tc-do-header   { background: #f0fdf4; color: var(--success); }

.tc-dont ul,
.tc-do ul {
  list-style: none;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  background: var(--white);
}

.tc-dont ul li,
.tc-do ul li {
  font-size: 0.78rem;
  color: var(--text-sec);
  line-height: 1.4;
  font-weight: 300;
  padding-left: 10px;
  position: relative;
}

.tc-dont ul li::before {
  content: '✕';
  position: absolute;
  left: 0;
  color: var(--error);
  font-size: 0.65rem;
  top: 1px;
}

.tc-do ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-size: 0.65rem;
  top: 1px;
}

/* ─── LINK ───────────────────────────────────────────────── */
.tc-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(26,86,219,0.4);
  transition: border-color var(--t), opacity var(--t);
}
.tc-link:hover { opacity: 0.75; border-color: var(--primary); }

/* ─── EMERGENCIA ─────────────────────────────────────────── */
.tc-emergency {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff1f2;
  border: 1.5px solid #fecdd3;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
}

.tc-emergency > i {
  font-size: 1.2rem;
  color: #e11d48;
  flex-shrink: 0;
  margin-top: 1px;
}

.tc-emergency > div > strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: #9f1239;
  margin-bottom: 3px;
}

.tc-emergency > div > p {
  font-size: 0.8rem !important;
  color: #be123c !important;
  line-height: 1.5 !important;
  font-weight: 400 !important;
  margin: 0 !important;
}

/* ─── CONTACTO ───────────────────────────────────────────── */
.tc-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.tc-contact-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-decoration: none;
  color: var(--text);
  transition: border-color var(--t), background var(--t), transform var(--t);
}

a.tc-contact-card:hover {
  border-color: rgba(26,86,219,0.3);
  background: var(--white);
  transform: translateY(-2px);
}

.tc-contact-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: var(--primary-light);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 0.9rem;
}

.tc-contact-card strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.tc-contact-card span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ─── BANNER DE ACEPTACIÓN ───────────────────────────────── */
.tc-accept-banner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-card);
  flex-wrap: wrap;
}

.tc-accept-text {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  flex: 1;
  min-width: 260px;
}

.tc-accept-text > i {
  font-size: 1.3rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.tc-accept-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.tc-accept-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
  margin: 0;
}

.tc-accept-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.tc-accept-actions .btn-auth-primary,
.tc-accept-actions .btn-auth-secondary {
  text-decoration: none;
  white-space: nowrap;
  padding: 0 20px;
}

/* ─── BOTÓN SCROLL TOP ───────────────────────────────────── */
.tc-scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px;
  height: 42px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  box-shadow: var(--shadow-btn);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), background var(--t);
  pointer-events: none;
  z-index: 200;
}

.tc-scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.tc-scroll-top:hover { background: var(--primary-dark); }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .tc-layout {
    grid-template-columns: 1fr;
    padding: 28px 20px 60px;
  }

  .tc-sidebar {
    position: static;
    order: -1;
  }

  .tc-sidebar-inner {
    padding: 14px 0;
  }

  .tc-nav { flex-direction: row; flex-wrap: wrap; padding: 0 10px; gap: 4px; }
  .tc-nav-link { font-size: 0.72rem; padding: 5px 8px; }
  .tc-nav-num  { display: none; }

  .tc-sidebar-progress,
  .tc-progress-label { display: none; }

  .tc-sidebar-title { padding: 0 14px 10px; }

  .tc-feature-grid,
  .tc-do-dont,
  .tc-contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .tc-hero { padding: 40px 20px 48px; }
  .tc-hero-stats { gap: 6px; }

  .tc-topbar-inner { padding: 0; }
  .tc-meta { display: none; }

  .tc-section-header { padding: 16px 18px; }
  .tc-section-body   { padding: 18px 18px; }

  .tc-accept-banner  { flex-direction: column; }
  .tc-accept-actions { width: 100%; }
  .tc-accept-actions .btn-auth-primary,
  .tc-accept-actions .btn-auth-secondary { flex: 1; justify-content: center; }
}

@media (max-width: 400px) {
  .tc-hero-stats .tc-stat:last-child { display: none; }
  .tc-section-num { display: none; }
}