/* static/css/traductor.css — usa tokens de theme.css
   Landing de la extensión de Chrome "traductor de LinkedIn". Reutiliza .card, .btn-*,
   .badge y .icon-chip de theme.css; solo añade la maqueta del chat, el vídeo y las rejillas. */

.tl-hero {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: var(--space-7);
    align-items: center;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-8) var(--container-pad) var(--space-7);
}
.tl-hero-text .badge { margin-bottom: var(--space-3); }
.tl-hero-text h1 { font-size: var(--text-display); line-height: 1.1; margin: 0 0 var(--space-4); }
.tl-hero-text p { color: var(--color-text-muted); font-size: var(--text-md); margin: 0 0 var(--space-5); }
.tl-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* Maqueta del chat de LinkedIn con la caja de la extensión */
.tl-mock {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}
.tl-mock-msg {
    align-self: flex-start;
    max-width: 85%;
    padding: var(--space-3) var(--space-4);
    background: #eef3f8;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}
.tl-mock-who { display: block; font-weight: 700; margin-bottom: 2px; }
.tl-mock-box {
    padding: var(--space-3);
    background: var(--color-primary-light);
    border: 1px solid var(--color-accent-light);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.tl-mock-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: var(--space-2);
    font-size: var(--text-xs);
    color: var(--color-primary-dark);
}
.tl-mock-select {
    padding: 3px 12px;
    background: #fff;
    border: 2px solid var(--color-border-strong);
    border-radius: var(--radius-pill);
    color: var(--color-text);
}
.tl-mock-input {
    padding: 8px 12px;
    background: #fff;
    border: 2px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}
.tl-mock-field {
    margin-top: -12px;
    padding: var(--space-3) var(--space-4);
    background: #f3f2ef;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    color: var(--color-text-muted);
    font-size: var(--text-sm);
}

.tl-section {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-7) var(--container-pad);
}
.tl-section > h2 { text-align: center; margin: 0 0 var(--space-5); }
.tl-lead { max-width: 640px; margin: 0 auto var(--space-6); text-align: center; color: var(--color-text-muted); }

.tl-video {
    position: relative;
    max-width: 820px;
    margin: 0 auto var(--space-6);
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #14201a;
    box-shadow: var(--shadow-md);
}
.tl-video iframe, .tl-video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tl-video-empty { display: grid; place-items: center; background: var(--color-surface-alt); color: var(--color-text-muted); box-shadow: none; border: 1px dashed var(--color-border-strong); }

.tl-steps, .tl-features, .tl-plans {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-5);
}
.tl-steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tl-features { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tl-steps h3, .tl-features h3, .tl-plan h3 { margin: var(--space-3) 0 var(--space-2); font-size: var(--text-md); }
.tl-steps p, .tl-features p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.tl-step-num {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
}

.tl-plans { grid-template-columns: repeat(auto-fit, minmax(260px, 340px)); justify-content: center; }
.tl-plan { display: flex; flex-direction: column; text-align: center; align-items: center; }
.tl-plan-main { border-color: var(--color-primary); box-shadow: var(--shadow-glow-primary); }
.tl-plan .partner-price { display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 0 0 var(--space-4); }
.tl-plan .partner-price strong { font-family: var(--font-heading); font-size: var(--text-2xl); }
.tl-plan .partner-price span { color: var(--color-text-muted); font-size: var(--text-xs); }
.tl-plan-list { list-style: none; margin: 0 0 var(--space-5); padding: 0; text-align: left; font-size: var(--text-sm); color: var(--color-text-muted); flex: 1; }
.tl-plan-list li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.tl-plan-list .icon { color: var(--color-primary); flex: none; }
.partner-soon { opacity: .55; cursor: not-allowed; pointer-events: none; }

.tl-thanks { padding-bottom: 0; }
.tl-thanks .tl-after { margin-top: 0; border-color: var(--color-primary); }
.tl-email-note { max-width: 640px; margin: 0 auto var(--space-5); }
.tl-browsers { margin: var(--space-3) 0; padding-left: 1.2em; color: var(--color-text-muted); font-size: var(--text-sm); }

.tl-dialog {
    width: min(480px, calc(100% - 2 * var(--space-4)));
    padding: var(--space-5);
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    color: var(--color-text);
    box-shadow: var(--shadow-md);
}
.tl-dialog::backdrop { background: rgba(20, 32, 26, .55); }
.tl-dialog h3 { margin: 0 0 var(--space-3); font-size: var(--text-lg); }
.tl-dialog-key { margin: 0 0 var(--space-3); padding: var(--space-3) var(--space-4); background: var(--color-warning-bg); border-radius: var(--radius-md); }
.tl-dialog ul { margin: 0 0 var(--space-5); padding-left: 1.2em; color: var(--color-text-muted); font-size: var(--text-sm); }
.tl-dialog li { margin-bottom: var(--space-2); }
.tl-dialog-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: flex-end; }

.tl-after { max-width: 640px; margin: var(--space-6) auto 0; }
.tl-after h3 { margin: 0 0 var(--space-3); }
.tl-after ol { margin: 0; padding-left: 1.2em; color: var(--color-text-muted); font-size: var(--text-sm); }
.tl-after li { margin-bottom: var(--space-2); }

.tl-faq { max-width: 760px; }
.tl-faq details { margin-bottom: var(--space-3); padding: var(--space-4) var(--space-5); }
.tl-faq summary { cursor: pointer; font-weight: 600; }
.tl-faq details p { margin: var(--space-3) 0 0; color: var(--color-text-muted); font-size: var(--text-sm); }

.tl-help { max-width: 760px; scroll-margin-top: 80px; padding-top: 0; }
.tl-help-card { display: flex; align-items: center; gap: var(--space-5); padding: var(--space-5); }
.tl-help-text { flex: 1; min-width: 0; }
.tl-help-text h2 { margin: 0 0 var(--space-2); font-size: var(--text-lg); text-align: left; }
.tl-help-text p { margin: 0; color: var(--color-text-muted); font-size: var(--text-sm); }
.tl-help-card .btn-primary { flex: none; }

@media (max-width: 820px) {
    .tl-hero { grid-template-columns: 1fr; gap: var(--space-6); padding-top: var(--space-6); text-align: center; }
    .tl-cta-row { justify-content: center; }
}
@media (max-width: 640px) {
    .tl-help-card { flex-direction: column; text-align: center; }
    .tl-help-text h2 { text-align: center; }
    .tl-help-card .btn-primary { width: 100%; }
}
