:root {
    --color-primario: #667eea;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--color-primario) 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.geckofy-branding {
    position: fixed;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    color: #666;
    text-decoration: none;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    z-index: 1000;
}

.geckofy-branding:hover {
    background: rgba(255, 255, 255, 1);
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.container {
    max-width: 500px;
    width: 100%;
}

.form-container, .result-container {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease-out;
}

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

.header {
    text-align: center;
    margin-bottom: 30px;
}

.header h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.header p {
    color: #666;
    font-size: 16px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primario);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.experiencia-options {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    margin-top: 10px;
}

.radio-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px;
    border: 2px solid #e1e5e9;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.radio-option:hover {
    border-color: var(--color-primario);
    background-color: #f8f9ff;
}

.radio-option input[type="radio"] {
    display: none;
}

.radio-option input[type="radio"]:checked + .emoji {
    transform: scale(1.2);
}

.radio-option input[type="radio"]:checked ~ span {
    color: var(--color-primario);
    font-weight: 600;
}

.radio-option.feliz input[type="radio"]:checked ~ * {
    color: #10b981;
}

.radio-option.neutral input[type="radio"]:checked ~ * {
    color: #f59e0b;
}

.radio-option.enojado input[type="radio"]:checked ~ * {
    color: #ef4444;
}

.radio-option input[type="radio"]:checked {
    opacity: 1;
}

/* Agregar outline (borde) cuando se selecciona un emoticon */
.radio-option:has(input[type="radio"]:checked) {
    border-color: var(--color-primario);
    background-color: #f8f9ff;
}

/* Fallback para navegadores que no soportan :has() */
.radio-option.selected {
    border-color: var(--color-primario);
    background-color: #f8f9ff;
}

.radio-option .emoji {
    font-size: 32px;
    margin-bottom: 8px;
    transition: transform 0.2s ease;
}

.radio-option span {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, var(--color-primario) 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.loading {
    display: flex;
    align-items: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.success-header {
    text-align: center;
    margin-bottom: 30px;
}

.check-icon {
    width: 60px;
    height: 60px;
    background: #10b981;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.success-header h2 {
    color: #333;
    font-size: 24px;
}

.cupon-display {
    background: linear-gradient(135deg, #fef3c7, #fbbf24);
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
    border: 2px dashed #f59e0b;
}

.cupon-display h3 {
    color: #92400e;
    margin-bottom: 15px;
    font-size: 18px;
}

.cupon-code {
    background: white;
    color: #92400e;
    padding: 15px 20px;
    border-radius: 10px;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    border: 2px solid #f59e0b;
}

.cupon-display p {
    color: #92400e;
    font-size: 14px;
    font-weight: 500;
}

.envio-confirmacion {
    background: #ecfdf5;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #10b981;
}

.envio-confirmacion p {
    color: #065f46;
    margin-bottom: 8px;
    font-weight: 500;
}

.envio-confirmacion p:last-child {
    margin-bottom: 0;
}

.google-review {
    background: #f3f4f6;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
}

.divider {
    height: 2px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
    margin-bottom: 20px;
}

.google-review h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 18px;
}

.google-review p {
    color: #666;
    margin-bottom: 20px;
}

.google-btn {
    background: #4285f4;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.google-btn:hover {
    background: #3367d6;
}

.new-review-btn {
    width: 100%;
    background: #6b7280;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.new-review-btn:hover {
    background: #4b5563;
}

@media (max-width: 600px) {
    .form-container, .result-container {
        padding: 30px 20px;
    }
    
    .experiencia-options {
        flex-direction: column;
        gap: 10px;
    }
    
    .radio-option {
        flex-direction: row;
        justify-content: flex-start;
        padding: 15px;
    }
    
    .radio-option .emoji {
        margin-bottom: 0;
        margin-right: 15px;
        font-size: 24px;
    }
}