@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Montserrat', sans-serif;
    background: #F9F9F9;
    min-height: 100vh;
    padding: 20px;
    color: #444444;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(136, 136, 136, 0.15);
    overflow: hidden;
    border: 1px solid #f5f5f5;
}

.header {
    background: linear-gradient(135deg, #ffffff 0%, #fdf6e3 100%);
    color: #AC996C;
    padding: 40px;
    text-align: center;
    border-bottom: 2px solid #AC996C;
}

.header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 15px;
    color: #AC996C;
    letter-spacing: -0.5px;
}

/* GAMIFICACIÓN Y ELEMENTOS VISUALES */
.points-display {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #AC996C, #AC996C);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9em;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
    z-index: 1000;
}

.badge-notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    z-index: 1001;
    display: none;
    border: 3px solid #AC996C;
}

.badge-icon {
    font-size: 3em;
    margin-bottom: 15px;
}

.tooltip {
    position: relative;
    display: inline-block;
    cursor: help;
    color: #AC996C;
    font-weight: 600;
    border-bottom: 1px dotted #AC996C;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: #AC996C;
    color: #fff;
    text-align: left;
    border-radius: 8px;
    padding: 12px;
    position: absolute;
    z-index: 1002;
    bottom: 125%;
    left: 50%;
    margin-left: -150px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
    line-height: 1.4;
    font-weight: 400;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

.section-completion {
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 10px;
    border-left: 4px solid #AC996C;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #AC996C;
}

.micro-feedback {
    background: #e8f5e8;
    padding: 10px 15px;
    border-radius: 20px;
    margin: 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #27ae60;
    font-weight: 500;
    display: none;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-icon {
    font-size: 1.5em;
    margin-right: 10px;
    vertical-align: middle;
}

.health-tip {
    background: linear-gradient(135deg, #fff9e6, #ffffff);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #f39c12;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: #666666;
    display: none;
}

.health-tip-icon {
    color: #f39c12;
    margin-right: 8px;
}

.header p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.2em;
    color: #666666;
    line-height: 1.4;
}

.progress-container {
    background: #fafafa;
    padding: 25px 35px;
    border-bottom: 1px solid #e8e8e8;
}

.progress-bar {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #AC996C, #AC996C);
    width: 0%;
    transition: width 0.4s ease;
    border-radius: 3px;
}

.progress-text {
    text-align: center;
    margin-top: 12px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #444444;
    font-size: 0.95em;
}

.section-indicator {
    text-align: center;
    margin: 18px 0;
    padding: 12px;
    background: #ffffff;
    border-radius: 8px;
    color: #666666;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    border: 1px solid #e8e8e8;
    font-size: 0.9em;
}

.form-section {
    padding: 40px;
    display: none;
}

.form-section.active {
    display: block;
}

.step-number {
    display: inline-block;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #AC996C, #AC996C);
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 45px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1em;
    margin-bottom: 25px;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3);
}

.question-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    font-weight: 600;
    color: #AC996C;
    margin-bottom: 25px;
    line-height: 1.5;
}

.question-options {
    margin-bottom: 30px;
}

.option-group {
    margin-bottom: 15px;
}

.option-input {
    margin-right: 10px;
    transform: scale(1.2);
    accent-color: #AC996C;
}

label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: #666666;
    font-size: 0.95em;
    margin-bottom: 8px;
    display: block;
}

select {
    font-family: 'Montserrat', sans-serif;
}

.option-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: #666666;
    cursor: pointer;
    display: inline-block;
    padding: 14px 0;
    transition: color 0.3s ease;
}

.option-label:hover {
    color: #AC996C;
}

.text-input,
.number-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 400;
    color: #AC996C;
    background: #fafafa;
    transition: all 0.3s ease;
}

.text-input:focus,
.number-input:focus {
    outline: none;
    border-color: #AC996C;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.scale-container {
    margin: 20px 0;
}

.scale-input {
    width: 100%;
    margin: 15px 0;
    touch-action: none;
    /* Enables fluid dragging on touch devices */
    cursor: grab;
}

.scale-input:active {
    cursor: grabbing;
}

.scale-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85em;
    font-weight: 500;
    color: #888888;
}

.uncertainty-option {
    margin-top: 25px;
    padding: 18px;
    background: #f9f9f9;
    border-radius: 10px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    cursor: pointer;
}

.uncertainty-option:hover {
    background: #f0f0f0;
    border-color: #AC996C;
}

.uncertainty-option.selected {
    border-color: #AC996C;
    background: #fff9e6;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.2);
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
}

.btn {
    padding: 16px 32px;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-prev {
    background: #f5f5f5;
    color: #666666;
    border: 1px solid #e0e0e0;
}

.btn-prev:hover {
    background: #e8e8e8;
    color: #444444;
}

.btn-next {
    background: linear-gradient(135deg, #AC996C, #AC996C);
    color: white;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-next:hover {
    background: linear-gradient(135deg, #AC996C, #AC996C);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

.btn-next:disabled {
    background: #e0e0e0;
    color: #999999;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loading {
    text-align: center;
    padding: 40px;
}

.spinner {
    border: 3px solid #f0f0f0;
    border-top: 3px solid #AC996C;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error {
    color: #d32f2f;
    margin-top: 15px;
    padding: 12px;
    background: #ffebee;
    border-radius: 6px;
    display: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    border-left: 4px solid #d32f2f;
}

.success {
    text-align: center;
    padding: 50px;
    color: #AC996C;
}

.success h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #AC996C;
    margin-bottom: 15px;
    font-size: 2em;
}

.success p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    color: #666666;
    margin-bottom: 25px;
}

.results-link {
    display: inline-block;
    margin-top: 25px;
    padding: 18px 36px;
    background: linear-gradient(135deg, #AC996C, #AC996C);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.1em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.results-link:hover {
    background: linear-gradient(135deg, #AC996C, #AC996C);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.4);
}

@media (max-width: 768px) {
    .container {
        margin: 10px;
        border-radius: 15px;
    }

    .header {
        padding: 20px;
    }

    .header h1 {
        font-size: 2em;
    }

    .form-section {
        padding: 20px;
    }

    .button-group {
        flex-direction: column;
        gap: 15px;
    }
}

/* RESPONSIVE FIXES */
@media (max-width: 768px) {
    body {
        padding: 0;
    }

    .container {
        margin: 0;
        border-radius: 0;
        border: none;
    }

    .header {
        padding: 30px 15px;
    }

    .header h1 {
        font-size: 2em;
    }

    .form-section {
        padding: 20px 15px;
    }

    .button-group {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
    }

    .points-display {
        top: 10px;
        right: 10px;
        padding: 5px 12px;
        font-size: 0.8em;
    }
}