/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Home Landing Section */
.home-landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

/* Video Background */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
    pointer-events: none;
}

/* Landing Content */
.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

/* Logo en esquina superior izquierda */
.landing-logo {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1000;
    margin-bottom: 0;
    animation: fadeInDown 1s ease-out;
    background: transparent;
}

/* Estilos del logo ya definidos arriba */

.landing-logo .logo-img {
    max-width: 160px;
    width: auto;
    height: auto;
    /* Filtro para hacer el logo SVG blanco: invertir colores */
    filter: brightness(0) invert(1) drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
    background: transparent;
    opacity: 1;
    transition: filter 0.3s ease;
}

/* Logo amarillo cuando se hace scroll a sección blanca */
.landing-logo.scrolled .logo-img {
    filter: brightness(0) saturate(100%) invert(84%) sepia(98%) saturate(1352%) hue-rotate(358deg) brightness(105%) contrast(101%) drop-shadow(0 4px 15px rgba(255, 211, 27, 0.3));
}

/* Ocultar logo en móvil cuando está en estado scrolled */
@media (max-width: 768px) {
    #home .landing-logo.scrolled {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    #home .landing-logo.scrolled .logo-img {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* Landing Header Right - Language and Login */
.landing-header-right {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInDown 1s ease-out;
    flex-wrap: nowrap;
    width: auto;
    height: auto;
}

/* Language Dropdown */
.landing-language-dropdown {
    position: relative;
    flex-shrink: 0;
    display: inline-block;
}

.landing-language-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
    flex-shrink: 0;
    min-width: fit-content;
}

.landing-language-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.landing-language-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.landing-language-btn.active i {
    transform: rotate(180deg);
}

.language-label {
    display: inline;
}

@media (max-width: 768px) {
    .language-label {
        display: none;
    }
    
    .landing-language-btn {
        padding: 0.5rem 0.5rem;
        min-width: auto;
    }
    
    .landing-language-btn .language-flag {
        margin: 0;
    }
    
    .landing-language-btn i {
        display: none;
    }
}

.language-flag {
    font-size: 1.2rem;
}

.landing-language-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    min-width: 180px;
    overflow: hidden;
    z-index: 1001;
    animation: slideDown 0.3s ease;
}

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

.landing-language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    background: white;
    color: #1e293b;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.landing-language-option:hover {
    background: #f8fafc;
}

.landing-language-option:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.landing-language-option:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

.landing-language-option .language-flag {
    font-size: 1.5rem;
}

.landing-language-option .language-name {
    flex: 1;
}

/* Login Button en esquina superior derecha */
.landing-login-btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-family: 'Inter', sans-serif;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    white-space: nowrap;
    position: relative;
    display: inline-block;
    margin: 0;
}

.landing-login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Botón amarillo cuando se hace scroll a sección blanca */
.landing-login-btn.scrolled {
    color: white;
    border-color: #ffd31b;
    background: #ffd31b;
}

.landing-login-btn.scrolled:hover {
    background: #e6be18;
    border-color: #e6be18;
    box-shadow: 0 6px 20px rgba(255, 211, 27, 0.4);
}

/* Language dropdown cuando se hace scroll */
.landing-language-btn.scrolled {
    color: #1e293b;
    border-color: rgba(30, 41, 59, 0.2);
    background: rgba(255, 255, 255, 0.9);
}

.landing-language-btn.scrolled:hover {
    background: white;
    border-color: rgba(30, 41, 59, 0.3);
}

.landing-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 4.5rem;
    font-weight: 600;
    color: white;
    margin-bottom: 8rem;
    letter-spacing: 0.05em;
    line-height: 0.85;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out 0.3s both;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 0.05em;
    max-width: 100%;
    width: 100%;
}

.tagline-line1,
.tagline-line2 {
    display: block;
    width: 100%;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .tagline-line1,
    .tagline-line2 {
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

.landing-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    max-width: 800px;
    margin: 4rem auto 3rem auto;
    line-height: 1.6;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease-out 0.5s both;
    padding: 0 2rem;
    letter-spacing: 0.01em;
}

.landing-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    max-width: 350px;
    margin: 2rem auto 0 auto;
    animation: fadeInUp 1s ease-out 0.5s both;
}

