* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a6d38 0%, #34a853 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 800px;
    overflow: hidden;
}

header {
    background: linear-gradient(135deg, #1a6d38 0%, #34a853 100%);
    color: white;
    padding: 25px;
    text-align: center;
    position: relative;
}

.logo-container {
    margin-bottom: 15px;
}

.logo {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
}

h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.rating-section {
    padding: 40px 30px;
    text-align: center;
}

.question {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: #1a6d38;
}

.emojis-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.emoji-option {
    cursor: pointer;
    transition: transform 0.3s, opacity 0.3s;
    padding: 15px;
    border-radius: 15px;
    margin: 10px;
    flex: 1;
    min-width: 120px;
    max-width: 150px;
}

.emoji-option:hover {
    transform: translateY(-5px);
    background-color: #f0fff4;
}

.emoji-option.selected {
    background-color: #e6f4ea;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(26, 109, 56, 0.2);
    border: 2px solid #34a853;
}

.emoji {
    font-size: 4rem;
    margin-bottom: 10px;
}

.emoji-label {
    font-size: 1rem;
    color: #1a6d38;
    font-weight: 500;
}

.comment-section {
    margin-top: 30px;
    text-align: left;
}

.comment-section label {
    display: block;
    margin-bottom: 10px;
    color: #1a6d38;
    font-weight: 500;
}

textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    resize: vertical;
    min-height: 100px;
    font-size: 1rem;
    margin-top: 10px;
    border: 2px solid #e0e0e0;
    transition: border-color 0.3s;
}

textarea:focus {
    outline: none;
    border-color: #34a853;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

button {
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.submit-btn {
    background: linear-gradient(135deg, #1a6d38 0%, #34a853 100%);
    color: white;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 109, 56, 0.4);
}

.reset-btn {
    background-color: #e0e0e0;
    color: #333;
}

.reset-btn:hover {
    background-color: #d0d0d0;
}

.thank-you {
    display: none;
    padding: 40px 30px;
    text-align: center;
}

.thank-you h2 {
    color: #1a6d38;
    margin-bottom: 20px;
}

.thank-you p {
    color: #555;
    font-size: 1.1rem;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    padding: 20px;
    background-color: #f0fff4;
    border-radius: 10px;
    margin: 10px;
    min-width: 150px;
    border: 1px solid #34a853;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: #1a6d38;
}

.stat-label {
    color: #34a853;
    margin-top: 5px;
}

.loading {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #34a853;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Estilos para el popup */
.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: white;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 400px;
    width: 90%;
}

.popup h2 {
    color: #1a6d38;
    margin-bottom: 15px;
}

.popup p {
    color: #555;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

/* Eliminar secciones que ya no se usan */
.thank-you {
    display: none !important;
}

.comment-section {
    display: none !important;
}

/* Animaciones específicas para cada emoji */
.emoji-option[data-value="5"] .emoji:hover { 
    animation: heartBeat 0.8s ease; 
}

.emoji-option[data-value="4"] .emoji:hover { 
    animation: bounce 0.5s ease; 
}

.emoji-option[data-value="3"] .emoji:hover { 
    animation: shake 0.5s ease; 
}

.emoji-option[data-value="2"] .emoji:hover { 
    animation: wobble 0.5s ease; 
}

.emoji-option[data-value="1"] .emoji:hover { 
    animation: rage 0.5s ease; 
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

@keyframes wobble {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-5deg); }
    75% { transform: rotate(5deg); }
}

@keyframes rage {
    0% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.3) rotate(5deg); }
    75% { transform: scale(1.2) rotate(-5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

@media (max-width: 600px) {
    .emojis-container {
        flex-direction: column;
        align-items: center;
    }
    
    .emoji-option {
        width: 100%;
        max-width: 200px;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    button {
        width: 100%;
        max-width: 250px;
    }
}