/* styles.css */
:root {
    --primary: #4CC9A6;
    --primary-dark: #4CC9A6;
    --secondary: #F4D65E;
    --dark: #1f2937;
    --light: #f3f4f6;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
    
    .features-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .hero-text{
        margin-left: 5%;
    }
    .hero-actions{
        margin-left: -23%;
    }
    .hero-image{
        margin-left: 8%;        
    }
}

.mobile-menu {
    background-color: rgb(39, 39, 39);
    border-bottom: 0px solid #e5e7eb;
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 50;
}

/* Estilos modo oscuro */
body.dark .mobile-menu {
    background-color: #111827;
    border-bottom: 1px solid #1f2937;
}

/* Contenedor de los enlaces */
.mobile-menu-links {
    display: flex;
    justify-content: space-around;
    padding: 0.5rem 0;
}

/* Cada ítem del menú */
.mobile-menu-item {
    padding: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease;
}

/* Hover en modo claro */
.mobile-menu-item:hover {
    color: #059669;
}

/* Modo oscuro */
body.dark .mobile-menu-item {
    color: #d1d5db;
}

body.dark .mobile-menu-item:hover {
    color: #34d399;
}

.mobile-menu {
        display: none;
    }
/* Iconos */
.mobile-menu-icon {
    height: 1.25rem;
    width: 1.25rem;
}

/* Texto debajo de los iconos */
.mobile-menu-label {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.hidden{
    display: none;
}


@media (max-width: 768px) {

    .mobile-menu {
        display: block;
    }
    
}

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

/* Navbar Styles */
.sticky-nav {
    width: 100%;
    position: fixed;
    top: 0;
    background-color: var(--dark);
    backdrop-filter: blur(10px);
    border-bottom: 0px solid #000000;
    z-index: 100;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo1 {
    display: flex;
    align-items: center;
    text-decoration: none;
}
#Logo2{
    height: 82px;
    width: 82px;
    margin-right: 0px;
}

.logo-img {
    height: 32px;
    width: 32px;
    margin-right: 8px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color:white;
}

.desktop-menu a {
    margin: 0 12px;
    padding: 8px 12px;
    text-decoration: none;
    color:#ffffff;
    font-weight: 500;
}

.desktop-menu a:hover {
    color: var(--primary);
}

.nav-actions {
    display: flex;
    align-items: center;
}

.cart-btn {
    position: relative;
    padding: 8px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
}

.cart-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background-color: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 9999px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--dark);
    border: none;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-secondary {
    background-color: #d1fae5;
    color: var(--primary-dark);
    border: none;
    margin-right: 6px;
    margin-left: 6px;
}

.btn-white{
    border: 2px solid var(--dark);
    background-color: var(--dark);
    color: var(--primary);
    font-size: large;

}
.btn-gray{
    background-color: var(--primary);
    color: var(--dark);
    border: none;
}
.btn-outline-white {
    border: 2px solid var(--dark);
    background: transparent;
    color: var(--dark);
    font-size: large;
}

.btn-outline-white:hover {
    background: var(--dark);
    color: var(--primary);
}