.pricing-old-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.pricing-current-price {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.pricing-period {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

.landing-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 350px;
    margin: 1.5rem auto 0 auto;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.btn-signup,
.btn-login {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-signup {
    background: #ffd31b;
    color: #1e293b;
}

.btn-signup:hover {
    background: #e6be18;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 27, 0.4);
}

.btn-login {
    background: white;
    color: #ffd31b;
}

.btn-login:hover {
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

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

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

.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: #ffd31b;
    color: #1e293b;
}

.btn-primary:hover {
    background: #e6be18;
    transform: translateY(-2px);
}

.btn-primary:focus,
.btn-primary:active {
    background: #ffd31b;
    color: #1e293b;
    outline: none;
}

.btn-primary:focus-visible {
    outline: 3px solid rgba(255, 211, 27, 0.5);
    outline-offset: 2px;
}

.btn-secondary {
    background: transparent;
    color: #ffd31b;
    border: 2px solid #ffd31b;
}

.btn-secondary:hover {
    background: #ffd31b;
    color: #1e293b;
}

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

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: #1e293b;
}

/* How It Works Section */
/* Users Pricing Section */
.users-pricing-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.users-pricing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(255, 211, 27, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.users-pricing-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.users-count-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #ffd31b;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(255, 211, 27, 0.3);
    letter-spacing: -0.02em;
}

.users-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.users-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.users-pricing .pricing-old-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: line-through;
    text-decoration-thickness: 3px;
    text-decoration-color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.users-pricing .pricing-current-price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.users-pricing .pricing-period {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.05em;
    text-transform: lowercase;
}

.users-cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 350px;
    margin: 0 auto;
}

.users-cta-buttons .btn-signup,
.users-cta-buttons .btn-login {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.users-cta-buttons .btn-signup {
    background: #ffd31b;
    color: #1e293b;
}

.users-cta-buttons .btn-signup:hover {
    background: #e6be18;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 27, 0.5);
}

.users-cta-buttons .btn-login {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.users-cta-buttons .btn-login:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

/* Responsive styles for users pricing section */
@media (max-width: 768px) {
    .users-pricing-section {
        padding: 60px 0;
    }
    
    .users-count-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .users-subtitle {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .users-pricing .pricing-old-price {
        font-size: 1.8rem;
    }
    
    .users-pricing .pricing-current-price {
        font-size: 2.5rem;
    }
    
    .users-pricing .pricing-period {
        font-size: 0.85rem;
    }
    
    .users-cta-buttons {
        max-width: 90%;
    }
    
    .users-cta-buttons .btn-signup,
    .users-cta-buttons .btn-login {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .users-count-title {
        font-size: 1.75rem;
    }
    
    .users-subtitle {
        font-size: 1rem;
    }
    
    .users-pricing .pricing-old-price {
        font-size: 1.5rem;
    }
    
    .users-pricing .pricing-current-price {
        font-size: 2rem;
    }
}

/* Why Runpi Section */
.why-runpi-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #cbd5e1 0%, #e2e8f0 100%);
    position: relative;
}

.why-runpi-title {
    font-family: 'Poppins', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin-bottom: 4rem;
    letter-spacing: -0.02em;
}

.why-runpi-features {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.why-runpi-feature {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.why-runpi-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.feature-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ffd31b 0%, #ffe566 100%);
    color: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    font-family: 'Poppins', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 211, 27, 0.3);
}

.feature-content {
    flex: 1;
}

.feature-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 1rem 0;
    letter-spacing: -0.01em;
}

.feature-description {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
}

/* Responsive styles for Why Runpi section */
@media (max-width: 768px) {
    .why-runpi-section {
        padding: 60px 0;
    }
    
    .why-runpi-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
    
    .why-runpi-features {
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .why-runpi-feature {
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 1.5rem;
    }
    
    .feature-number {
        width: 50px;
        height: 50px;
        font-size: 1.75rem;
    }
    
    .feature-title {
        font-size: 1.5rem;
    }
    
    .feature-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .why-runpi-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .why-runpi-feature {
        padding: 1.5rem;
    }
    
    .feature-number {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .feature-title {
        font-size: 1.25rem;
    }
    
    .feature-description {
        font-size: 0.95rem;
    }
}

/* Landing Closing Section */
.landing-closing-section {
    padding: 120px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    text-align: center;
    position: relative;
}

.landing-closing-title {
    font-family: 'Poppins', sans-serif;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.landing-closing-title .highlight-yellow {
    color: #ffd31b;
    text-shadow: 0 2px 10px rgba(255, 211, 27, 0.3);
}

/* Responsive styles for landing closing section */
@media (max-width: 768px) {
    .landing-closing-section {
        padding: 80px 0;
    }
    
    .landing-closing-title {
        font-size: 2.5rem;
        padding: 0 1.5rem;
    }
}

@media (max-width: 480px) {
    .landing-closing-section {
        padding: 60px 0;
    }
    
    .landing-closing-title {
        font-size: 2rem;
        padding: 0 1rem;
    }
}

.how-it-works {
    padding: 80px 0;
    background: white;
    display: none; /* Hidden on landing page */
}

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

.step {
    text-align: center;
    padding: 2rem;
    border-radius: 12px;
    background: #f8fafc;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
}

.step-icon {
    width: 80px;
    height: 80px;
    background: #ffd31b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

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

.step h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.step p {
    color: #64748b;
    line-height: 1.6;
}

/* Questionnaire Section */
.questionnaire {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    display: none; /* Hidden on landing page */
}

.questionnaire::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 211, 27, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 229, 102, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.questionnaire-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Phone Frame Container */
.phone-frame {
    background: linear-gradient(145deg, #2c2c2e 0%, #1c1c1e 100%);
    border-radius: 30px;
    padding: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.4),
        0 0 50px rgba(255, 211, 27, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    margin: 2rem auto;
    max-width: 420px;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(0.5deg); }
    50% { transform: translateY(0px) rotate(0deg); }
    75% { transform: translateY(-3px) rotate(-0.5deg); }
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 7px;
    background: linear-gradient(90deg, #000 0%, #333 50%, #000 100%);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.phone-frame::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 35px;
    background: linear-gradient(145deg, #1a1a1a 0%, #000 100%);
    border-radius: 50%;
    border: 3px solid #2c2c2e;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.phone-frame::after:hover {
    background: linear-gradient(145deg, #333 0%, #1a1a1a 100%);
}

/* Chat Container */
.chat-container {
    background: white;
    border-radius: 25px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: 700px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: #ffd31b;
    color: #1e293b;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
}

.chat-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
}

.message {
    margin-bottom: 1rem;
    display: flex;
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 85%;
    padding: 0.75rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message .message-content {
    background: #ffd31b;
    color: #1e293b;
}

.chat-input-container {
    padding: 1rem;
    background: white;
    display: flex;
    gap: 0.5rem;
}

.chat-input-container input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
}

.chat-input-container input:focus {
    outline: none;
    border-color: #ffd31b;
}

.chat-input-container button {
    padding: 0.75rem 1rem;
    background: #ffd31b;
    color: #1e293b;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.chat-input-container button:hover {
    background: #e6be18;
}

.chat-input-container button:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

/* Typing Indicator */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffd31b;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* API Status Indicator */
.api-status {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    z-index: 1000;
    transition: all 0.3s ease;
}

.api-status.connected {
    background: #10b981;
    color: white;
}

.api-status.disconnected {
    background: #ef4444;
    color: white;
}

.api-status.hidden {
    opacity: 0;
    transform: translateY(-20px);
}

/* Chat Supplement Cards */
.supplement-chat-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
    border-left: 3px solid #ffd31b;
}

.supplement-chat-card h4 {
    color: #ffd31b;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.supplement-chat-details {
    margin-bottom: 0.5rem;
}

.supplement-chat-details div {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.supplement-chat-rationale {
    background: white;
    padding: 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Chat Feedback Form */
.feedback-chat-card {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1rem;
    margin: 0.5rem 0;
}

.feedback-chat-card h4 {
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

.rating-chat-input {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 0.75rem;
}

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

.rating-chat-input label {
    cursor: pointer;
    font-size: 1.5rem;
    color: #d1d5db;
    transition: color 0.2s ease;
}

.rating-chat-input label:hover {
    color: #fbbf24;
}

/* Fix for star rating display - show filled stars up to selected rating */
.rating-chat-input input[type="radio"]:checked + label {
    color: #fbbf24;
}

/* Enhanced star rating styles for better compatibility */
.rating-chat-input label {
    user-select: none;
    position: relative;
}

/* Active star styles - will be controlled by JavaScript */
.rating-chat-input .star-filled {
    color: #fbbf24 !important;
}

.rating-chat-input .star-empty {
    color: #d1d5db !important;
}

.comment-chat-section {
    margin-bottom: 0.75rem;
}

.comment-chat-section label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.comment-chat-section textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.comment-chat-section textarea:focus {
    outline: none;
    border-color: #ffd31b;
}

.feedback-chat-card .btn-primary {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.feedback-optional-questions {
    margin-bottom: 0.75rem;
}

.feedback-optional-questions label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.feedback-optional-questions select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    font-family: inherit;
    margin-bottom: 0.75rem;
}

.feedback-optional-questions select:focus {
    outline: none;
    border-color: #ffd31b;
}

.feedback-note {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.5rem;
    font-style: italic;
}

.feedback-success-chat {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 1rem;
    text-align: center;
}

.feedback-success-chat h4 {
    color: #166534;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.feedback-success-chat p {
    color: #15803d;
    margin: 0;
    font-size: 0.9rem;
}

/* Feedback Section */
.feedback-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.feedback-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
}

.feedback-card h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.feedback-card p {
    color: #64748b;
    margin-bottom: 2rem;
}

.feedback-form {
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.rating-section {
    margin-bottom: 1.5rem;
}

.rating-section label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.rating-input {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

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

.rating-input label {
    cursor: pointer;
    font-size: 2rem;
    color: #d1d5db;
    transition: color 0.2s ease;
    margin-bottom: 0;
}

.rating-input label:hover,
.rating-input input:checked + label {
    color: #fbbf24;
}

.comment-section {
    margin-bottom: 1.5rem;
}

.comment-section label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
}

.comment-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
}

.comment-section textarea:focus {
    outline: none;
    border-color: #ffd31b;
}

.feedback-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
}

.feedback-success h3 {
    color: #166534;
    margin-bottom: 0.5rem;
}

.feedback-success p {
    color: #15803d;
    margin: 0;
}

/* Form Container */
.form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.supplement-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ffd31b;
}

/* Results Section */
.results {
    padding: 80px 0;
    background: white;
    display: none; /* Hidden on landing page */
}

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

.supplement-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #ffd31b;
}

.supplement-card h3 {
    color: #ffd31b;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

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

.detail-item {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.detail-item .label {
    font-weight: 600;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.detail-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
}

.supplement-rationale {
    background: white;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.supplement-rationale h4 {
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.supplement-rationale p {
    color: #64748b;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8fafc;
    display: none; /* Hidden on landing page */
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1e293b;
}

.contact-info p {
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #64748b;
}

.contact-item i {
    color: #ffd31b;
    font-size: 1.2rem;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #ffd31b;
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 3rem 0 1rem;
    display: none; /* Hidden on landing page */
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo h3 {
    color: #ffd31b;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Footer Runpi Logo Vectorizado Styles */
.footer-logo-img {
    height: 80px;
    width: auto;
    object-fit: contain;
    /* Filtro para hacer el logo SVG blanco: invertir colores */
    filter: brightness(0) invert(1);
}


.footer-logo p {
    color: #94a3b8;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-column a {
    display: block;
    color: #94a3b8;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #ffd31b;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #374151;
    color: #94a3b8;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    margin: 0;
    flex: 1;
    text-align: left;
}

/* Video Background Responsive */
@media (max-width: 768px) {
    .video-background video {
        object-position: center center;
    }
    
    .video-overlay {
        background: rgba(0, 0, 0, 0.4);
    }
}

@media (max-width: 480px) {
    .video-overlay {
        background: rgba(0, 0, 0, 0.4);
    }
}

/* Phone Frame Responsive */
@media (max-width: 768px) {
    .phone-frame {
        max-width: 380px;
        margin: 1rem auto;
        padding: 16px;
    }
    
    .chat-container {
        height: 600px;
    }
    
    .phone-frame::before {
        width: 60px;
        height: 6px;
    }
    
    .phone-frame::after {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .phone-frame {
        max-width: 340px;
        padding: 14px;
    }
    
    .chat-container {
        height: 550px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {

    .questionnaire-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 100%;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .supplement-details {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Logo fijo en móvil pequeño */
    #home .landing-logo {
        position: fixed !important;
        top: 1rem !important;
        left: 1rem !important;
        z-index: 1000 !important;
    }
    
    #home .landing-logo .logo-img {
        max-width: 120px;
    }
    
    /* Landing header right responsive */
    .landing-header-right {
        top: 1.2rem;
        right: 1rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
        width: auto;
    }
    
    .landing-language-dropdown {
        flex-shrink: 0;
    }
    
    .landing-language-btn {
        padding: 0.5rem 0.5rem;
        font-size: 0.8rem;
        min-width: auto;
    }
    
    .landing-language-menu {
        min-width: 160px;
        right: 0;
    }
    
    /* Login button más pequeño en móvil - alineado con el logo */
    .landing-login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Landing content - mejor espaciado */
    .landing-content {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        padding-top: 3.5rem;
        box-sizing: border-box;
    }
    
    .landing-tagline {
        font-size: 1.8rem;
        font-weight: 600;
        line-height: 1.2;
        gap: 0.05em;
        letter-spacing: 0.02em;
        margin-bottom: 5rem;
        padding: 0 0.5rem;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    
    .tagline-line1,
    .tagline-line2 {
        letter-spacing: 0.03em;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    .landing-subtitle {
        font-size: 1rem;
        margin: 3rem auto 2rem auto;
        padding: 0 1.5rem;
        line-height: 1.5;
    }
    
    .landing-pricing {
        max-width: 85%;
        width: 85%;
        margin-top: 1.5rem;
        margin-bottom: 0;
    }
    
    .pricing-old-price {
        font-size: 1.8rem;
    }
    
    .pricing-current-price {
        font-size: 2.2rem;
    }
    
    .pricing-period {
        font-size: 0.8rem;
    }
    
    .landing-buttons {
        max-width: 85%;
        width: 85%;
        gap: 0.75rem;
        padding: 0;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .btn-signup,
    .btn-login {
        padding: 0.75rem 1.25rem;
        font-size: 0.9rem;
        width: 100%;
        font-weight: 600;
        border-radius: 12px;
        min-height: 46px;
    }
}

/* Auth Modals (Sign Up & Log In) */
.auth-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.auth-modal.active {
    display: flex;
}

.auth-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    animation: slideIn 0.5s ease;
    position: relative;
    margin: 2rem auto;
}

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

.auth-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #64748b;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
}

.auth-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.auth-header h2 {
    color: #ffd31b;
    font-size: 2.5rem;
    margin: 0;
    font-weight: 700;
}

.auth-header p {
    color: #64748b;
    font-size: 1.1rem;
    text-align: center;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 600;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="email"]:focus,
.auth-form input[type="password"]:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1);
}

.auth-form input.error {
    border-color: #ef4444;
}

.auth-form .error-message {
    color: #ef4444;
    font-size: 0.85rem;
    margin-top: 0.25rem;
    display: none;
}

.auth-form .error-message.show {
    display: block;
}

/* Auth notification messages (error/success) */
.auth-message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    animation: slideDown 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: opacity 0.3s ease;
}

.auth-message .message-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.auth-message .message-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.auth-message .message-text {
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.auth-message .message-main {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.auth-message .message-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.75rem;
}

.auth-message .message-action-btn {
    background: #ffd31b;
    color: #1e293b;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.auth-message .message-action-btn:hover {
    background: #e6be18;
    transform: translateY(-1px);
}

.auth-message.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.auth-message.success-message {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    border-left: 4px solid #22c55e;
    color: #14532d;
}

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

.terms-checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.terms-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.terms-checkbox label {
    margin: 0;
    font-weight: 400;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
}

.btn-auth {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
    background: #ffd31b !important;
    color: #1e293b !important;
    border: none;
}

.btn-auth:hover {
    background: #e6be18 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 27, 0.4);
}

.btn-auth:focus,
.btn-auth:active {
    background: #e6be18 !important;
    color: #1e293b !important;
    outline: none;
}

.btn-auth:focus-visible {
    outline: 3px solid rgba(255, 211, 27, 0.5);
    outline-offset: 2px;
}

.auth-switch {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.auth-switch a {
    color: #ffd31b;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
}

.auth-switch a:hover {
    text-decoration: underline;
}

/* Start Today Modal */
.start-today-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.start-today-modal.active {
    display: flex;
}

.start-today-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    animation: slideIn 0.5s ease;
    position: relative;
    margin: 2rem auto;
    text-align: center;
}

.start-today-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #64748b;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.start-today-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.start-today-title {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1.5rem 0;
    font-family: 'Poppins', sans-serif;
}

.start-today-pricing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.start-today-old-price {
    font-size: 1.5rem;
    font-weight: 600;
    color: #94a3b8;
    text-decoration: line-through;
    text-decoration-thickness: 2px;
    font-family: 'Inter', sans-serif;
}

.start-today-current-price {
    font-size: 3rem;
    font-weight: 800;
    color: #1e293b;
    font-family: 'Inter', sans-serif;
    letter-spacing: -0.02em;
}

.start-today-form {
    text-align: left;
}

.start-today-form .form-group {
    margin-bottom: 1.5rem;
}

.start-today-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: #1e293b;
    font-weight: 600;
    font-size: 0.95rem;
}

.start-today-form input[type="email"] {
    width: 100%;
    padding: 0.875rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.start-today-form input[type="email"]:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1);
}

.btn-start-today {
    width: 100%;
    padding: 1rem 2rem;
    background: #ffd31b;
    color: #1e293b;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 211, 27, 0.3);
}

.btn-start-today:hover {
    background: #e6be18;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 27, 0.4);
}

.btn-start-today:disabled {
    background: #cbd5e1;
    color: #64748b;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* No Places Available Modal */
.no-places-modal {
    display: none;
    position: fixed;
    z-index: 10001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.no-places-modal.active {
    display: flex;
}

.no-places-content {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    animation: slideIn 0.5s ease;
    position: relative;
    margin: 2rem auto;
    text-align: center;
}

.no-places-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: #64748b;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
}

.no-places-close:hover {
    background: #f1f5f9;
    color: #1e293b;
}

.no-places-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-places-title {
    color: #1e293b;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    font-family: 'Poppins', sans-serif;
}

.no-places-message {
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.6;
    margin: 0 0 2rem 0;
    font-family: 'Inter', sans-serif;
}

.btn-close-modal {
    width: 100%;
    padding: 1rem 2rem;
    background: #ffd31b;
    color: #1e293b;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    box-shadow: 0 4px 15px rgba(255, 211, 27, 0.3);
}

.btn-close-modal:hover {
    background: #e6be18;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 211, 27, 0.4);
}

/* Responsive styles for modals */
@media (max-width: 768px) {
    .start-today-content,
    .no-places-content {
        padding: 2rem 1.5rem;
        max-width: 95%;
    }
    
    .start-today-title,
    .no-places-title {
        font-size: 1.75rem;
    }
    
    .start-today-current-price {
        font-size: 2.5rem;
    }
    
    .start-today-old-price {
        font-size: 1.25rem;
    }
}

/* Onboarding Modal - Enhanced Design */
.onboarding-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.8) 100%);
    backdrop-filter: blur(15px);
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    box-sizing: border-box;
}

.onboarding-modal.active {
    display: flex;
}

.onboarding-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2.5rem 3rem;
    border-radius: 32px;
    box-shadow: 
        0 32px 64px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    margin: 2rem auto;
    position: relative;
    padding-top: 4rem;
}

.onboarding-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #ffd31b 0%, #ffe566 50%, #8b5cf6 100%);
    border-radius: 32px 32px 0 0;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.onboarding-progress {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Barra de progreso oculta en todos los dispositivos */
.progress-bar {
    display: none !important;
    width: 100%;
    height: 12px;
    background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 100%);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    display: none !important;
    height: 100%;
    background: linear-gradient(90deg, #ffd31b 0%, #ffe566 50%, #8b5cf6 100%);
    border-radius: 20px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(255, 211, 27, 0.3);
}

.progress-text {
    color: #64748b;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5px;
    display: block;
}

/* Botón "atrás" - oculto por defecto en desktop, se mostrará con media query */
.onboarding-back-btn {
    display: none !important;
}

.onboarding-question h2 {
    color: #1e293b;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    line-height: 1.3;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    padding: 0;
}

.question-subtitle {
    color: #64748b;
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 500;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    max-height: 60vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.question-options::-webkit-scrollbar {
    width: 8px;
}

.question-options::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}

.question-options::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #cbd5e1 0%, #94a3b8 100%);
    border-radius: 10px;
}

.question-options::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #94a3b8 0%, #64748b 100%);
}

/* Enhanced Option Cards */
.onboarding-option {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    border: 3px solid #e2e8f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    text-align: left;
    width: 100%;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.onboarding-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s;
}

.onboarding-option:hover {
    border-color: #ffd31b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(255, 211, 27, 0.25),
        0 4px 20px rgba(0, 0, 0, 0.1);
}

.onboarding-option:hover::before {
    left: 100%;
}

.onboarding-option:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 25px rgba(255, 211, 27, 0.3),
        0 2px 10px rgba(0, 0, 0, 0.1);
}

.onboarding-option.selected {
    border-color: #ffd31b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 
        0 8px 30px rgba(255, 211, 27, 0.3),
        0 0 0 4px rgba(255, 211, 27, 0.1);
    transform: translateY(-2px);
}

/* Enhanced Input Types */
.exact-value-input {
    width: 100%;
    padding: 2rem 2.5rem;
    border: 3px solid #e2e8f0;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 600;
    color: #1e293b;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.exact-value-input:focus {
    outline: none;
    border-color: #ffd31b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 
        0 8px 30px rgba(255, 211, 27, 0.2),
        0 0 0 4px rgba(255, 211, 27, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.exact-value-textarea {
    width: 100%;
    padding: 2rem 2.5rem;
    border: 3px solid #e2e8f0;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 500;
    color: #1e293b;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 1.5rem;
    resize: vertical;
    min-height: 120px;
    line-height: 1.6;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.exact-value-textarea:focus {
    outline: none;
    border-color: #ffd31b;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    box-shadow: 
        0 8px 30px rgba(255, 211, 27, 0.2),
        0 0 0 4px rgba(255, 211, 27, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-continue {
    width: 100%;
    padding: 1.5rem 2.5rem;
    background: linear-gradient(135deg, #ffd31b 0%, #ffe566 50%, #8b5cf6 100%);
    color: #1e293b;
    border: none;
    border-radius: 20px;
    font-size: 1.3rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 8px 30px rgba(255, 211, 27, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-continue::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.btn-continue:hover {
    background: linear-gradient(135deg, #e6be18 0%, #ffd31b 50%, #7c3aed 100%);
    transform: translateY(-3px);
    box-shadow: 
        0 15px 45px rgba(255, 211, 27, 0.5),
        0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.btn-continue:active {
    transform: translateY(-1px);
    box-shadow: 
        0 8px 25px rgba(255, 211, 27, 0.4),
        0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Enhanced Race Details Form */
.race-details-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.race-details-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.race-details-form label {
    font-weight: 700;
    color: #1e293b;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

.race-details-form input {
    padding: 1.5rem 2rem;
    border: 3px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.race-details-form input:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 
        0 8px 30px rgba(255, 211, 27, 0.2),
        0 0 0 4px rgba(255, 211, 27, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.race-details-form input[readonly] {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #64748b;
    font-weight: 600;
}

/* Enhanced Input Containers */
.date-input-container,
.number-input-container,
.text-input-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Language Selector for Onboarding - Posicionado abajo a la derecha */
.onboarding-language-selector {
    position: fixed !important;
    bottom: 1.5rem !important;
    right: 1.5rem !important;
    z-index: 10002 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-radius: 30px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    flex-direction: row !important;
    gap: 0 !important;
    padding: 4px !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    width: fit-content !important;
}

.onboarding-language-selector:hover {
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.15);
}

.onboarding-language-selector .lang-btn {
    padding: 4px 10px !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 18px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    color: #64748b !important;
    font-family: 'Inter', sans-serif !important;
}

.onboarding-language-selector .lang-btn:hover {
    background: #f1f5f9;
    color: #ffd31b;
}

.onboarding-language-selector .lang-btn.active {
    background: #ffd31b;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(255, 211, 27, 0.3);
}

.onboarding-language-selector .lang-btn.active:hover {
    background: #e6be18;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 211, 27, 0.4);
}

.option-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.option-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.option-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* Success Message */
.onboarding-success {
    text-align: center;
    padding: 2rem;
}

.onboarding-success h2 {
    color: #059669;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.onboarding-success p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.success-button {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.success-button:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.3);
}

.progressive-icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
    opacity: 0.8;
}

.option-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.option-description {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

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

.btn-onboarding {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.btn-back {
    background: #f1f5f9;
    color: #475569;
}

.btn-back:hover {
    background: #e2e8f0;
}

.btn-next {
    background: #ffd31b;
    color: #1e293b;
}

.btn-next:hover {
    background: #e6be18;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 211, 27, 0.3);
}

.btn-next:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.btn-continue {
    background: #10b981;
    color: white;
}

.btn-continue:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-continue:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
}

.goal-selection-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    position: sticky;
    bottom: 0;
    background: white;
    padding-bottom: 1rem;
}

/* Race Selection Styles */
.race-selection-header {
    text-align: center;
    margin-bottom: 2rem;
}

.race-selection-header h2 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.race-selection-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.race-search-container {
    margin-bottom: 2rem;
    display: flex;
    gap: 1rem;
    align-items: center;
    max-width: 500px;
    margin: 0 auto 2rem auto;
}

.search-box {
    position: relative;
    flex: 1;
}

.search-box input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.search-box input:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.2rem;
    color: #64748b;
}

.race-list-container {
    max-height: 400px;
    overflow-y: auto;
    margin-bottom: 2rem;
}

.race-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.race-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: white;
    transition: all 0.3s ease;
}

.race-card:hover {
    border-color: #ffd31b;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 211, 27, 0.15);
}

.race-info {
    flex: 1;
}

.race-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.race-location {
    color: #64748b;
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
}

.race-details {
    display: flex;
    gap: 1rem;
}

.race-date, .race-distance {
    background: #f1f5f9;
    color: #475569;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.race-select {
    margin-left: 1rem;
}

.btn-select-race {
    background: #ffd31b;
    color: #1e293b;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-select-race:hover {
    background: #e6be18;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 211, 27, 0.3);
}

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

.btn-create-race {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #10b981;
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-create-race:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-create-race-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #10b981;
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.btn-create-race-inline:hover {
    background: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-icon {
    font-size: 1.2rem;
    font-weight: bold;
}

.btn-skip-race {
    background: #f1f5f9;
    color: #475569;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-skip-race:hover {
    background: #e2e8f0;
    color: #334155;
}

/* Race Info Form Styles */
.race-info-header {
    text-align: center;
    margin-bottom: 2rem;
}

.race-info-header h2 {
    color: #1e293b;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.race-info-header p {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0;
}

.race-info-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: #374151;
    font-weight: 600;
    font-size: 1rem;
}

.form-input {
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus {
    outline: none;
    border-color: #ffe566;
    box-shadow: 0 0 0 3px rgba(255, 229, 102, 0.1);
}

.form-input:read-only {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

.race-info-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #ffe566, #e6be18);
    color: #1e293b;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #e6be18, #d4a814);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 229, 102, 0.3);
}

.btn-primary:focus {
    background: linear-gradient(135deg, #ffe566, #e6be18);
    color: #1e293b;
    outline: none;
}

.btn-primary:active {
    transform: translateY(0);
    background: linear-gradient(135deg, #ffe566, #e6be18);
    color: #1e293b;
}

/* Responsive styles for race info form */
@media (max-width: 768px) {
    .race-info-header h2 {
        font-size: 2rem;
    }
    
    .race-info-form {
        gap: 1.25rem;
    }
    
    .form-input {
        padding: 0.875rem;
        font-size: 0.95rem;
    }
    
    .btn-primary {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 180px;
    }
}

.btn-create-race-inline {
    width: 100%;
    height: 45px;
}

/* Date Picker Styles */
.date-picker-container {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.date-input {
    width: 300px;
    max-width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.date-input:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1);
}

.date-input:hover {
    border-color: #cbd5e1;
}

@media (max-width: 768px) {
    .date-input {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
}

/* Weight Picker Styles */
.weight-picker-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.weight-input {
    width: 200px;
    max-width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.weight-input:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1);
}

.weight-input:hover {
    border-color: #cbd5e1;
}

.weight-unit {
    font-size: 1.2rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .weight-input {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    .weight-picker-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .weight-unit {
        margin-left: 0;
    }
}

/* Height Picker Styles */
.height-picker-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    gap: 0.5rem;
}

.height-input {
    width: 200px;
    max-width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 500;
    color: #1e293b;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.height-input:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1);
}

.height-input:hover {
    border-color: #cbd5e1;
}

.height-unit {
    font-size: 1.2rem;
    font-weight: 600;
    color: #64748b;
    margin-left: 0.5rem;
}

@media (max-width: 768px) {
    .height-input {
        width: 100%;
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    .height-picker-container {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .height-unit {
        margin-left: 0;
    }
}

/* Allergies Textarea Styles */
.allergies-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.allergies-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 400;
    color: #1e293b;
    background: white;
    cursor: text;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.allergies-textarea:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1);
}

.allergies-textarea:hover {
    border-color: #cbd5e1;
}

.character-count {
    text-align: right;
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
    margin-top: 0.5rem;
    padding-right: 0.25rem;
}

@media (max-width: 768px) {
    .allergies-container {
        margin: 1.5rem 0;
        padding: 0 1rem;
    }
    
    .allergies-textarea {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Nutrition Avoidance Textarea Styles */
.nutrition-avoidance-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 2rem 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.nutrition-avoidance-textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 400;
    color: #1e293b;
    background: white;
    cursor: text;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    resize: vertical;
    min-height: 100px;
    line-height: 1.5;
}

.nutrition-avoidance-textarea:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1);
}

.nutrition-avoidance-textarea:hover {
    border-color: #cbd5e1;
}

@media (max-width: 768px) {
    .nutrition-avoidance-container {
        margin: 1.5rem 0;
        padding: 0 1rem;
    }
    
    .nutrition-avoidance-textarea {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Onboarding Responsive Styles */
@media (max-width: 768px) {
    .onboarding-modal {
        padding: 0.5rem;
        align-items: center;
    }
    
    .onboarding-content {
        padding: 1.5rem 1rem !important;
        border-radius: 20px;
        width: 95%;
        max-height: 95vh;
        margin: 0 auto;
        padding-top: 2.5rem !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .onboarding-question h2 {
        font-size: clamp(1.5rem, 5vw, 1.8rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-weight: 700 !important;
    }
    
    .question-subtitle {
        font-size: clamp(0.85rem, 3vw, 1rem) !important;
        margin-bottom: 0.75rem !important;
        padding: 0;
        line-height: 1.4 !important;
    }
    
    .question-options {
        max-height: none !important;
        gap: 0.6rem !important;
        padding: 0;
        flex: 1;
        overflow-y: auto;
    }
    
    .onboarding-option {
        padding: 1.1rem 1rem !important;
        font-size: clamp(0.9rem, 2.5vw, 1rem) !important;
        border-radius: 12px;
        min-height: auto !important;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    .option-content {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        width: 100%;
    }
    
    .option-icon {
        font-size: 1.7rem !important;
        flex-shrink: 0;
        width: 38px !important;
        height: 38px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .option-text {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .option-title {
        font-size: clamp(0.9rem, 2.5vw, 1rem) !important;
        line-height: 1.3 !important;
        margin-bottom: 0.15rem !important;
        font-weight: 600 !important;
    }
    
    .option-description {
        font-size: clamp(0.7rem, 2vw, 0.8rem) !important;
        line-height: 1.3 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-clamp: 2 !important;
    }
    
    .btn-continue {
        padding: clamp(0.85rem, 3vw, 1rem) 1.5rem !important;
        font-size: clamp(0.95rem, 3vw, 1.05rem) !important;
        width: 100% !important;
        margin-top: 0.75rem !important;
        font-weight: 600 !important;
    }
    
    /* Progress Bar */
    .progress-bar {
        height: 6px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .progress-text {
        font-size: clamp(0.75rem, 2.5vw, 0.85rem) !important;
    }
    
    /* Language Selector - Mantener abajo a la derecha en móvil también */
    .onboarding-language-selector {
        bottom: 1rem !important;
        right: 1rem !important;
        top: auto !important;
        padding: 3px !important;
        border-radius: 20px !important;
        z-index: 10002 !important;
        position: fixed !important;
    }
    
    .onboarding-language-selector .lang-btn {
        padding: 6px 12px !important;
        font-size: 0.75rem !important;
        border-radius: 18px !important;
    }
    
    /* Onboarding Progress */
    .onboarding-progress {
        margin-bottom: 1rem !important;
        padding: 0.5rem 0 !important;
        flex-shrink: 0;
    }
    
    /* Inputs y textareas */
    .exact-value-input,
    .exact-value-textarea,
    .number-input,
    .text-input {
        font-size: clamp(0.95rem, 3vw, 1.05rem) !important;
        padding: 0.9rem !important;
    }
    
    /* Mejor distribución vertical */
    .onboarding-question {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    /* Modal ocupa toda la pantalla sin márgenes */
    .onboarding-modal.active {
        padding: 0 !important;
        align-items: stretch !important;
        height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    /* Force hide when hidden */
    .onboarding-modal.hidden-modal {
        display: none !important;
    }
    
    /* Contenido con flexbox para aprovechar toda la altura */
    .onboarding-content {
        padding: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        max-height: 100vh !important;
        margin: 0 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        height: 100vh !important;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
        box-shadow: none !important;
        position: relative !important;
    }
    
    .onboarding-content::before {
        display: none !important;
    }
    
    /* Header con progreso fijo en la parte superior */
    .onboarding-progress {
        margin-bottom: 0 !important;
        padding: 1rem 1.5rem 0.75rem !important;
        flex-shrink: 0 !important;
        background: transparent !important;
        position: relative !important;
        top: 0 !important;
        z-index: 10 !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    /* Ocultar el contador de preguntas en móvil */
    .onboarding-progress .progress-text {
        display: none !important;
    }
    
    /* Botón "atrás" en móvil - solo mostrar cuando no es la primera pregunta */
    .onboarding-back-btn {
        padding: 0.75rem 1.25rem !important;
        background: #f1f5f9 !important;
        color: #1e293b !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        cursor: pointer !important;
        align-items: center !important;
        gap: 0.5rem !important;
        transition: all 0.3s ease !important;
        font-family: 'Inter', sans-serif !important;
        margin-right: auto !important;
        /* No forzar display aquí, se controlará con JavaScript */
    }
    
    /* Mostrar botón solo cuando tiene la clase visible */
    .onboarding-back-btn:not([style*="display: none"]) {
        display: flex !important;
    }
    
    /* Centrar la barra de progreso en móvil */
    .onboarding-progress .progress-bar {
        flex: 1;
        margin: 0 0.5rem;
    }
    
    .onboarding-back-btn:hover {
        background: #e2e8f0 !important;
        border-color: #cbd5e1 !important;
        transform: translateY(-2px) !important;
    }
    
    .onboarding-back-btn:active {
        transform: translateY(0) !important;
    }
    
    .onboarding-back-btn i {
        font-size: 1rem !important;
    }
    
    .onboarding-back-btn.hidden {
        display: none !important;
    }
    
    /* Contenedor de pregunta con flex para ocupar el espacio restante */
    .onboarding-question {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 2rem 1.5rem !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
        justify-content: center !important;
    }
    
    .onboarding-question h2 {
        font-size: clamp(2rem, 7vw, 2.5rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 1.5rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        font-weight: 800 !important;
        text-align: center !important;
    }
    
    .question-subtitle {
        font-size: clamp(1.1rem, 4vw, 1.3rem) !important;
        margin-bottom: 2rem !important;
        padding: 0;
        line-height: 1.6 !important;
        text-align: center !important;
    }
    
    /* Opciones ocupan el espacio restante */
    .question-options {
        max-height: none !important;
        gap: 1rem !important;
        padding: 0;
        flex: 1;
        overflow-y: auto;
    }
    
    .onboarding-option {
        padding: 1.5rem 1.25rem !important;
        font-size: clamp(1.1rem, 3vw, 1.2rem) !important;
        border-radius: 16px !important;
        min-height: auto !important;
        display: flex;
        align-items: center;
        flex-wrap: nowrap;
        border-width: 3px !important;
    }
    
    .option-content {
        display: flex;
        align-items: center;
        gap: 1rem !important;
        width: 100%;
    }
    
    .option-icon {
        font-size: 2.2rem !important;
        flex-shrink: 0;
        width: 48px !important;
        height: 48px !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .option-text {
        flex: 1;
        min-width: 0;
        overflow: hidden;
    }
    
    .option-title {
        font-size: clamp(1.1rem, 3vw, 1.3rem) !important;
        line-height: 1.4 !important;
        margin-bottom: 0.35rem !important;
        font-weight: 700 !important;
    }
    
    .option-description {
        font-size: clamp(0.9rem, 2.5vw, 1rem) !important;
        line-height: 1.4 !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-clamp: 2 !important;
    }
    
    .btn-continue {
        padding: clamp(1.1rem, 4vw, 1.3rem) 1.5rem !important;
        font-size: clamp(1.1rem, 3.5vw, 1.2rem) !important;
        width: 100% !important;
        margin-top: 1rem !important;
        font-weight: 700 !important;
    }
    
    /* Progress Bar */
    .progress-bar {
        height: 6px !important;
        margin-bottom: 0.5rem !important;
    }
    
    .progress-text {
        font-size: clamp(0.85rem, 2.8vw, 1rem) !important;
    }
    
    /* Inputs y textareas */
    .exact-value-input,
    .exact-value-textarea,
    .number-input,
    .text-input {
        font-size: clamp(1.2rem, 4vw, 1.4rem) !important;
        padding: 1.5rem 1.25rem !important;
        border-radius: 16px !important;
        border-width: 3px !important;
    }
    
    .date-input-container,
    .number-input-container,
    .text-input-container {
        margin: 1rem 0 !important;
    }
    
    /* Contenedores de botones */
    .onboarding-buttons {
        padding: 0.5rem 1rem !important;
        flex-shrink: 0 !important;
    }
    
    .race-search-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    
    .search-box {
        width: 100%;
    }
    
    .race-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem !important;
    }
    
    .race-select {
        margin-left: 0;
        width: 100%;
    }
    
    .btn-select-race {
        width: 100% !important;
    }
    
    /* Language Selector */
    .onboarding-language-selector {
        bottom: auto !important;
        top: 0.5rem !important;
        right: 0.5rem !important;
        padding: 2px !important;
        border-radius: 15px !important;
        z-index: 10002 !important;
    }
    
    .onboarding-language-selector .lang-btn {
        padding: 4px 10px !important;
        font-size: 0.7rem !important;
        border-radius: 15px !important;
    }
    
    /* Onboarding Progress */
    .onboarding-progress {
        margin-bottom: 1rem !important;
        padding: 0.5rem 0 !important;
        flex-shrink: 0;
    }
    
    /* Mejor distribución vertical */
    .onboarding-question {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* User Dashboard Styles */
.user-info-display {
    margin-bottom: 2rem;
}

.user-dashboard-card {
    background: linear-gradient(135deg, #ffd31b 0%, #e6be18 100%);
    color: #1e293b;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    margin-bottom: 2rem;
}

.user-dashboard-card h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

.info-label {
    font-weight: 600;
    opacity: 0.9;
}

.info-value {
    font-weight: 500;
    color: #f1f5f9;
}

@media (max-width: 768px) {
    .user-dashboard-card {
        padding: 1.5rem;
    }
    
    .user-info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

/* User Profile Badge */
.user-profile-badge {
    position: relative;
    background: #f8fafc;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    flex-wrap: nowrap;
    justify-content: space-between;
    width: 100%;
}

/* Desktop: Center logout button between user-info and language-selector */
@media (min-width: 769px) {
    .user-profile-badge {
        justify-content: flex-start;
        gap: 1rem;
    }
    
    .user-profile-badge .user-info {
        flex-shrink: 0;
    }
    
    .user-profile-badge .logout-btn-selector {
        margin: 0 auto;
        flex-shrink: 0;
    }
    
    .user-profile-badge .language-selector {
        margin-left: auto;
        flex-shrink: 0;
    }
}

.user-profile-badge .user-avatar {
    width: 35px;
    height: 35px;
    background: linear-gradient(135deg, #ffd31b 0%, #ffe566 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.user-profile-badge .user-info {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    flex-shrink: 0;
    flex: 0 1 auto;
}

.user-profile-badge .user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    white-space: nowrap;
}

.user-profile-badge .user-email {
    color: #64748b;
    font-size: 0.75rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .auth-content {
        padding: 2rem;
    }
    
    .auth-header-top {
        gap: 0.75rem;
    }
    
    .auth-header h2 {
        font-size: 1.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.2;
    }
    
    .auth-close {
        width: 32px;
        height: 32px;
        font-size: 1.5rem;
        flex-shrink: 0;
    }
    
    /* En móvil, ocultar info de usuario (nombre/email) y avatar; dejar solo logout + idiomas */
    .user-profile-badge {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .user-profile-badge .user-info {
        display: none !important;
    }
    
    .user-profile-badge .user-name {
        display: none !important;
    }
    
    .user-profile-badge .user-email {
        display: none !important;
    }
    
    .user-profile-badge .user-avatar {
        display: none !important;
    }
    
    .user-profile-badge .language-selector {
        display: flex !important;
        margin-left: auto !important;
    }
}

@media (max-width: 480px) {
    .auth-content {
        padding: 1.5rem;
    }
    
    .auth-header-top {
        gap: 0.5rem;
    }
    
    .auth-header h2 {
        font-size: 1.3rem;
    }
    
    .auth-close {
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
    }
}

/* Registration Prompt in Chat */
.registration-prompt-chat {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 1rem 0;
}

.registration-prompt-chat h4 {
    color: #ffd31b;
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
}

.registration-prompt-chat p {
    color: #64748b;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.registration-prompt-chat button {
    background: #ffd31b;
    color: #1e293b;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.registration-prompt-chat button:hover {
    background: #e6be18;
    transform: translateY(-1px);
}

/* Chat Form Styles */
.chat-form-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 2rem;
    margin: 1.5rem 0;
    width: 100%;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    position: relative;
}

.chat-form-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ffd31b 0%, #ffe566 50%, #8b5cf6 100%);
    border-radius: 20px 20px 0 0;
}

.chat-form-container h4 {
    color: #ffd31b;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    text-align: center;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(255, 211, 27, 0.1);
}

.chat-supplement-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.chat-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
    width: 100%;
    box-sizing: border-box;
}

.chat-supplement-form .form-group {
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
    box-sizing: border-box;
}

.chat-supplement-form label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-supplement-form label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: linear-gradient(135deg, #ffd31b 0%, #ffe566 100%);
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-supplement-form input,
.chat-supplement-form select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
    max-width: 100%;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    line-height: 1.4;
}

.chat-supplement-form input:hover,
.chat-supplement-form select:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.chat-supplement-form input:focus,
.chat-supplement-form select:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 4px rgba(255, 211, 27, 0.15), 0 4px 16px rgba(255, 211, 27, 0.2);
    transform: translateY(-2px);
}

.chat-supplement-form input.error,
.chat-supplement-form select.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1);
}

.validation-message {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
    font-weight: 500;
}

.chat-form-submit {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border-radius: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd31b 0%, #ffe566 50%, #8b5cf6 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    box-shadow: 0 6px 20px rgba(255, 211, 27, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.chat-form-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(255, 211, 27, 0.4);
    background: linear-gradient(135deg, #e6be18 0%, #ffd31b 50%, #7c3aed 100%);
}

.chat-form-submit:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .chat-form-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    
    .chat-form-container {
        padding: 1.75rem;
        margin: 1.25rem 0;
    }
    
    .chat-form-container h4 {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }
    
    .chat-supplement-form input,
    .chat-supplement-form select {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .chat-form-submit {
        padding: 1rem;
        font-size: 1rem;
    }
}

/* Language Selector for App Home */
.app-home .language-selector {
    position: relative;
    bottom: auto;
    right: auto;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 0;
    padding: 4px;
    transition: all 0.3s ease;
    margin: 2rem auto;
    width: fit-content;
}

.app-home .language-selector:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.2);
}

.app-home .lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.app-home .lang-btn:hover {
    background: #f1f5f9;
    color: #ffd31b;
}

.app-home .lang-btn.active {
    background: #ffd31b;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(255, 211, 27, 0.3);
}

@media (max-width: 768px) {
    .language-selector {
        margin: 2rem auto;
        padding: 3px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

@media (max-width: 768px) {
    /* Logo responsivo en esquina superior izquierda - MÁS GRANDE */
    #home .landing-logo {
        position: fixed !important;
        top: 1.5rem !important;
        left: 1.5rem !important;
        z-index: 1000 !important;
    }
    
    #home .landing-logo .logo-img {
        max-width: 140px;
    }
    
    /* Ocultar logo en móvil cuando está en estado scrolled */
    #home .landing-logo.scrolled {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
    
    #home .landing-logo.scrolled .logo-img {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
    
    /* Landing header right responsive */
    .landing-header-right {
        top: 1.7rem;
        right: 1.5rem;
        gap: 0.75rem;
        flex-wrap: nowrap;
        width: auto;
    }
    
    .landing-language-dropdown {
        flex-shrink: 0;
    }
    
    .landing-language-btn {
        padding: 0.6rem 0.875rem;
        font-size: 0.85rem;
        min-width: auto;
    }
    
    .landing-language-menu {
        min-width: 170px;
        right: 0;
    }
    
    /* Login button más pequeño en móvil - alineado con el logo */
    .landing-login-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* Landing content - mejor espaciado */
    .landing-content {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
        justify-content: flex-start;
        padding-top: 4rem;
        box-sizing: border-box;
    }
    
    /* Tagline MÁS PEQUEÑO en móvil */
    .landing-tagline {
        font-size: 1.75rem;
        font-weight: 600;
        line-height: 1.2;
        gap: 0.05em;
        letter-spacing: 0.02em;
        margin-bottom: 5rem;
        padding: 0 0.5rem;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }
    
    .tagline-line1,
    .tagline-line2 {
        letter-spacing: 0.03em;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
        width: 100%;
    }
    
    .landing-subtitle {
        font-size: 0.95rem;
        margin: 3rem auto 2rem auto;
        padding: 0 1rem;
        line-height: 1.5;
    }
    
    /* Pricing responsive */
    .landing-pricing {
        max-width: 90%;
        width: 90%;
        margin-top: 1.5rem;
        margin-bottom: 0;
    }
    
    .pricing-old-price {
        font-size: 1.8rem;
    }
    
    .pricing-current-price {
        font-size: 2.2rem;
    }
    
    .pricing-period {
        font-size: 0.8rem;
    }
    
    /* Botones con ancho limitado */
    .landing-buttons {
        max-width: 90%;
        width: 90%;
        gap: 0.875rem;
        padding: 0;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .btn-signup,
    .btn-login {
        padding: 0.875rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        font-weight: 600;
        border-radius: 12px;
        min-height: 48px;
    }
    
    /* Logo responsivo en la página de la app */
    .app-logo {
        top: 1rem;
        left: 1rem;
    }
    
    .app-logo .logo-img {
        max-width: 100px;
    }
}

/* ========================================
   NUCLEAR OPTION - FORCE HIDE ALL PROBLEMATIC ELEMENTS
   ======================================== */

/* Hide ALL elements that might cause the large text issue ONLY in app-home */
.app-home h1,
.app-home .landing-tagline,
.app-home .tagline-line1,
.app-home .tagline-line2,
.app-home .landing-content,
.app-home .landing-logo,
.app-home .landing-buttons,
.app-home .landing-login-btn,
.app-home .users-pricing-section,
.app-home .why-runpi-section,
.app-home .landing-closing-section {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    font-size: 0 !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    color: transparent !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

/* Ensure home page elements are visible and properly centered */
#home .landing-content,
#home .landing-tagline,
#home .tagline-line1,
#home .tagline-line2 {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: initial !important;
    padding: initial !important;
    border: initial !important;
}

/* Specific rule for landing-buttons to allow margin control */
#home .landing-buttons {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    padding: initial !important;
    border: initial !important;
}

/* Logo SIEMPRE fijo en la esquina superior izquierda */
#home .landing-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    left: 2rem !important;
    top: 2rem !important;
    z-index: 1000 !important;
    background: initial !important;
    color: initial !important;
    font-size: initial !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
}

#home .landing-header-right {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    right: 2rem !important;
    top: 2rem !important;
    z-index: 1000 !important;
}

#home .landing-login-btn {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    height: auto !important;
    width: auto !important;
    overflow: visible !important;
}

/* New landing sections - visible by default, hidden by JavaScript when app-home is shown */
.users-pricing-section,
.why-runpi-section,
.landing-closing-section {
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Specific fix for home page title centering */
#home .landing-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

#home .landing-tagline {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

/* Force all text in app-home to be normal size */
.app-home * {
    font-size: inherit !important;
    line-height: normal !important;
    letter-spacing: normal !important;
    text-align: left !important;
    text-shadow: none !important;
    animation: none !important;
}

/* Override any Poppins font that might be causing issues */
.app-home * {
    font-family: 'Inter', sans-serif !important;
}

/* ========================================
   APP HOME STYLES - COMPLETELY NEW STRUCTURE
   ======================================== */

.app-home {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    font-family: 'Inter', sans-serif;
    padding: 0;
    margin: 0;
    position: relative;
}

/* Header Styles */
.app-header {
    background: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-radius: 0 0 1rem 1rem;
    margin: 0 1rem;
}

.app-logo-small {
    display: flex;
    align-items: center;
}

.logo-small {
    max-width: 100px;
    height: auto;
    filter: brightness(0) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.user-info h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    margin-left: auto;
}

.user-info p {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
}

/* Logout button removed */
.logout-btn {
    display: none !important;
    visibility: hidden !important;
}

.logout-btn:hover {
    display: none !important;
}

/* Navigation Styles */
.app-nav {
    background: white;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin: 1rem;
    border-radius: 1rem;
    padding: 0.5rem;
}

.nav-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s;
    border-radius: 0.75rem;
    margin: 0.25rem;
}

.nav-btn:hover {
    color: #1e293b;
    background: #f8fafc;
}

.nav-btn.active {
    color: #1e293b;
    background: #ffd31b;
    box-shadow: 0 2px 8px rgba(255, 211, 27, 0.3);
}

.nav-icon {
    font-size: 1.2rem;
}

.nav-text {
    font-size: 0.9rem;
}

/* Main Content Styles */
.app-main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Coach Container Styles */
.coach-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 300px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
}

.coach-header h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.coach-header p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Chat Area Styles */
.chat-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.chat-input-area {
    display: flex;
    gap: 0.5rem;
}

.chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.chat-input:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1);
}

.chat-send-btn {
    background: #ffd31b;
    color: #1e293b;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.chat-send-btn:hover {
    background: #e6be18;
}

/* Language Selector */
.language-selector {
    position: relative;
    bottom: auto;
    right: auto;
    z-index: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    gap: 0;
    padding: 4px;
    transition: all 0.3s ease;
    margin: 0;
    width: fit-content;
    margin-left: auto;
}

/* Language selector in footer */
.footer-bottom .language-selector {
    margin-left: auto;
    margin-right: 0;
}

/* Language selector in user-profile-badge */
.user-profile-badge .language-selector {
    margin-left: auto !important;
    margin-right: 0 !important;
    padding: 2px;
    flex-shrink: 0;
}

/* Hide any language selector that's not in user-profile-badge on desktop */
@media (min-width: 769px) {
    .language-selector:not(.user-profile-badge .language-selector) {
        display: none !important;
    }
    
    /* Also hide app-home language selector */
    .app-home .language-selector:not(.user-profile-badge .language-selector) {
        display: none !important;
    }
}

.lang-btn {
    padding: 8px 16px;
    border: none;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.lang-btn:hover {
    background: #f1f5f9;
    color: #ffd31b;
}

.lang-btn.active {
    background: #ffd31b;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(255, 211, 27, 0.3);
}

/* Logout button in language selector */
.logout-btn-selector {
    padding: 8px 16px;
    border: none;
    background: #ef4444 !important;
    color: white !important;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 8px;
}

/* Desktop: Remove margin when logout button is separate */
@media (min-width: 769px) {
    .user-profile-badge .logout-btn-selector {
        margin-left: 0;
        margin-right: 0;
    }
    
    /* Onboarding Desktop Styles */
    /* Ocultar contador de preguntas en desktop */
    .onboarding-progress .progress-text {
        display: none !important;
    }
    
    /* Mostrar botón "atrás" en desktop, posicionado arriba a la izquierda */
    /* .onboarding-content ya tiene position: relative por defecto */
    
    .onboarding-back-btn {
        position: absolute !important;
        top: 1.5rem !important;
        left: 1.5rem !important;
        z-index: 10001 !important;
        padding: 0.75rem 1.5rem !important;
        background: #f1f5f9 !important;
        color: #1e293b !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 12px !important;
        font-weight: 600 !important;
        font-size: 0.95rem !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
        transition: all 0.3s ease !important;
        font-family: 'Inter', sans-serif !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Botones de traducción en desktop - fuera de la caja blanca, abajo a la derecha */
    .onboarding-language-selector {
        position: fixed !important;
        bottom: 2rem !important;
        right: 2rem !important;
        z-index: 10003 !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: blur(10px) !important;
        border-radius: 30px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 0 !important;
        padding: 4px !important;
        transition: all 0.3s ease !important;
        margin: 0 !important;
        width: fit-content !important;
    }
    
    .onboarding-back-btn:hover {
        background: #e2e8f0 !important;
        border-color: #cbd5e1 !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    }
    
    .onboarding-back-btn:active {
        transform: translateY(0) !important;
    }
    
    .onboarding-back-btn i {
        font-size: 1rem !important;
    }
    
    /* Ocultar botón si tiene display: none o visibility: hidden en inline style (pregunta 1) */
    .onboarding-back-btn[style*="display: none"],
    .onboarding-back-btn[style*="visibility: hidden"] {
        display: none !important;
    }
    
    /* Asegurar que el botón se muestre cuando JavaScript lo active (desde pregunta 2) */
    .onboarding-back-btn[style*="display: flex"] {
        display: flex !important;
    }
}

.logout-btn-selector:hover {
    background: #dc2626 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.logout-btn-selector i {
    font-size: 0.9rem;
}

/* Logo en la página de la app */
.app-logo {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
    margin-bottom: 0;
    animation: fadeInDown 1s ease-out;
    background: transparent;
    width: auto;
    height: auto;
}

.app-logo .logo-img {
    max-width: 120px;
    width: auto;
    height: auto;
    /* Filtro para hacer el logo SVG oscuro en la página de la app */
    filter: brightness(0) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
    background: transparent;
    opacity: 1;
    display: block;
}

.home-header {
    background: white;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 101;
    margin-top: 80px; /* Espacio para el logo fijo */
    border-radius: 0 0 1rem 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.header-logo-img {
    height: 40px;
    width: auto;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    visibility: visible;
    opacity: 1;
    z-index: 10;
    position: relative;
}

.user-welcome h2 {
    margin: 0;
    color: #1e293b;
    font-size: 1.5rem;
    font-weight: 600;
}

.user-welcome p {
    margin: 0.25rem 0 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

/* Logout button removed */
.btn-logout {
    display: none !important;
    visibility: hidden !important;
}

.btn-logout:hover {
    display: none !important;
}

.btn-logout i {
    display: none !important;
}
.tab-navigation {
    background: white;
    display: flex;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 99;
    margin: 0 1rem;
    border-radius: 1rem;
    margin-top: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-weight: 500;
    transition: all 0.2s;
    border-bottom: 3px solid transparent;
    border-radius: 1rem;
    margin: 0.25rem;
}

.tab-btn:hover {
    color: #1e293b !important;
    background: #f8fafc !important;
}

.tab-btn.active {
    color: #1e293b !important;
    border-bottom-color: #ffd31b !important;
    background: #ffd31b !important;
    box-shadow: 0 2px 8px rgba(255, 211, 27, 0.3);
}

.tab-icon {
    font-size: 1.2rem;
}

.tab-text {
    font-size: 0.9rem;
}

/* Tab Content */
.tab-content {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Coach Tab Styles */
.coach-content {
    max-width: 100%;
    margin: 0 auto;
}

.coach-content .chat-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: calc(100vh - 350px);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    margin: 0;
    max-width: 100%;
}

.coach-content .chat-section h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.coach-content .chat-section p {
    color: #64748b;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.coach-content .chat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    flex: 1;
}

.coach-content .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border: 1px solid #e2e8f0;
}

.coach-content .chat-input-container {
    display: flex;
    gap: 0.5rem;
}

.coach-content .chat-input {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
}

.coach-content .chat-input:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1);
}

.coach-content .chat-send-btn {
    background: #ffd31b;
    color: #1e293b;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s;
}

.coach-content .chat-send-btn:hover {
    background: #e6be18;
}

/* Chat Messages Styles */
.chat-message {
    margin-bottom: 1rem;
    animation: fadeInUp 0.3s ease-out;
}

.chat-message.user {
    display: flex;
    justify-content: flex-end;
}

.chat-message.assistant {
    display: flex;
    justify-content: flex-start;
}

.message-sender {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.chat-message.user .message-sender {
    text-align: right;
}

.message-content {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 1rem;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.5;
}

.chat-message.user .message-content {
    background: linear-gradient(135deg, #ffd31b 0%, #ffe566 100%);
    color: #1e293b;
    border-bottom-right-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(255, 211, 27, 0.3);
}

.chat-message.assistant .message-content {
    background: white;
    color: #1e293b;
    border-bottom-left-radius: 0.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #e2e8f0;
}

/* Estilos para formato markdown en mensajes del coach */
.chat-message.assistant .message-content h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 1rem 0 0.5rem 0;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid #ffd31b;
}

.chat-message.assistant .message-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    margin: 0.75rem 0 0.25rem 0;
}

.chat-message.assistant .message-content ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.chat-message.assistant .message-content li {
    margin: 0.25rem 0;
    line-height: 1.4;
}

.chat-message.assistant .message-content hr {
    border: none;
    height: 1px;
    background: linear-gradient(to right, transparent, #e2e8f0, transparent);
    margin: 1rem 0;
}

.chat-message.assistant .message-content strong {
    font-weight: 600;
    color: #1e293b;
}

.chat-message.assistant .message-content em {
    font-style: italic;
    color: #6b7280;
}

/* Mejorar espaciado general */
.chat-message.assistant .message-content p {
    margin: 0.5rem 0;
    line-height: 1.5;
}

/* Estilos para listas numeradas */
.chat-message.assistant .message-content ol {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.chat-message.assistant .message-content ol li {
    margin: 0.25rem 0;
    line-height: 1.4;
}

/* Typing Indicator */
.chat-message.typing .message-content {
    padding: 1rem;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #64748b;
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

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

/* Scrollbar Styles for Chat */
.coach-content .chat-messages::-webkit-scrollbar {
    width: 8px;
}

.coach-content .chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.coach-content .chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.coach-content .chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Weekly Plan Tab Styles */
.plan-content {
    max-width: 1000px;
    margin: 0 auto;
}

.plan-header {
    margin-bottom: 2rem;
    text-align: center;
}

.plan-header h3 {
    color: #1e293b;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Training Plan Form */
.training-plan-form {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
}

.training-category {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
    transition: background-color 0.2s ease;
    flex-wrap: wrap;
}

.training-category:hover {
    background-color: #f8fafc;
    border-radius: 0.5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.training-category:last-child {
    border-bottom: none;
}

.category-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
    flex-shrink: 0;
}

.category-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.category-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 1rem;
}

.category-controls {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    flex: 1;
    flex-wrap: wrap;
    min-width: 0;
}

.days-selection {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.days-selection label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
    min-width: 40px;
}

.day-checkboxes {
    display: flex;
    gap: 0.5rem;
}

.day-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 0.2s;
}

.day-checkbox:hover {
    background: #f1f5f9;
}

.day-checkbox input[type="checkbox"] {
    margin-right: 0.25rem;
    width: 16px;
    height: 16px;
    accent-color: #ffd31b;
}

.day-checkbox span {
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
}

.day-checkbox input[type="checkbox"]:checked + span {
    color: #ffd31b;
    font-weight: 600;
}

.km-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.km-input label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
    min-width: 80px;
}

.km-input input[type="number"] {
    width: 120px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.km-input input[type="number"]:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1), 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Intervals specific inputs */
.intervals-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.series-input,
.series-distance-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.series-input label,
.series-distance-input label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
    min-width: 60px;
}

.series-input input[type="number"],
.series-distance-input input[type="number"] {
    width: 80px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.series-distance-input input[type="number"] {
    width: 120px;
}

.series-input input[type="number"]:focus,
.series-distance-input input[type="number"]:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1), 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

/* Strength specific inputs */
.strength-inputs {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    min-width: 0;
}

.body-part-selection,
.duration-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.body-part-selection label,
.duration-input label {
    font-weight: 500;
    color: #374151;
    font-size: 0.9rem;
    min-width: 60px;
}

.body-part-selection select {
    width: 140px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    background: white;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.duration-input input[type="number"] {
    width: 80px;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    text-align: center;
    transition: all 0.2s;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.body-part-selection select:focus,
.duration-input input[type="number"]:focus {
    outline: none;
    border-color: #ffd31b;
    box-shadow: 0 0 0 3px rgba(255, 211, 27, 0.1), 0 2px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.plan-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.btn-save-plan,
.btn-clear-plan {
    padding: 1rem 2rem;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-save-plan {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.btn-save-plan:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.btn-clear-plan {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
}

.btn-clear-plan:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3);
}

/* Activity Tab Styles */
.activity-content {
    max-width: 1000px;
    margin: 0 auto;
}

.progress-overview h3,
.activity-stats h3,
.progress-chart h3 {
    color: #1e293b;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

/* Progress Section - General Progress Bar */
/* Race Countdown Styles */
.countdown-section {
    background: white;
    border-radius: 16px;
    padding: 12px 24px;
    margin-top: -20px;
    margin-bottom: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    order: -1; /* Ensure it appears first */
}

.race-countdown {
    text-align: center;
    padding: 25px 50px;
    background: linear-gradient(135deg, #ffd31b 0%, #ffed4e 100%);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(255, 211, 27, 0.5);
    border: 3px solid rgba(255, 255, 255, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: nowrap;
    width: 100%;
}

.countdown-item {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
    flex: 0 0 auto;
}

.countdown-number {
    font-family: 'Poppins', sans-serif;
    font-size: 200px;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    letter-spacing: -6px;
    display: flex;
    align-items: baseline;
    justify-content: center;
}

.countdown-label {
    font-family: 'Poppins', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 3px;
    white-space: nowrap;
    margin: 0;
    line-height: 1;
}

.countdown-separator {
    font-family: 'Poppins', sans-serif;
    font-size: 160px;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
    margin: 0 8px;
    opacity: 0.5;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive Design for Countdown */
@media (max-width: 1200px) {
    .countdown-number {
        font-size: 160px;
        letter-spacing: -5px;
    }
    
    .countdown-label {
        font-size: 28px;
        letter-spacing: 2.5px;
    }
    
    .countdown-separator {
        font-size: 130px;
    }
}

@media (max-width: 768px) {
    .countdown-section {
        padding: 12px 8px;
        margin-top: -8px;
        margin-bottom: 20px;
    }
    
    .race-countdown {
        padding: 14px 16px;
    }
    
    .countdown-content {
        gap: 6px;
        flex-wrap: nowrap;
    }
    
    .countdown-number {
        font-size: 50px;
        letter-spacing: -2px;
    }
    
    .countdown-label {
        font-size: 12px;
        letter-spacing: 0.5px;
    }
    
    .countdown-separator {
        font-size: 35px;
        margin: 0 2px;
    }
    
    .countdown-item {
        gap: 3px;
        flex-direction: row;
        align-items: baseline;
    }
}

@media (max-width: 480px) {
    .race-countdown {
        padding: 12px 12px;
    }
    
    .countdown-content {
        gap: 3px;
        flex-wrap: nowrap;
    }
    
    .countdown-number {
        font-size: 38px;
        letter-spacing: -1.5px;
    }
    
    .countdown-label {
        font-size: 10px;
        letter-spacing: 0.3px;
    }
    
    .countdown-separator {
        font-size: 28px;
        margin: 0 1px;
    }
    
    .countdown-item {
        gap: 2px;
        flex-direction: row;
        align-items: baseline;
    }
}

.progress-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-header {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.current-week-display {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.week-label {
    color: #6b7280;
}

.week-number {
    font-weight: 700;
    color: #111827;
    font-size: 1.1rem;
}

.week-of {
    color: #9ca3af;
}

.progress-header h4 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.progress-bar-container {
    width: 100%;
}

.progress-bar-wrapper {
    width: 100%;
    position: relative;
}

.progress-percentage-wrapper {
    text-align: center;
    margin-bottom: 8px;
}

.progress-bar-bg {
    width: 100%;
    height: 32px;
    background: #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    margin-bottom: 12px;
}

.progress-bar-phases {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    border-radius: 16px;
}

.progress-phase-segment {
    position: absolute;
    top: 0;
    height: 100%;
    border-radius: 16px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.progress-phase-segment:hover {
    opacity: 0.9;
}

.phase-tooltip {
    position: fixed;
    padding: 10px 14px;
    background-color: #1e293b;
    color: white;
    font-size: 12px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 10000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 120px;
}

.tooltip-phase-name {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 4px;
    color: white;
}

.tooltip-phase-duration {
    font-weight: 500;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
}

.phase-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}


.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 16px;
    transition: width 0.6s ease, background 0.6s ease;
    min-width: 0;
    max-width: 100%;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 2;
}

.progress-info {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 8px;
}

.progress-percentage {
    font-size: 24px;
    font-weight: 700;
    color: #111827;
    text-align: center;
}

.progress-text {
    font-size: 14px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
}

/* Mobile phases labels container */
.mobile-phases-labels {
    display: none;
    position: relative;
    width: 100%;
    margin-top: 12px;
    min-height: 44px;
    padding: 0;
}

.mobile-phase-label {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    pointer-events: none;
    transform: translateX(-50%);
}

.mobile-phase-label-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6px 8px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    min-width: 65px;
    max-width: calc(100% - 4px);
    width: max-content;
}

.mobile-phase-name {
    font-size: 10px;
    font-weight: 600;
    color: #1e40af;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.mobile-phase-duration {
    font-size: 9px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.2;
    white-space: nowrap;
}

/* Responsive Design for Progress Bar */
@media (max-width: 768px) {
    .progress-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .progress-header h4 {
        font-size: 16px;
    }
    
    .progress-bar-bg {
        height: 28px;
    }
    
    .progress-percentage {
        font-size: 20px;
    }
    
    .progress-text {
        font-size: 12px;
    }
    
    .progress-percentage-wrapper {
        margin-bottom: 6px;
    }
    
    .progress-info {
        margin-top: 6px;
    }
    
    /* Hide mobile phases labels on mobile */
    .mobile-phases-labels {
        display: none !important;
        margin-top: 10px;
    }
    
    /* Adjust label positioning for very small screens */
    .mobile-phase-label-content {
        padding: 5px 6px;
        min-width: 60px;
    }
    
    .mobile-phase-name {
        font-size: 9px;
    }
    
    .mobile-phase-duration {
        font-size: 8px;
    }
}

@media (min-width: 769px) {
    /* Hide mobile phases labels on desktop */
    .mobile-phases-labels {
        display: none !important;
    }
}

/* Weekly Days Tracking Section */
.weekly-days-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.weekly-days-header {
    margin-bottom: 20px;
}

.weekly-days-header h4 {
    margin: 0;
    color: #111827;
    font-size: 18px;
    font-weight: 600;
}

.weekly-days-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

/* Today Tab - Day Tabs */
.today-day-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
    border-bottom: 2px solid #e5e7eb;
}

.today-day-tab {
    flex: 1;
    min-width: 100px;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-weight: 500;
    color: #6b7280;
    position: relative;
}

.today-day-tab:hover {
    background: #f9fafb;
    border-color: #cbd5e1;
    color: #374151;
}

.today-day-tab.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
    font-weight: 600;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.today-day-tab.active .tab-day-name {
    color: white;
}

.today-day-tab.active .tab-today-badge {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

.tab-day-name {
    font-size: 14px;
    color: inherit;
}

.tab-today-badge {
    background: #3b82f6;
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.today-day-tab.active .tab-today-badge {
    background: rgba(255, 255, 255, 0.3);
}

/* Today Tab - Two Column Layout */
.today-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.today-column {
    flex: 1;
    min-width: 0;
    display: block; /* Show by default on desktop */
}

/* Hide mobile buttons on desktop */
.today-mobile-buttons {
    display: none;
}

.today-column-header {
    margin-bottom: 16px;
}

.today-column-header h4 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid #e5e7eb;
}

.today-training-column .today-column-header h4 {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.today-nutrition-column .today-column-header h4 {
    color: #10b981;
    border-bottom-color: #10b981;
}

.today-column-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.today-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
}

.today-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.today-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.today-card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.today-training-column .today-card {
    border-color: #3b82f6;
    background: #eff6ff;
}

.today-nutrition-column .today-card {
    border-color: #10b981;
    background: #ecfdf5;
}

.today-card-current {
    border-width: 3px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.today-training-column .today-card-current {
    border-color: #2563eb !important;
    background: #dbeafe !important;
}

.today-nutrition-column .today-card-current {
    border-color: #059669 !important;
    background: #d1fae5 !important;
}

/* Locked state styles */
.today-card.locked {
    opacity: 0.95;
}

.today-card.locked .feedback-input.locked,
.today-card.locked .difficulty-btn.locked,
.today-card.locked .yes-no-btn.locked,
.today-card.locked .ease-btn.locked {
    cursor: not-allowed;
    pointer-events: none;
}

/* Campos de entrada bloqueados - mostrar valores claramente */
.today-card.locked .feedback-input.locked:disabled {
    background: #f9fafb;
    color: #1f2937;
    border-color: #d1d5db;
    opacity: 1;
}

/* Botones bloqueados - mantener visibilidad de selección */
.today-card.locked .difficulty-btn.locked:disabled,
.today-card.locked .yes-no-btn.locked:disabled,
.today-card.locked .ease-btn.locked:disabled {
    opacity: 1;
}

/* Botones activos bloqueados - mantener estilo activo visible */
.today-card.locked .difficulty-btn.locked.active:disabled {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
    opacity: 0.9;
}

.today-card.locked .yes-no-btn.locked.active:disabled {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    opacity: 0.9;
}

.today-card.locked .ease-btn.locked.active:disabled {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    opacity: 0.9;
}

/* Botones no activos bloqueados - estilo neutro pero visible */
.today-card.locked .difficulty-btn.locked:disabled:not(.active),
.today-card.locked .yes-no-btn.locked:disabled:not(.active),
.today-card.locked .ease-btn.locked:disabled:not(.active) {
    background: #f3f4f6;
    border-color: #d1d5db;
    color: #6b7280;
    opacity: 0.7;
}

/* Save section */
.save-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 2px solid #e5e7eb;
}

.save-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

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

.save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Locked message */
.locked-message {
    margin-top: 24px;
    padding: 16px;
    background: #f3f4f6;
    border-radius: 10px;
    text-align: center;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.locked-icon {
    font-size: 18px;
}

.no-training-message {
    padding: 16px;
    background: white;
    border-radius: 8px;
    color: #6b7280;
    font-style: italic;
    text-align: center;
    border: 1px dashed #d1d5db;
}

.checkbox-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Training Scheduled Section */
.training-scheduled-section {
    margin-bottom: 24px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.training-scheduled-title {
    font-size: 14px;
    color: #374151;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.training-scheduled-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.training-type-display {
    font-size: 16px;
    color: #1e293b;
    margin-bottom: 8px;
}

.training-details-text {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

.training-details-text p {
    margin: 4px 0;
}

/* Training Feedback Section */
.training-feedback-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.feedback-question {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.feedback-input {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.feedback-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.feedback-hint {
    font-size: 12px;
    color: #6b7280;
    font-style: italic;
}

/* Difficulty Selector */
.difficulty-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.difficulty-btn {
    flex: 1;
    min-width: 80px;
    padding: 12px 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.difficulty-btn:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    transform: translateY(-2px);
}

.difficulty-btn.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.difficulty-number {
    font-size: 20px;
    font-weight: 700;
    color: inherit;
}

.difficulty-btn.active .difficulty-number {
    color: white;
}

.difficulty-label {
    font-size: 11px;
    font-weight: 500;
    color: inherit;
    text-align: center;
}

.difficulty-btn.active .difficulty-label {
    color: white;
}

/* Nutrition Feedback Section */
.nutrition-feedback-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Yes/No Selector */
.yes-no-selector {
    display: flex;
    gap: 12px;
}

.yes-no-btn {
    flex: 1;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

.yes-no-btn:hover {
    border-color: #10b981;
    background: #ecfdf5;
    transform: translateY(-2px);
}

.yes-no-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

/* Changed Meal Details */
.changed-meal-details {
    margin-top: 12px;
    animation: fadeIn 0.3s ease;
}

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

/* Ease Selector */
.ease-selector {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ease-btn {
    flex: 1;
    min-width: 80px;
    padding: 10px 8px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ease-btn:hover {
    border-color: #10b981;
    background: #ecfdf5;
    transform: translateY(-2px);
}

.ease-btn.active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.ease-label {
    font-size: 12px;
    font-weight: 500;
    color: inherit;
    text-align: center;
}

.ease-btn.active .ease-label {
    color: white;
}

/* Plan Warning Modal */
.plan-warning-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.plan-warning-content {
    background: white;
    border-radius: 16px;
    padding: 24px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

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

.plan-warning-header {
    margin-bottom: 16px;
}

.plan-warning-header h3 {
    margin: 0;
    color: #dc2626;
    font-size: 20px;
    font-weight: 600;
}

.plan-warning-body {
    margin-bottom: 24px;
}

.plan-warning-body p {
    margin: 12px 0;
    color: #374151;
    line-height: 1.6;
}

.plan-warning-body ul {
    margin: 12px 0;
    padding-left: 24px;
    color: #64748b;
}

.plan-warning-body li {
    margin: 8px 0;
    line-height: 1.5;
}

.plan-warning-body strong {
    color: #1e293b;
    font-weight: 600;
}

.plan-warning-footer {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.plan-warning-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-warning-btn-cancel {
    background: #f3f4f6;
    color: #374151;
}

.plan-warning-btn-cancel:hover {
    background: #e5e7eb;
}

.plan-warning-btn-confirm {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    color: white;
}

.plan-warning-btn-confirm:hover {
    background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.day-tracking-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    transition: all 0.3s ease;
}

.day-tracking-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.day-tracking-card.today {
    border-color: #3b82f6;
    background: #eff6ff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.day-tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.day-name-section {
    display: flex;
    align-items: center;
    gap: 8px;
}

.day-name-section h5 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    font-weight: 600;
}

.today-badge {
    background: #3b82f6;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.day-date {
    font-size: 12px;
    color: #6b7280;
}

.day-tracking-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.training-display {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.training-label {
    font-size: 12px;
    color: #6b7280;
    font-weight: 500;
}

.training-name {
    font-size: 13px;
    color: #111827;
    font-weight: 600;
}

.checkboxes-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 10px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: #f3f4f6;
    border-color: #3b82f6;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
    flex-shrink: 0;
}

.checkbox-text {
    font-size: 13px;
    color: #374151;
    font-weight: 500;
    user-select: none;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-text {
    color: #3b82f6;
    font-weight: 600;
}

.error-message {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
    text-align: center;
}

/* Responsive Design for Weekly Days */
@media (max-width: 768px) {
    .weekly-days-section {
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .weekly-days-header h4 {
        font-size: 16px;
    }
    
    .weekly-days-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .day-tracking-card {
        padding: 12px;
    }
    
    .day-name-section h5 {
        font-size: 14px;
    }
    
    .training-display {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .checkbox-text {
        font-size: 12px;
    }
    
    /* Today Tab Responsive */
    /* Show mobile buttons on mobile */
    .today-mobile-buttons {
        display: flex;
    }
    
    .today-day-tabs {
        gap: 4px;
        margin-bottom: 16px;
    }
    
    .today-day-tab {
        min-width: 80px;
        padding: 8px 12px;
    }
    
    .tab-day-name {
        font-size: 12px;
    }
    
    .tab-today-badge {
        font-size: 9px;
        padding: 1px 4px;
    }
    
    /* Mobile Collapsible Buttons */
    .today-mobile-buttons {
        display: flex;
        flex-direction: column;
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .today-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 20px;
        background: white;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 16px;
        font-weight: 600;
        color: #111827;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    }
    
    .today-mobile-btn:hover {
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    .today-mobile-training-btn {
        border-color: #3b82f6;
        background: #eff6ff;
        color: #1e40af;
    }
    
    .today-mobile-training-btn.active {
        background: #dbeafe;
        border-color: #2563eb;
    }
    
    .today-mobile-nutrition-btn {
        border-color: #10b981;
        background: #ecfdf5;
        color: #065f46;
    }
    
    .today-mobile-nutrition-btn.active {
        background: #d1fae5;
        border-color: #059669;
    }
    
    .mobile-btn-icon {
        font-size: 20px;
        margin-right: 12px;
    }
    
    .mobile-btn-text {
        flex: 1;
        text-align: left;
    }
    
    .mobile-btn-arrow {
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    
    .today-mobile-btn.active .mobile-btn-arrow {
        transform: rotate(180deg);
    }
    
    .today-layout {
        flex-direction: column;
        gap: 16px;
    }
    
    /* Hide columns by default on mobile, show when active */
    .today-column {
        display: none;
        animation: slideDown 0.3s ease;
    }
    
    .today-column.active {
        display: block;
    }
    
    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    .today-column-header h4 {
        font-size: 18px;
    }
    
    .today-card {
        padding: 16px;
    }
    
    .training-scheduled-section {
        padding: 12px;
    }
    
    .difficulty-selector {
        flex-direction: column;
    }
    
    .difficulty-btn {
        width: 100%;
    }
    
    .feedback-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .yes-no-selector {
        flex-direction: column;
    }
    
    .yes-no-btn {
        width: 100%;
    }
    
    .ease-selector {
        flex-direction: column;
    }
    
    .ease-btn {
        width: 100%;
    }
}

/* Desktop: Always show columns */
@media (min-width: 769px) {
    .today-mobile-buttons {
        display: none !important;
    }
    
    .today-column {
        display: block !important;
    }
}

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

.progress-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress-icon {
    font-size: 2rem;
    background: #dbeafe;
    padding: 1rem;
    border-radius: 50%;
    width: 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-info h4 {
    margin: 0 0 0.25rem 0;
    color: #1e293b;
    font-size: 1rem;
    font-weight: 600;
}

.progress-info p {
    margin: 0;
    color: #ffd31b;
    font-size: 1.25rem;
    font-weight: 700;
}

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

.stat-item {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #ffd31b;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 500;
}

.chart-container {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#progressChart {
    max-width: 100%;
    max-height: 100%;
}

/* Responsive Design for App Home */
@media (max-width: 1024px) {
    .training-plan-form {
        padding: 1.5rem;
        margin: 1rem;
    }
    
    .training-category {
        gap: 1rem;
    }
    
    .category-controls {
        gap: 1rem;
    }
    
    .intervals-inputs,
    .strength-inputs {
        gap: 0.75rem;
    }
}

@media (max-width: 768px) {
    .coach-content .chat-section {
        height: calc(100vh - 150px);
        min-height: 400px;
        padding: 1rem;
    }
    
    .tab-navigation {
        position: static;
    }
    
    .tab-btn {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }
    
    .tab-icon {
        font-size: 1rem;
    }
    
    .training-category {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .category-info {
        min-width: auto;
        width: 100%;
        justify-content: flex-start;
    }
    
    .category-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    
    .days-selection {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        width: 100%;
    }
    
    .day-checkboxes {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .km-input {
        width: 100%;
        justify-content: space-between;
    }
    
    .km-input input[type="number"] {
        width: 120px;
    }
    
    .intervals-inputs {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    
    .series-input,
    .series-distance-input {
        width: 100%;
        justify-content: space-between;
    }
    
    .series-input input[type="number"] {
        width: 100px;
    }
    
    .series-distance-input input[type="number"] {
        width: 140px;
    }
    
    .strength-inputs {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    
    .body-part-selection,
    .duration-input {
        width: 100%;
        justify-content: space-between;
    }
    
    .body-part-selection select {
        width: 160px;
    }
    
    .duration-input input[type="number"] {
        width: 100px;
    }
    
    .calendar-body {
        gap: 0.25rem;
    }
    
    .calendar-day {
        min-height: 80px;
        font-size: 0.8rem;
    }
    
    .progress-cards {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .home-header {
        padding: 0.75rem 1rem;
    }
    
    .header-logo-img {
        height: 30px;
    }
    
    .header-right {
        gap: 0.5rem;
    }
    
    /* En móvil, mostrar email a la izquierda y botones a la derecha (igual que desktop) */
    .user-profile-badge {
        padding: 0.5rem 1rem;
        width: 100%;
        border-radius: 50px;
        cursor: default;
        justify-content: space-between;
        overflow: visible;
        border: 2px solid #e2e8f0;
        flex-wrap: nowrap;
        align-items: center;
    }
    
    .user-profile-badge .user-avatar {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
        flex-shrink: 0;
    }
    
    /* En móvil, ocultar el bloque de info de usuario */
    .user-profile-badge .user-info {
        display: none !important;
    }
    
    /* En móvil, ocultar nombre */
    .user-profile-badge .user-name {
        display: none !important;
    }
    
    .user-profile-badge .user-email {
        display: none !important;
    }
    
    /* En móvil, ocultar avatar */
    .user-profile-badge .user-avatar {
        display: none !important;
    }
    
    /* Asegurar que los botones de traducción estén a la derecha */
    .user-profile-badge .language-selector {
        margin-left: auto !important;
        margin-right: 0 !important;
        flex-shrink: 0;
    }
    
}

/* Chat Message Styles */
.chat-message {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    max-width: 80%;
}

.chat-message.user {
    background: #ffd31b;
    color: #1e293b;
    margin-left: auto;
    text-align: right;
}

.chat-message.assistant {
    background: #f1f5f9;
    color: #1e293b;
    margin-right: auto;
}

.message-sender {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    opacity: 0.8;
}

.message-content {
    font-size: 0.9rem;
    line-height: 1.4;
}

.typing-dots {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    background: #64748b;
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Workout Item Styles */

/* Notification Styles */
.notification {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
}

/* Custom Scrollbar for Chat */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ========================================
   MEJORAS DE RESPONSIVE Y VISIBILIDAD
   ======================================== */

/* Asegurar que todos los botones sean clickeables */
button, .btn-primary, .btn-secondary, .btn-signup, .btn-login,
.btn-continue, .btn-back, .btn-next, .btn-onboarding, .auth-close,
.btn-save-plan, .btn-clear-plan, .chat-send-btn,
.plan-button, .btn-select-race, .btn-create-race, .btn-skip-race,
.nav-btn, .tab-btn, .btn-introduce-plan {
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(255, 211, 27, 0.3);
    position: relative;
    z-index: 1;
}

/* Mejorar visibilidad de botones en móvil */
@media (max-width: 768px) {
    button, .btn-primary, .btn-secondary, .btn-signup, .btn-login {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    /* Navegación responsive - Botones centrados y adaptados */
    .app-nav {
        margin: 0.5rem;
        padding: 0.25rem;
        border-radius: 0.75rem;
    }
    
    .nav-btn {
        flex: 1;
        padding: 0.75rem 0.3rem;
        margin: 0.1rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.25rem;
        min-height: 75px;
        text-align: center;
        min-width: 0;
    }
    
    .nav-icon {
        font-size: 1.15rem;
        margin: 0;
        flex-shrink: 0;
    }
    
    .nav-text {
        font-size: 0.68rem;
        text-align: center;
        line-height: 1.2;
        width: 100%;
        word-break: keep-all;
        overflow-wrap: normal;
        hyphens: none;
        white-space: nowrap;
        overflow: visible;
    }
    
    /* Multi-line navigation text (for Weekly Plan) */
    .nav-btn-multiline .nav-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.1rem;
    }
    
    .nav-text-line {
        display: block;
        line-height: 1.2;
        word-break: keep-all;
    }
}

/* Chat Messages - Mejorar visibilidad */
.chat-messages, .message-content, .chat-message {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

.chat-message.user .message-content,
.chat-message.assistant .message-content {
    max-width: 85%;
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .chat-message.user .message-content,
    .chat-message.assistant .message-content {
        max-width: 90%;
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
}

/* Mejorar área de scroll del chat */
.chat-messages {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    overflow-y: auto;
    max-height: calc(100vh - 300px);
    padding: 1rem;
}

@media (max-width: 768px) {
    .chat-messages {
        max-height: calc(100vh - 200px);
        padding: 0.75rem;
    }
}

/* Asegurar que el input del chat sea visible y usable */
.chat-input {
    min-height: 48px;
    font-size: 1rem;
    padding: 0.875rem 1rem;
}

@media (max-width: 768px) {
    .chat-input {
        min-height: 44px;
        font-size: 16px;
    }
    
    .chat-send-btn {
        min-width: 60px;
        min-height: 44px;
        padding: 0.625rem;
    }
}

/* Training Week Display */
.training-week-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #ffd31b;
}

.training-week-display .week-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.training-week-display .week-text {
    font-size: 1rem;
    color: #6b7280;
    font-weight: 500;
}

.training-week-display .week-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.week-nav-btn {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    color: #111827;
    transition: all 0.2s ease;
    font-weight: 600;
}

.week-nav-btn:hover:not(:disabled) {
    background: #ffd31b;
    border-color: #ffd31b;
    transform: scale(1.05);
}

.week-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
