:root {
    --bg-color: #f7f9fc;
    --text-color: #2d3748;
    --primary-color: #4a5568;
    --accent-color: #f6ad55; /* Naranja/Amarillo suave */
    --flower-yellow: #fcd34d;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    transition: background-color 1.5s ease-in-out;
    background-size: cover;
    background-position: center;
}

#app {
    width: 100%;
    max-width: 600px;
    padding: 20px;
}

.container {
    background: rgba(255, 255, 255, 0.9);
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    text-align: center;
    transition: opacity 0.5s ease, transform 0.5s ease;
    backdrop-filter: blur(5px);
}

.hidden {
    display: none !important;
}

h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #4a5568;
}

.question {
    margin-bottom: 25px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
}

select, input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s;
    background-color: white;
}

select:focus, input:focus {
    outline: none;
    border-color: var(--accent-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.1s;
}

button:hover {
    background-color: #2d3748;
}

button:active {
    transform: scale(0.98);
}

/* Loader */
.loader {
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px auto;
}

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

/* Reveal State */
body.revealed {
    /* Background set dynamically by JS, but fallback to yellow */
    background-color: #fef3c7;
    color: #451a03;
}

#reveal-container {
    background: rgba(255, 255, 255, 0.85);
    border: 3px solid var(--flower-yellow);
}

.reveal-title {
    color: #d97706;
    font-size: 2.5rem;
}

#generated-message {
    font-size: 1.3rem;
    line-height: 1.6;
    font-style: italic;
    color: #78350f;
    margin: 30px 0;
    padding: 20px;
    background: rgba(252, 211, 77, 0.2);
    border-radius: 15px;
    border-left: 5px solid var(--flower-yellow);
}

#reset-btn {
    background-color: #d97706;
}

#reset-btn:hover {
    background-color: #b45309;
}
