/* Estilos globales según la guía de diseño */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #F0F2F5;
    color: #333333;
    line-height: 1;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    margin-bottom: 20px;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #1A2B40;
}

.header h1 {
    color: #1A2B40;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress {
    height: 100%;
    background-color: #FF6B00;
    transition: width 0.3s ease;
}

.progress-text {
    color: #666;
    font-weight: 500;
}

.main-content {
    min-height: 500px;
}

.section-title {
    color: #1A2B40;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
}

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

.form-group label {
    display: block;
    color: #333333;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 1rem;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="number"]:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #FF6B00;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.radio-group,
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.radio-item,
.checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    background-color: #F8F9FA;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.radio-item:hover,
.checkbox-item:hover {
    background-color: #E8F4FD;
    border-color: #FF6B00;
}

.radio-item input[type="radio"],
.checkbox-item input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: #FF6B00;
}

.radio-item label,
.checkbox-item label {
    margin: 0;
    cursor: pointer;
    flex: 1;
    font-weight: 400;
}

.rating-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.rating-table th,
.rating-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid #E0E0E0;
}

.rating-table th {
    background-color: #1A2B40;
    color: white;
    font-weight: 600;
}

.rating-table td {
    background-color: #F8F9FA;
}

.rating-table input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #FF6B00;
}

.ranking-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #F8F9FA;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.ranking-item:hover {
    background-color: #E8F4FD;
    border-color: #FF6B00;
}

.ranking-item label {
    flex: 1;
    margin: 0;
    cursor: pointer;
}

.ranking-item select {
    width: 80px;
    padding: 8px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    background-color: white;
}

.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #E0E0E0;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: #FF6B40;
    color: white;
}

.btn-primary:hover {
    background-color: #E55A00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background-color: #1A2B40;
    color: white;
}

.btn-secondary:hover {
    background-color: #0F1A2B;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 43, 64, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #1A2B40;
    border: 2px solid #1A2B40;
}

.btn-outline:hover {
    background-color: #1A2B40;
    color: white;
}

.summary-section {
    background-color: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.summary-section h3 {
    color: #1A2B40;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.summary-item {
    margin-bottom: 10px;
    padding: 10px;
    background-color: white;
    border-radius: 6px;
    border-left: 4px solid #FF6B40;
}

.summary-item strong {
    color: #1A2B40;
}

.required {
    color: #FF6B40;
}

.error-message {
    color: #FF6B40;
    font-size: 0.9rem;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input,
.form-group.error textarea,
.form-group.error select {
    border-color: #FF6B40;
}

/* ===== ESTILOS DE SECCIONES DE ENCUESTA ===== */

.survey-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.section-title {
    color: #1A2B40;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E0E0E0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #FF6B00, #FF8C42);
    transition: width 0.3s ease;
}

.error-message {
    background-color: #FFE6E6;
    border: 2px solid #FF6B6B;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
}

.error-message h3 {
    color: #D63031;
    margin: 0 0 15px 0;
    font-size: 1.2rem;
}

.error-message ul {
    margin: 0;
    padding-left: 20px;
}

.error-message li {
    color: #D63031;
    margin-bottom: 5px;
}

.survey-form {
    text-align: left;
}

.question-group {
    margin-bottom: 40px;
    padding: 20px;
    background-color: #F8F9FA;
    border-radius: 8px;
    border-left: 4px solid #FF6B00;
}

.question-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1A2B40;
    display: flex;
    align-items: center;
    gap: 10px;
}

.question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1A2B40;
    margin: 0 0 20px 0;
}

.input-number {
    width: 80px;
    padding: 8px 12px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-size: 1rem;
    text-align: center;
}

.input-number:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.input-text-inline {
    width: 200px;
    padding: 6px 10px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-left: 10px;
}

.input-text-inline:focus {
    outline: none;
    border-color: #FF6B00;
}

.unit-text {
    white-space: nowrap;
    font-weight: 600;
    color: #1A2B40;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 2px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.radio-option:hover {
    background-color: #F0F2F5;
}

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

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #E0E0E0;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.radio-option input[type="radio"]:checked + .radio-custom {
    border-color: #FF6B00;
    background-color: #FF6B00;
}

