* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #89D9A5 0%, #F2DB66 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.header {
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-bottom: 1px solid #e5e7eb;
}

.header-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-title {
    font-size: 2rem;
    font-weight: 300;
    color: #1f2937;
}

.header-title span {
    color: #10b981;
    font-weight: 500;
}

.header-subtitle {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

.assistant-info {
    text-align: right;
}

.assistant-label {
    font-size: 0.75rem;
    color: #9ca3af;
}

.assistant-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #10b981;
}

.main-content {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    display: flex;
    gap: 2rem;
}

.avatar-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.avatar-container {
    position: relative;
}

.avatar-glow {
    position: absolute;
    inset: 0;
    background: #10b981;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.2;
    transition: opacity 0.3s;
}

.avatar-glow.speaking {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.4; }
}

.avatar-frame {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    border: 4px solid #e5e7eb;
    transition: border-color 0.3s;
    max-width: 450px;
}

.avatar-frame.speaking {
    border-color: #10b981;
}

.avatar-image {
    width: 100%;
    height: auto;
    display: block;
}

.speaking-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(16, 185, 129, 0.9), transparent);
    padding: 1.5rem;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: white;
}

.speaking-indicator.active {
    display: flex;
}

.volume-icon {
    width: 24px;
    height: 24px;
    animation: pulse 2s infinite;
}

.answer-box {
    margin-top: 1.5rem;
    max-width: 450px;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
    display: none;
}

.answer-box.active {
    display: block;
}

.answer-text {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
}

.stop-button {
    margin-top: 1rem;
    width: 100%;
    background: #ef4444;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.stop-button:hover {
    background: #dc2626;
}

.questions-section {
    flex: 1;
}

.questions-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 1.5rem;
    border: 1px solid #e5e7eb;
}

.questions-title {
    font-size: 1.5rem;
    font-weight: 300;
    color: #1f2937;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 1rem;
}

.questions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.question-button {
    width: 100%;
    text-align: left;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 2px solid #e5e7eb;
    background: #f9fafb;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: start;
    gap: 0.75rem;
}

.question-button:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.question-button.selected {
    background: #f0fdf4;
    border-color: #10b981;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}

.question-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.question-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
}

.question-text {
    color: #374151;
    font-size: 0.875rem;
    line-height: 1.5;
    padding-top: 0.25rem;
}

.contact-card {
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    padding: 1.5rem;
    color: white;
}

.contact-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.footer {
    background: #1f2937;
    color: white;
    padding: 1rem 2rem;
    text-align: center;
}

.footer-text {
    font-size: 0.875rem;
    font-weight: 300;
}

@media (max-width: 1024px) {
    .main-content {
        flex-direction: column;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .assistant-info {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1.5rem;
    }
    
    .main-content {
        padding: 1rem;
    }
    
    .questions-list {
        max-height: 400px;
    }
}

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
}

.whatsapp-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

.whatsapp-button svg {
    width: 32px;
    height: 32px;
    fill: white;
}

@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-button svg {
        width: 30px;
        height: 30px;
    }
}