﻿/* ============================================================
   terminos.css - Pagina de Terminos y Condiciones
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg-base: #0a0f1e; --bg-surface: #111827; --bg-card: #1a2235;
  --border: #1e3a5f; --primary: #7c3aed; --accent: #a855f7;
  --text-primary: #f1f5f9; --text-secondary: #94a3b8; --text-muted: #64748b;
  --radius: 10px; --radius-lg: 16px; --font: 'Inter', system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font); background: var(--bg-base); color: var(--text-primary); line-height: 1.7; -webkit-font-smoothing: antialiased; }

/* Header */
.tyc-header {
  background: rgba(10,15,30,0.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 40px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.tyc-logo { font-size: 1.4rem; font-weight: 800; }
.tyc-logo span { color: var(--accent); }
.btn-back {
  display: flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,0.1); border: 1px solid var(--primary);
  color: var(--accent); border-radius: 50px; padding: 8px 18px;
  font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: 0.2s ease; text-decoration: none;
}
.btn-back:hover { background: var(--primary); color: #fff; }

/* Hero de TyC */
.tyc-hero {
  background: linear-gradient(135deg, #1a0533, #0f172a);
  border-bottom: 1px solid var(--border);
  padding: 60px 40px;
  text-align: center;
}
.tyc-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 12px; }
.tyc-hero h1 span { color: var(--accent); }
.tyc-hero p { color: var(--text-secondary); font-size: 1rem; max-width: 560px; margin: 0 auto 20px; }
.tyc-meta { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.tyc-meta-item { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: var(--text-muted); }

/* Layout de dos columnas */
.tyc-layout {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 240px 1fr;
  gap: 40px; padding: 40px;
}
@media(max-width:768px){ .tyc-layout{ grid-template-columns:1fr; padding:20px; } .tyc-nav{ display:none; } }

/* Indice lateral sticky */
.tyc-nav {
  position: sticky; top: 80px; align-self: start;
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px; height: fit-content;
}
.tyc-nav h3 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 14px; }
.tyc-nav a {
  display: block; padding: 7px 10px; border-radius: 6px;
  font-size: 0.83rem; color: var(--text-secondary);
  text-decoration: none; transition: 0.15s ease;
  border-left: 2px solid transparent;
}
.tyc-nav a:hover, .tyc-nav a.active { background: rgba(124,58,237,0.1); color: var(--accent); border-left-color: var(--primary); }

/* Contenido */
.tyc-content section { margin-bottom: 48px; scroll-margin-top: 80px; }
.tyc-section-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  color: var(--accent); border-radius: 50px; padding: 4px 14px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 12px;
}
.tyc-content h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; color: var(--text-primary); }
.tyc-content p, .tyc-content li { color: var(--text-secondary); font-size: 0.93rem; margin-bottom: 12px; }
.tyc-content ul, .tyc-content ol { padding-left: 20px; }
.tyc-content li { margin-bottom: 8px; }
.tyc-content strong { color: var(--text-primary); }

/* Cajas especiales */
.tyc-box {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 24px; margin: 16px 0;
}
.tyc-box.important { border-left: 3px solid var(--primary); }
.tyc-box.success   { border-left: 3px solid #10b981; }
.tyc-box.warning   { border-left: 3px solid #f59e0b; }
.tyc-box h4 { font-size: 0.88rem; font-weight: 700; margin-bottom: 8px; }
.tyc-box.important h4 { color: var(--accent); }
.tyc-box.success h4   { color: #10b981; }
.tyc-box.warning h4   { color: #f59e0b; }

/* Tabla */
.tyc-table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.88rem; }
.tyc-table th { background: rgba(124,58,237,0.2); color: var(--text-primary); font-weight: 600; padding: 12px 16px; text-align: left; }
.tyc-table td { padding: 10px 16px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.tyc-table tr:last-child td { border-bottom: none; }

/* Footer de TyC */
.tyc-footer {
  background: var(--bg-surface); border-top: 1px solid var(--border);
  padding: 40px; text-align: center; margin-top: 60px;
}
.tyc-footer p { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 8px; }
.tyc-footer .btn-volver {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--primary); color: #fff; border: none;
  border-radius: 50px; padding: 12px 28px; font-size: 0.9rem;
  font-weight: 600; cursor: pointer; transition: 0.2s; text-decoration: none;
  margin-top: 16px;
}
.tyc-footer .btn-volver:hover { background: #9d6aea; transform: translateY(-2px); }

/* Separador decorativo */
.tyc-divider {
  height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 40px 0;
}
