* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f5f5 !important;
    color: #333;
}

.quiz-container {
    display: flex;
    padding: 30px 0px;
}

/* Sidebar */
.sidebar {
    opacity: 1;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;


    width: 466px;
    max-height: fit-content;
    background: linear-gradient(135deg, #6b8fa0 0%, #5a7a89 100%);
    color: white;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
}

.sidebar h2 {
    font-size: 24px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #FFFFFF !important;
}

.sidebar p {
    font-size: 16px;
    margin-bottom: 40px;
    line-height: 1.5;
}

.sidebar-nav {
    flex: 1;
}

.sidebar-header {
    padding-left: 90px;
    padding-left: 90px;

    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 30px;

    color: #FFFFFF !important;
}

.sidebar-header p {
    font-family: Montserrat;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    line-height: 30px;
    letter-spacing: 0%;
    vertical-align: middle;

}

.nav-item {
    display: flex;
    align-items: center;
    padding: 15px 0;
    /* margin-bottom: 30px; */
    transition: all 0.3s ease;
}

.nav-item.active {
    margin-right: -15px;
}

.nav-item .number, .nav-item .text {
    font-weight: bold;
    margin-right: 20px;
    opacity: 0.3; 
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 36px;
    line-height: 34px;
    letter-spacing: 0%;
    padding: 10px;
}

.nav-item.active .number {
    border-right: 5px solid white;
}

.nav-item.active .number {
    opacity: 1;
}

.nav-item .icon {
    margin-right: 15px;
    font-size: 20px;
}

.nav-item .icon svg path {
    fill: rgba(255, 255, 255, 0.3);
    transition: fill 0.3s ease;
}

.nav-item.active .icon svg path {
    fill: white;
}

.nav-item .text {
    font-size: 16px;
    font-weight: 300;
}

.nav-item.active .text {
    font-weight: 400;
    opacity: 1;
}

.nav-item-results {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.nav-item-results .text {
    font-size: 18px;
    font-weight: 500;
    opacity: 0.3;
}

.nav-item-results.active .text {
    font-weight: 600;
    opacity: 1;
}

.footer-text {
    margin-top: auto;
    font-size: 12px;
    opacity: 0.8;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 0px 50px;
    display: flex;
    flex-direction: column;
}

.section {
    display: none;
    flex-direction: column;
    height: 100%;
}

.section.active {
    display: flex;
}

.section-header {
    margin-bottom: 30px;
    display: flex;
    align-items: center;
}

.section-number {
    color: gray;
    /* font-size: 18px; */
    /* font-weight: 600; */
    margin-bottom: 10px;

    font-weight: bold;
    margin-right: 20px;
    opacity: 0.3;
    font-family: Montserrat;
    font-weight: 900;
    font-style: Black;
    font-size: 36px;
    line-height: 34px;
    letter-spacing: 0%;
    padding: 10px;
}

.section-title {
    color: #e91e63;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.section-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 30px;
}

.questions-block {
    padding: 0px 60px;
}

.question-block {
    margin-bottom: 40px;
}

.question-content {
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 3px 4px 4px 0px #7E9BA733;
}

.question-label {
    color: #999;
    font-size: 14px;
    margin-bottom: 10px;
}

.question-text {
    font-weight: 700;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 15px;
    color: #6C8997;
    line-height: 28px;
}

.question-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #f9f9f9;
    margin-bottom: 20px;
}

.question-input:focus {
    outline: none;
    border-color: #e91e63;
    background: white;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.option-item:hover {
    border-color: #e91e63;
    background: #fdf7f9;
}

.option-item.selected {
    border-color: #e91e63;
    background: #fdf7f9;
}

.option-item input[type="radio"] {
    margin-right: 12px;
    accent-color: #e91e63;
}

.option-item input[type="checkbox"] {
    margin-right: 12px;
    accent-color: #e91e63;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    min-width: 16px;
    height: 16px;
    border: 2px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    background-color: white;
    transition: all 0.3s ease;
}

.option-item input[type="checkbox"]:checked {
    border-color: #e91e63;
    background-color: #e91e63;
}

.option-item input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: white;
}

.option-item label {
    cursor: pointer;
    font-size: 14px;
    line-height: 1.4;
    flex: 1;
}

.section-footer {
    margin-top: auto;
    padding-top: 30px;
    border-top: 1px solid #eee;
}


.completion-text {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    background-color: #6b8599 !important;
    color: white !important;
    border: none !important;
    padding: 18px 40px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    text-align: center !important;
}

.btn-back {
    background: transparent !important;
    color: #e91e63 !important;
    border: 1px solid #e91e63 !important;
    padding: 18px 40px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
}

.btn-back:hover {
    background: #e91e63 !important;
    color: white !important;
}

.btn-next {
    background-color: #6b8599 !important;
    color: white !important;
    border: none !important;
    padding: 18px 40px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
}

.btn-next:hover {
    background-color: #5a7a89 !important;
}

.btn-start {
    background-color: #6b8599 !important;
    color: white !important;
    border: none !important;
    padding: 18px 40px !important;
    border-radius: 8px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    margin-top: 20px !important;
    text-align: center !important;
}

.btn-start:hover {
    background-color: #5a7a89 !important;
}

/* Results Section */
.results-container {
    text-align: center;
}

.autodiagnostico-section {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.autodiagnostico-section h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: bold;
}

.puntaje-total {
    margin-bottom: 20px;
}

.puntaje-label {
    font-size: 18px;
    color: #666;
    margin-bottom: 10px;
    font-weight: 600;
}

.puntaje-display {
    font-size: 32px;
    font-weight: bold;
    color: #333;
}

.score-number {
    color: #6b8fa0;
    font-size: 48px;
}

.score-message {
    color: #6b8fa0;
    font-size: 24px;
    margin-left: 10px;
}

.total-score {
    margin-bottom: 30px;
}

.score-label {
    font-size: 18px;
    color: #666;
    margin-top: 10px;
}

.score-bar {
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, #ff6b6b, #ffd93d, #6bcf7f);
    border-radius: 5px;
    margin: 20px 0;
    position: relative;
}

.score-indicator {
    position: absolute;
    top: -5px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 10px solid #333;
    transform: translateX(-50%);
}

.dimensions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.dimension-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    text-align: center;
    min-width: 230px;
}

