*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,Helvetica,sans-serif;background:#f3f6fb;color:#162033}.hero{background:linear-gradient(135deg,#07111f,#0f2747);color:#fff;padding:22px 34px}.brand{display:flex;align-items:center;gap:14px}.brand img{height:64px;max-width:240px;object-fit:contain;background:#fff;border-radius:12px;padding:6px}.brand h1{margin:0;font-size:30px}.brand p{margin:4px 0 0;color:#cbd5e1}.nav{display:flex;gap:12px;margin-top:15px;flex-wrap:wrap}.nav a,.pill{color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.2);padding:10px 13px;border-radius:999px;text-decoration:none;font-weight:700}.wrap{max-width:1250px;margin:26px auto;padding:0 18px}.layout{display:grid;grid-template-columns:310px 1fr;gap:22px}.card{background:#fff;border-radius:20px;box-shadow:0 14px 34px rgba(15,23,42,.08);padding:22px;margin-bottom:18px}.side h3{margin-top:0}.menu a{display:block;text-decoration:none;color:#162033;padding:12px;border:1px solid #e4e9f2;border-radius:14px;margin-bottom:9px;background:#fbfdff}.menu a:hover{border-color:#0b64d8;background:#eff6ff}.menu .active{background:#0b64d8;color:#fff;border-color:#0b64d8}label{font-weight:800;display:block;margin-bottom:7px}input,textarea,select{width:100%;border:1px solid #d8deea;border-radius:14px;padding:13px;font-size:15px;background:#fff}textarea{min-height:210px;resize:vertical}.btn{border:0;border-radius:14px;background:#0b64d8;color:#fff;padding:12px 18px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-block}.btn:hover{background:#084fb0}.btn.dark{background:#111827}.btn.red{background:#b91c1c}.muted{color:#64748b;font-size:14px}.alert{padding:14px;border-radius:14px;background:#ecfdf5;color:#065f46;margin:12px 0}.warn{padding:14px;border-radius:14px;background:#fff7ed;color:#9a3412;margin:12px 0}.error{padding:14px;border-radius:14px;background:#fef2f2;color:#991b1b;margin:12px 0}.source{border-left:5px solid #0b64d8;background:#f8fbff;padding:14px;border-radius:12px;margin:12px 0}.answer{line-height:1.7;white-space:pre-wrap}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:10px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top}.badge{display:inline-block;padding:4px 9px;border-radius:999px;background:#e0edff;color:#084fb0;font-size:12px;font-weight:800}.chatbox{border:1px solid #e5e7eb;border-radius:16px;padding:14px;background:#fbfdff;margin-top:14px}.small{font-size:13px}.switch{display:flex;align-items:center;gap:10px}.switch input{width:auto}.actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}@media(max-width:900px){.layout{grid-template-columns:1fr}.hero{padding:18px}.brand img{height:52px}.brand h1{font-size:24px}}
/* PRO orden informe */
.wrap{max-width:1180px}.layout{align-items:flex-start}.case-card textarea{min-height:150px}.report-card{padding:22px 26px}.answer{background:#fff;border:1px solid #e5edf7;border-radius:16px;padding:18px 22px;line-height:1.62}.answer p{margin:0 0 12px}.report-title{font-size:22px;margin:4px 0 16px}.report-section{font-size:18px;margin:22px 0 10px;padding-top:12px;border-top:1px solid #e8eef7}.report-subsection{font-size:16px;margin:14px 0 8px}.report-list{margin:8px 0 14px 22px}.report-list li{margin:6px 0}.source-chip{display:inline-block;background:#e8f1ff;color:#0b63ce;border-radius:999px;padding:1px 7px;font-weight:700}.report-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-bottom:12px}.btn.small{padding:9px 13px;font-size:13px}.btn.ghost,.pill{background:#eef3fa;color:#0b1b31;border:1px solid #d9e4f2}.sources-grid{display:grid;gap:12px}.source-card{background:#f7faff;border-left:4px solid #0b63ce;border-radius:14px;padding:14px 16px}.source-head{font-weight:800;margin-bottom:6px}.source-loc{display:inline-block;background:#fff4d8;color:#7a5200;border-radius:999px;padding:4px 9px;font-weight:700;margin:4px 0 8px}.source-card p{margin:8px 0 12px}.chatbox,.docgen{margin-top:18px;border:1px solid #e3ebf5;border-radius:16px;padding:16px;background:#fbfdff}.docgen select{max-width:420px;margin-right:10px}.generated-doc{margin-top:14px;border:1px dashed #cbd7e7;border-radius:14px;padding:16px;background:#fff}.loading,.loading-mini{color:#5b6b82}.table td,.table th{vertical-align:top}.side{position:sticky;top:16px}@media(max-width:900px){.layout{grid-template-columns:1fr}.side{position:static}.report-actions{justify-content:flex-start}}

/* FIX YouTube interno y resultados más compactos */
.report-card{max-width:100%;}
.answer p{margin:8px 0;line-height:1.55;}
.answer h2.report-title{margin:6px 0 12px;font-size:22px;}
.answer h3.report-section{margin:18px 0 8px;font-size:18px;border-left:4px solid #0b63ce;padding-left:10px;}
.answer h4.report-subsection{margin:14px 0 6px;font-size:16px;}
.report-list{margin:8px 0 10px 22px;line-height:1.5;}
.sources-grid{display:grid;grid-template-columns:1fr;gap:14px;}
.source-card{border-left:4px solid #0b63ce;background:#f6f9fe;border-radius:12px;padding:16px;}
.source-loc{display:inline-block;margin:8px 0;padding:4px 8px;background:#e8f1ff;border-radius:10px;font-weight:700;color:#0b4da2;}
.yt-mini{width:360px;max-width:100%;margin:10px 0;border-radius:12px;overflow:hidden;background:#111;box-shadow:0 8px 20px rgba(0,0,0,.16)}
.yt-mini iframe{width:100%;height:205px;border:0;display:block;}
.video-modal{position:fixed;inset:0;background:rgba(0,0,0,.55);z-index:9999;align-items:center;justify-content:flex-end;padding:24px;}
.video-box{width:430px;max-width:95vw;background:#0b1220;border-radius:16px;box-shadow:0 20px 50px rgba(0,0,0,.35);padding:12px;position:relative;}
.video-box iframe{width:100%;height:240px;border:0;border-radius:12px;}
.video-close{position:absolute;right:8px;top:6px;border:0;border-radius:50%;width:28px;height:28px;font-weight:900;cursor:pointer;}
