/* ============================================
   DISEÑO MODERNO Y MINIMALISTA - v4.0
   ============================================ */

:root {
    --primary-color: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #a5b4fc;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gray-50);
    color: var(--gray-800);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ============================================
   LAYOUT PRINCIPAL
   ============================================ */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

.container {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0;
}

/* ============================================
   SECCIÓN HERO MEJORADA
   ============================================ */
#heroSection {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#heroSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Logo del Hero */
.logo-container {
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.hero-logo {
    max-width: 320px;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s ease;
}

.hero-logo:hover {
    transform: scale(1.05);
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.brand-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.brand-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.brand-badge i {
    font-size: 1.2rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease 0.2s both;
}

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

/* ============================================
   BOTONES MODERNOS
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--white);
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    min-height: 48px;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 1s ease 0.4s both;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    background: var(--gray-50);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--gray-600);
    border: 2px solid var(--gray-300);
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 48px;
}

.btn-secondary:hover {
    border-color: var(--gray-400);
    color: var(--gray-700);
    background: var(--white);
}

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: var(--gray-500);
    transition: all 0.2s ease;
}

.btn-icon:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* ============================================
   FORMULARIO DINÁMICO Y MODERNO
   ============================================ */
#userFormSection {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
}

#userFormSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="%236366f1" opacity="0.1"/><circle cx="75" cy="75" r="1.5" fill="%2310b981" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="%23f59e0b" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
}

.form-wrapper {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 2rem;
    padding: 3rem 2.5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 1px 2px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

/* Logo en el formulario */
.form-logo {
    margin: 0 auto 1.5rem;
    text-align: center;
    animation: bounceIn 0.8s ease;
}

.form-logo-img {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
    transition: transform 0.3s ease;
}

.form-logo-img:hover {
    transform: scale(1.05);
}

.form-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: bounceIn 0.8s ease;
}

.form-icon i {
    font-size: 2rem;
    color: white;
}

@keyframes bounceIn {
    0% {
        transform: scale(0.3);
        opacity: 0;
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-700) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-header p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.5;
}

.dynamic-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.input-group {
    position: relative;
}

.input-container {
    position: relative;
    margin-bottom: 0;
}

.input-container input {
    width: 100%;
    padding: 1rem 1rem 1rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    font-size: 1rem;
    background: var(--white);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    color: var(--gray-900);
    min-height: 56px;
}

.input-container label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: var(--white);
    padding: 0 0.5rem;
    color: var(--gray-500);
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.input-container input:focus,
.input-container input:valid {
    border-color: var(--primary-color);
    box-shadow: 
        0 0 0 3px rgba(99, 102, 241, 0.1),
        var(--shadow-sm);
}

.input-container input:focus + label,
.input-container input:valid + label {
    top: 0;
    transform: translateY(-50%);
    font-size: 0.875rem;
    color: var(--primary-color);
    font-weight: 600;
}

.input-highlight {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
    border-radius: 1px;
}

.input-container input:focus ~ .input-highlight {
    width: 100%;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 1rem;
}

.btn-ghost {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--gray-600);
    border: 2px solid transparent;
    padding: 0.875rem 1.5rem;
    border-radius: 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 52px;
}

.btn-ghost:hover {
    color: var(--gray-800);
    background: var(--gray-100);
    transform: translateX(-2px);
}

.btn-animated {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 1rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
    justify-content: center;
}

.btn-animated:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 20px rgba(99, 102, 241, 0.3),
        var(--shadow-lg);
}

.btn-animated:active {
    transform: translateY(0);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: scale(0);
    pointer-events: none;
}

.btn-animated:active .btn-ripple {
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Animaciones de entrada */
.input-group {
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
}

.input-group:nth-child(1) { animation-delay: 0.1s; }
.input-group:nth-child(2) { animation-delay: 0.2s; }
.input-group:nth-child(3) { animation-delay: 0.3s; }
.form-actions { 
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease forwards;
    animation-delay: 0.4s;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECCIÓN DE TEST - FONDO PAÍSES ANGLOPARLANTES
   ============================================ */
#testSection {
    background: 
        linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%),
        url('https://images.unsplash.com/photo-1513635269975-59663e0ac1ad?w=1920&q=80') center center / cover no-repeat,
        url('https://images.unsplash.com/photo-1485738422979-f5c462d49f74?w=1920&q=80') center center / cover no-repeat;
    padding: 1rem;
    position: relative;
    min-height: 100vh;
}

