html {box-sizing: border-box;   }
*, *:before, *:after {box-sizing: inherit;}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #e8f5e8 0%, #f0f8f0 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.survey-container {
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background: white;
    border-radius: 20px;
    padding: 20px 30px;
    margin-bottom: 30px;
    color: #09392E;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 3px solid #B1795D;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    max-width: 200px;
    height: auto;
    display: block;
    object-fit: contain;
}

.bus-icon {
    width: 45px;
    height: 45px;
    background: #f97316;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 8px;
}

.bus-icon svg {
    width: 100%;
    height: 100%;
}

.brand-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-text {
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 1px;
    line-height: 1;
}

.stars {
    color: #fbbf24;
    font-size: 12px;
    margin-top: 2px;
}

.title-section {
    text-align: center;
}

.title-section h1 {
    margin: 0 0 10px 0;
    font-size: 28px;
    font-weight: bold;
    color: #09392E;
}

.title-section p {
    margin: 0;
    font-size: 16px;
    color: #09392E;
}

.message-section {
    text-align: right;
    font-size: 14px;
    color: #09392E;
}

.message-section p {
    margin: 5px 0;
}

.progress-section {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 3px solid #B1795D;
}

.progress-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    color: #2d5a3d;
    font-weight: 600;
}

.progress-icon {
    color: #22c55e;
}

.step-indicator {
    margin-left: auto;
    background: #f3f4f6;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.progress-bar {
    height: 8px;
    background: #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2d5a3d 0%, #22c55e 100%);
    transition: width 0.3s ease;
}

.questions-section {
    background: white;
    border-radius: 15px;
    padding: 30px 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    margin-bottom: 30px;
    border: 3px solid #B1795D;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f3f4f6;
}

.section-icon {
    color: #2d5a3d;
    font-size: 20px;
}

.rating-headers {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.rating-header {
    padding: 8px 16px;
    border-radius: 20px;
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 30px;
}

.question-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    background: #f9fafb;
    border-radius: 12px;
    border-left: 4px solid #e5e7eb;
}

.question-info {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 75%;
}

.question-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.question-text {
    font-weight: 500;
    color: #374151;
}

.rating-options {
    display: flex;
    gap: 25px;
    margin-left: 30px;
}

.rating-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 3px solid #e5e7eb;
    background: transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.rating-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.rating-btn.selected {
    border-color: transparent;
    transform: scale(1.1);
}

.checkmark {
    font-size: 20px;
}

.completion-status {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 12px;
    margin-bottom: 0;
}

.completion-icon {
    color: #22c55e;
}

.completion-dots {
    display: flex;
    gap: 8px;
    margin-left: auto;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    transition: background 0.2s ease;
}

.dot.completed {
    background: #22c55e;
}

.comments-section {
    background: white;
    border-radius: 15px;
    padding: 50px 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    border: 3px solid #B1795D;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #2d5a3d;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    margin: 0 auto 30px auto;
}

.comments-section h2 {
    color: #374151;
    margin-bottom: 30px;
    font-size: 22px;
    line-height: 1.4;
    text-align: center;
}

.textarea-container {
    margin: 0;
    padding: 0;
}

.textarea-container textarea {
    margin: 0 20px;
    width: calc(100% - 40px);
    min-height: 200px;
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 17px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.textarea-container textarea:focus {
    outline: none;
    border-color: #2d5a3d;
}

.char-counter-wrapper {
    width: calc(100% - 40px);
    margin: 8px 20px 0;
    text-align: right;
}

.char-count {
    font-size: 13px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-block;
}

.help-text {
    background: #fef3c7;
    padding: 20px;
    border-radius: 8px;
    color: #92400e;
    font-size: 16px;
    border-left: 4px solid #fbbf24;
    margin: 10px 20px 0 20px;
    box-sizing: border-box;
    text-align: left;
}

.navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 0 20px;
    margin-top: 30px;
    margin-bottom: 30px;
}

.nav-btn {
    padding: 16px 35px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    min-width: 160px;
}

.nav-btn.secondary {
    background: #f3f4f6;
    color: #6b7280;
}

.nav-btn.secondary:hover:not(:disabled) {
    background: #e5e7eb;
}

.nav-btn.primary {
    background: #2d5a3d;
    color: white;
}

.nav-btn.primary:hover:not(:disabled) {
    background: #1e3a29;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 90, 61, 0.3);
}

.nav-btn.submit {
    background: #f97316;
    color: white;
}

.nav-btn.submit:hover:not(:disabled) {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(249, 115, 22, 0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
    pointer-events: none;
}

/* Estilos de la página de agradecimiento */
.thanks-container {
    width: 95%;
    max-width: 1000px;
    padding: 20px;
    margin: 0 auto;
}

.thanks-card {
    background: #0c4a30;
    color: white;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #c69b63;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.success-icon::after {
    content: "🏆";
    position: absolute;
    top: -10px;
    right: -10px;
    background: #0c4a30;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #c69b63;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.checkmark-circle {
    width: 60px;
    height: 60px;
    background: #0c4a30;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkmark {
    color: white;
    font-size: 32px;
    font-weight: bold;
}

.thanks-card h1 {
    font-size: 32px;
    margin: 0;
    color: white;
}

.thanks-card .stars {
    color: #c69b63;
    font-size: 24px;
    letter-spacing: 8px;
}

.success-message {
    background: #1a5a3e;
    padding: 15px 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    color: #c69b63;
    font-size: 18px;
}

.message {
    margin: 0;
    font-size: 16px;
    max-width: 400px;
    line-height: 1.5;
}

.next-time {
    background: #1a5a3e;
    padding: 15px 20px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    font-size: 18px;
}

.footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.company {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 5px;
}

.slogan {
    font-size: 14px;
    opacity: 0.8;
    padding-bottom: 5%;
}

.redirect-btn {
    margin-top: 20px;
    background: #c69b63;
    color: #0c4a30;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.2s ease;
}

.redirect-btn:hover {
    background: #d5aa73;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 155, 99, 0.3);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .survey-container {
        padding: 15px;
    }

    .header, .progress-section, .questions-section, .comments-section {
        border-width: 2px;
    }

    .header {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 20px;
        padding: 15px;
    }

    .logo-section {
        justify-content: center;
    }

    .logo {
        max-width: 160px;
    }

    .brand-info {
        align-items: center;
    }

    .message-section {
        text-align: center;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .rating-headers {
        margin-left: 0;
    }

    .question-row {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .rating-options {
        align-self: stretch;
        justify-content: space-around;
        margin-left: 0;
    }

    .navigation {
        flex-direction: column;
    }

    .nav-btn {
        width: 100%;
    }

    .questions-section, .comments-section {
        padding: 20px 15px;
    }

    .thanks-card {
        padding: 30px 15px;
    }

    .thanks-card h1 {
        font-size: 28px;
    }

    .success-icon {
        width: 80px;
        height: 80px;
    }

    .thanks-card .stars {
        font-size: 20px;
    }
}
