
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo a:hover {
    opacity: 0.8;
    text-decoration: none;
}

.logo a:visited {
    color: inherit;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

    .nav-links a {
        text-decoration: none;
        color: #333;
        font-weight: 500;
        transition: color 0.3s ease;
    }

        .nav-links a:hover {
            color: #667eea;
        }

.header-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.login-button {
    color: #333;
    text-decoration: none;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    border: 2px solid #667eea;
    transition: all 0.3s ease;
}

    .login-button:hover {
        background: #667eea;
        color: white;
        transform: translateY(-2px);
    }

.cta-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .cta-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    }

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><circle cx="200" cy="200" r="3" fill="white" opacity="0.1"/><circle cx="400" cy="100" r="2" fill="white" opacity="0.1"/><circle cx="600" cy="300" r="4" fill="white" opacity="0.1"/><circle cx="800" cy="150" r="2" fill="white" opacity="0.1"/><circle cx="300" cy="400" r="3" fill="white" opacity="0.1"/><circle cx="700" cy="450" r="2" fill="white" opacity="0.1"/></svg>') repeat;
    }

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: white;
    color: #667eea;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid white;
    transition: all 0.3s ease;
}

    .btn-primary:hover,
    .btn-secondary:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    }

    .btn-secondary:hover {
        background: white;
        color: #667eea;
    }

.hero-mockup {
    text-align: center;
    position: relative;
}

.mockup-container {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

    .mockup-container:hover {
        transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    }

.dashboard-preview {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 1.2rem;
    font-weight: 600;
    overflow: hidden;
}

.dashboard-image {
    max-width: 100%;
    max-height: 280px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #f8fafc;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

    .section-header h2 {
        font-size: 2.8rem;
        font-weight: 700;
        margin-bottom: 1rem;
        color: #1a202c;
    }

    .section-header p {
        font-size: 1.2rem;
        color: #64748b;
        max-width: 600px;
        margin: 0 auto;
    }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

    .feature-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 25px 50px rgba(102, 126, 234, 0.15);
    }

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.feature-card p {
    color: #64748b;
    line-height: 1.7;
}

/* How it Works */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #1a202c;
}

.step p {
    color: #64748b;
}

/* Pricing */
.pricing {
    padding: 100px 0;
    background: #f8fafc;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.pricing-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    overflow: visible; /* Importante para que el badge sobresalga */
}

    .pricing-card.popular {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        transform: scale(1.05);
    }

    .pricing-card:hover {
        transform: translateY(-5px);
    }

    .pricing-card.popular:hover {
        transform: scale(1.05) translateY(-5px);
    }

