/* grinboss — tuvalor.grinboss.com. Se apoya en /base.css (tipos, colores, barra de navegación y pie). */
:root {
    --tv-ink: #0a284b;
    --tv-mute: #8b8680;
    --tv-line: #e5e7eb;
    --tv-red: #c2410c;
    --tv-bg: #f8fafc;
}

.tv-main { padding: 96px 0 56px; min-height: 70vh; overflow-x: clip; }
.tv-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.tv-kicker { font-family: var(--font-heading); font-size: 0.9rem; letter-spacing: 0.04em; color: var(--primary); font-weight: 600; }   /* always holds the brand, which is always lowercase: «grinboss» */
.tv-h1 { font-family: var(--font-heading); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.15; color: var(--tinta); margin: 6px 0 8px; }
.tv-h2 { font-family: var(--font-heading); font-weight: 600; font-size: 1.25rem; color: var(--tinta); margin: 0 0 10px; }
.tv-lead { font-size: 1.12rem; color: var(--tinta); max-width: 46rem; }
.tv-note { font-family: var(--font-heading); font-size: 0.85rem; color: var(--mono-2); }
.tv-section { margin-top: 36px; }
.tv-card { background: #fff; border: 1px solid var(--tv-line); border-radius: 10px; padding: 20px; }
/* boletín y redes (19-11-2026): bloque de la portada y línea del pie */
.tv-boletin { border-left: 4px solid var(--brand); }
.tv-boletin .tv-h2 { margin-top: 0; }
.tv-boletin .tv-note { margin: 6px 0 14px; }
.tv-boletin-acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.footer .tv-sigue { margin-bottom: 4px; }
.tv-muted { color: var(--mono-2); }
.tv-hide { display: none !important; }
a.tv-link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }

