/* ==================== VARIABLES ==================== */
:root {
    /* Tema Claro (Default) */
    --bg-color: #faf6ee;
    --surface: #ffffff;
    --text-primary: #1a1510;
    --text-secondary: #6a5a40;
    --accent: #c8953a;
    --accent-hover: #e0b85a;
    --border: rgba(200,149,58,0.25);
    
    --font-serif: 'Cormorant Garamond', serif;
    --font-sans: 'Jost', sans-serif;
    
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    /* Tema Oscuro */
    --bg-color: #0d0c0a;
    --surface: #161410;
    --text-primary: #f0e0b0;
    --text-secondary: #c8b898;
    --accent: #c8953a;
    --accent-hover: #e0b85a;
    --border: rgba(200,149,58,0.25);
}

/* ==================== RESET & GLOBAL ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    transition: var(--transition);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

h1, h2, h3, h4, .serif {
    font-family: var(--font-serif);
    font-weight: 400;
}

.container {
    width: 100%;
    max-width: 600px;
    background-color: var(--surface);
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

[data-theme="dark"] .container {
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.title {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-style: italic;
    text-align: center;
    line-height: 1.1;
}

.subtitle {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
}

.desc {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

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

/* ==================== STEPS ==================== */
.step {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==================== FORMS ==================== */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 400;
    color: var(--text-primary);
}

.input-text {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-color);
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

.input-text:focus {
    border-color: var(--accent);
}

/* ==================== SERVICE CARDS ==================== */
.service-options {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.service-card {
    flex: 1;
    min-width: 150px;
    cursor: pointer;
}

.service-card input {
    display: none;
}

.service-card .card-content {
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--bg-color);
    color: var(--text-secondary);
    transition: var(--transition);
    user-select: none;
}

.service-card input:checked + .card-content {
    background: rgba(200,149,58,0.1);
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 500;
}

/* ==================== BUTTONS ==================== */
.btn {
    display: inline-block;
    width: 100%;
    padding: 16px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--accent);
    color: #1a1510; /* Always dark text on gold bg */
}

.btn-primary:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
}

.btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-facebook {
    background: #1877F2;
    color: #ffffff;
    text-decoration: none;
}
.btn-facebook:hover {
    background: #166fe5;
}

.error-msg {
    color: #d9534f;
    font-size: 0.9rem;
    margin-top: 1rem;
    text-align: center;
    display: none;
}

/* ==================== QUESTIONS & STARS ==================== */
.question-block {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.question-text {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.stars {
    display: flex;
    gap: 0.5rem;
    flex-direction: row-reverse;
    justify-content: flex-end;
}

.star-input {
    display: none;
}

.star-label {
    font-size: 2.5rem;
    color: var(--border);
    cursor: pointer;
    transition: color 0.2s;
}

/* Hover effect: highlights current and all previous stars (works because of flex-direction: row-reverse) */
.star-label:hover,
.star-label:hover ~ .star-label,
.star-input:checked ~ .star-label {
    color: var(--accent);
}

/* ==================== THEME TOGGLE ==================== */
.theme-switch-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
}

.theme-switch {
    display: inline-block;
    height: 34px;
    position: relative;
    width: 60px;
}

.theme-switch input {
    display: none;
}

.slider {
    background-color: #ccc;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: .4s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5px;
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    background-color: #fff;
    bottom: 4px;
    content: "";
    height: 26px;
    left: 4px;
    position: absolute;
    transition: .4s;
    width: 26px;
    border-radius: 50%;
    z-index: 2;
}

input:checked + .slider {
    background-color: var(--surface2);
    border: 1px solid var(--border);
}

input:checked + .slider:before {
    transform: translateX(26px);
    background-color: var(--accent);
}

.icon-sun, .icon-moon {
    font-size: 14px;
    z-index: 1;
}

/* ==================== SUCCESS ICON ==================== */
.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(200,149,58,0.1);
    color: var(--accent);
    font-size: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    border: 2px solid var(--accent);
}