.plan-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.plan-period {
    opacity: 0.7;
    margin-bottom: 2rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
}

    .plan-features li {
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

.pricing-card.popular .plan-features li {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

    .cta-section h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .cta-section p {
        font-size: 1.2rem;
        margin-bottom: 2rem;
        opacity: 0.9;
    }

/* Footer */
footer {
    background: #1a202c;
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

    .footer-section ul li {
        margin-bottom: 0.5rem;
    }

        .footer-section ul li a {
            color: #a0aec0;
            text-decoration: none;
            transition: color 0.3s ease;
        }

            .footer-section ul li a:hover {
                color: white;
            }

.footer-bottom {
    border-top: 1px solid #2d3748;
    padding-top: 2rem;
    text-align: center;
    color: #a0aec0;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .mockup-container {
        transform: none;
    }

    /* Login page responsive */
    .login-section {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .login-container {
        grid-template-columns: 1fr;
        margin: 0.5rem;
        gap: 2rem;
        border-radius: 15px;
    }
    
    .login-form-wrapper {
        padding: 1.5rem;
        order: 2;
    }
    
    .login-image {
        order: 1;
        padding: 1.5rem;
        display: none; /* Ocultar imagen en móvil para más espacio */
    }
    
    .login-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .login-header p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    /* Register page responsive */
    .register-section {
        padding: 1rem 0;
        min-height: auto;
    }
    
    .register-container {
        grid-template-columns: 1fr;
        margin: 0.5rem;
        gap: 2rem;
        border-radius: 15px;
    }
    
    .register-form-wrapper {
        padding: 1.5rem;
        order: 2;
    }
    
    .register-image {
        order: 1;
        padding: 1.5rem;
        display: none; /* Ocultar imagen en móvil para más espacio */
    }
    
    .register-header h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .register-header p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
        margin-bottom: 0;
    }

    .form-group.half-width {
        margin-bottom: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px !important; /* Prevenir zoom en iOS */
        padding: 0.75rem !important;
        width: 100% !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 10px !important;
        transition: border-color 0.3s ease !important;
        background-color: white !important;
        box-sizing: border-box !important;
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none !important;
        border-color: #667eea !important;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    }
    
    .login-btn,
    .register-btn {
        padding: 0.75rem 2rem;
        font-size: 1rem;
        margin-top: 1rem;
    }
    
    .terms-group,
    .newsletter-group {
        margin-bottom: 1rem;
    }
    
    .checkbox-container {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .remember-me {
        font-size: 0.9rem;
    }
    
    .forgot-password {
        font-size: 0.9rem;
        align-self: flex-start;
    }
}

/* Mobile specific styles for very small screens */
@media (max-width: 480px) {
    body {
        font-size: 14px !important;
    }
    
    .container {
        padding: 0 0.5rem;
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .login-section,
    .register-section {
        padding: 0.5rem 0;
    }
    
    .login-container,
    .register-container {
        margin: 0.25rem;
        border-radius: 12px;
    }
    
    .login-form-wrapper,
    .register-form-wrapper {
        padding: 1rem;
    }
    
    .login-header h1,
    .register-header h1 {
        font-size: 1.5rem;
    }
    
    .form-group input,
    .form-group textarea {
        font-size: 16px !important; /* Mantener para prevenir zoom */
        padding: 0.625rem !important;
        width: 100% !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 10px !important;
        transition: border-color 0.3s ease !important;
        background-color: white !important;
        box-sizing: border-box !important;
        min-height: 48px !important; /* Mejor para touch */
    }
    
    .form-group input:focus,
    .form-group textarea:focus {
        outline: none !important;
        border-color: #667eea !important;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    }
    
    .login-btn,
    .register-btn {
        width: 100%;
        padding: 0.875rem;
        font-size: 1rem;
        border-radius: 8px;
    }
    
    .checkbox-container {
        font-size: 0.85rem;
    }
    
    .terms-link,
    .forgot-password,
    .login-link,
    .signup-link {
        font-size: 0.85rem;
    }
    
    /* Modal responsive */
    .modal-content {
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .modal-header h4 {
        font-size: 1.25rem;
    }
    
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
}

/* Landscape mode for phones */
@media (max-height: 500px) and (orientation: landscape) {
    .login-section,
    .register-section {
        padding: 0.5rem 0;
        min-height: auto;
    }
    
    .login-image,
    .register-image {
        display: none !important;
    }
    
    .login-header,
    .register-header {
        margin-bottom: 1rem;
    }
    
    .login-header h1,
    .register-header h1 {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .login-header p,
    .register-header p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Login Page Styles */
.login-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-form-wrapper {
    padding: 3rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a202c;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.remember-me {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
}

.remember-me input {
    margin-right: 0.5rem;
}

.forgot-password {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 1.5rem;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.login-footer {
    text-align: center;
    margin-bottom: 2rem;
}

.signup-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.signup-link:hover {
    text-decoration: underline;
}

.divider {
    text-align: center;
    margin: 2rem 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    background: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #667eea;
    transform: translateY(-1px);
}

.login-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: white;
}

.feature-highlight h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-highlight p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    margin-bottom: 1rem;
    font-size: 1rem;
    opacity: 0.9;
}

/* Register Page Styles */
.register-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    padding: 2rem 0;
}

.register-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.register-form-wrapper {
    padding: 3rem;
}

.register-header {
    text-align: center;
    margin-bottom: 2rem;
}

.register-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 0.5rem;
}

.register-header p {
    color: #64748b;
    font-size: 1.1rem;
}

.register-form {
    max-width: 600px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.half-width {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a202c;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.field-hint {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.terms-group,
.newsletter-group {
    margin: 1.5rem 0;
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.checkbox-container input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 0.2rem;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

/* Alert styles */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.alert-danger {
    background-color: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

/* User email in header */
.user-email {
    margin-right: 1rem;
    color: #475569;
    font-size: 0.875rem;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1400px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    color: #1e293b;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.dashboard-header p {
    color: #64748b;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Dashboard Actions */
.dashboard-actions {
    margin-top: 1rem;
}

.download-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-app-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.download-app-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.download-app-btn svg {
    transition: transform 0.3s ease;
}

.download-app-btn:hover svg {
    transform: translateY(2px);
}

.change-password-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 0.875rem 1.75rem;
    border: none;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
    cursor: pointer;
    margin-left: 1rem;
}

.change-password-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 87, 108, 0.4);
    color: white;
}

.change-password-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.change-password-btn svg {
    transition: transform 0.3s ease;
}

.change-password-btn:hover svg {
    transform: scale(1.1);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    font-size: 2.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.stat-content p {
    color: #64748b;
    margin: 0;
    font-size: 0.9rem;
}

/* Charts Section */
.charts-section {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.charts-section .chart-small {
    max-width: 600px;
    width: 100%;
}

/* Adjustments for AG-Grid in chart-small container */
.chart-small .ag-theme-alpine {
    font-size: 0.9rem;
}

.chart-small .table {
    font-size: 0.9rem;
}

/* Full size AG-Grid in large containers */
.chart-large .ag-theme-alpine {
    font-size: 1rem;
}

.chart-large .table {
    font-size: 1rem;
}

/* Clients Section - Full Width */
.clients-section {
    margin-bottom: 3rem;
}

.clients-section .chart-large {
    width: 100%;
}

/* Monthly Chart Section - Full Width */
.monthly-chart-section {
    margin-bottom: 3rem;
}

.chart-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.chart-container h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Content Section */
.content-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.grid-container, .subscription-container {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

.grid-container h3, .subscription-container h3 {
    color: #1e293b;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

/* Subscription Card */
.subscription-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.subscription-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 10px;
    flex-wrap: wrap;
}

.subscription-header h4 {
    margin: 0;
    font-size: 1.25rem;
}

.subscription-status.active {
    background: beige;
    color: #28a745;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.subscription-status.canceled {
    background: black;
    color: yellow;
    padding: 0.4rem 0.85rem;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    max-width: fit-content;
    line-height: 1.2;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.subscription-status.blocked {
    background: rgba(220, 53, 69, 0.15);
    color: #dc3545;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.subscription-price {
    margin-bottom: 1rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
}

.period {
    font-size: 1rem;
    opacity: 0.8;
}

.subscription-billing {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.features-usage h5 {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.feature-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.feature-name {
    opacity: 0.9;
}

.feature-usage {
    font-weight: 600;
}

.subscription-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.subscription-actions .btn {
    flex: 1;
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-warning {
    background: #fbbf24;
    color: #1f2937;
}

.btn-warning:hover {
    background: #f59e0b;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background: #4b5563;
}

/* Priority badges */
.priority-alta {
    background: #ef4444;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.priority-media {
    background: #f59e0b;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.priority-baja {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

#changePlanModal .modal-content {
    width: 95%;
    max-width: 1000px;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h4 {
    margin: 0;
    color: #1e293b;
}

.close {
    color: #9ca3af;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #374151;
}

.modal-body {
    padding: 1.5rem;
    overflow: visible;
}

.cancellation-reason, .feedback-section {
    margin: 1rem 0;
}

.cancellation-reason label, .feedback-section label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
}

.cancellation-reason select, .feedback-section textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Responsive Design */
@media (max-width: 768px) {
    .charts-section {
        margin-bottom: 1.5rem;
    }
    
    .charts-section .chart-small {
        max-width: 100%;
    }
    
    .clients-section .chart-container {
        padding: 1rem;
    }
    
    .clients-section div[style*="height: 350px"] {
        height: 300px !important;
    }
    
    .monthly-chart-section .chart-container {
        padding: 1rem;
    }
    
    .monthly-chart-section .chart-container h3 {
        font-size: 1.1rem;
    }
    
    .monthly-chart-section div[style*="height: 400px"] {
        height: 300px !important;
    }
    
    .content-section {
        grid-template-columns: 1fr;
    }
    
    /* Make sure pie chart is centered in mobile */
    .grid-container div[style*="height: 300px"] {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .subscription-actions {
        flex-direction: column;
    }
    
    .download-app-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
    }
    
    .dashboard-header h1 {
        font-size: 2rem;
    }
}

.register-btn {
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin: 1.5rem 0;
}

.register-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.register-footer {
    text-align: center;
    margin-bottom: 2rem;
}

.login-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.login-link:hover {
    text-decoration: underline;
}

.social-register {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.register-image {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    color: white;
}

.pricing-highlight {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-top: 2rem;
    text-align: center;
}

.pricing-text {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.pricing-text strong {
    color: #fbbf24;
    font-size: 1.5rem;
}

.trial-text {
    font-size: 1rem;
    opacity: 0.9;
}

/* Trial Warning Styles */
.trial-warning-container {
    margin: 20px 0;
}

.trial-alert {
    border-left: 5px solid;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.alert-warning {
    background-color: #fff8dc;
    border-left-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.trial-content h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.trial-content p {
    margin-bottom: 12px;
    font-size: 1rem;
}

.trial-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 15px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 6px;
    font-size: 0.9rem;
}

.trial-details span {
    display: block;
}

.trial-urgent {
    background: rgba(220, 53, 69, 0.1);
    padding: 10px;
    border-radius: 6px;
    margin-top: 10px;
    font-weight: 600;
}

@media (max-width: 768px) {
    .trial-details {
        flex-direction: column;
        gap: 6px;
    }
    
    .trial-content h4 {
        font-size: 1.1rem;
    }
    
    .trial-alert {
        padding: 15px;
        margin: 10px 0;
    }
}

/* FORZAR ESTILOS MÓVILES - IMPORTANTE PARA DEBUGGING */
@media screen and (max-width: 768px) {
    /* Asegurar que los formularios se vean */
    .login-section .form-group input,
    .register-section .form-group input,
    .login-section .form-group textarea,
    .register-section .form-group textarea {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        width: 100% !important;
        height: auto !important;
        min-height: 44px !important;
        padding: 12px 16px !important;
        margin: 0 !important;
        border: 2px solid #e2e8f0 !important;
        border-radius: 8px !important;
        background-color: #ffffff !important;
        color: #333333 !important;
        font-size: 16px !important;
        font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
        box-sizing: border-box !important;
        -webkit-appearance: none !important;
        -moz-appearance: none !important;
        appearance: none !important;
    }
    
    /* Etiquetas de formulario */
    .login-section .form-group label,
    .register-section .form-group label {
        display: block !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
        color: #1a202c !important;
        font-size: 14px !important;
    }
    
    /* Contenedores de formulario */
    .login-form-wrapper,
    .register-form-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 20px !important;
        background-color: white !important;
    }
    
    /* Contenedores principales */
    .login-container,
    .register-container {
        width: calc(100% - 20px) !important;
        max-width: 100% !important;
        margin: 10px !important;
        display: block !important;
        background-color: white !important;
        border-radius: 12px !important;
        overflow: visible !important;
    }
    
    /* Ocultar imágenes en móvil */
    .login-image,
    .register-image {
        display: none !important;
    }
    
    /* Botones */
    .login-btn,
    .register-btn {
        width: 100% !important;
        padding: 14px !important;
        font-size: 16px !important;
        border: none !important;
        border-radius: 8px !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        cursor: pointer !important;
        margin-top: 10px !important;
    }
}

/* Plan Selection Modal Styles */
.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
    overflow: visible;
}

.plan-option {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    overflow: visible;
}

.plan-option:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.plan-option[data-plan="Professional"] {
    border-color: #ffc107;
}

.plan-option h5 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    /* color: black; */
    margin-bottom: 20px;
}

.plan-price span {
    font-size: 1rem;
    color: #666;
    font-weight: normal;
}

.popular-badge {
   position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5757 100%);
    color: white;
    padding: 6px 20px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 87, 87, 0.4);
}

.plan-option ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.plan-option li {
    padding: 8px 0;
    border-bottom: 1px solid #f1f1f1;
    color: #555;
}

.plan-option li:last-child {
    border-bottom: none;
}

.plan-option .btn {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.plan-option .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.pricing-card .btn.btn-primary {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    font-weight: 600;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.pricing-card .btn.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    color: white;
    text-decoration: none;
}

.pricing-card .btn.btn-primary.btn-popular {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.pricing-card .btn.btn-primary.btn-popular:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-info {
    background: #17a2b8;
    color: white;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.subscription-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.subscription-actions .btn {
    flex: 1;
    min-width: 120px;
}

@media (max-width: 768px) {
    .plans-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .plan-option {
        padding: 15px;
    }
    
    .plan-price {
        font-size: 2rem;
    }
    
    .subscription-actions {
        flex-direction: column;
    }
    
    .subscription-actions .btn {
        flex: none;
        width: 100%;
    }
    
    .subscription-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .subscription-status.canceled {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
        word-break: break-word;
        white-space: normal;
        text-align: center;
        min-width: 100%;
        font-weight: 700;
        background: black;
        color: yellow;
        border: 1px solid rgba(220, 53, 69, 0.4);
    }
}

/* Dashboard Actions Responsive */
@media (max-width: 768px) {
    .dashboard-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .download-app-btn,
    .change-password-btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.25rem;
        margin-left: 0;
        justify-content: center;
    }
}