#testSection::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="20" r="1.5" fill="white" opacity="0.1"/><circle cx="50" cy="80" r="1" fill="white" opacity="0.15"/><circle cx="20" cy="60" r="2" fill="white" opacity="0.1"/><circle cx="80" cy="70" r="1" fill="white" opacity="0.1"/></svg>') repeat;
    pointer-events: none;
    animation: floatBg 20s ease-in-out infinite;
}

@keyframes floatBg {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.progress-bar-container {
    background: var(--white);
    border-radius: 1rem;
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.progress-bar {
    height: 8px;
    background: var(--primary-color);
    border-radius: 0.5rem;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

#progressText {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--gray-700);
}

.question-card {
    background: var(--white);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
}

.question-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.question-header-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.question-number {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.question-category {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.question-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    line-height: 1.5;
    text-align: center;
    margin: 1rem 0;
}

.options-container {
    margin: 1.5rem 0;
}

.scale-instruction {
    text-align: center;
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.scale-options {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.scale-option {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.scale-option input[type="radio"] {
    appearance: none;
    width: 0;
    height: 0;
    position: absolute;
    opacity: 0;
}

.scale-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.5rem;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    min-height: 120px;
    gap: 0.5rem;
}

.scale-option label:hover {
    background: var(--gray-100);
    border-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.scale-option input[type="radio"]:checked + label {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 24px rgba(102, 126, 234, 0.4);
}

.scale-emoji {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    transition: transform 0.3s ease;
}

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

.scale-number {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.scale-option input[type="radio"]:checked + label .scale-number {
    color: white;
}

.scale-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.scale-option input[type="radio"]:checked + label .scale-label {
    color: rgba(255, 255, 255, 0.95);
}

.boolean-options {
    display: flex;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.boolean-option {
    flex: 1;
    position: relative;
}

.boolean-option input[type="radio"] {
    appearance: none;
    position: absolute;
    opacity: 0;
}

.boolean-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
    background: var(--gray-50);
    border: 3px solid var(--gray-200);
    border-radius: 1.25rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 150px;
    gap: 0.75rem;
}

.boolean-label:hover {
    background: var(--gray-100);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.boolean-option input[type="radio"]:checked + .yes-label {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    border-color: #43e97b;
    color: white;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(67, 233, 123, 0.4);
}

.boolean-option input[type="radio"]:checked + .no-label {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border-color: #fa709a;
    color: white;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 30px rgba(250, 112, 154, 0.4);
}

.boolean-icon {
    font-size: 3rem;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.boolean-option input[type="radio"]:checked + label .boolean-icon {
    transform: scale(1.3) rotate(10deg);
}

.boolean-text {
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.question-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-100);
}

.btn-nav {
    padding: 0.75rem 1.5rem;
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-nav:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateX(-3px);
}

.question-counter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--gray-600);
}

.question-counter .current {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.question-counter .separator {
    font-size: 1.2rem;
    color: var(--gray-400);
}

.question-counter .total {
    font-size: 1.2rem;
    color: var(--gray-500);
}

/* ============================================
   SECCIÓN DE RESULTADOS MINIMALISTA
   ============================================ */
#resultsSection {
    background: var(--gray-50);
    padding: 2rem 1rem;
    min-height: 100vh;
}

.results-container {
    max-width: 900px;
    margin: 0 auto;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
}

.results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.results-icon i {
    font-size: 2rem;
    color: white;
}

.results-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.results-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

.scale-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.75rem 1.5rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    font-size: 0.9rem;
    color: var(--gray-700);
}

.scale-info i {
    color: var(--primary-color);
}

.results-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* Resumen de usuario */
.results-summary {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #3b82f6;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gray-300), var(--gray-400));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
}

.user-details h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.user-details p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

/* Sección de fortalezas */
.strengths-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #3b82f6;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.section-title i {
    color: var(--primary-color);
}

.strengths-grid {
    display: grid;
    gap: 1.5rem;
}

.strength-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: var(--gray-50);
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.strength-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary-color);
}

.strength-card.rank-1::before { background: #fbbf24; }
.strength-card.rank-2::before { background: #9ca3af; }
.strength-card.rank-3::before { background: #f59e0b; }

.strength-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.strength-rank {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.strength-card.rank-1 .strength-rank { background: #fbbf24; }
.strength-card.rank-2 .strength-rank { background: #9ca3af; }
.strength-card.rank-3 .strength-rank { background: #f59e0b; }

.strength-icon {
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.strength-icon i {
    font-size: 1.2rem;
    color: var(--primary-color);
}

.strength-content {
    flex: 1;
}

.strength-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.strength-content p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.4;
    margin-bottom: 1rem;
}

.strength-score {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0;
    transition: width 0s;
}

.score-value {
    font-weight: 600;
    color: var(--gray-800);
    min-width: 45px;
    text-align: right;
}

/* Sección de estilo de aprendizaje */
.learning-section {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #3b82f6;
}

.learning-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-radius: 1rem;
    padding: 2rem;
    color: white;
}

.learning-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.learning-icon i {
    font-size: 2rem;
    color: white;
}

.learning-content h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.learning-content p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.learning-percentage {
    font-size: 1.1rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-block;
}

/* Análisis detallado */
.detailed-analysis {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #3b82f6;
}

.analysis-grid {
    display: grid;
    gap: 1rem;
}

.analysis-item {
    display: grid;
    grid-template-columns: 200px 1fr 60px;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.analysis-item:hover {
    background: var(--gray-100);
}

.analysis-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--gray-800);
}

.analysis-header i {
    color: var(--primary-color);
    width: 20px;
}

.analysis-bar {
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
    width: 0;
    transition: width 0s;
}

.analysis-score {
    font-weight: 600;
    color: var(--gray-800);
    text-align: center;
}

/* Recomendaciones */
.recommendations {
    background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
    border-radius: 1.5rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid #3b82f6;
}

.recommendation-card {
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    border-radius: 1rem;
    padding: 2rem;
    color: white;
}

.recommendation-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.recommendation-text {
    font-size: 1rem;
    line-height: 1.6;
    white-space: pre-line;
}

/* Acciones de resultados */
.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

/* ============================================
   RESPONSIVE DESIGN MEJORADO
   ============================================ */
@media (max-width: 768px) {
    section {
        padding: 1rem;
        min-height: 100vh;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .brand-badge {
        font-size: 0.85rem;
        padding: 0.625rem 1.25rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
    }
    
    /* Preguntas responsive */
    .question-card {
        padding: 1.5rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .scale-options {
        gap: 0.5rem;
    }
    
    .scale-option label {
        padding: 0.75rem 0.25rem;
        min-height: 100px;
    }
    
    .scale-emoji {
        font-size: 1.5rem;
    }
    
    .scale-number {
        font-size: 1.2rem;
    }
    
    .scale-label {
        font-size: 0.65rem;
    }
    
    .boolean-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .boolean-label {
        padding: 1.5rem 1rem;
        min-height: 100px;
    }
    
    .boolean-icon {
        font-size: 2rem;
    }
    
    .boolean-text {
        font-size: 1.1rem;
    }
    
    .question-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-nav {
        width: 100%;
        justify-content: center;
    }
    
    /* Resultados responsive */
    .results-container {
        padding: 0 1rem;
    }
    
    .results-header {
        margin-bottom: 2rem;
        padding: 2rem 1.5rem;
    }
    
    .results-header h1 {
        font-size: 1.8rem;
    }
    
    .results-header p {
        font-size: 1rem;
    }
    
    .test-info {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .results-grid,
    .learning-grid {
        grid-template-columns: 1fr;
    }
    
    .result-card,
    .learning-card {
        padding: 1.5rem;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
    }
    
    .actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-primary, 
    .btn-secondary, 
    .btn-outline {
        width: 100%;
    }
    
    .scale-info {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .results-summary,
    .strengths-section,
    .learning-section,
    .detailed-analysis,
    .recommendations {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .user-info {
        flex-direction: column;
        text-align: center;
    }
    
    .strength-card {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .strength-score {
        width: 100%;
    }
    
    .learning-card {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .analysis-item {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.75rem;
    }
    
    .analysis-bar {
        order: 2;
    }
    
    .analysis-score {
        order: 3;
    }
    
    .results-actions {
        flex-direction: column;
        margin: 2rem 1rem 1rem;
    }
    
    /* Test section responsive */
    .form-wrapper {
        padding: 2rem 1.5rem;
        margin: 1rem;
        border-radius: 1.5rem;
    }
    
    .form-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 1rem;
    }
    
    .form-icon i {
        font-size: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .btn-ghost {
        order: 2;
    }
    
    .btn-animated {
        order: 1;
    }
    
    /* Test section responsive */
    .question-card {
        padding: 1.5rem;
        margin: 0.5rem;
        border-radius: 1rem;
    }
    
    .question-text {
        font-size: 1.1rem;
    }
    
    .scale-options {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .scale-option input[type="radio"] {
        width: 40px;
        height: 40px;
    }
    
    .scale-option label {
        font-size: 0.8rem;
    }
    
    .boolean-options {
        flex-direction: column;
        gap: 1rem;
    }
    
    .navigation-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .question-header {
        padding: 1rem;
        margin: 0.5rem 0 1rem 0;
        border-radius: 1rem;
    }
    
    .progress-bar-container {
        margin: 0.5rem 0 1rem 0;
        border-radius: 0.75rem;
    }
}

@media (max-width: 480px) {
    section {
        padding: 0.5rem;
    }
    
    .hero {
        padding: 0 1rem;
    }
    
    .form-wrapper {
        margin: 0.5rem;
        padding: 1.5rem 1rem;
        border-radius: 1rem;
    }
    
    .form-header {
        margin-bottom: 2rem;
    }
    
    .input-container input {
        padding: 0.875rem;
        border-radius: 0.75rem;
        min-height: 52px;
    }
    
    .input-container label {
        font-size: 0.9rem;
    }
    
    .question-card {
        padding: 1rem;
        margin: 0;
        border-radius: 0.75rem;
    }
    
    .question-category {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }
    
    .question-text {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .scale-option input[type="radio"] {
        width: 36px;
        height: 36px;
    }
    
    .scale-option label {
        font-size: 0.75rem;
    }
    
    .boolean-option label {
        padding: 0.875rem 1rem;
        font-size: 0.9rem;
        min-height: 52px;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-animated,
    .btn-ghost {
        min-height: 48px;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

/* Mejoras para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .form-wrapper {
        max-width: 600px;
        padding: 3.5rem 3rem;
    }
    
    .input-row {
        gap: 2rem;
    }
    
    .question-card {
        max-width: 700px;
        margin: 0 auto;
        padding: 2.5rem;
    }
    
    .scale-options {
        max-width: 500px;
        margin: 0 auto 2rem;
    }
}

/* ============================================
   ANIMACIONES Y TRANSICIONES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.question-card {
    animation: slideInFromRight 0.5s ease;
}

.form-group {
    animation: fadeIn 0.3s ease;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }

/* ============================================
   ACCESIBILIDAD
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   UTILIDADES
   ============================================ */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }

/* ============================================
   RESULTADOS - DISEÑO PROFESIONAL
   ============================================ */

.results-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.results-header {
    text-align: center;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.results-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.results-header p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

.test-info {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.test-info span {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    backdrop-filter: blur(10px);
}

.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 1.8rem;
    color: var(--gray-800);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.result-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.result-card.dominant {
    border-color: #667eea;
    background: linear-gradient(to bottom, rgba(102, 126, 234, 0.05), white);
}

.result-position {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
}

.result-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.result-card h3 {
    font-size: 1.3rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.result-percentage {
    font-size: 2.5rem;
    font-weight: 700;
    color: #667eea;
    margin: 1rem 0;
}

.result-bar-container {
    width: 100%;
    height: 12px;
    background: var(--gray-200);
    border-radius: 20px;
    overflow: hidden;
    margin: 1rem 0;
}

.result-bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease-out;
}

.result-description {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 1rem 0;
}

.result-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.85rem;
    color: var(--gray-500);
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 100%;
}

.learning-card {
    background: white;
    border-radius: 16px;
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    max-width: 100%;
    min-height: auto;
}

.learning-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.learning-card.dominant {
    border-color: #10b981;
    background: linear-gradient(to bottom, rgba(16, 185, 129, 0.05), white);
}

/* Estilos por ranking para mostrar orden visual */
.learning-card.learning-rank-1 {
    border-color: #fbbf24;
    background: linear-gradient(to bottom, rgba(251, 191, 36, 0.08), white);
    order: 1;
}

.learning-card.learning-rank-2 {
    border-color: #9ca3af;
    background: linear-gradient(to bottom, rgba(156, 163, 175, 0.05), white);
    order: 2;
}

.learning-card.learning-rank-3 {
    border-color: #cd7f32;
    background: linear-gradient(to bottom, rgba(205, 127, 50, 0.05), white);
    order: 3;
}

.learning-card.learning-rank-4 {
    border-color: var(--gray-300);
    order: 4;
}

.learning-position {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
}

.learning-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.learning-card h3 {
    font-size: 1.2rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.learning-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: #10b981;
    margin: 0.75rem 0;
}

.learning-bar-container {
    width: 100%;
    height: 10px;
    background: var(--gray-200);
    border-radius: 20px;
    overflow: hidden;
    margin: 0.75rem 0;
}

.learning-bar-fill {
    height: 100%;
    border-radius: 20px;
    transition: width 1s ease-out;
}

.learning-description {
    color: var(--gray-600);
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0.5rem 0;
    max-height: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.learning-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
    font-size: 0.8rem;
    color: var(--gray-500);
}

.recommendations {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow-xl);
}

.recommendations h2 {
    color: white;
    margin-bottom: 2rem;
}

.recommendations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.rec-column h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
}

.rec-column ul {
    list-style: none;
    padding: 0;
}

.rec-column li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.rec-column li::before {
    content: '✓';
    position: absolute;
    left: 0;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.8);
}

.insight-box {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
}

.insight-box h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: white;
}

.insight-box p {
    line-height: 1.6;
    font-size: 0.95rem;
    opacity: 0.95;
}

.actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-primary, .btn-secondary, .btn-outline {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: white;
    color: var(--gray-800);
    border: 2px solid var(--gray-300);
}

.btn-outline:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
}
/* ============================================
   ESTILOS ADICIONALES PARA RESULTADOS
   ============================================ */

/* Logo en resultados */
.results-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.results-logo-img {
    max-width: 200px;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

/* Info del test en header */
.test-info {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.test-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: var(--shadow-sm);
}

/* Subtítulos de secciones */
.section-subtitle {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Tarjetas de estilos de aprendizaje mejoradas */
.learning-activities {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
    text-align: left;
}

.learning-activities strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: var(--gray-700);
}

.activities-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.activity-badge {
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
    font-size: 0.7rem;
    white-space: nowrap;
}

.learning-tips {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
    text-align: left;
}

.learning-tips strong {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8rem;
    color: var(--gray-700);
}

.learning-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 80px;
    overflow: hidden;
}

.learning-tips li {
    font-size: 0.75rem;
    color: var(--gray-600);
    padding: 0.25rem 0;
    padding-left: 1rem;
    position: relative;
    line-height: 1.3;
}

.learning-tips li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Aviso de email */
.email-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    margin-top: 2rem;
    font-size: 0.95rem;
}

.email-notice i {
    font-size: 1.25rem;
}

.email-notice p {
    margin: 0;
}

/* Grid de resultados mejorado */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.learning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Tarjetas de resultados */
.result-card, .learning-card {
    background: var(--white);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--gray-100);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.result-card:hover, .learning-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.result-card.dominant, .learning-card.dominant {
    border: 2px solid var(--primary-color);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.result-position, .learning-position {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    font-size: 1.5rem;
}

.result-icon, .learning-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.result-card h3, .learning-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.result-percentage, .learning-percentage {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.result-bar-container, .learning-bar-container {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.result-bar-fill, .learning-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s ease;
}

.result-description, .learning-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.result-stats, .learning-stats {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray-500);
    border-top: 1px solid var(--gray-100);
    padding-top: 0.75rem;
}

/* Responsive para tarjetas */
@media (max-width: 768px) {
    .results-grid, .learning-grid {
        grid-template-columns: 1fr;
    }
    
    .test-info {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .actions {
        flex-direction: column;
    }
    
    .actions button {
        width: 100%;
    }
}

/* ============================================
   ESTILOS PARA ACTIVIDADES RECOMENDADAS
   ============================================ */

/* Badges de actividades en tarjetas */
.activities-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-200);
}

.activity-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.35rem 0.75rem;
    background: linear-gradient(135deg, var(--secondary-color), #059669);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.activity-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Sección de recomendación de actividades grande */
.activities-recommendation {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-radius: 12px;
    border: 1px solid #a7f3d0;
}

.activities-recommendation h4 {
    color: #065f46;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.activities-badges-large {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.activity-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 25px;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.activity-badge-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Etiquetas de estilo de aprendizaje */
.learning-style-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

/* Responsive para actividades */
@media (max-width: 480px) {
    .activities-badges-large {
        flex-direction: column;
        align-items: stretch;
    }
    
    .activity-badge-large {
        justify-content: center;
    }
}