.auth-container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
            padding: 40px;
            width: 100%;
            max-width: 450px;
            position: relative;
            overflow: hidden;
        }

        .auth-container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
         }

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

        .logo {
            width: 80px;
            height: 80px;
            margin: 0 auto 20px;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            font-size: 24px;
            font-weight: bold;
        }

        .welcome-text {
            color: #333;
            font-size: 24px;
            font-weight: 600;
            margin-bottom: 8px;
        }

        .subtitle {
            color: #666;
            font-size: 14px;
        }

        .tab-container {
            display: flex;
            margin-bottom: 30px;
            background: #f8f9fa;
            border-radius: 10px;
            padding: 4px;
        }

        .tab {
            border: 2px solid #e1e5e9;
            flex: 1;
            padding: 12px;
            text-align: center;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 500;
            color: #666;
            
        }

        .tab.active {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
        }
        #inactive:hover{
            border: 2px solid #667eea;
            background: #f8f9ff;
        }

        .form-container {
            position: relative;
        }

        .form {
            display: none;
        }

        .form.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }

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

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

        .form-label {
            display: block;
            margin-bottom: 8px;
            color: #333;
            font-weight: 500;
            font-size: 14px;
        }

        .form-input {
            width: 90%;
            padding: 15px 20px;
            border: 2px solid #e1e5e9;
            border-radius: 10px;
            font-size: 16px;
            transition: all 0.3s ease;
            background: #fff;
        }

        .form-input:focus {
            outline: none;
            border-color: #667eea;
            box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
        }

        .form-input.error {
            border-color: #e74c3c;
            background: #fdf2f2;
        }

        .form-input.success {
            border-color: #27ae60;
            background: #f2fdf2;
        }

        .error-message {
            color: #e74c3c;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        .success-message {
            color: #27ae60;
            font-size: 12px;
            margin-top: 5px;
            display: none;
        }

        .password-toggle {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
            color: #666;
            font-size: 18px;
        }

        .form-button {
            width: 100%;
            padding: 15px;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        .form-button:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
        }

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

        .form-button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        .loading {
            display: none;
            position: absolute;
            left: 50%;
            top: 50%;
            transform: translate(-50%, -50%);
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid rgba(255, 255, 255, 0.3);
            border-radius: 50%;
            border-top-color: white;
            animation: spin 1s ease-in-out infinite;
        }

        @keyframes spin {
            to { transform: rotate(360deg); }
        }

        .forgot-password {
            text-align: center;
            margin-top: 20px;
        }

        .forgot-password a {
            color: #667eea;
            text-decoration: none;
            font-size: 14px;
            font-weight: 500;
        }

        .forgot-password a:hover {
            text-decoration: underline;
        }

        .divider {
            text-align: center;
            margin: 25px 0;
            position: relative;
            color: #666;
            font-size: 14px;
        }

        .divider::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 0;
            right: 0;
            height: 1px;
            background: #e1e5e9;
            z-index: 1;
        }

        .divider span {
            background: rgba(255, 255, 255, 0.95);
            padding: 0 20px;
            position: relative;
            z-index: 2;
        }

        .social-buttons {
            display: flex;
            gap: 10px;
        }

        .social-btn {
            flex: 1;
            padding: 12px;
            border: 2px solid #e1e5e9;
            border-radius: 10px;
            background: white;
            cursor: pointer;
            transition: all 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 500;
            color: #333;
        }

        .social-btn:hover {
            border-color: #667eea;
            background: #f8f9ff;
        }

        .notification {
            position: fixed;
            top: 20px;
            right: 20px;
            padding: 15px 20px;
            border-radius: 10px;
            color: white;
            font-weight: 500;
            z-index: 1000;
            transform: translateX(100%);
            transition: all 0.3s ease;
        }

        .notification.show {
            transform: translateX(0);
        }

        .notification.success {
            background: linear-gradient(135deg, #27ae60, #2ecc71);
        }

        .notification.error {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
        }

        .dashboard {
            display: none;
            text-align: center;
            animation: fadeIn 0.5s ease;
        }

        .dashboard.active {
            display: block;
        }

        .user-avatar {
            width: 100px;
            height: 100px;
            border-radius: 50%;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 36px;
            font-weight: bold;
            margin: 0 auto 20px;
        }

        .user-info {
            margin-bottom: 30px;
        }

        .user-name {
            font-size: 24px;
            font-weight: 600;
            color: #333;
            margin-bottom: 5px;
        }

        .user-email {
            color: #666;
            font-size: 16px;
        }

        .logout-btn {
            background: linear-gradient(135deg, #e74c3c, #c0392b);
            color: white;
            border: none;
            padding: 12px 30px;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        .logout-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
        }

        @media (max-width: 480px) {
            .auth-container {
                padding: 30px 20px;
                margin: 10px;
            }

            .welcome-text {
                font-size: 20px;
            }

            .social-buttons {
                flex-direction: column;
            }
        }

        .alert.success { color: green; }
    .alert.error { color: red; }