/* Estilos para el sistema de ayuda */

/* Botón de ayuda en el footer */
.help-footer-button {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    transition: all 0.3s ease;
}

.help-footer-button:hover {
    background-color: #5c4033; /* Marrón oscuro */
    color: #fff;
    transform: scale(1.05);
}

/* Estilos para la página de ayuda */
.help-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.help-header {
    background-color: #8B4513; /* Marrón (tono tierra) */
    color: #fff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

/* Contenedor de búsqueda para poder posicionar el contador de resultados */
.help-search-container {
    position: relative;
    margin-bottom: 30px;
}

.help-search {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    background-color: #f9f7f5; /* Beige claro */
    transition: border-color 0.3s ease;
}

.help-search:focus {
    border-color: #8B4513; /* Marrón cuando está enfocado */
    outline: none;
    box-shadow: 0 0 0 2px rgba(139, 69, 19, 0.2);
}

/* Contador de resultados */
.help-results-counter {
    position: absolute;
    right: 10px;
    top: -25px;
    font-size: 14px;
    color: #5F4B32; /* Marrón oscuro */
    background-color: rgba(249, 247, 245, 0.8); /* Beige semi-transparente */
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.help-section {
    background-color: #f9f7f5; /* Beige claro */
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid #8B4513; /* Borde izquierdo marrón */
}

.help-section h2 {
    color: #8B4513; /* Marrón */
    border-bottom: 1px solid #e0d8d0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.help-section h3 {
    color: #A0522D; /* Marrón claro */
    margin-top: 25px;
    margin-bottom: 15px;
}

.help-content {
    line-height: 1.6;
}

.help-item {
    margin-bottom: 30px;
}

.help-question {
    font-weight: bold;
    color: #5F4B32; /* Marrón oscuro */
    margin-bottom: 10px;
    cursor: pointer;
    position: relative;
    padding-left: 20px;
}

.help-question:before {
    content: '+';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: #8B4513;
    width: 16px;
    height: 16px;
    line-height: 16px;
    text-align: center;
    transition: transform 0.3s ease;
}

.help-question.active:before {
    content: '-';
}

.help-answer {
    background-color: #fff;
    padding: 15px;
    border-radius: 5px;
    border-left: 3px solid #8B4513;
}

.help-edit-button {
    background-color: #8B4513;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    float: right;
}

.help-edit-button:hover {
    background-color: #A0522D;
}

.help-hidden {
    display: none !important;
}

.help-edit-form {
    margin-top: 10px;
}

.help-edit-form textarea {
    width: 100%;
    min-height: 150px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.help-save-button, .help-cancel-button {
    padding: 5px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    margin-right: 10px;
}

.help-save-button {
    background-color: #5F4B32;
    color: white;
}

.help-cancel-button {
    background-color: #ddd;
    color: #333;
}

.help-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.help-tab {
    padding: 10px 20px;
    cursor: pointer;
    background-color: #f1e8e0;
    border: 1px solid #ddd;
    border-bottom: none;
    border-radius: 5px 5px 0 0;
    margin-right: 5px;
}

.help-tab.active {
    background-color: #8B4513;
    color: white;
    border-color: #8B4513;
}

.help-tab-content {
    display: none;
}

.help-tab-content.active {
    display: block;
}

/* Mensaje sin resultados */
.help-no-results {
    text-align: center;
    color: #8B4513;
    background-color: #f9f7f5;
    padding: 15px;
    border-radius: 5px;
    margin: 20px 0;
    border: 1px dashed #d9c9b9;
    font-style: italic;
}
