/* ====================================
   ESTILOS GENERALES
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url("images/fondo-test-vocacional.webp");
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background-size: cover;
    background-position: center;
}
/* ====================================
   CONTENEDOR PRINCIPAL
   ==================================== */
.test-container {
    background: white;
    border-radius: 20px; 
    max-width: 1000px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    margin-top: -20px;
}

.test-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #660066, #3b82f6, #f97316, #fb923c);
}

/* ====================================
   HEADER
   ==================================== */
.ucompensar-header {
    text-align: center;
    /* margin-bottom: 40px; */
    /* padding-bottom: 20px; */
    /* border-bottom: 2px solid #f1f5f9; */
    /* margin-top: -20px; */
    height: 300px;
    overflow: hidden;
}
.ucompensar-header h1 {
    color: #660066;
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.ucompensar-header .subtitle {
    color: #f97316;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.ucompensar-header p {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* ====================================
   BARRA DE PROGRESO
   ==================================== */
.progress-container {
    margin-bottom: 35px;
    padding:20px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e2e8f0;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #660066, #f97316);
    transition: width 0.4s ease;
    border-radius: 5px;
}

.progress-text {
    text-align: center;
    margin-top: 12px;
    color: #475569;
    font-size: 1rem;
    font-weight: 600;
}

/* ====================================
   PANTALLAS
   ==================================== */
.welcome-screen, .form-screen, .question-screen, .results-screen {
    display: none;
    animation: fadeIn 0.5s ease;
}

.welcome-screen.active, .form-screen.active, .question-screen.active, .results-screen.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====================================
   PANTALLA DE BIENVENIDA
   ==================================== */
.welcome-content, .form-content {
    text-align: center;
}

.welcome-content h2, .form-content h2 {
    color: #660066;
    font-size: 2.2rem;
    margin-bottom: 25px;
    font-weight: 700;
}

.welcome-content p, .form-content p {
    color: #475569;
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

/* ====================================
   FORMULARIO SALESFORCE
   ==================================== */
.salesforce-form-container {
    background: #f8fafc;
    padding: 30px;
    border-radius: 15px;
    margin: 30px 0;
    border: 2px solid #e2e8f0;
}

.salesforce-form-container h3 {
    color: #660066;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #475569;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: left;
}

.form-group input, .form-group select {
    padding: 12px;
    border: 2px solid #e2e8f0;
    font-size: 1rem;
    transition: all 0.3s ease;
    border-radius: 25px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 3px;
    transform: scale(1.2);
    cursor: pointer;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
    cursor: pointer;
}

.form-success {
    background: #10b981;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-top: 20px;
    display: none;
}

/* ====================================
   PREGUNTAS
   ==================================== */
.question-content h2 {
    color: #660066;
    font-size: 1.5rem;
    margin-bottom: 35px;
    line-height: 1.4;
    text-align: center;
    padding: 20px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    border-left: 5px solid #f97316;
    height: 100px;
}

.interest-scale {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 15px;
    margin-bottom: 40px;
    padding: 30px;
    background: #f8fafc;
    border-radius: 15px;
    border: 2px solid #e2e8f0;
}

.scale-option {
    text-align: center;
    padding: 25px 15px;
    border: 3px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    min-height: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.scale-option:hover {
    border-color: #3b82f6;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

img.icon-w-int {
    width: 150%;
}

.scale-option.selected {
    border-color: #660066;
    background: linear-gradient(135deg, #660066, #3b82f6);
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 35px rgba(30, 58, 138, 0.3);
}

.scale-number {
    position: absolute;
    top: -10px;
    background: rgba(0,0,0,0.1);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.scale-option.selected .scale-number {
    background: rgba(255,255,255,0.2);
    color: white;
}

/* ====================================
   NAVEGACIÓN
   ==================================== */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
}

/* ====================================
   BOTONES
   ==================================== */
.btn {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #660066, #3b82f6);
    color: white;
    box-shadow: 0 8px 20px rgba(30, 58, 138, 0.3);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(30, 58, 138, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #660066;
    border: 3px solid #660066;
}

.btn-secondary:hover {
    background: #660066;
    color: white;
    transform: translateY(-3px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ====================================
   RESULTADOS
   ==================================== */
.results-content {
    text-align: center;
}

.results-content h2 {
    color: #660066;
    font-size: 2.5rem;
    margin-bottom: 30px;
    font-weight: 800;
}

.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 80%;
    margin: 40px auto;
}

.stat-card {
    background: #660066;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    border-top: 4px solid #f97316;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 10px;
}

.stat-label {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ====================================
   PERFIL VOCACIONAL
   ==================================== */
.vocational-profile {
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 20px;
    padding: 35px;
    margin: 40px 0;
    border: 3px solid #e2e8f0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.vocational-profile h3 {
    color: #660066;
    font-size: 2rem;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.vocational-profile .profile-icon {
    font-size: 2.5rem;
}

.vocational-profile .profile-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border-left: 6px solid #f97316;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    margin-top: 25px;
}

.vocational-profile .profile-description {
    color: #475569;
    font-size: 1.15rem;
    line-height: 1.8;
    text-align: left;
    margin-bottom: 25px;
}

.vocational-profile .related-programs {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 2px solid #e2e8f0;
}

.vocational-profile .related-programs h4 {
    color: #660066;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.vocational-profile .program-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.vocational-profile .program-tag {
    background: #660066;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ====================================
   TABLA DE DIMENSIONES VOCACIONALES
   ==================================== */
.dimensions-table {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.dimension-row {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border-left: 5px solid #3b82f6;
    transition: all 0.3s ease;
}

.dimension-row:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.dimension-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.dimension-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: #660066;
}

.dimension-icon {
    font-size: 1.8rem;
}

.dimension-score {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f97316;
    background: white;
    padding: 8px 20px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.dimension-description {
    color: #475569;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: left;
}

.dimension-programs {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}

.program-tags-small {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.program-tag-small {
    background: #660066;
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
}


/* ====================================
   GRÁFICOS
   ==================================== */
.charts-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}

.chart-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.chart-card h3 {
    color: #660066;
    font-size: 1.3rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

/* ====================================
   COMPONENTES
   ==================================== */
.component-results {
    display: grid;
    gap: 6px;
    margin: 40px 0;
    padding: 25px;
    box-shadow: #ccc 0px 0px 14px;
    border-radius: 20px;
}

.component-bar {
    background: white;
    /* padding: 25px; */
    border-radius: 15px;
    /* box-shadow: 0 5px 20px rgba(0,0,0,0.08); */
}
.component-bar h4 {
    color: #660066;
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: bolder;
    text-align: left;
}

.progress-bar-component {
    width: 100%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill-component {
    height: 100%;
    border-radius: 10px;
    transition: width 1s ease;
    position: relative;
}

.progress-fill-component::after {
    content: attr(data-score);
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}

/* ====================================
   RECOMENDACIONES DE PROGRAMAS
   ==================================== */
.program-recommendations {
    margin: 40px 0;
    padding: 30px;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 20px;
    border: 3px solid #e2e8f0;
}
.program-recommendations h3 {
    color: #660066;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
    font-weight: 800;
}

.program-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    border-left: 6px solid #f97316;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    margin: 1.5%;
}

.program-card::before {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #660066, #3b82f6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
}

.program-card h4 {
    color: #660066;
    font-size: 1.4rem;
    margin-bottom: 12px;
    font-weight: 700;
    /* padding-right: 60px; */
}

.program-score {
    color: #f97316;
    font-weight: 800;
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.program-description {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* ====================================
   SECCIÓN DE EXPORTACIÓN
   ==================================== */
.export-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #e2e8f0;
}

/* ====================================
   RESPONSIVE
   ==================================== */
@media (max-width: 768px) {
	
	.padding-container-w {
    padding: 0 !important;
}
	
	.salesforce-form-container {

    padding: 12px;
}
	
	.question-content h2 {
    height: 200px;
	font-size: 1.3rem;
}
	
	.ucompensar-header{
    display: none;
}
	
    .test-container {
        padding: 25px;
        margin: 10px;
    }

    .ucompensar-header h1 {
        font-size: 2.2rem;
    }

    .charts-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .interest-scale {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 20px;
    }

    .scale-option {
        min-height: 80px;
        padding: 15px 10px;
        font-size: 0.8rem;
    }

    .navigation {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        width: 100%;
        padding: 12px 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .vocational-profile {
        padding: 20px;
    }

    .vocational-profile h3 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }

    .vocational-profile .profile-content {
        padding: 20px;
    }

    .dimensions-table {
        gap: 15px;
    }

    .dimension-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dimension-title {
        font-size: 1.1rem;
    }

    .dimension-icon {
        font-size: 1.5rem;
    }

    .dimension-score {
        font-size: 1.2rem;
        padding: 6px 15px;
    }

    .dimension-description {
        font-size: 0.95rem;
    }

    .program-tag-small {
        font-size: 0.8rem;
        padding: 4px 10px;
    }
}
