/* Reset y Variables */
:root {
    --primary-color: #2c2c2c;
    --secondary-color: #d4a574;
    --accent-color: #c99359;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --bg-light: #f5f5f5;
    --border-color: #ddd;
    --success-color: #4caf50;
    --error-color: #f44336;
    --metal-gradient: linear-gradient(135deg, #2c2c2c 0%, #434343 100%);
    --wood-gradient: linear-gradient(135deg, #d4a574 0%, #c99359 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header - Estilo industrial */
.header {
    background: white;
    color: var(--text-dark);
    padding: 1.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    border-bottom: 3px solid var(--accent-color);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.header-logo-section {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex: 1;
}

.header-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: #f9f9f9;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 2px solid var(--border-color);
}

.header-logo:hover {
    transform: scale(1.05) rotate(-2deg);
}

.header-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.logo {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin: 0;
    color: var(--primary-color);
    line-height: 1;
}

.tagline {
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin: 0;
}

.header-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--wood-gradient);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(212, 165, 116, 0.3);
}

.header-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.4);
}

/* Contenedor principal */
.main-container {
    flex: 1;
    padding: 3rem 0;
}

/* Banner de bienvenida */
.welcome-banner {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-top: 4px solid var(--accent-color);
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.welcome-text {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Barra de progreso */
.progress-container {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--wood-gradient);
    transition: width 0.4s ease;
    width: 14.28%; /* 1/7 steps */
}

.progress-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
    white-space: nowrap;
}

/* Formulario Survey */
.survey-form {
    background: white;
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--accent-color);
}

.step-description {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
select,
textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

input::placeholder,
textarea::placeholder {
    color: #999;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* File input */
.file-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
}

.file-input:hover { border-color: var(--accent-color); background: #f5f0eb; }

.file-hint {
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.3rem;
}

/* Checkbox Grid - Para áreas de especialización */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.checkbox-item {
    position: relative;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-label:hover {
    border-color: var(--accent-color);
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-label {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

.checkbox-icon {
    font-size: 2rem;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.checkbox-item input[type="checkbox"]:checked + .checkbox-label .checkbox-icon {
    filter: grayscale(0);
}

.checkbox-text {
    font-weight: 600;
    color: var(--text-dark);
}

/* Radio Groups */
.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.radio-label {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background: white;
    position: relative;
    user-select: none;
}

.radio-label:hover {
    border-color: var(--accent-color);
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-label:has(input[type="radio"]:checked) {
    background: var(--wood-gradient);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 8px rgba(212, 165, 116, 0.3);
    transform: translateY(-2px);
}

.radio-label span {
    color: var(--text-dark);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

.radio-label:has(input[type="radio"]:checked) span {
    color: white;
}

/* Checkbox inline para horarios y opciones múltiples */
.checkbox-inline {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.checkbox-inline label {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    user-select: none;
}

.checkbox-inline label:hover {
    border-color: var(--accent-color);
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.checkbox-inline input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-inline input[type="checkbox"]:checked + span,
.checkbox-inline input[type="checkbox"]:checked ~ span {
    color: white;
}

.checkbox-inline label:has(input[type="checkbox"]:checked) {
    background: var(--wood-gradient);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 8px rgba(212, 165, 116, 0.3);
    transform: translateY(-2px);
}

.checkbox-inline span {
    color: var(--text-dark);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

/* Single checkbox styling */
.checkbox-single {
    display: inline-flex;
    align-items: center;
    padding: 0.6rem 1.2rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    user-select: none;
}

.checkbox-single:hover {
    border-color: var(--accent-color);
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.checkbox-single input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.checkbox-single input[type="checkbox"]:checked + span,
.checkbox-single input[type="checkbox"]:checked ~ span {
    color: white;
}

.checkbox-single:has(input[type="checkbox"]:checked) {
    background: var(--wood-gradient);
    border-color: var(--accent-color);
    color: white;
    box-shadow: 0 4px 8px rgba(212, 165, 116, 0.3);
    transform: translateY(-2px);
}

.checkbox-single span {
    color: var(--text-dark);
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

/* Radio Cards para selección de perfil */
.radio-group-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.radio-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.radio-card-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.radio-card:hover .radio-card-content {
    border-color: var(--accent-color);
    background: #fafafa;
    transform: translateX(5px);
}

.radio-card input[type="radio"]:checked + .radio-card-content {
    border-color: var(--accent-color);
    background: linear-gradient(135deg, #fff5eb 0%, #fff 100%);
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.2);
}

.radio-icon {
    font-size: 2.5rem;
    filter: grayscale(0.5);
    transition: filter 0.3s ease;
}

.radio-card input[type="radio"]:checked + .radio-card-content .radio-icon {
    filter: grayscale(0);
}

.radio-card-content strong {
    display: block;
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.radio-card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

/* Checkbox list simple */
.checkbox-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkbox-simple {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.checkbox-simple:hover {
    border-color: var(--accent-color);
    background: #fafafa;
}

.checkbox-simple input[type="checkbox"] {
    margin-right: 0.75rem;
    width: auto;
    accent-color: var(--accent-color);
}

.checkbox-simple input[type="checkbox"]:checked {
    accent-color: var(--accent-color);
}

.checkbox-simple span {
    font-weight: 500;
    color: var(--text-dark);
}

/* Profile selector */
.profile-selector {
    padding: 1rem 0;
}

/* Skill Sections */
.skill-section {
    padding: 1.5rem;
    background: #f9f9f9;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-color);
}

.skill-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Error messages */
.error-message {
    display: none;
    color: var(--error-color);
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.error-message.show {
    display: block;
}

/* Navegación del formulario */
.form-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid #eee;
}

/* Botones */
.btn {
    padding: 0.9rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--wood-gradient);
    color: white;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(212, 165, 116, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(212, 165, 116, 0.4);
}

.btn-secondary {
    background: #e0e0e0;
    color: var(--text-dark);
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.btn-success {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* Mensaje de éxito */
.success-message {
    text-align: center;
    padding: 3rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.success-message h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.success-message p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 2rem 0;
    margin-top: auto;
    text-align: center;
}

.footer p {
    margin-bottom: 1rem;
    opacity: 0.9;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-links a:hover {
    color: white;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .header-logo-section {
        width: 100%;
    }
    
    .header-logo {
        width: 60px;
        height: 60px;
    }
    
    .logo {
        font-size: 1.6rem;
    }
    
    .tagline {
        font-size: 0.85rem;
    }
    
    .header-link {
        width: 100%;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    
    .welcome-banner {
        padding: 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .survey-form {
        padding: 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .checkbox-grid {
        grid-template-columns: 1fr;
    }
    
    .progress-container {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .progress-text {
        text-align: center;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-success {
        margin-left: 0;
    }
    
    .checkbox-inline label,
    .radio-label {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .checkbox-inline span,
    .radio-label span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 1rem 0;
    }
    
    .header-logo {
        width: 50px;
        height: 50px;
        padding: 0.35rem;
    }
    
    .header-text {
        gap: 0.15rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .tagline {
        font-size: 0.8rem;
    }
    
    .header-link {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .step-title {
        font-size: 1.3rem;
    }
    
    .checkbox-inline label,
    .radio-label {
        padding: 0.45rem 0.85rem;
        font-size: 0.85rem;
    }
    
    .checkbox-inline span,
    .radio-label span {
        font-size: 0.85rem;
    }
}