.dimension-score {
    font-size: 24px;
    font-weight: bold;
    color: #6b8fa0;
    margin-bottom: 5px;
}

.dimension-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}

.dimension-btn {
    background: #6b8fa0;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.results-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
    position: fixed;
    top: 95px; /* 75px del navbar + 20px de margen */
    right: 20px;
    z-index: 10002; /* Por encima del navbar */
    background: #6b8fa0 !important;
    border: none !important;
    border-radius: 5px !important;
    width: 45px;
    height: 45px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 5px 13px 9px rgba(0, 0, 0, 0.2) !important;
    padding: 15px 25px 15px 25px !important;
}

.mobile-menu-btn:hover {
    background: #5a7a89;
    transform: scale(1.05);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background: white;
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Sidebar overlay for mobile */
.quiz-container .sidebar-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 10000 !important; /* Por debajo del botón pero por encima del navbar */
}

.quiz-container .sidebar-overlay.active {
    display: block !important;
}

/* Responsive */
/* Mobile and tablet responsive design */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }
    
    .quiz-container {
        flex-direction: column;
        margin: 0;
        min-height: 100vh;
    }
    
    .quiz-container .sidebar {
        position: fixed !important;
        top: 0 !important;
        left: -100% !important;
        width: 80% !important;
        max-width: 300px !important;
        height: 100vh !important;
        padding: 80px 20px 20px !important;
        border-radius: 0 !important;
        z-index: 10001 !important; /* Por encima del navbar y overlay, pero por debajo del botón */
        overflow-y: auto !important;
        transition: left 0.3s ease !important;
        background: linear-gradient(135deg, #6b8fa0 0%, #5a7a89 100%) !important;
        color: white !important;
        box-shadow: 2px 0 10px rgba(0,0,0,0.3) !important;
    }
    
    .quiz-container .sidebar.active {
        left: 0px !important;
        display: block !important;
        transform: translateX(0) !important;
    }
    
    /* Regla adicional super específica para asegurar que funcione */
    @media (max-width: 768px) {
        .quiz-container .sidebar.active {
            left: 0px !important;
            transform: translateX(0px) !important;
        }
    }
    
    .sidebar h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .sidebar p {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .sidebar-header {
        padding-left: 0;
        text-align: center;
    }
    
    .nav-item {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .nav-item .number, .nav-item .text {
        font-size: 14px;
    }
    
    .main-content {
        padding: 80px 15px 15px;
        width: 100%;
    }
    
    .questions-block {
        padding: 0px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .section-number {
        font-size: 24px;
    }
    
    .section-title {
        font-size: 18px;
        line-height: 1.3;
    }
    
    .question-block {
        margin-bottom: 20px;
    }
    
    .question-label {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .question-text {
        font-size: 16px;
        line-height: 1.4;
        margin-bottom: 15px;
    }
    
    .question-input {
        font-size: 16px;
        padding: 12px;
    }
    
    .options-container {
        gap: 10px;
    }
    
    .option-item {
        padding: 12px 15px;
        margin-bottom: 8px;
    }
    
    .option-item label {
        font-size: 14px;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 10px;
        margin-top: 30px;
    }
    
    .btn {
        width: 100%;
        padding: 15px;
        font-size: 16px;
    }
    
    .dimensions-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .dimension-card {

    }
    
    .dimension-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .dimension-score {
        font-size: 20px;
    }
    
    .progress-bar {
        height: 6px;
    }
}

/* Tablet styles */
@media (min-width: 481px) and (max-width: 1245px) {
    .quiz-container {
        flex-direction: column;
        margin: 20px;
    }
    .sidebar {
        width: 100%;
        padding: 25px;
        border-radius: 10px 10px 0 0;
    }
}
@media (min-width: 481px) and (max-width: 768px) {
    .quiz-container {
        flex-direction: column;
        margin: 20px;
    }
    
    .sidebar {
        width: 100%;
        padding: 25px;
        border-radius: 10px 10px 0 0;
    }
    
    .sidebar-header {
        padding-left: 20px;
    }
    
    .main-content {
        padding: 25px;
        border-radius: 0 0 10px 10px;
    }
    
    .section-header {
        flex-direction: row;
        align-items: center;
    }
    
    .navigation-buttons {
        flex-direction: row;
        gap: 15px;
    }
    
    .btn {
        min-width: 150px;
    }
    
    .dimensions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .quiz-container {
        /* max-width: 1200px; */
        /* margin: 40px auto; */
    }
    
    .sidebar {
        /* width: 466px; */
        min-height: 600px;
    }
    
    .main-content {
        flex: 1;
        padding: 40px;
    }
}

/* Large desktop */
@media (min-width: 1200px) {
    .quiz-container {
        /* max-width: 1400px; */
    }
    
    .main-content {
        padding: 0px 60px;
    }
}

/* Extra large desktop - Apply sticky positioning */
@media (min-width: 1246px) {
    .sidebar {
        position: sticky;
        top: 140px;
    }
}


/* Estilos responsive para score-display */
@media (max-width: 767px) {
    .autoevaluacion-quiz .score-display {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin: 20px 0px !important;
    }
    
    .autoevaluacion-quiz .score-number {
        font-size: 48px !important;
        line-height: 1.2 !important;
        margin-bottom: 10px !important;
    }
    
    .autoevaluacion-quiz .score-text {
        font-size: 24px !important;
        line-height: 1.3 !important;
        margin-left: 0px !important;
    }
}

/* Para dispositivos muy pequeños (menos de 480px) */
@media (max-width: 479px) {
    .autoevaluacion-quiz .score-number {
        font-size: 40px !important;
    }
    
    .autoevaluacion-quiz .score-text {
        font-size: 20px !important;
    }
}