.radio-option input[type="radio"]:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.radio-option span:not(.radio-custom) {
    font-size: 1rem;
    color: #333333;
    line-height: 1.4;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-option {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 5px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
}

.checkbox-option:hover {
    background-color: #F0F2F5;
}

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

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom {
    border-color: #FF6B00;
    background-color: #FF6B00;
}

.checkbox-option input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.checkbox-option span:not(.checkbox-custom) {
    font-size: 1rem;
    color: #333333;
    line-height: 1.4;
}

.aspects-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #E0E0E0;
}

.aspect-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #F0F0F0;
    transition: background-color 0.2s ease;
}

.aspect-row:hover {
    background-color: #F8F9FA;
}

.aspect-row:last-child {
    border-bottom: none;
}

.aspect-name {
    flex: 1;
    font-weight: 500;
    color: #333333;
    font-size: 0.95rem;
    line-height: 1.4;
}

.aspect-ratings {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rating-option {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.rating-custom {
    width: 35px;
    height: 35px;
    border: 2px solid #E0E0E0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #666666;
    transition: all 0.2s ease;
}

.rating-option input[type="radio"]:checked + .rating-custom {
    border-color: #FF6B00;
    background-color: #FF6B00;
    color: white;
}

.rating-option:hover .rating-custom {
    border-color: #FF6B00;
    background-color: #F0F2F5;
}

.ranking-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ranking-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: white;
    border-radius: 8px;
    border: 1px solid #E0E0E0;
    transition: all 0.3s ease;
    position: relative;
    margin-left: 20px;
    cursor: move;
}

.ranking-item:hover {
    border-color: #FF6B00;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.1);
}

.drag-handle {
    position: absolute;
    left: -25px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 12px;
    cursor: grab;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.ranking-item:hover .drag-handle {
    opacity: 1;
}

.drag-handle:active {
    cursor: grabbing;
}

.ranking-item.dragging {
    opacity: 0.5;
    transform: rotate(5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.ranking-number {
    position: absolute;
    left: -15px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: #FF6B00;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 2px 6px rgba(255, 107, 0, 0.3);
    transition: all 0.3s ease;
}

.ranking-label {
    font-weight: 500;
    color: #333333;
    flex: 1;
    margin-right: 20px;
    margin-left: 10px;
}

.ranking-select {
    padding: 8px 12px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-size: 1rem;
    background: white;
    min-width: 150px;
}

/* Ranking number colors based on position */
.ranking-number.rank-1 {
    background: #FF6B00;
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.4);
}

.ranking-number.rank-2 {
    background: #FF8C42;
    box-shadow: 0 2px 6px rgba(255, 140, 66, 0.3);
}

.ranking-number.rank-3 {
    background: #FFB366;
    box-shadow: 0 2px 6px rgba(255, 179, 102, 0.3);
}

.ranking-number.rank-4 {
    background: #FFD9B3;
    color: #333;
    box-shadow: 0 2px 6px rgba(255, 217, 179, 0.3);
}

.ranking-number.rank-5 {
    background: #E0E0E0;
    color: #666;
    box-shadow: 0 2px 6px rgba(224, 224, 224, 0.3);
}

/* Unranked items styling */
.ranking-item.unranked {
    opacity: 0.7;
    border-style: dashed;
    background: #F8F9FA;
}

.ranking-item.unranked .ranking-label {
    color: #999;
}

.ranking-item.unranked .ranking-select {
    border-color: #CCC;
    background: #F5F5F5;
}

.ranking-select:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.ranking-select.duplicate-error {
    border-color: #D63031;
    background-color: #FFE6E6;
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.1);
}

.ranking-error {
    color: #D63031;
    font-size: 0.85rem;
    margin-top: 5px;
    font-weight: 500;
}

.salary-inputs {
    margin-bottom: 20px;
}

.salary-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #333333;
}

.salary-input-container {
    display: inline-flex;
    align-items: center;
    position: relative;
    width: 150px;
}

.input-salary {
    width: 100%;
    padding: 8px 30px 8px 12px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-size: 1rem;
    text-align: right;
}

.input-salary:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.euro-symbol {
    position: absolute;
    right: 8px;
    color: #666;
    font-weight: 500;
    pointer-events: none;
    user-select: none;
}

.selection-counter {
    margin-top: 15px;
    padding: 10px;
    background-color: #E8F4FD;
    border-radius: 6px;
    text-align: center;
    font-weight: 500;
    color: #1A2B40;
}

.textarea-group {
    position: relative;
}

.textarea-large {
    width: 100%;
    padding: 15px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
}

.textarea-large:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.textarea-large::placeholder {
    color: #999999;
    font-style: italic;
}

.character-count {
    position: absolute;
    bottom: 10px;
    right: 15px;
    font-size: 0.85rem;
    color: #666666;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 6px;
    border-radius: 4px;
}

.character-count.warning {
    color: #FF6B00;
    font-weight: 600;
}

.character-count.error {
    color: #D63031;
    font-weight: 600;
}

/* ===== ESTILOS DE VALIDACIÓN DE FORMULARIOS ===== */

.question-group.error {
    border-left-color: #FF6B40;
    background-color: #FFF5F5;
}

.question-group.error .question-text,
.question-group.error .question-label {
    color: #D63031;
}

.field-error {
    color: #D63031;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 8px;
    padding: 8px 12px;
    background-color: #FFE6E6;
    border-radius: 4px;
    border-left: 3px solid #FF6B40;
    display: none;
}

.general-error {
    background-color: #FFE6E6;
    border: 2px solid #FF6B6B;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #D63031;
    font-weight: 500;
    display: none;
}

.form-actions {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #E0E0E0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn {
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.2rem;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B00, #FF8C42);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E55A00, #FF7A32);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.btn-secondary {
    background: #6C757D;
    color: white;
}

.btn-secondary:hover {
    background: #5A6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* ===== ESTILOS DE BIENVENIDA ===== */

.welcome-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.importance-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin: 40px 0;
    text-align: left;
}

.importance-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: #F8F9FA;
    border-radius: 12px;
    border-left: 4px solid #FF6B00;
    transition: all 0.3s ease;
}