/* botones */
.tv-btn { font-family: var(--font-heading); font-weight: 600; font-size: 0.95rem; border-radius: 8px; padding: 10px 18px; border: 1px solid var(--brand); background: var(--brand); color: #fff; cursor: pointer; transition: background .15s, color .15s; text-decoration: none; display: inline-block; }
.tv-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.tv-btn:disabled { opacity: .55; cursor: default; }
.tv-btn.ghost { background: #fff; color: var(--brand); }
.tv-btn.ghost:hover { background: #fff7ed; }
.tv-btn.small { padding: 6px 12px; font-size: 0.85rem; }
.tv-btn:focus-visible, .tv-input:focus-visible, .tv-slider input:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }

/* cuenta en la barra */
.tv-account { display: flex; align-items: center; gap: 10px; }
.tv-account .tv-user { font-family: var(--font-heading); font-size: 0.85rem; color: #fff; opacity: .85; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-links .tv-nav-btn { font-family: var(--font-heading); font-size: 0.9rem; font-weight: 600; color: var(--brand); background: #fff; border: 0; border-radius: 6px; padding: 7px 14px; cursor: pointer; }

/* buscador */
.tv-search { position: relative; max-width: 520px; margin-top: 18px; }
.tv-input { width: 100%; font-family: var(--font-heading); font-size: 1rem; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 8px; color: var(--tv-ink); background: #fff; }
.tv-suggest { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border: 1px solid var(--tv-line); border-radius: 8px; box-shadow: 0 10px 30px rgba(59, 35, 20, .12); max-height: 320px; overflow: auto; }
.tv-suggest a { display: flex; gap: 10px; padding: 9px 14px; text-decoration: none; color: var(--tv-ink); font-family: var(--font-heading); font-size: 0.95rem; }
.tv-suggest a:hover, .tv-suggest a.on { background: var(--tv-bg); }
.tv-suggest b { min-width: 58px; color: var(--tinta); }
.tv-suggest span.off { color: var(--mono-2); font-size: 0.8rem; margin-left: auto; }

/* pasos */
.tv-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 22px; }
.tv-steps .tv-card b { font-family: var(--font-heading); color: var(--tinta); display: block; margin-bottom: 4px; }
.tv-steps .n { font-family: var(--font-heading); font-weight: 700; color: var(--primary); font-size: 0.85rem; letter-spacing: .1em; }

/* calendario */
.tv-day { margin-top: 18px; }
.tv-day h3 { font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; color: var(--tinta); border-bottom: 2px solid var(--tinta); padding-bottom: 4px; margin-bottom: 2px; }
.tv-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 9px 2px; border-bottom: 1px solid var(--tv-line); text-decoration: none; color: var(--tv-ink); font-family: var(--font-heading); font-size: 0.95rem; }
.tv-row:hover { background: var(--tv-bg); }
.tv-row b { color: var(--tinta); }
.tv-row .when { font-size: 0.8rem; color: var(--mono-2); white-space: nowrap; }
.tv-row .go { font-size: 0.85rem; color: var(--primary); font-weight: 600; white-space: nowrap; }
.tv-chip { display: inline-block; font-family: var(--font-heading); font-size: 0.72rem; font-weight: 600; letter-spacing: .04em; border-radius: 999px; padding: 2px 9px; background: #ffedd5; color: #9a3412; }
.tv-chip.red { background: #fde8e8; color: #9b1c1c; }
.tv-chip.grey { background: #f1f5f9; color: #475569; }
.tv-weeks { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 36px; }

/* empresa */
.tv-head { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: baseline; }
.tv-ticker { font-family: var(--font-heading); font-weight: 600; color: var(--mono-2); font-size: 1.1rem; }
.tv-guide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.tv-guide .v { font-family: var(--font-heading); font-weight: 700; font-size: 0.8rem; letter-spacing: .08em; }
.tv-guide .v.SUBE { color: #166534; } .tv-guide .v.BAJA { color: #9b1c1c; } .tv-guide .v.IGUAL { color: #475569; }
.tv-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tv-chart h4 { font-family: var(--font-heading); font-size: 0.98rem; font-weight: 600; color: var(--tv-ink); margin-bottom: 2px; line-height: 1.25; }
.tv-chart .u { font-family: var(--font-heading); font-size: 0.82rem; color: #475569; margin-bottom: 6px; }
.tv-chart svg { width: 100%; height: auto; display: block; }
.tv-chart text { font-family: 'Jost', sans-serif; font-size: 13px; fill: #475569; }
.tv-chart text.val { fill: var(--tv-ink); font-weight: 600; }
.tv-chart text.val.ult { fill: #c2410c; font-weight: 700; }
.tv-hist { background: #fff; border: 1px solid var(--tv-line); border-radius: 10px; padding: 14px 14px 8px; }
.tv-proy .t { font-size: 0.85rem !important; color: #334155 !important; }

.tv-model { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tv-slider { padding: 12px 0; border-bottom: 1px solid var(--tv-line); }
.tv-slider:last-of-type { border-bottom: 0; }
.tv-slider .top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-family: var(--font-heading); }
.tv-slider label { font-weight: 600; color: var(--tv-ink); font-size: 0.98rem; }
.tv-slider output { font-weight: 700; color: var(--tinta); font-size: 1.05rem; white-space: nowrap; }
.tv-slider input[type=range] { width: 100%; margin: 8px 0 4px; accent-color: var(--brand); }
.tv-slider .hint { font-family: var(--font-heading); font-size: 0.8rem; color: var(--mono-2); }
.tv-result { position: sticky; top: 84px; }
.tv-result .big { font-family: var(--font-heading); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.1rem); color: var(--brand); line-height: 1.05; }
.tv-result .lbl { font-family: var(--font-heading); font-size: 0.8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mono-2); }
.tv-price { display: flex; gap: 10px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.tv-price input { width: 120px; font-family: var(--font-heading); font-size: 1rem; padding: 8px 10px; border: 1px solid #cbd5e1; border-radius: 8px; }
.tv-gap { font-family: var(--font-heading); font-size: 1rem; margin-top: 10px; color: var(--tv-ink); }
.tv-gap b { color: var(--tinta); }
.tv-quote { margin-top: 12px; border: 1px dashed #cbd5e1; border-radius: 8px; padding: 12px; font-family: var(--font-heading); font-size: 0.85rem; color: var(--mono-2); }
.tv-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.tv-saved { font-family: var(--font-heading); font-size: 0.85rem; color: #166534; margin-top: 8px; min-height: 1.2em; }
.tv-saved.err { color: #9b1c1c; }

.tv-strip svg { max-width: 100%; height: auto; display: block; }
.tv-strip text { font-family: 'Jost', sans-serif; font-size: 11px; fill: var(--mono-2); }
.tv-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-family: var(--font-heading); font-size: 0.8rem; color: var(--mono-2); margin-top: 6px; }
.tv-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
.tv-profiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; }
.tv-profile { border: 1px solid var(--tv-line); border-radius: 10px; padding: 14px; background: #fff; }
.tv-profile .n { font-family: var(--font-heading); font-weight: 600; color: var(--tv-ink); display: flex; justify-content: space-between; gap: 8px; }
.tv-profile .n b { color: var(--tinta); white-space: nowrap; }
.tv-profile p { font-size: 0.92rem; color: #475569; margin: 6px 0 10px; line-height: 1.45; }

details.tv-details { margin-top: 14px; font-family: var(--font-heading); font-size: 0.9rem; }
details.tv-details summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.tv-table { width: 100%; border-collapse: collapse; font-family: var(--font-heading); font-size: 0.85rem; margin-top: 10px; }
.tv-table th, .tv-table td { text-align: right; padding: 6px 8px; border-bottom: 1px solid var(--tv-line); white-space: nowrap; }
.tv-table th:first-child, .tv-table td:first-child { text-align: left; }
.tv-table th { color: var(--mono-2); font-weight: 600; }
.tv-scroll { overflow-x: auto; }
/* filtro por objetivos */
.tv-aviso-filtro { margin-top: 18px; }
.tv-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.tv-fq { display: flex; flex-direction: column; gap: 6px; font-family: var(--font-heading); font-size: 0.95rem; font-weight: 600; color: var(--tv-ink); min-width: 0; }
.tv-fq .tv-note { font-weight: 400; }
.tv-fq select.tv-input, .tv-forden select.tv-input { padding: 10px 12px; font-size: 0.95rem; }
.tv-excl { border: 1px solid var(--tv-line); border-radius: 8px; padding: 10px 14px; margin: 0; }
.tv-excl legend { padding: 0 6px; }
.tv-excl .chk { display: inline-flex; align-items: center; gap: 6px; margin: 3px 14px 3px 0; font-weight: 400; font-size: 0.9rem; }
.tv-nivel { margin-top: 16px; padding: 12px 14px; background: var(--tv-bg); border-radius: 8px; font-family: var(--font-heading); font-size: 0.92rem; color: #334155; }
.tv-nivel b { color: var(--tinta); }
.tv-fcrit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; }
.tv-fcrit .tv-slider:last-of-type { border-bottom: 1px solid var(--tv-line); }
.tv-fcuenta { font-family: var(--font-heading); font-size: 0.95rem; color: #334155; }
.tv-fcuenta b { color: var(--tinta); font-size: 1.15rem; }
.tv-forden { margin-top: 10px; font-family: var(--font-heading); font-size: 0.9rem; color: var(--mono-2); }
.tv-forden label { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tv-forden select.tv-input { width: auto; max-width: 100%; }
.tv-flista td { vertical-align: middle; }
.tv-flista td:first-child { white-space: normal; }
.tv-flista .tv-vt { text-decoration: none; }
.tv-flista .tv-vt span { color: #475569; }
.tv-fsec { display: block; font-size: 0.75rem; color: #64748b; }
@media (max-width: 760px) {
    .tv-fgrid, .tv-fcrit { grid-template-columns: minmax(0, 1fr); }
}

/* cartera: «Cómo se mide tu gestión» */
.tv-medidas td { vertical-align: top; padding-top: 9px; padding-bottom: 9px; }
.tv-medidas th { white-space: normal; }
.tv-medidas td:first-child { white-space: normal; }
.tv-medidas td:first-child b { display: block; font-size: 0.95rem; font-weight: 600; color: var(--tinta); }
.tv-medidas .t { display: block; margin-top: 2px; font-size: 0.8rem; line-height: 1.4; color: #64748b; max-width: 46em; }
.tv-medidas .vv { display: inline-block; text-align: right; font-size: 0.95rem; font-weight: 600; color: var(--tv-ink, #1f2937); }
.tv-medidas .vv small { display: block; font-size: 0.72rem; font-weight: 400; color: #64748b; }
.tv-disclaimer { margin-top: 40px; padding: 16px 18px; background: var(--tv-bg); border-left: 3px solid var(--brand); font-family: var(--font-heading); font-size: 0.85rem; color: #475569; border-radius: 0 8px 8px 0; }

/* ventana de entrada */
.tv-modal-back { position: fixed; inset: 0; background: rgba(28, 25, 23, .55); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.tv-modal { background: #fff; border-radius: 12px; max-width: 420px; width: 100%; padding: 26px; position: relative; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.tv-modal h2 { font-family: var(--font-heading); font-weight: 600; color: var(--tinta); font-size: 1.3rem; margin-bottom: 6px; }
.tv-modal p { font-size: 0.98rem; color: #475569; margin-bottom: 14px; }
.tv-modal .x { position: absolute; top: 10px; right: 12px; border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--mono-2); }
.tv-modal .or { text-align: center; font-family: var(--font-heading); font-size: 0.8rem; color: var(--mono-2); margin: 12px 0; }
.tv-modal label.chk { display: flex; gap: 8px; align-items: flex-start; font-family: var(--font-heading); font-size: 0.85rem; color: #334155; margin: 12px 0; }
.tv-modal .msg { font-family: var(--font-heading); font-size: 0.88rem; min-height: 1.3em; margin-top: 10px; color: #166534; }
.tv-modal .msg.err { color: #9b1c1c; }
/* «Comparte tu valor» (empresa.js) */
.tv-modal.tv-mshare { max-width: 620px; max-height: calc(100vh - 32px); overflow-y: auto; }
.tv-shimg { margin: 2px 0 14px; }
.tv-shimg img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--tv-line); }
.tv-shimg .tv-note { padding: 48px 0; text-align: center; background: var(--tv-bg); border-radius: 8px; }
.tv-shbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-shbtns .tv-btn { padding: 8px 14px; font-size: 0.9rem; }
.tv-mshare p.tv-note { margin: 12px 0 0; font-size: 0.8rem; }
.tv-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: var(--tv-ink); border: 1px solid #cbd5e1; }
.tv-google:hover { background: var(--tv-bg); }

@media (max-width: 900px) {
    .tv-model { grid-template-columns: minmax(0, 1fr); }
    .tv-result { position: static; }
    .tv-charts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    .tv-charts { grid-template-columns: minmax(0, 1fr); }
    .tv-steps, .tv-guide, .tv-weeks { grid-template-columns: minmax(0, 1fr); }
    .tv-row { grid-template-columns: 62px minmax(0, 1fr) auto; }
    .tv-row .go { display: none; }
}

/* historia y proyección debajo de cada mando */
.tv-proy { margin-top: 10px; }
.tv-proy .t { font-family: var(--font-heading); font-size: 0.78rem; color: var(--mono-2); margin-bottom: 2px; }

/* nada se sale de la pantalla: textos largos que parten y tablas que se desplazan dentro de su caja */
.tv-wrap, .tv-card, .tv-row span, .tv-lead, .tv-note, .tv-h1 { overflow-wrap: anywhere; }
.tv-card { min-width: 0; }
.tv-puente { max-width: 520px; }
.tv-puente td:first-child { white-space: normal; }
.tv-fijo .lab { font-weight: 600; color: var(--tv-ink); font-size: 0.98rem; }
.tv-fijo { background: var(--tv-bg); margin: 8px -20px -20px; padding: 14px 20px 16px; border-radius: 0 0 10px 10px; border-bottom: 0; }

@media (max-width: 640px) {
    /* las tablas caben en el móvil: letra más pequeña en la cuenta, fichas en el panel */
    .tv-table { font-size: 0.72rem; }
    .tv-table th, .tv-table td { padding: 5px 3px; }
    .tv-table th { white-space: normal; vertical-align: bottom; }
    .tv-fichas thead { display: none; }
    .tv-fichas, .tv-fichas tbody, .tv-fichas tr, .tv-fichas td { display: block; width: 100%; }
    .tv-fichas tr { border: 1px solid var(--tv-line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
    .tv-fichas td { text-align: left; white-space: normal; border: 0; padding: 3px 0; font-size: 0.9rem; }
    .tv-fichas td[data-l] { display: flex; justify-content: space-between; gap: 12px; }
    .tv-fichas td[data-l]::before { content: attr(data-l); color: var(--mono-2); }
}

/* «Mi panel» siempre a la vista: botón en la barra con aviso de lo que toca revisar */
.nav-links .tv-account { display: flex; align-items: center; gap: 10px; }
.tv-pill { font-family: var(--font-heading); font-size: 0.92rem; font-weight: 600; color: var(--brand) !important; background: #fff; border-radius: 999px; padding: 6px 14px; display: inline-flex; align-items: center; gap: 6px; }
.tv-pill.ghost { background: transparent; color: #fff !important; border: 1px solid rgba(255, 255, 255, .55); }
/* el globo blanco marca la página en la que estás, sea cual sea (Rafael, 18-11-2026: «sólo se muestra el globo blanco
   en Mi Panel, aunque hayas marcado otra opción») */
.navbar .nav-links { gap: 10px; }
.nav-links .tv-cal a { border-radius: 999px; padding: 6px 14px; }
.nav-links .tv-cal a.active { font-weight: 600; color: var(--brand); background: #fff; }
/* la misma página en el otro idioma (English / Español), el último enlace de la barra; por debajo de 1100 px va al
   final del desplegable ☰ (comun.js) */
.nav-links .tv-lang a { font-size: 0.88rem; border-radius: 999px; padding: 6px 8px; white-space: nowrap; }
@media (min-width: 1101px) and (max-width: 1240px) {   /* con las cinco pestañas a la vista, el enlace del idioma cabe así */
    .navbar .nav-links { gap: 4px; }
    .navbar .tv-nbuscar { margin: 0 12px; }
}
.tv-badge { background: var(--featured); color: #fff; font-size: 0.72rem; font-weight: 700; border-radius: 999px; min-width: 20px; height: 20px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; }
@media (max-width: 768px) {
    .navbar .nav-toggle { display: none; }
    .navbar .nav-links { display: flex; position: static; flex-direction: row; align-items: center; background: none; padding: 0; gap: 12px; }
}
/* móvil: las páginas en un desplegable; «Mi panel» y «Entrar» siguen en la barra */
.tv-menu-movil { display: none; }
@media (max-width: 1100px) {
    .navbar .nav-toggle { display: block; order: 3; margin-left: 4px; padding: 2px 4px; line-height: 1; }
    .navbar .nav-links { order: 2; margin-left: auto; }
    .navbar .nav-links .tv-cal, .navbar .nav-links .tv-lang { display: none; }
    .navbar.menu-abierto .tv-menu-movil { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 6px 24px 14px; border-top: 1px solid rgba(255, 255, 255, .15); }
    .tv-menu-movil a { font-family: var(--font-heading); font-size: 1rem; font-weight: 500; color: rgba(255, 255, 255, .85); padding: 8px 14px; border-radius: 999px; }
    .tv-menu-movil a.active { background: #fff; color: var(--brand); font-weight: 600; }
}
.tv-pill, .nav-links .tv-nav-btn { white-space: nowrap; }
@media (max-width: 420px) {
    .navbar .nav-container { padding-left: 16px; padding-right: 16px; }
    .navbar .nav-logo { font-size: 1.1rem; gap: 6px; }
    .navbar .nav-links, .nav-links .tv-account { gap: 6px; }
    .navbar.menu-abierto .tv-menu-movil { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 360px) {
    .navbar .nav-logo { font-size: 1rem; }
}
@media (max-width: 310px) {
    .navbar .nav-logo { font-size: 0; gap: 0; }      /* por debajo de cualquier móvil: solo el escudo */
}
@media (max-width: 520px) {
    .tv-pill { font-size: 0.85rem; padding: 5px 11px; }
    .nav-links .tv-nav-btn { padding: 6px 10px; }
}
/* inglés: «Dashboard» y «Sign in» ocupan algo más que «Mi panel» y «Entrar»; sin esto, el ☰ baja a otra fila */
@media (max-width: 360px) {
    html[lang="en"] .tv-pill { font-size: 0.8rem; padding: 5px 8px; }
    html[lang="en"] .nav-links .tv-nav-btn { font-size: 0.85rem; padding: 6px 7px; }
}
@media (max-width: 340px) {
    html[lang="en"] .navbar .nav-logo { font-size: 0; gap: 0; }
}

/* el panel: resumen y una tarjeta por valoración */
.tv-resumen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 14px 0 10px; }
.tv-resumen > div { background: var(--tv-bg); border: 1px solid var(--tv-line); border-radius: 10px; padding: 12px 14px; }
.tv-resumen .v { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; color: var(--tinta); line-height: 1.1; }
.tv-resumen .k { font-family: var(--font-heading); font-size: 0.82rem; color: #475569; }
.tv-resumen .aviso { background: #fde8e8; border-color: #f5b5b5; }
.tv-resumen .aviso .v { color: #9b1c1c; }
.tv-leyenda { margin: 6px 0 4px; }
.tv-vcards { display: grid; gap: 16px; margin-top: 10px; }
.tv-vcard { background: #fff; border: 1px solid var(--tv-line); border-radius: 12px; padding: 16px 18px; box-shadow: 0 1px 2px rgba(59, 35, 20, .05); }
.tv-vcard.revisar { border-color: #f0a3a3; box-shadow: 0 0 0 2px #fde8e8; }
.tv-vcard header { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.tv-vt { font-family: var(--font-heading); font-size: 1.15rem; color: var(--tv-ink); }
.tv-vt b { color: var(--tinta); margin-right: 4px; }
.tv-vt span { color: #475569; font-size: 1rem; }
.tv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 14px 0 10px; }
.tv-kpis > div { display: grid; grid-template-rows: 2.6em auto auto; align-content: start; background: var(--tv-bg); border-radius: 10px; padding: 10px 12px; }
.tv-kpis .k { display: flex; align-items: flex-end; font-family: var(--font-heading); font-size: 0.82rem; line-height: 1.25; color: #475569; }
.tv-kpis .v { font-family: var(--font-heading); font-weight: 700; font-size: 1.45rem; line-height: 1.25; color: var(--tinta); white-space: nowrap; }
.tv-kpis .s { font-family: var(--font-heading); font-size: 0.78rem; color: #64748b; line-height: 1.3; }
.tv-kpis .v.arriba { color: #166534; }
.tv-kpis .v.abajo { color: #9b1c1c; }
.tv-kpis .s .arriba { color: #166534; font-weight: 600; }
.tv-kpis .s .abajo { color: #9b1c1c; font-weight: 600; }
.tv-comp { list-style: none; margin: 8px 0 4px; display: grid; gap: 4px; font-size: 1rem; color: var(--tinta); }
.tv-comp .lab { font-family: var(--font-heading); color: var(--tinta); }
.tv-vcard footer { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--tv-line); }

/* portada: «Tus valoraciones» */
.tv-mias-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.tv-mias { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tv-mia { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--tv-line); border-radius: 10px; padding: 12px 14px; background: #fff; font-family: var(--font-heading); color: var(--tv-ink); }
.tv-mia:hover { border-color: #fdba74; }
.tv-mia.revisar { border-color: #f0a3a3; }
.tv-mia b { color: var(--tinta); font-size: 1.05rem; }
.tv-mia .n { color: #475569; font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-mia .v { font-weight: 600; margin-top: 4px; }
.tv-mia .d { font-size: 0.85rem; }
.tv-mia .d.arriba { color: #166534; } .tv-mia .d.abajo { color: #9b1c1c; }
.tv-mia .tv-chip { align-self: flex-start; margin-top: 4px; }
.tv-mia.mas { justify-content: center; color: var(--primary); font-weight: 600; }
@media (max-width: 560px) {
    .tv-resumen { grid-template-columns: minmax(0, 1fr); }
    .tv-kpis .v { font-size: 1.25rem; }
}

@media (max-width: 760px) {
    .tv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.tv-vcard .tv-strip { margin-top: 6px; }

.tv-hist .tv-media { font-family: var(--font-heading); font-size: 0.9rem; color: var(--tv-ink); margin: -2px 0 4px; }
.tv-hist .tv-media b { color: #c2410c; }
.tv-hist { display: flex; flex-direction: column; }
.tv-hist svg { margin-top: auto; }

/* cartera simulada */
.tv-resumen4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tv-resumen .v.arriba, .tv-comp .arriba { color: #166534; }
.tv-resumen .v.abajo, .tv-comp .abajo { color: #9b1c1c; }
@media (max-width: 760px) { .tv-resumen4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tv-orden { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 10px 0 4px; }
.tv-orden label { font-family: var(--font-heading); font-size: 0.92rem; color: var(--tinta); display: inline-flex; align-items: center; gap: 6px; }
.tv-orden .tv-input { width: 140px; max-width: 100%; margin: 0; }
.tv-orden .tv-saved { flex-basis: 100%; margin: 0; }
.tv-vcard .tv-orden { border-top: 1px dashed var(--tv-line); padding-top: 10px; }
.tv-ordenes { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.tv-ordenes li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; border: 1px solid var(--tv-line); border-radius: 8px; padding: 8px 12px; font-family: var(--font-heading); font-size: 0.92rem; background: #fff; }
.tv-cartera-mini { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; border: 1px solid #fdba74; background: #fff7ed; border-radius: 10px; padding: 10px 14px; margin: 0 0 10px; font-family: var(--font-heading); color: var(--tv-ink); }
.tv-cartera-mini .k { font-weight: 700; color: var(--tinta); }
.tv-cartera-mini .v { font-size: 0.95rem; }

/* cartera: «Tu cartera frente a tus objetivos» */
.tv-veredicto { margin-top: 12px; padding: 12px 14px; border-radius: 8px; font-family: var(--font-heading); font-size: 1rem; background: var(--tv-bg); border-left: 3px solid #9b1c1c; }
.tv-veredicto.si { border-left-color: #166534; }
.tv-checks { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 1rem; color: var(--tinta); }
.tv-checks li { display: flex; gap: 10px; align-items: flex-start; }
.tv-checks .ic { flex: 0 0 22px; height: 22px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; color: #fff; margin-top: 2px; }
.tv-checks li.si .ic { background: #166534; }
.tv-checks li.no .ic { background: #9b1c1c; }
.tv-checks b { font-family: var(--font-heading); color: var(--tinta); }

/* tarjetas de datos en pantallas muy estrechas (al final, para que manden sobre las reglas de arriba) */
@media (max-width: 360px) {
    .tv-kpis { gap: 8px; }
    .tv-kpis > div { padding: 8px 9px; }
    .tv-kpis .v { font-size: 1.08rem; }
}
@media (max-width: 300px) {
    .tv-kpis { grid-template-columns: minmax(0, 1fr); }
}

/* objetivos: los criterios que salen */
.tv-sale { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 26px; font-family: var(--font-heading); }
.tv-sale li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--tv-line); font-size: 0.92rem; color: #475569; }
.tv-sale b { color: var(--tinta); text-align: right; }
@media (max-width: 760px) { .tv-sale { grid-template-columns: minmax(0, 1fr); } }

/* la barra queda fija arriba, con el buscador de empresas (18-11-2026) */
.navbar { position: fixed; }
html { scroll-padding-top: 84px; }
.tv-nbuscar { position: relative; flex: 1 1 240px; max-width: 340px; margin: 0 18px; min-width: 150px; }
.tv-nbuscar input { width: 100%; font-family: var(--font-heading); font-size: 0.92rem; color: #fff; padding: 7px 14px 7px 34px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; }
.tv-nbuscar input::placeholder { color: rgba(255, 255, 255, .75); }
.tv-nbuscar input:focus { outline: none; background-color: #fff; color: var(--tv-ink); border-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230a284b' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E"); }
.tv-nbuscar input:focus::placeholder { color: #94a3b8; }
.tv-nbuscar .tv-suggest { top: calc(100% + 6px); min-width: 260px; }
@media (max-width: 560px) {
    .navbar .nav-container { flex-wrap: wrap; row-gap: 8px; padding-bottom: 10px; }
    .tv-nbuscar { order: 5; flex-basis: 100%; max-width: none; margin: 0; }
    .tv-main { padding-top: 140px; }
}

/* empresa: «Puntos de referencia» (a favor y en contra) */
.tv-cuali { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.tv-cuali h3 { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; margin: 0 0 8px; }
.tv-cuali .favor { border-top: 3px solid #166534; }
.tv-cuali .contra { border-top: 3px solid #9b1c1c; }
.tv-cuali .favor h3 { color: #166534; }
.tv-cuali .contra h3 { color: #9b1c1c; }
.tv-cuali ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 0.98rem; color: var(--tinta); }
@media (max-width: 760px) { .tv-cuali { grid-template-columns: minmax(0, 1fr); } }

/* valoraciones: la lista de empresas para valorar */
.tv-vfiltros { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; align-items: end; margin-top: 8px; }
.tv-vfiltros .tv-vmias { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-size: 0.92rem; }
.tv-vlista td small { display: block; font-size: 0.75rem; font-weight: 600; }
.tv-vlista td small.arriba { color: #166534; }
.tv-vlista td small.abajo { color: #9b1c1c; }
.tv-vno { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-family: var(--font-heading); font-size: 0.85rem; }
.tv-vno a { color: #475569; text-decoration: none; }
.tv-vno b { color: var(--tinta); }
@media (max-width: 760px) { .tv-vfiltros { grid-template-columns: minmax(0, 1fr); } }

/* cartera: «Resumen de tu cartera» */
.tv-resumen-tabla td small { display: block; font-size: 0.75rem; font-weight: 600; }
.tv-resumen-tabla td .arriba, .tv-resumen-tabla td small.arriba { color: #166534; }
.tv-resumen-tabla td .abajo, .tv-resumen-tabla td small.abajo { color: #9b1c1c; }
.tv-resumen-tabla td:first-child { white-space: normal; }
.tv-resumen-tabla .tv-vt { font-size: 1rem; text-decoration: none; }
.tv-resumen-tabla tr.caja td { background: var(--tv-bg); }
.tv-resumen-tabla tfoot td { border-top: 2px solid var(--tinta); font-weight: 600; }
@media (max-width: 640px) {
    .tv-resumen-tabla tfoot, .tv-resumen-tabla tfoot tr, .tv-resumen-tabla tfoot td { display: block; width: 100%; }
    .tv-resumen-tabla tfoot tr { border: 2px solid var(--tinta); border-radius: 10px; padding: 10px 12px; }
    .tv-resumen-tabla tfoot td { text-align: left; white-space: normal; border: 0; padding: 3px 0; }
    .tv-resumen-tabla tfoot td[data-l] { display: flex; justify-content: space-between; gap: 12px; }
    .tv-resumen-tabla tfoot td[data-l]::before { content: attr(data-l); color: var(--mono-2); font-weight: 400; }
    .tv-resumen-tabla td[data-l]:empty { display: none; }
    .tv-resumen-tabla td small { display: inline; margin-left: 6px; }
}
.tv-resumen-tabla .tv-sp { font-weight: 400; color: var(--mono-2); font-size: 0.8rem; }
@media (max-width: 640px) { .tv-resumen-tabla .tv-sp { display: none; } }
.tv-resumen-tabla .tv-g { display: inline-block; text-align: right; white-space: nowrap; }
@media (max-width: 640px) {
    .tv-resumen-tabla td.nd { display: none; }
    .tv-resumen-tabla .tv-g, .tv-resumen-tabla td small { white-space: nowrap; }
}

/* administración (solo operations@grinboss.com) */
.tv-agrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 10px; }
.tv-atop h3 { font-family: var(--font-heading); font-size: 1rem; color: var(--tinta); margin: 0 0 8px; }
.tv-atop ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-family: var(--font-heading); font-size: 0.88rem; }
.tv-atop li { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.tv-atop .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #334155; }
.tv-atop .b { height: 8px; background: var(--tv-bg); border-radius: 4px; overflow: hidden; }
.tv-atop .b i { display: block; height: 100%; background: #c2410c; border-radius: 4px; }
.tv-atop b { color: var(--tinta); white-space: nowrap; }
.tv-atop small { color: var(--mono-2); font-weight: 400; }
.tv-adias { display: flex; align-items: flex-end; gap: 3px; height: 140px; padding-bottom: 18px; }
.tv-adias div { flex: 1 1 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; min-width: 0; }
.tv-adias i { display: block; background: #c2410c; border-radius: 3px 3px 0 0; }
.tv-adias span { position: absolute; bottom: -18px; left: 0; font-family: var(--font-heading); font-size: 0.7rem; color: var(--mono-2); white-space: nowrap; }
.tv-apronto { color: #c2410c; }
.tv-ausers td:first-child { white-space: normal; word-break: break-all; }
@media (max-width: 760px) { .tv-agrid { grid-template-columns: minmax(0, 1fr); } }

/* opiniones de los usuarios (18-11-2026): botón fijo, línea al final de cada página, enlace del pie y ventana */
.tv-opfab { position: fixed; right: 16px; bottom: 16px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; color: #fff; background: var(--brand); border: 0; border-radius: 999px; padding: 10px 16px; box-shadow: 0 6px 18px rgba(59, 35, 20, .3); cursor: pointer; }
.tv-opfab:hover { background: var(--brand-dark); }
.tv-opfab:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }
.tv-opfab svg { width: 18px; height: 18px; flex: none; }
.tv-op-abierta .tv-opfab { display: none; }
@media (max-width: 600px) {
    .tv-opfab { right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 12px; }
    .tv-opfab span { display: none; }
}
@media print { .tv-opfab { display: none; } }
.tv-opline { margin-top: 32px; padding-top: 14px; border-top: 1px solid var(--tv-line, #e5e7eb); font-family: var(--font-heading); font-size: 0.95rem; color: #475569; }
.tv-oplink { font: inherit; color: var(--tinta); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.footer .tv-oplink { color: inherit; }
.tv-oplink:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; }
.tv-mop { max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; }
.tv-mop fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.tv-mop legend { font-family: var(--font-heading); font-size: 0.88rem; font-weight: 600; color: #334155; margin-bottom: 6px; padding: 0; }
.tv-mop legend small { font-weight: 400; color: var(--mono-2); }
.tv-opchips { display: flex; flex-wrap: wrap; gap: 6px; }
.tv-opchips label { position: relative; }
.tv-opchips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tv-opchips span { display: inline-block; font-family: var(--font-heading); font-size: 0.86rem; padding: 7px 12px; border: 1px solid #cbd5e1; border-radius: 999px; background: #fff; color: #334155; cursor: pointer; }
.tv-opchips input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.tv-opchips input:focus-visible + span { outline: 3px solid #fdba74; outline-offset: 2px; }
.tv-opnota span { min-width: 42px; text-align: center; }
.tv-mop p.tv-opayuda { font-family: var(--font-heading); font-size: 0.78rem; color: var(--mono-2); margin: 6px 0 0; }
.tv-mop textarea.tv-input { resize: vertical; min-height: 110px; font-size: 0.98rem; line-height: 1.45; }
.tv-mop .tv-opmail { margin-top: 10px; }
.tv-mop p.tv-oplegal { font-family: var(--font-heading); font-size: 0.8rem; color: #64748b; margin: 10px 0 12px; }
/* opiniones en /admin */
.tv-aops td.op-texto { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 220px; }
.tv-aops tr.op-nueva td:first-child { border-left: 4px solid #c2410c; }
.tv-aops .op-est { display: flex; gap: 6px; flex-wrap: wrap; }
.tv-aops .op-est .tv-btn.small { padding: 4px 10px; font-size: 0.8rem; }
@media (max-width: 760px) { .tv-aops td.op-texto { min-width: 0; } .tv-aops tr.op-nueva { border-left: 4px solid #c2410c; } .tv-aops tr.op-nueva td:first-child { border-left: 0; } }
