/* Contenedor principal de ayuda HTML */
.html-content-viewer {
    width: 100%;
    min-height: 400px;
    height: 100%;
    overflow-y: auto;
    padding: 30px 40px;
    background-color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Títulos */
.html-content-viewer h1 {
    font-size: 2.5em;
    color: #1a1a1a;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
}

.html-content-viewer h2 {
    font-size: 2em;
    color: #2c3e50;
    border-bottom: 2px solid #95a5a6;
    padding-bottom: 8px;
    margin-top: 30px;
    margin-bottom: 15px;
}

.html-content-viewer h3 {
    font-size: 1.6em;
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 12px;
    padding-left: 10px;
    border-left: 4px solid #3498db;
}

.html-content-viewer h4 {
    font-size: 1.3em;
    color: #34495e;
    margin-top: 20px;
    margin-bottom: 10px;
}

/* Párrafos y texto */
.html-content-viewer p {
    margin-bottom: 1.2em;
    line-height: 1.8;
}

.html-content-viewer strong {
    color: #e74c3c;
    font-weight: 600;
}

.html-content-viewer em {
    font-style: italic;
    color: #555;
}

/* Listas */
.html-content-viewer ul,
.html-content-viewer ol {
    margin-left: 2em;
    margin-bottom: 1.5em;
    line-height: 2;
}

.html-content-viewer ul li,
.html-content-viewer ol li {
    margin-bottom: 0.8em;
    padding-left: 0.5em;
}

.html-content-viewer ul li::marker {
    color: #3498db;
}

.html-content-viewer ol li::marker {
    color: #3498db;
    font-weight: bold;
}

/* Código */
.html-content-viewer code {
    background-color: #f4f4f4;
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #c7254e;
    border: 1px solid #e1e1e8;
}

.html-content-viewer pre {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #3498db;
    overflow-x: auto;
    margin: 1.5em 0;
}

.html-content-viewer pre code {
    background: none;
    padding: 0;
    border: none;
    color: #333;
}

/* Tablas */
.html-content-viewer table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
}

.html-content-viewer table th,
.html-content-viewer table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
}

.html-content-viewer table th {
    background-color: #3498db;
    color: white;
    font-weight: 600;
}

.html-content-viewer table tr:nth-child(even) {
    background-color: #f9f9f9;
}

.html-content-viewer table tr:hover {
    background-color: #f5f5f5;
}

/* Enlaces */
.html-content-viewer a {
    color: #3498db;
    text-decoration: none;
    border-bottom: 1px dotted #3498db;
}

.html-content-viewer a:hover {
    color: #2980b9;
    border-bottom-style: solid;
}

/* Blockquotes */
.html-content-viewer blockquote {
    margin: 1.5em 10px;
    padding: 15px 20px;
    background-color: #f9f9f9;
    border-left: 5px solid #3498db;
    font-style: italic;
    color: #555;
}

/* Mensajes de estado */
.html-content-viewer .no-content {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: 1.1em;
}

/* Divisores */
.html-content-viewer hr {
    border: none;
    border-top: 2px solid #ecf0f1;
    margin: 2em 0;
}

/* Scroll personalizado */
.html-content-viewer::-webkit-scrollbar {
    width: 10px;
}

.html-content-viewer::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.html-content-viewer::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.html-content-viewer::-webkit-scrollbar-thumb:hover {
    background: #555;
}