.importance-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
    background: #E8F4FD;
}

.importance-icon {
    font-size: 2rem;
    flex-shrink: 0;
    margin-top: 5px;
}

.importance-text h4 {
    color: #1A2B40;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.importance-text p {
    color: #333333;
    line-height: 1.5;
    margin: 0;
}

.study-info {
    margin: 40px 0;
}

.study-invitation {
    background: linear-gradient(135deg, #1A2B40, #2C3E50);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    text-align: center;
}

.study-invitation h3 {
    color: white;
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.study-invitation p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.95;
}

.study-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.study-time,
.study-privacy {
    background-color: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FF6B00;
}

.study-time h3,
.study-privacy h3 {
    color: #1A2B40;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.study-time p,
.study-privacy p {
    color: #333333;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.welcome-title {
    color: #1A2B40;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.2;
}

.welcome-content {
    margin-bottom: 40px;
}

.welcome-description {
    font-size: 1.2rem;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.welcome-time,
.welcome-privacy {
    background-color: #F8F9FA;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #FF6B00;
}

.welcome-time h3,
.welcome-privacy h3 {
    color: #1A2B40;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.welcome-time p,
.welcome-privacy p {
    color: #333333;
    font-size: 1rem;
    line-height: 1.5;
    margin: 0;
}

.welcome-collaborators {
    margin: 40px 0;
}

.welcome-collaborators h3 {
    color: #1A2B40;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.collaborators-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.welcome-training-centers {
    margin: 40px 0;
}

.welcome-training-centers h3 {
    color: #1A2B40;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.training-centers-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.training-centers-logos .logo-placeholder {
    width: 125px;
    height: 125px;
    min-height: 125px;
    padding: 15px;
}

.training-centers-logos .logo-placeholder img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background-color: #F8F9FA;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    min-height: 80px;
}

.logo-placeholder:hover {
    border-color: #FF6B00;
    background-color: #E8F4FD;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 107, 0, 0.1);
}

.logo-placeholder img {
    max-width: 100%;
    max-height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.logo-placeholder span {
    font-size: 0.9rem;
    color: #666666;
    margin-top: 8px;
    font-weight: 500;
}

.welcome-actions {
    margin: 40px 0;
}

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

.auth-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.auth-icon {
    font-size: 1.3rem;
}

.auth-text {
    flex: 1;
}

.auth-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-actions .btn {
    min-width: 180px;
}

.welcome-footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #E0E0E0;
}

.welcome-note {
    color: #666666;
    font-style: italic;
    font-size: 0.95rem;
    margin: 0;
}

.legal-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #E0E0E0;
}

.legal-text {
    background-color: #F8F9FA;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #1A2B40;
}

.legal-disclaimer {
    color: #333333;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
}

.legal-disclaimer:last-child {
    margin-bottom: 0;
}

/* ===== ESTILOS DEL MODAL DE AUTORIZACIÓN ===== */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, #1A2B40, #2C3E50);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 600;
}

.close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: opacity 0.3s ease;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px 25px;
}

