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

:root {
    --primary-color: #0000ff;
    --primary-hover: #0000d6;
    --primary-shadow: 0 10px 22px rgba(0, 0, 255, 0.28);
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --bg-color: #f5f7fa;
    --card-bg: #ffffff;
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Gotham', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #0804fc;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    color: var(--text-primary);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 100%;
    max-width: 480px;
    min-height: auto;
}

/* Header */
.header {
    text-align: center;
    color: white;
    margin-bottom: 24px;
}

.logo {
    display: inline-block;
    margin: 0 auto 16px;
    text-align: center;
    padding: 12px;
    background: rgb(255, 255, 255);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    max-width: 120px;
    max-height: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.header h1 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    opacity: 0.9;
}

/* Card */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s ease-out;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    width: 100%;
}

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

.card h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
    text-align: left;
    width: 100%;
    line-height: 1.2;
}

.card-description {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 32px;
    line-height: 1.5;
    text-align: left;
    width: 100%;
}

/* Screens */
.screen {
    display: none;
}

.screen.active {
    display: block;
}

/* Form */
form {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group {
    margin-bottom: 24px;
    width: 100%;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

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

.form-group input:disabled {
    background: #f8f9fa;
    cursor: not-allowed;
}

/* Buttons */
.btn-primary {
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(180deg, #0a06ff 0%, #0000ff 100%);
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 4px;
    box-shadow: var(--primary-shadow);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(180deg, #0804fc 0%, var(--primary-hover) 100%);
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 0, 255, 0.34);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(0, 0, 255, 0.26);
}

.btn-primary:disabled {
    background: var(--secondary-color);
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-secondary {
    width: 100%;
    padding: 14px 24px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 16px;
}

.btn-secondary:hover {
    background: rgba(0, 0, 255, 0.06);
}

.btn-link {
    width: 100%;
    padding: 12px;
    background: transparent;
    color: var(--primary-color);
    border: none;
    border-radius: 999px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    margin-top: 12px;
    text-decoration: underline;
}

.btn-link:hover {
    color: var(--primary-hover);
}

/* Method Selection */
.method-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.method-card {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    width: 100%;
}

.method-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.method-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.method-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.method-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Questions */
#questions-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.question-item {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    width: 100%;
    max-width: 500px;
}

.question-item label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
    text-align: left;
}

.question-item .question-text,
#questions-current-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.questions-step,
#questions-step-label {
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

#questions-current-text {
    display: block;
    padding: 12px 0;
    font-size: 20px; /* 2x del base (14px) para la pregunta a responder */
}

#register-question-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.question-item input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
    font-family: inherit;
}

.question-item input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    margin-top: 16px;
}

.alert-error {
    background: #fee;
    border: 1px solid var(--error-color);
    color: #c0392b;
}

.alert-success {
    background: #efe;
    border: 1px solid var(--success-color);
    color: #229954;
}

.email-info {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--primary-color);
    text-align: center;
    font-weight: 600;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Result */
.result-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.result-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.result-icon.success {
    color: var(--success-color);
}

.result-icon.error {
    color: var(--error-color);
}

.result-card h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-primary);
    text-align: center;
    width: 100%;
}

.result-card p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
    text-align: center;
    width: 100%;
}

/* Loading */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Registro */
.register-link-p {
    margin-top: 20px;
    text-align: center;
}
.register-link {
    width: auto;
    margin: 0;
    cursor: pointer;
}
.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}
.register-questions-progress {
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

/* Área de respuesta desplegable dentro de cada tarjeta de pregunta */
.question-answer-area {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.question-answer-area .register-question-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 15px;
}
.question-answer-area .register-question-input:focus {
    outline: none;
    border-color: var(--primary-color);
}
.question-item .register-question-choose-btn {
    margin-top: 8px;
}

/* Responsive */
@media (max-width: 600px) {
    .card {
        padding: 24px;
    }
    
    .header h1 {
        font-size: 24px;
    }
}
