/* Estilo general */
body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: #333;
}

/* Navbar */
.navbar {
    background: linear-gradient(90deg, #114581, #134483) !important;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff !important;
    transition: color 0.3s;
    display: flex;
    align-items: center;
}

.navbar-brand:hover {
    color: #e0e0e0 !important;
}

.nav-link {
    color: #fff !important;
    font-weight: 500;
    margin-left: 1rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #e0e0e0 !important;
}

/* Contenedor principal */
.container {
    flex: 1;
}

/* Tarjetas estilo red social */
.post-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.post-title {
    font-size: 1.8rem;
    font-weight: bold;
    color: #124482;
    margin-bottom: 1rem;
}

.post-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.post-divider {
    border-top: 2px solid #007bff;
    margin: 1rem 0;
}

.post-text {
    font-size: 1.1rem;
    color: #444;
    margin-bottom: 1.5rem;
}

.post-content {
    padding: 1rem;
}

/* Botones */
/* Contenedor de botones */
.button-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Estilo de los botones con ¨ªconos */
.btn-social {
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-social i {
    font-size: 1.2rem;
}

/* Ajustes para diferentes tipos de botones */
.btn-primary {
    background: linear-gradient(90deg, #114581, #134483);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(90deg, #0056b3, #009bff);
}

.btn-secondary {
    background: linear-gradient(90deg, #6c757d, #adb5bd);
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(90deg, #5a6268, #868e96);
}

.btn-success {
    background: linear-gradient(90deg, #28a745, #34d058);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(90deg, #1e7e34, #28a745);
}

.btn-info {
    background: linear-gradient(90deg, #17a2b8, #1ac6d9);
    border: none;
}

.btn-info:hover {
    background: linear-gradient(90deg, #117a8b, #17a2b8);
}

.btn-warning {
    background: linear-gradient(90deg, #ffc107, #ffda6a);
    border: none;
}

.btn-warning:hover {
    background: linear-gradient(90deg, #e0a800, #ffc107);
}

/* Inputs */
.social-input {
    border-radius: 25px;
    padding: 0.75rem 1.25rem;
    border: 1px solid #ddd;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.social-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.2);
    outline: none;
}

/* Enlaces */
.social-link {
    color: #007bff;
    font-weight: 500;
    transition: color 0.3s;
}

.social-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Tablas */
.social-table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.social-table thead {
    background: linear-gradient(90deg, #007bff, #00c4ff);
    color: #fff;
}

.social-table th, .social-table td {
    padding: 1rem;
    text-align: center;
}

.social-table tbody tr {
    transition: background-color 0.3s;
}

.social-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Botones de selecci¨®n */
.social-btn {
    border-radius: 20px;
    margin: 0.2rem;
    transition: transform 0.2s;
}

.social-btn:hover {
    transform: scale(1.1);
}

.social-btn.active {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

/* M¨®dulos y ¨¢reas */
.module-title {
    font-size: 1.5rem;
    color: #007bff;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-left: 4px solid #007bff;
    padding-left: 0.5rem;
}

.area-title {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 0.5rem;
}

.question-item {
    background: #f9f9f9;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    transition: background-color 0.3s;
}

.question-item:hover {
    background: #f1f1f1;
}

/* Dashboard */
.dashboard-header {
    display: flex;
    justify-content: space-around;
    margin-bottom: 2rem;
}

.dashboard-stat {
    text-align: center;
    background: #fff;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 45%;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #007bff;
}

.dashboard-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.dashboard-card h5 {
    font-size: 1.2rem;
    color: #007bff;
    margin-bottom: 1rem;
}

.heatmap {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.heatmap-item {
    flex: 1 1 30%;
    text-align: center;
    padding: 1rem;
    border-radius: 10px;
    color: #fff;
    font-weight: bold;
    transition: transform 0.3s;
}

.heatmap-item:hover {
    transform: scale(1.05);
}

.heatmap-item span {
    display: block;
}

.recommendation-item {
    background: #f9f9f9;
    border-left: 4px solid #dc3545;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: background-color 0.3s;
}

.recommendation-item:hover {
    background: #f1f1f1;
}

/* Footer */
.footer {
    background: linear-gradient(90deg, #114581, #134483);
    color: #fff;
    padding: 1rem 0;
}

/* Animaciones */
#msg-flash {
    animation: fadeOut 3s forwards;
    animation-delay: 2s;
    opacity: 1;
}

@keyframes fadeOut {
    to { opacity: 0; display: none; }
}

.logo-img {
    height: 50px;
    width: auto;
    margin-right: 10px;
    vertical-align: middle;
    object-fit: contain;
    max-width: 150px;
}

/* Estilos espec¨ªficos para index.php */
body#index-page .logo-img {
    height: 25px;
    width: auto;
    object-fit: contain;
    max-width: 120px;
}

/* Contenedor de botones espec¨ªfico para index */
.button-container.index-only {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 1.5rem;
    background-color: #f8f9fa;
    padding: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estilo de botones espec¨ªfico para index */
.btn-social.index-btn {
    border-radius: 30px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: transform 0.2s, background-color 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-social.index-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.btn-social.index-btn i {
    font-size: 1.2rem;
}

/* Gradientes personalizados para botones en index */
body#index-page .btn-primary {
    background: linear-gradient(90deg, #007bff, #00c4ff);
    border: none;
}

body#index-page .btn-primary:hover {
    background: linear-gradient(90deg, #0056b3, #009bff);
}

body#index-page .btn-secondary {
    background: linear-gradient(90deg, #6c757d, #adb5bd);
    border: none;
}

body#index-page .btn-secondary:hover {
    background: linear-gradient(90deg, #5a6268, #868e96);
}

body#index-page .btn-success {
    background: linear-gradient(90deg, #28a745, #34d058);
    border: none;
}

body#index-page .btn-success:hover {
    background: linear-gradient(90deg, #1e7e34, #28a745);
}

body#index-page .btn-info {
    background: linear-gradient(90deg, #17a2b8, #1ac6d9);
    border: none;
}

body#index-page .btn-info:hover {
    background: linear-gradient(90deg, #117a8b, #17a2b8);
}

body#index-page .btn-warning {
    background: linear-gradient(90deg, #ffc107, #ffda6a);
    border: none;
}

body#index-page .btn-warning:hover {
    background: linear-gradient(90deg, #e0a800, #ffc107);
}

/* Estilo para los elementos de la lista de evaluados */
.evaluated-item {
    cursor: pointer;
    transition: background-color 0.3s ease !important;
    position: relative;
    transform: none !important;
}

/* Efecto hover b¨¢sico y estable */
.evaluated-item:hover {
    background-color: #f1f3f5;
    transform: none !important;
}

/* Asegurar que los elementos de la lista no tengan transiciones conflictivas */
.list-group-item.evaluated-item {
    transition: background-color 0.3s ease !important;
    transform: none !important;
}

.list-group-item.evaluated-item:hover {
    transform: none !important;
}

/* Estilo para el badge dentro de evaluated-item */
.evaluated-item .badge {
    background-color: #17a2b8;
    padding: 0.5rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
}

/* Estilo para la lista de evaluados */
.evaluated-list {
    max-height: 400px;
    overflow-y: auto;
    border-radius: 10px;
    padding: 0.5rem;
    background-color: #f8f9fa;
}

.evaluated-item {
    border-radius: 10px;
    margin-bottom: 0.5rem;
    padding: 1rem;
    background-color: #ffffff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Estilo del modal */
.modal {
    pointer-events: none;
    transition: none !important;
}

.modal.show {
    pointer-events: auto;
    transition: none !important;
}

.modal-backdrop {
    transition: none !important;
}

.modal-content {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    border: none;
}

.modal-header {
    background: linear-gradient(90deg, #007bff, #00c4ff);
    color: #fff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    border-top: none;
    padding: 1rem 1.5rem;
}

.modal-footer .btn-social {
    background: linear-gradient(90deg, #6c757d, #adb5bd);
    border: none;
    color: #fff;
}

.modal-footer .btn-social:hover {
    background: linear-gradient(90deg, #5a6268, #868e96);
    transform: translateY(-3px);
}

/* Estilo espec¨ªfico para el contenido de index */
body#index-page .post-card {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

body#index-page .post-title {
    color: #2c3e50;
    font-size: 2.5rem;
}

body#index-page .post-subtitle {
    color: #7f8c8d;
    font-size: 1.2rem;
}

body#index-page .post-text {
    color: #34495e;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}