.modal-body p {
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 25px;
    text-align: center;
}

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

.modal-body input[type="text"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    text-align: center;
    letter-spacing: 1px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.modal-body input[type="text"]:focus {
    outline: none;
    border-color: #FF6B00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
    transform: scale(1.02);
}

.modal-body input[type="text"]::placeholder {
    color: #999999;
    font-weight: 400;
    letter-spacing: normal;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.modal-actions .btn {
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    min-width: 120px;
}

.modal-actions .btn-secondary {
    background-color: #6C757D;
    color: white;
}

.modal-actions .btn-secondary:hover {
    background-color: #5A6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.modal-actions .btn-primary {
    background: linear-gradient(135deg, #FF6B00, #FF8C42);
    color: white;
}

.modal-actions .btn-primary:hover {
    background: linear-gradient(135deg, #E55A00, #FF7A32);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.modal-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ===== ESTILOS RESPONSIVE ===== */

@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.8rem;
    }
    
    .navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
    }
    
    .survey-section {
        margin: 10px;
        padding: 15px;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .question-group {
        padding: 15px;
    }
    
    .question-label {
        font-size: 1.1rem;
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .input-text-inline {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }
    
    .aspect-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .aspect-name {
        font-size: 0.9rem;
    }
    
    .aspect-ratings {
        width: 100%;
        justify-content: center;
    }
    
    .rating-custom {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .ranking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ranking-label {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .ranking-select {
        width: 100%;
        min-width: auto;
    }
    
    .salary-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .salary-input-container {
        width: 100%;
        max-width: 200px;
    }
    
    .input-salary {
        width: 100%;
    }
    
    .character-count {
        position: static;
        text-align: right;
        margin-top: 5px;
        background: transparent;
        padding: 0;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-large {
        padding: 14px 28px;
        font-size: 1.1rem;
    }
    
    /* Estilos responsive para bienvenida */
    .welcome-section {
        margin: 10px;
        padding: 20px 15px;
    }
    
    .welcome-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }
    
    .welcome-description {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }
    
    .welcome-time,
    .welcome-privacy {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .welcome-time h3,
    .welcome-privacy h3 {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .collaborators-logos {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 15px;
        max-width: 100%;
    }
    
    .training-centers-logos {
        flex-direction: row;
        gap: 10px;
        max-width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .training-centers-logos .logo-placeholder {
        width: 100px;
        height: 100px;
        min-height: 100px;
        padding: 10px;
    }
    
    .logo-placeholder {
        padding: 10px;
        min-height: 70px;
    }
    
    .logo-placeholder img {
        max-height: 50px;
    }
    
    .welcome-actions {
        margin: 30px 0;
    }
    
    .ranking-item {
        margin-left: 15px;
        padding: 12px;
    }
    
    .ranking-number {
        width: 25px;
        height: 25px;
        font-size: 0.8rem;
        left: -12px;
    }
    
    .ranking-label {
        margin-left: 5px;
        font-size: 0.9rem;
    }
    
    .ranking-select {
        min-width: 120px;
        font-size: 0.9rem;
    }
    
    .drag-handle {
        left: -20px;
        width: 18px;
        height: 18px;
        font-size: 10px;
    }
    
    .ranking-item {
        margin-left: 15px;
    }
    
    /* Estilos responsive para la nueva página de inicio */
    .importance-points {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    
    .importance-item {
        padding: 15px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .importance-icon {
        font-size: 1.5rem;
        margin-top: 0;
    }
    
    .study-details {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .study-invitation {
        padding: 20px 15px;
        margin-bottom: 20px;
    }
    
    .study-invitation h3 {
        font-size: 1.2rem;
        flex-direction: column;
        gap: 5px;
    }
    
    .study-time,
    .study-privacy {
        padding: 15px;
    }
    
    .study-time h3,
    .study-privacy h3 {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 5px;
    }
    
    /* Estilos responsive para el modal */
    .modal-content {
        margin: 5% auto;
        width: 95%;
        max-width: 400px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-body p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .modal-body input[type="text"] {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .modal-actions {
        flex-direction: column;
        gap: 10px;
        margin-top: 20px;
    }
    
    .modal-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    /* Estilos responsive para estado de autorización */
    .auth-success {
        flex-direction: column;
        gap: 8px;
        padding: 15px;
        font-size: 1rem;
    }
    
    .auth-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-actions .btn {
        width: 100%;
        min-width: auto;
    }
    
    /* Estilos responsive para sección legal */
    .legal-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .legal-text {
        padding: 20px 15px;
    }
    
    .legal-disclaimer {
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 15px;
    }
}

/* Thank You Section Styles */
.thank-you-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
    background: linear-gradient(135deg, #F0F2F5 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(26, 43, 64, 0.1);
}

.thank-you-header {
    margin-bottom: 40px;
}

.thank-you-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.thank-you-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1A2B40;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.thank-you-subtitle {
    font-size: 1.3rem;
    color: #666;
    font-weight: 400;
}

.thank-you-content {
    text-align: left;
    margin-bottom: 40px;
}

.thank-you-message {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #FF6B00;
}

.thank-you-message h2 {
    color: #1A2B40;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.thank-you-message p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

.thank-you-impact {
    margin-bottom: 40px;
}

.thank-you-impact h3 {
    color: #1A2B40;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.impact-item {
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.impact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.impact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.impact-item h4 {
    color: #1A2B40;
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.impact-item p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

.thank-you-follow-up {
    margin-bottom: 40px;
}

.thank-you-follow-up h3 {
    color: #1A2B40;
    font-size: 1.5rem;
    margin-bottom: 25px;
    text-align: center;
}

.follow-up-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateX(10px);
}

.step-number {
    background: #FF6B00;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #1A2B40;
    font-size: 1.2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.step-content p {
    color: #666;
    line-height: 1.5;
}

.thank-you-social {
    background: #ffffff;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.thank-you-social h3 {
    color: #1A2B40;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.thank-you-social p {
    color: #666;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #F0F2F5;
    color: #1A2B40;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.social-link:hover {
    background: #FF6B00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 0, 0.3);
}

.thank-you-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.thank-you-footer {
    background: #1A2B40;
    color: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-text {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.footer-note {
    font-style: italic;
    opacity: 0.9;
    line-height: 1.5;
}

/* Responsive Design for Thank You Section */
@media (max-width: 768px) {
    .thank-you-section {
        padding: 30px 15px;
        margin: 0 10px;
    }
    
    .thank-you-title {
        font-size: 2.2rem;
    }
    
    .thank-you-subtitle {
        font-size: 1.1rem;
    }
    
    .impact-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step:hover {
        transform: translateY(-5px);
    }
    
    .social-links {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .thank-you-actions .btn {
        width: 100%;
        max-width: 300px;
    }
}
